|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbr.com.arsmachina.authentication.entity.Role
public abstract class Role
Class that represents a role an user can have in the application. It is used to avoid creating
User subclasses, thus solving the problem of the same user having more than one role at
the same time.
| Constructor Summary | |
|---|---|
Role()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getEmail()
Invokes user.getEmail() |
Integer |
getId()
Returns the value of the id property. |
String |
getLogin()
Invokes user.getLogin() |
String |
getName()
Invokes user.getName() |
User |
getUser()
Returns the value of the user property. |
int |
hashCode()
|
boolean |
isCredentialsExpired()
Invokes user.isCredentialsExpired() |
boolean |
isEnabled()
Invokes user.isEnabled() |
boolean |
isExpired()
Invokes user.isExpired() |
boolean |
isLocked()
Invokes user.isLocked() |
boolean |
isLoggedIn()
Invokes user.isLoggedIn() |
void |
setId(Integer id)
Changes the value of the id property. |
void |
setUser(User user)
Changes the value of the user property. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Role()
| Method Detail |
|---|
public Integer getId()
id property.
Integer.public void setId(Integer id)
id property.
id - a Integer.@NotNull public User getUser()
user property.
User.public void setUser(User user)
user property.
user - a User.public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String getEmail()
user.getEmail().
- Returns:
- See Also:
User.getEmail()
public String getLogin()
user.getLogin().
- Returns:
- See Also:
User.getLogin()
public String getName()
user.getName().
- Returns:
- a
String. - See Also:
User.getName()
public boolean isCredentialsExpired()
user.isCredentialsExpired().
- Returns:
- a
boolean. - See Also:
User.isCredentialsExpired()
public boolean isEnabled()
user.isEnabled().
- Returns:
- a
boolean. - See Also:
User.isEnabled()
public boolean isExpired()
user.isExpired().
- Returns:
- a
boolean. - See Also:
User.isExpired()
public boolean isLocked()
user.isLocked().
- Returns:
- a
boolean. - See Also:
User.isLocked()
public boolean isLoggedIn()
user.isLoggedIn().
- Returns:
- a
boolean. - See Also:
User.isLoggedIn()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||