Class DynamicGroupImpl
- java.lang.Object
-
- org.apache.fulcrum.security.entity.impl.SecurityEntityImpl
-
- org.apache.fulcrum.security.model.basic.entity.impl.BasicGroupImpl
-
- org.apache.fulcrum.security.model.dynamic.entity.impl.DynamicGroupImpl
-
- All Implemented Interfaces:
Serializable
,Group
,SecurityEntity
,BasicGroup
,DynamicGroup
public class DynamicGroupImpl extends BasicGroupImpl implements DynamicGroup
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: DynamicGroup.java 223057 2004-07-05 19:28:23Z epugh $
- Author:
- Eric Pugh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DynamicGroupImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRole(Role role)
Add a role to this groupRoleSet
getRoles()
Get the roles that are part of this group<T extends Role>
Set<T>getRolesAsSet()
Get the roles that are part of this group as Setvoid
removeRole(Role role)
Remove a role from this groupvoid
setRoles(RoleSet roleSet)
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 Set-
Methods inherited from class org.apache.fulcrum.security.model.basic.entity.impl.BasicGroupImpl
addUser, getUsers, getUsersAsSet, removeUser, setUsers, setUsersAsSet
-
Methods inherited from class org.apache.fulcrum.security.entity.impl.SecurityEntityImpl
equals, getId, getName, hashCode, setId, setName, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods 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
-
-
-
-
Constructor Detail
-
DynamicGroupImpl
public DynamicGroupImpl()
-
-
Method Detail
-
getRoles
public RoleSet getRoles()
Get the roles that are part of this group- Specified by:
getRoles
in interfaceDynamicGroup
- Returns:
- a set of roles
-
setRoles
public void setRoles(RoleSet roleSet)
Set the roles that are part of this group- Specified by:
setRoles
in interfaceDynamicGroup
- Parameters:
roleSet
- a set of roles
-
addRole
public void addRole(Role role)
Add a role to this group- Specified by:
addRole
in interfaceDynamicGroup
- Parameters:
role
- the role to add
-
removeRole
public void removeRole(Role role)
Remove a role from this group- Specified by:
removeRole
in interfaceDynamicGroup
- Parameters:
role
- the role to remove
-
setRolesAsSet
public <T extends Role> void setRolesAsSet(Set<T> roles)
Set the roles that are part of this group as Set- Specified by:
setRolesAsSet
in interfaceDynamicGroup
- Parameters:
roles
- a set of roles
-
getRolesAsSet
public <T extends Role> Set<T> getRolesAsSet()
Get the roles that are part of this group as Set- Specified by:
getRolesAsSet
in interfaceDynamicGroup
- Returns:
- a set of roles
-
-