public class TurbinePermissionImpl extends SecurityEntityImpl implements TurbinePermission
Constructor and Description |
---|
TurbinePermissionImpl() |
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 TurbinePermission
public void setRoles(RoleSet roleSet)
setRoles
in interface TurbinePermission
roleSet
- a set of rolespublic void addRole(Role role)
addRole
in interface TurbinePermission
role
- the role to addpublic void removeRole(Role role)
removeRole
in interface TurbinePermission
role
- the role to removepublic <T extends Role> void setRolesAsSet(Set<T> roles)
setRolesAsSet
in interface TurbinePermission
roles
- a set of rolespublic <T extends Role> Set<T> getRolesAsSet()
getRolesAsSet
in interface TurbinePermission
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.