Class DynamicUserImpl
java.lang.Object
org.apache.fulcrum.security.entity.impl.SecurityEntityImpl
org.apache.fulcrum.security.model.basic.entity.impl.BasicUserImpl
org.apache.fulcrum.security.model.dynamic.entity.impl.DynamicUserImpl
- All Implemented Interfaces:
Serializable
,SecurityEntity
,User
,BasicUser
,DynamicUser
public class DynamicUserImpl extends BasicUserImpl implements DynamicUser
Represents the "simple" model where permissions are related to roles, roles
are related to groups and groups are related to users, all in many to many
relationships.
Users have a set of delegates and delegatee's. If user A has B in their
delegates - B assumes A's groups,roles and permissions If user C has D in
their delegatees - C assumes D's groups,roles and permissions
- Version:
- $Id: DynamicUser.java 437451 2006-08-27 20:20:44Z tv $
- Author:
- Eric Pugh
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description DynamicUserImpl()
-
Method Summary
Modifier and Type Method Description <T extends User>
Set<T>getDelegatees()
Get the set of delegatees for this user<T extends User>
Set<T>getDelegators()
Get the set of delegators for this user<T extends User>
voidsetDelegatees(Set<T> delegatees)
Set the delegatees for this user<T extends User>
voidsetDelegators(Set<T> delegators)
Set the delegators for this userMethods inherited from class org.apache.fulcrum.security.model.basic.entity.impl.BasicUserImpl
addGroup, getGroups, getGroupsAsSet, getPassword, hashCode, removeGroup, setGroups, setGroupsAsSet, setPassword
Methods inherited from class org.apache.fulcrum.security.entity.impl.SecurityEntityImpl
equals, getId, getName, 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.BasicUser
addGroup, getGroups, getGroupsAsSet, removeGroup, setGroups, setGroupsAsSet
Methods inherited from interface org.apache.fulcrum.security.entity.SecurityEntity
getId, getName, setId, setName
-
Constructor Details
-
DynamicUserImpl
public DynamicUserImpl()
-
-
Method Details
-
getDelegatees
Get the set of delegatees for this user- Specified by:
getDelegatees
in interfaceDynamicUser
- Returns:
- Returns the delegatees.
-
setDelegatees
Set the delegatees for this user- Specified by:
setDelegatees
in interfaceDynamicUser
- Parameters:
delegatees
- The delegatees to set.
-
getDelegators
Get the set of delegators for this user- Specified by:
getDelegators
in interfaceDynamicUser
- Returns:
- Returns the delegators.
-
setDelegators
Set the delegators for this user- Specified by:
setDelegators
in interfaceDynamicUser
- Parameters:
delegators
- The delegators to set.
-