@MappedSuperclass public class BasicUser<T extends BasicUser> extends AbstractUser implements Serializable, User
User.BIT_MASKS| Modifier and Type | Method and Description |
|---|---|
User |
copyAs(Class userClass)
Provide an equivalent copy of this user as userType
For different types of users we may need to get a copy for that User Type. |
boolean |
equals(Object obj) |
Map<String,Collection<Authorization>> |
getAuthorizationMap()
Map of entity Name to
Set of Authorization.The entity name can refer to any section that has a name, that uniquely identifies the entity. |
String |
getAuthorizations() |
int |
getBitmask() |
String |
getId() |
String |
getName() |
Collection<String> |
getRoleNames() |
String |
getRoles()
JSON String to represent List of Role Names
|
int |
hashCode() |
T |
setAuthorizationMap(Map<String,Collection<Authorization>> _authorizationMap)
Map of entity Name to
Set of Authorization.The entity name can refer to any section that has a name, that uniquely identifies the entity. |
void |
setAuthorizations(String authorizations) |
T |
setBitmask(int bitmask) |
void |
setId(String id) |
void |
setRoleNames(Collection<String> roleNames) |
void |
setRoles(String roles)
JSON String to represent List of Role Names
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetEnvironmentSupplierpublic BasicUser()
public BasicUser(String id)
public Map<String,Collection<Authorization>> getAuthorizationMap()
UserSet of Authorization.getAuthorizationMap in interface UserMappublic T setAuthorizationMap(Map<String,Collection<Authorization>> _authorizationMap)
UserSet of Authorization.setAuthorizationMap in interface UserMappublic int getBitmask()
getBitmask in interface Userpublic T setBitmask(int bitmask)
setBitmask in interface Userpublic String getAuthorizations()
public void setAuthorizations(String authorizations)
public String getRoles()
public void setRoles(String roles)
public boolean equals(Object obj)
public int hashCode()
public String toString()
public User copyAs(Class userClass)
UserRuntimeException.
User without having to implement or extends strict hierarchies.public Collection<String> getRoleNames()
getRoleNames in interface UserCollection of Role.getName()public void setRoleNames(Collection<String> roleNames)
setRoleNames in interface UserCopyright © 2018. All rights reserved.