public interface User extends Principal, Serializable
Modifier and Type | Interface and Description |
---|---|
static class |
User.BIT_MASKS |
Modifier and Type | Method and Description |
---|---|
<U extends User> |
copyAs(Class<U> userType)
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. |
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. |
int |
getBitmask() |
default Supplier |
getEnvironmentSupplier()
When user loads this context and supplies it to the Session.
Example: What is the default page for the Role etc. |
String |
getId() |
Collection<String> |
getRoleNames() |
User |
setAuthorizationMap(Map<String,Collection<Authorization>> auths)
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. |
User |
setBitmask(int bitmask) |
void |
setId(String id) |
void |
setRoleNames(Collection<String> roleNames) |
String getId()
void setId(String id)
Map<String,Collection<Authorization>> getAuthorizationMap()
Set
of Authorization
.Map
Collection<String> getRoleNames()
Collection
of Role.getName()
void setRoleNames(Collection<String> roleNames)
User setAuthorizationMap(Map<String,Collection<Authorization>> auths)
Set
of Authorization
.Map
int getBitmask()
User setBitmask(int bitmask)
<U extends User> U copyAs(Class<U> userType)
RuntimeException
.
User
without having to implement or extends strict hierarchies.userClass
- as Classdefault Supplier getEnvironmentSupplier()
Copyright © 2018. All rights reserved.