public interface TurbineRole extends Role, TurbineUserGroupRoleEntity
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
|
getId, getName, setId, setName
addUserGroupRole, getUserGroupRoleSet, removeUserGroupRole, setUserGroupRoleSet
PermissionSet getPermissions()
<T extends Permission> Set<T> getPermissionsAsSet()
void setPermissions(PermissionSet permissionSet)
permissionSet
- a set of permissions<T extends Permission> void setPermissionsAsSet(Set<T> permissions)
permissions
- a set of permissionsvoid addPermission(Permission permission)
permission
- void removePermission(Permission permission)
permission
- Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.