@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, wait
getEnvironmentSupplier
public BasicUser()
public BasicUser(String id)
public Map<String,Collection<Authorization>> getAuthorizationMap()
User
Set
of Authorization
.getAuthorizationMap
in interface User
Map
public T setAuthorizationMap(Map<String,Collection<Authorization>> _authorizationMap)
User
Set
of Authorization
.setAuthorizationMap
in interface User
Map
public int getBitmask()
getBitmask
in interface User
public T setBitmask(int bitmask)
setBitmask
in interface User
public 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)
User
RuntimeException
.
User
without having to implement or extends strict hierarchies.public Collection<String> getRoleNames()
getRoleNames
in interface User
Collection
of Role.getName()
public void setRoleNames(Collection<String> roleNames)
setRoleNames
in interface User
Copyright © 2018. All rights reserved.