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, setNamePermissionSet 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 - the Permission to addvoid removePermission(Permission permission)
permission - the Permission to removeGroupSet getGroups()
void setGroups(GroupSet groups)
groups - the set of groupsvoid removeGroup(Group group)
group - the Group to removevoid addGroup(Group group)
group - the Group to add<T extends Group> void setGroupsAsSet(Set<T> groups)
groups - the set of groupsCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.