public class DynamicPermissionImpl extends SecurityEntityImpl implements DynamicPermission
Constructor and Description |
---|
DynamicPermissionImpl() |
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
|
equals, getId, getName, hashCode, setId, setName, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getName, setId, setName
public RoleSet getRoles()
getRoles
in interface DynamicPermission
public void setRoles(RoleSet roleSet)
setRoles
in interface DynamicPermission
roleSet
- a set of rolespublic void addRole(Role role)
addRole
in interface DynamicPermission
role
- the role to addpublic void removeRole(Role role)
removeRole
in interface DynamicPermission
role
- the role to removepublic <T extends Role> void setRolesAsSet(Set<T> roles)
setRolesAsSet
in interface DynamicPermission
roles
- a set of rolespublic <T extends Role> Set<T> getRolesAsSet()
getRolesAsSet
in interface DynamicPermission
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.