public class TurbineRoleImpl extends AbstractTurbineSecurityEntityImpl implements TurbineRole
Constructor and Description |
---|
TurbineRoleImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addPermission(Permission permission)
This method should only be used by a RoleManager.
|
PermissionSet |
getPermissions()
Get the permission that are part of this role
|
<T extends Permission> |
getPermissionsAsSet()
Get the permission that are part of this role as Set
|
void |
removePermission(Permission permission)
This method should only be used by a RoleManager.
|
void |
setPermissions(PermissionSet permissionSet)
Set the permission that are part of this role
|
<T extends Permission> |
setPermissionsAsSet(Set<T> permissions)
Set the permission that are part of this role as Set
|
addUserGroupRole, getUserGroupRoleSet, removeUserGroupRole, setUserGroupRoleSet
equals, getId, getName, hashCode, setId, setName, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getName, setId, setName
addUserGroupRole, getUserGroupRoleSet, removeUserGroupRole, setUserGroupRoleSet
public PermissionSet getPermissions()
getPermissions
in interface TurbineRole
public <T extends Permission> Set<T> getPermissionsAsSet()
getPermissionsAsSet
in interface TurbineRole
public void setPermissions(PermissionSet permissionSet)
setPermissions
in interface TurbineRole
permissionSet
- a set of permissionspublic <T extends Permission> void setPermissionsAsSet(Set<T> permissions)
setPermissionsAsSet
in interface TurbineRole
permissions
- a set of permissionspublic void addPermission(Permission permission)
addPermission
in interface TurbineRole
permission
- public void removePermission(Permission permission)
removePermission
in interface TurbineRole
permission
- Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.