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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddelete()Delete this entityprotected 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) voidold contract, lazy is set tofalse.voidretrieveAttachedObjects(Connection con, Boolean lazy) Retrieve attached objects such as users, permissions, ...<T extends User>
voidsetDelegatees(Set<T> delegatees) <T extends User>
voidsetDelegators(Set<T> delegates) void<T extends Group>
voidsetGroupsAsSet(Set<T> groups) voidupdate(Connection con) Update this instance to the database with all dependent objectsMethods inherited from class org.apache.fulcrum.security.torque.security.TorqueAbstractSecurityEntity
getEntityId, getEntityName, getId, getName, setEntityId, setEntityName, setId, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.torque.om.ObjectModel
getPrimaryKey, isModified, isNew, setModified, setNew, setPrimaryKey, setPrimaryKeyMethods inherited from interface org.apache.torque.om.Persistent
save, save, saveMethods inherited from interface org.apache.fulcrum.security.entity.SecurityEntity
getId, getName, setId, setNameMethods inherited from interface org.apache.fulcrum.security.entity.User
getPassword, setPassword
-
Constructor Details
-
TorqueAbstractDynamicUser
public TorqueAbstractDynamicUser()
-
-
Method Details
-
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
-
getGroups
-
getGroupsAsSet
- Specified by:
getGroupsAsSetin interfaceBasicUser
-
removeGroup
- Specified by:
removeGroupin interfaceBasicUser
-
setGroups
-
setGroupsAsSet
- Specified by:
setGroupsAsSetin interfaceBasicUser
-
getDelegatees
- Specified by:
getDelegateesin interfaceDynamicUser
-
getDelegators
- Specified by:
getDelegatorsin interfaceDynamicUser
-
setDelegatees
- Specified by:
setDelegateesin interfaceDynamicUser
-
setDelegators
- Specified by:
setDelegatorsin interfaceDynamicUser
-
getDatabaseName
- Returns:
- the database name
-
retrieveAttachedObjects
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
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:
-
update
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:
-
delete
public void delete() throws org.apache.torque.TorqueExceptionDescription 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:
-