Class TorqueAbstractDynamicUser
- java.lang.Object
-
- org.apache.fulcrum.security.torque.security.TorqueAbstractSecurityEntity
-
- org.apache.fulcrum.security.torque.dynamic.TorqueAbstractDynamicUser
-
- All Implemented Interfaces:
Serializable,SecurityEntity,User,BasicUser,DynamicUser,org.apache.torque.om.ObjectModel,org.apache.torque.om.Persistent
- Direct Known Subclasses:
BaseTorqueDynamicUser
public abstract class TorqueAbstractDynamicUser extends TorqueAbstractSecurityEntity implements DynamicUser
This abstract class provides the SecurityInterface to the managers.- Version:
- $Id:$
- Author:
- Thomas Vandahl
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TorqueAbstractDynamicUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGroup(Group group)Add the group to the list of groupsvoiddelete()Delete this entityStringgetDatabaseName()<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 userGroupSetgetGroups()Get the groups this user is part of<T extends Group>
Set<T>getGroupsAsSet()Get the groups this user is part of as a Setprotected List<TorqueDynamicUserDelegates>getTorqueDynamicUserDelegatessRelatedByDelegateeUserIdJoinTorqueDynamicUserRelatedByDelegatorUserId(org.apache.torque.criteria.Criteria criteria, Connection con)Forward reference to generated code Get a list of delegator association objects, pre-populated with their TorqueDynamicUserDelegates objects.protected List<TorqueDynamicUserDelegates>getTorqueDynamicUserDelegatessRelatedByDelegatorUserIdJoinTorqueDynamicUserRelatedByDelegateeUserId(org.apache.torque.criteria.Criteria criteria, Connection con)Forward reference to generated code Get a list of delegatee association objects, pre-populated with their TorqueDynamicUserDelegates objects.protected List<TorqueDynamicUserGroup>getTorqueDynamicUserGroupsJoinTorqueDynamicGroup(org.apache.torque.criteria.Criteria criteria, Connection con)Forward reference to generated code Get a list of association objects, pre-populated with their TorqueDynamicGroup objects.voidremoveGroup(Group group)Remove the group from the list of groupsvoidretrieveAttachedObjects(Connection con)old contract, lazy is set tofalse.voidretrieveAttachedObjects(Connection con, Boolean lazy)Retrieve attached objects such as users, permissions, ...<T extends User>
voidsetDelegatees(Set<T> delegatees)Set the delegatees for this user<T extends User>
voidsetDelegators(Set<T> delegates)Set the delegators for this uservoidsetGroups(GroupSet groups)Set the groups this user is part of<T extends Group>
voidsetGroupsAsSet(Set<T> groups)Set the groups this user is part of as a Setvoidupdate(Connection con)Update this instance to the database with all dependent objects-
Methods inherited from class org.apache.fulcrum.security.torque.security.TorqueAbstractSecurityEntity
getEntityId, getEntityName, getId, getName, setEntityId, setEntityName, setId, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.torque.om.ObjectModel
getPrimaryKey, isModified, isNew, setModified, setNew, setPrimaryKey, setPrimaryKey
-
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
-
TorqueAbstractDynamicUser
public TorqueAbstractDynamicUser()
-
-
Method Detail
-
getTorqueDynamicUserGroupsJoinTorqueDynamicGroup
protected List<TorqueDynamicUserGroup> getTorqueDynamicUserGroupsJoinTorqueDynamicGroup(org.apache.torque.criteria.Criteria criteria, Connection con) throws org.apache.torque.TorqueException
Forward reference to generated code Get a list of association objects, pre-populated with their TorqueDynamicGroup objects.- Parameters:
criteria- Criteria to define the selection of recordscon- a database connection- Returns:
- a list of User/Group relations
- Throws:
org.apache.torque.TorqueException- if any database error occurs
-
getTorqueDynamicUserDelegatessRelatedByDelegateeUserIdJoinTorqueDynamicUserRelatedByDelegatorUserId
protected List<TorqueDynamicUserDelegates> getTorqueDynamicUserDelegatessRelatedByDelegateeUserIdJoinTorqueDynamicUserRelatedByDelegatorUserId(org.apache.torque.criteria.Criteria criteria, Connection con) throws org.apache.torque.TorqueException
Forward reference to generated code Get a list of delegator association objects, pre-populated with their TorqueDynamicUserDelegates objects.- Parameters:
criteria- Criteria to define the selection of recordscon- a database connection- Returns:
- a list of User/Delegator relations
- Throws:
org.apache.torque.TorqueException- if any database error occurs
-
getTorqueDynamicUserDelegatessRelatedByDelegatorUserIdJoinTorqueDynamicUserRelatedByDelegateeUserId
protected List<TorqueDynamicUserDelegates> getTorqueDynamicUserDelegatessRelatedByDelegatorUserIdJoinTorqueDynamicUserRelatedByDelegateeUserId(org.apache.torque.criteria.Criteria criteria, Connection con) throws org.apache.torque.TorqueException
Forward reference to generated code Get a list of delegatee association objects, pre-populated with their TorqueDynamicUserDelegates objects.- Parameters:
criteria- Criteria to define the selection of recordscon- a database connection- Returns:
- a list of User/Delegator relations
- Throws:
org.apache.torque.TorqueException- if any database error occurs
-
addGroup
public void addGroup(Group group)
Description copied from interface:BasicUserAdd the group to the list of groups
-
getGroups
public GroupSet getGroups()
Description copied from interface:BasicUserGet the groups this user is part of
-
getGroupsAsSet
public <T extends Group> Set<T> getGroupsAsSet()
Description copied from interface:BasicUserGet the groups this user is part of as a Set- Specified by:
getGroupsAsSetin interfaceBasicUser- Returns:
- a set of groups
-
removeGroup
public void removeGroup(Group group)
Description copied from interface:BasicUserRemove the group from the list of groups- Specified by:
removeGroupin interfaceBasicUser- Parameters:
group- the group to remove
-
setGroups
public void setGroups(GroupSet groups)
Description copied from interface:BasicUserSet the groups this user is part of
-
setGroupsAsSet
public <T extends Group> void setGroupsAsSet(Set<T> groups)
Description copied from interface:BasicUserSet the groups this user is part of as a Set- Specified by:
setGroupsAsSetin interfaceBasicUser- Parameters:
groups- the set of groups
-
getDelegatees
public <T extends User> Set<T> getDelegatees()
Description copied from interface:DynamicUserGet the set of delegatees for this user- Specified by:
getDelegateesin interfaceDynamicUser- Returns:
- Returns the delegatees.
-
getDelegators
public <T extends User> Set<T> getDelegators()
Description copied from interface:DynamicUserGet the set of delegators for this user- Specified by:
getDelegatorsin interfaceDynamicUser- Returns:
- Returns the delegators.
-
setDelegatees
public <T extends User> void setDelegatees(Set<T> delegatees)
Description copied from interface:DynamicUserSet the delegatees for this user- Specified by:
setDelegateesin interfaceDynamicUser- Parameters:
delegatees- The delegatees to set.
-
setDelegators
public <T extends User> void setDelegators(Set<T> delegates)
Description copied from interface:DynamicUserSet the delegators for this user- Specified by:
setDelegatorsin interfaceDynamicUser- Parameters:
delegates- The delegators to set.
-
getDatabaseName
public String getDatabaseName()
- Returns:
- the database name
-
retrieveAttachedObjects
public void retrieveAttachedObjects(Connection con) throws DataBackendException
Description copied from class:TorqueAbstractSecurityEntityold contract, lazy is set tofalse.- Specified by:
retrieveAttachedObjectsin classTorqueAbstractSecurityEntity- Parameters:
con- A database connection- Throws:
DataBackendException- wrapper exception: user information not found exception
-
retrieveAttachedObjects
public void retrieveAttachedObjects(Connection con, Boolean lazy) throws DataBackendException
Description copied from class:TorqueAbstractSecurityEntityRetrieve attached objects such as users, permissions, ...- Specified by:
retrieveAttachedObjectsin classTorqueAbstractSecurityEntity- Parameters:
con- A database connectionlazy- iftrue, may load some or all relationships later- Throws:
DataBackendException- See Also:
TorqueAbstractSecurityEntity.retrieveAttachedObjects(Connection, Boolean)
-
update
public void update(Connection con) throws org.apache.torque.TorqueException
Description copied from class:TorqueAbstractSecurityEntityUpdate this instance to the database with all dependent objects- Specified by:
updatein classTorqueAbstractSecurityEntity- Parameters:
con- A database connection- Throws:
org.apache.torque.TorqueException- database not found exception- See Also:
TorqueAbstractSecurityEntity.update(java.sql.Connection)
-
delete
public void delete() throws org.apache.torque.TorqueException
Description copied from class:TorqueAbstractSecurityEntityDelete this entity- Specified by:
deletein classTorqueAbstractSecurityEntity- Throws:
org.apache.torque.TorqueException- if any database error occurs if any database operation fails- See Also:
TorqueAbstractSecurityEntity.delete()
-
-