public interface DynamicPermission extends Permission
| Modifier and Type | Method and Description |
|---|---|
void |
addRole(Role role)
Add a role to this permission
|
RoleSet |
getRoles()
Get the roles that this permission belongs to
|
<T extends Role> |
getRolesAsSet()
Get the roles that this permission belongs to as Set
|
void |
removeRole(Role role)
Remove a role from this permission
|
void |
setRoles(RoleSet roleSet)
Set the roles that this permission belongs to
|
<T extends Role> |
setRolesAsSet(Set<T> roles)
Set the roles that this permission belongs to as Set
|
getId, getName, setId, setNameRoleSet getRoles()
void setRoles(RoleSet roleSet)
roleSet - a set of rolesvoid addRole(Role role)
role - the role to addvoid removeRole(Role role)
role - the role to remove<T extends Role> void setRolesAsSet(Set<T> roles)
roles - a set of rolesCopyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.