public interface DynamicRole extends Role
Modifier and Type | Method and Description |
---|---|
void |
addGroup(Group group)
This method should only be used by a RoleManager.
|
void |
addPermission(Permission permission)
This method should only be used by a RoleManager.
|
GroupSet |
getGroups()
Get the groups this role belongs to
|
<T extends Group> |
getGroupsAsSet()
Get the groups this role belongs to as a Set
|
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 |
removeGroup(Group group)
This method should only be used by a RoleManager.
|
void |
removePermission(Permission permission)
This method should only be used by a RoleManager.
|
void |
setGroups(GroupSet groups)
Set the groups this role belongs to
|
<T extends Group> |
setGroupsAsSet(Set<T> groups)
Set the groups this role belongs to as a Set
|
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
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
- GroupSet getGroups()
void setGroups(GroupSet groups)
groups
- the set of groupsvoid removeGroup(Group group)
group
- void addGroup(Group group)
group
- <T extends Group> void setGroupsAsSet(Set<T> groups)
groups
- the set of groupsCopyright © 2011–2017 The Apache Software Foundation. All rights reserved.