Class TorqueAbstractBasicGroup
java.lang.Object
org.apache.fulcrum.security.torque.security.TorqueAbstractSecurityEntity
org.apache.fulcrum.security.torque.basic.TorqueAbstractBasicGroup
- All Implemented Interfaces:
Serializable,Group,SecurityEntity,BasicGroup,org.apache.torque.om.ObjectModel,org.apache.torque.om.Persistent
- Direct Known Subclasses:
BaseTorqueBasicGroup
public abstract class TorqueAbstractBasicGroup
extends TorqueAbstractSecurityEntity
implements BasicGroup
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 entityGet the name of the connection pool associated to this objectprotected List<TorqueBasicUserGroup> getTorqueBasicUserGroupsJoinTorqueBasicUser(org.apache.torque.criteria.Criteria criteria, Connection con) Forward reference to generated code Get a list of association objects, pre-populated with their TorqueBasicUser objects.getUsers()voidremoveUser(User user) voidold contract, lazy is set tofalse.voidretrieveAttachedObjects(Connection con, Boolean lazy) Retrieve attached objects such as users, permissions,....void<T extends User>
voidsetUsersAsSet(Set<T> users) 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, setName
-
Constructor Details
-
TorqueAbstractBasicGroup
public TorqueAbstractBasicGroup()
-
-
Method Details
-
getTorqueBasicUserGroupsJoinTorqueBasicUser
protected List<TorqueBasicUserGroup> getTorqueBasicUserGroupsJoinTorqueBasicUser(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 TorqueBasicUser 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
-
addUser
- Specified by:
addUserin interfaceBasicGroup- See Also:
-
getUsers
- Specified by:
getUsersin interfaceBasicGroup- See Also:
-
getUsersAsSet
- Specified by:
getUsersAsSetin interfaceBasicGroup- See Also:
-
removeUser
- Specified by:
removeUserin interfaceBasicGroup- See Also:
-
setUsers
- Specified by:
setUsersin interfaceBasicGroup- See Also:
-
setUsersAsSet
- Specified by:
setUsersAsSetin interfaceBasicGroup- See Also:
-
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
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 connection 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:
-