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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetId, getName, setId, setNamepublic RoleSet getRoles()
getRoles in interface TurbinePermissionpublic void setRoles(RoleSet roleSet)
setRoles in interface TurbinePermissionroleSet - a set of rolespublic void addRole(Role role)
addRole in interface TurbinePermissionrole - the role to addpublic void removeRole(Role role)
removeRole in interface TurbinePermissionrole - the role to removepublic <T extends Role> void setRolesAsSet(Set<T> roles)
setRolesAsSet in interface TurbinePermissionT - Roleroles - a set of rolespublic <T extends Role> Set<T> getRolesAsSet()
getRolesAsSet in interface TurbinePermissionCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.