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, setPasswordMethods inherited from class org.apache.fulcrum.security.entity.impl.SecurityEntityImpl
equals, getId, getName, setId, setName, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.fulcrum.security.model.basic.entity.BasicUser
addGroup, getGroups, getGroupsAsSet, removeGroup, setGroups, setGroupsAsSetMethods 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:
getDelegateesin interfaceDynamicUser- Returns:
- Returns the delegatees.
-
setDelegatees
Set the delegatees for this user- Specified by:
setDelegateesin interfaceDynamicUser- Parameters:
delegatees- The delegatees to set.
-
getDelegators
Get the set of delegators for this user- Specified by:
getDelegatorsin interfaceDynamicUser- Returns:
- Returns the delegators.
-
setDelegators
Set the delegators for this user- Specified by:
setDelegatorsin interfaceDynamicUser- Parameters:
delegators- The delegators to set.
-