Interface DynamicGroup
- All Superinterfaces:
BasicGroup
,Group
,SecurityEntity
,Serializable
- All Known Implementing Classes:
DynamicGroupImpl
Represents the "dynamic" model where permissions are related to roles, roles
are related to groups and groups are related to userSet, all in many to many
relationships.
- Version:
- $Id$
- Author:
- Eric Pugh
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a role to this groupgetRoles()
Get the roles that are part of this groupGet the roles that are part of this group as Setvoid
removeRole
(Role role) Remove a role from this groupvoid
Set the roles that are part of this group<T extends Role>
voidsetRolesAsSet
(Set<T> roles) Set the roles that are part of this group as SetMethods inherited from interface org.apache.fulcrum.security.model.basic.entity.BasicGroup
addUser, getUsers, getUsersAsSet, removeUser, setUsers, setUsersAsSet
Methods inherited from interface org.apache.fulcrum.security.entity.SecurityEntity
getId, getName, setId, setName
-
Method Details
-
getRoles
RoleSet getRoles()Get the roles that are part of this group- Returns:
- a set of roles
-
setRoles
Set the roles that are part of this group- Parameters:
roleSet
- a set of roles
-
addRole
Add a role to this group- Parameters:
role
- the role to add
-
removeRole
Remove a role from this group- Parameters:
role
- the role to remove
-
setRolesAsSet
Set the roles that are part of this group as Set- Parameters:
roles
- a set of roles
-
getRolesAsSet
Get the roles that are part of this group as Set- Returns:
- a set of roles
-