public class DynamicGroupImpl extends BasicGroupImpl implements DynamicGroup
Constructor and Description |
---|
DynamicGroupImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addRole(Role role)
Add a role to this group
|
RoleSet |
getRoles()
Get the roles that are part of this group
|
<T extends Role> |
getRolesAsSet()
Get the roles that are part of this group as Set
|
void |
removeRole(Role role)
Remove a role from this group
|
void |
setRoles(RoleSet roleSet)
Set the roles that are part of this group
|
<T extends Role> |
setRolesAsSet(Set<T> roles)
Set the roles that are part of this group as Set
|
addUser, getUsers, getUsersAsSet, removeUser, setUsers, setUsersAsSet
equals, getId, getName, hashCode, setId, setName, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addUser, getUsers, getUsersAsSet, removeUser, setUsers, setUsersAsSet
getId, getName, setId, setName
public RoleSet getRoles()
getRoles
in interface DynamicGroup
public void setRoles(RoleSet roleSet)
setRoles
in interface DynamicGroup
roleSet
- a set of rolespublic void addRole(Role role)
addRole
in interface DynamicGroup
role
- the role to addpublic void removeRole(Role role)
removeRole
in interface DynamicGroup
role
- the role to removepublic <T extends Role> void setRolesAsSet(Set<T> roles)
setRolesAsSet
in interface DynamicGroup
roles
- a set of rolespublic <T extends Role> Set<T> getRolesAsSet()
getRolesAsSet
in interface DynamicGroup
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.