|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RolesHolder
Roles container
| Method Summary | |
|---|---|
void |
addRole(RoleScope scope,
Role role)
Adds role with specified scope |
java.util.Collection<RolesHolder> |
getAllParentHolders()
Returns all parent holders including transitive ones |
java.util.Collection<RolesHolder> |
getParentHolders()
Returns direct (non transitive) parent holders. |
java.util.Collection<RoleEntry> |
getRoles()
Returns roles with their scopes |
java.util.Collection<Role> |
getRolesWithScope(RoleScope scope)
Returns all roles with specified scope. |
java.util.Collection<RoleScope> |
getScopes()
Returns all scopes with assigned roles |
boolean |
isSystemAdministratorRoleGranted()
Returns true if this roles holder contains system administrator role granted directly or inherited via parent holders. |
boolean |
isSystemAdministratorRoleGrantedDirectly()
Returns true if this roles holder contains system administrator role granted directly. |
boolean |
isSystemAdministratorRoleInherited()
Returns true if one of the parents (transitively) of this roles holder contains system administrator role. |
void |
removeRole(Role role)
Removes specified role. |
void |
removeRole(RoleScope scope,
Role role)
Removes role with specified scope |
void |
removeRoles(RoleScope scope)
Removes all of the roles having the specified scope. |
| Method Detail |
|---|
@NotNull
java.util.Collection<Role> getRolesWithScope(@NotNull
RoleScope scope)
scope - roles scope
java.util.Collection<RoleScope> getScopes()
@NotNull java.util.Collection<RoleEntry> getRoles()
void addRole(@NotNull
RoleScope scope,
@NotNull
Role role)
scope - scope of the rolerole - role
void removeRole(@NotNull
RoleScope scope,
@NotNull
Role role)
scope - scope of the rolerole - role
void removeRole(@NotNull
Role role)
role - role to remove
void removeRoles(@NotNull
RoleScope scope)
scope - scope of the roleboolean isSystemAdministratorRoleGranted()
isSystemAdministratorRoleGrantedDirectly() || isSystemAdministratorRoleInherited()
boolean isSystemAdministratorRoleGrantedDirectly()
boolean isSystemAdministratorRoleInherited()
@NotNull java.util.Collection<RolesHolder> getParentHolders()
@NotNull java.util.Collection<RolesHolder> getAllParentHolders()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||