public final class UserAuthorizations extends Object implements Serializable
| Constructor and Description |
|---|
UserAuthorizations() |
| Modifier and Type | Method and Description |
|---|---|
UserAuthorizations |
addAuthorization(Authorization authorization)
Add a authorization to this User.
|
UserAuthorizations |
addRole(Role role)
Add a role to this User.
|
void |
clearAuthorizations()
Clear all authorization on this user.
|
void |
clearRoles()
Clear all roles on this user.
|
UserAuthorizations |
clearSecurityKeys()
Clear Security Keys.
|
Set<Authorization> |
getEntityAuthorizations(DtDefinition entityDefinition)
Return authorizations set for this type of entity.
|
Set<Role> |
getRoles()
Return roles set of this user.
|
Map<String,List<Serializable>> |
getSecurityKeys()
Return the security keys of this user.
|
boolean |
hasAuthorization(AuthorizationName... authorizationNames) |
boolean |
hasRole(Role role) |
UserAuthorizations |
withSecurityKeys(String securityKey,
Serializable value)
Add a security key part of his security perimeter.
|
public UserAuthorizations addRole(Role role)
role - Role to addpublic boolean hasRole(Role role)
role - Rolepublic void clearRoles()
public UserAuthorizations addAuthorization(Authorization authorization)
authorization - Authorization to addpublic Set<Authorization> getEntityAuthorizations(DtDefinition entityDefinition)
entityDefinition - Entity definitionpublic boolean hasAuthorization(AuthorizationName... authorizationNames)
authorizationNamse - Authorizationpublic void clearAuthorizations()
public Map<String,List<Serializable>> getSecurityKeys()
public UserAuthorizations withSecurityKeys(String securityKey, Serializable value)
securityKey - Namevalue - Valuepublic UserAuthorizations clearSecurityKeys()
Copyright © 2019. All Rights Reserved.