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
All Methods Instance Methods Concrete Methods 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 user-
Methods 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
-
Methods inherited from interface org.apache.fulcrum.security.entity.User
getPassword, setPassword
-
-
-
-
Constructor Detail
-
DynamicUserImpl
public DynamicUserImpl()
-
-
Method Detail
-
getDelegatees
public <T extends User> Set<T> getDelegatees()
Get the set of delegatees for this user- Specified by:
getDelegatees
in interfaceDynamicUser
- Returns:
- Returns the delegatees.
-
setDelegatees
public <T extends User> void setDelegatees(Set<T> delegatees)
Set the delegatees for this user- Specified by:
setDelegatees
in interfaceDynamicUser
- Parameters:
delegatees
- The delegatees to set.
-
getDelegators
public <T extends User> Set<T> getDelegators()
Get the set of delegators for this user- Specified by:
getDelegators
in interfaceDynamicUser
- Returns:
- Returns the delegators.
-
setDelegators
public <T extends User> void setDelegators(Set<T> delegators)
Set the delegators for this user- Specified by:
setDelegators
in interfaceDynamicUser
- Parameters:
delegators
- The delegators to set.
-
-