Class TorqueAbstractBasicUser
java.lang.Object
org.apache.fulcrum.security.torque.security.TorqueAbstractSecurityEntity
org.apache.fulcrum.security.torque.basic.TorqueAbstractBasicUser
- All Implemented Interfaces:
Serializable,SecurityEntity,User,BasicUser,org.apache.torque.om.ObjectModel,org.apache.torque.om.Persistent
- Direct Known Subclasses:
BaseTorqueBasicUser
public abstract class TorqueAbstractBasicUser extends TorqueAbstractSecurityEntity implements BasicUser
This abstract class provides the SecurityInterface to the managers.
- Version:
- $Id:$
- Author:
- Thomas Vandahl
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description TorqueAbstractBasicUser() -
Method Summary
Modifier and Type Method Description voidaddGroup(Group group)voiddelete()Delete this entityStringgetDatabaseName()Get the name of the connnection pool associated to this objectGroupSetgetGroups()<T extends Group>
Set<T>getGroupsAsSet()protected List<TorqueBasicUserGroup>getTorqueBasicUserGroupsJoinTorqueBasicGroup(org.apache.torque.criteria.Criteria criteria, Connection con)Forward reference to generated code Get a list of association objects, pre-populated with their TorqueBasicGroup objects.voidremoveGroup(Group group)voidretrieveAttachedObjects(Connection con)Retrieve attached objects such as users, permissions,....voidretrieveAttachedObjects(Connection con, Boolean lazy)Retrieve attached objects such as users, permissions,....voidsetGroups(GroupSet groups)<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.fulcrum.security.entity.SecurityEntity
getId, getName, setId, setName
-
Constructor Details
-
TorqueAbstractBasicUser
public TorqueAbstractBasicUser()
-
-
Method Details
-
getTorqueBasicUserGroupsJoinTorqueBasicGroup
protected List<TorqueBasicUserGroup> getTorqueBasicUserGroupsJoinTorqueBasicGroup(org.apache.torque.criteria.Criteria criteria, Connection con) throws org.apache.torque.TorqueExceptionForward reference to generated code Get a list of association objects, pre-populated with their TorqueBasicGroup 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
-
addGroup
- Specified by:
addGroupin interfaceBasicUser- See Also:
BasicUser.addGroup(org.apache.fulcrum.security.entity.Group)
-
getGroups
- Specified by:
getGroupsin interfaceBasicUser- See Also:
BasicUser.getGroups()
-
getGroupsAsSet
- Specified by:
getGroupsAsSetin interfaceBasicUser- See Also:
BasicUser.getGroupsAsSet()
-
removeGroup
- Specified by:
removeGroupin interfaceBasicUser- See Also:
BasicUser.removeGroup(org.apache.fulcrum.security.entity.Group)
-
setGroups
- Specified by:
setGroupsin interfaceBasicUser- See Also:
BasicUser.setGroups(org.apache.fulcrum.security.util.GroupSet)
-
setGroupsAsSet
- Specified by:
setGroupsAsSetin interfaceBasicUser- See Also:
BasicUser.setGroupsAsSet(java.util.Set)
-
retrieveAttachedObjects
Retrieve attached objects such as users, permissions,....- Specified by:
retrieveAttachedObjectsin classTorqueAbstractSecurityEntity- Parameters:
con- A database connection- Throws:
DataBackendException- wrapper exception: user information not found exception
-
retrieveAttachedObjects
Retrieve 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
-
update
Update 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
-
getDatabaseName
Get the name of the connnection pool associated to this object- Returns:
- the logical Torque database name
-
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:
TorqueAbstractSecurityEntity.delete()
-