public class DynamicRoleImpl extends SecurityEntityImpl implements DynamicRole
| Constructor and Description |
|---|
DynamicRoleImpl() |
| 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 groupSet)
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
|
equals, getId, getName, hashCode, setId, setName, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetId, getName, setId, setNamepublic PermissionSet getPermissions()
getPermissions in interface DynamicRolepublic <T extends Permission> Set<T> getPermissionsAsSet()
getPermissionsAsSet in interface DynamicRolepublic void setPermissions(PermissionSet permissionSet)
setPermissions in interface DynamicRolepermissionSet - a set of permissionspublic <T extends Permission> void setPermissionsAsSet(Set<T> permissions)
setPermissionsAsSet in interface DynamicRolepermissions - a set of permissionspublic void addPermission(Permission permission)
addPermission in interface DynamicRolepermission - the Permission to addpublic void removePermission(Permission permission)
removePermission in interface DynamicRolepermission - the Permission to removepublic GroupSet getGroups()
getGroups in interface DynamicRolepublic void setGroups(GroupSet groupSet)
setGroups in interface DynamicRolegroupSet - the set of groupspublic void removeGroup(Group group)
removeGroup in interface DynamicRolegroup - the Group to removepublic void addGroup(Group group)
addGroup in interface DynamicRolegroup - the Group to addpublic <T extends Group> void setGroupsAsSet(Set<T> groups)
setGroupsAsSet in interface DynamicRolegroups - the set of groupspublic <T extends Group> Set<T> getGroupsAsSet()
getGroupsAsSet in interface DynamicRoleCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.