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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getName, setId, setName
public PermissionSet getPermissions()
getPermissions
in interface DynamicRole
public <T extends Permission> Set<T> getPermissionsAsSet()
getPermissionsAsSet
in interface DynamicRole
public void setPermissions(PermissionSet permissionSet)
setPermissions
in interface DynamicRole
permissionSet
- a set of permissionspublic <T extends Permission> void setPermissionsAsSet(Set<T> permissions)
setPermissionsAsSet
in interface DynamicRole
permissions
- a set of permissionspublic void addPermission(Permission permission)
addPermission
in interface DynamicRole
permission
- public void removePermission(Permission permission)
removePermission
in interface DynamicRole
permission
- public GroupSet getGroups()
getGroups
in interface DynamicRole
public void setGroups(GroupSet groupSet)
setGroups
in interface DynamicRole
groups
- the set of groupspublic void removeGroup(Group group)
removeGroup
in interface DynamicRole
group
- public void addGroup(Group group)
addGroup
in interface DynamicRole
group
- public <T extends Group> void setGroupsAsSet(Set<T> groups)
setGroupsAsSet
in interface DynamicRole
groups
- the set of groupspublic <T extends Group> Set<T> getGroupsAsSet()
getGroupsAsSet
in interface DynamicRole
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.