Class TorqueAbstractDynamicGroup
java.lang.Object
org.apache.fulcrum.security.torque.security.TorqueAbstractSecurityEntity
org.apache.fulcrum.security.torque.dynamic.TorqueAbstractDynamicGroup
- All Implemented Interfaces:
Serializable,Group,SecurityEntity,BasicGroup,DynamicGroup,org.apache.torque.om.ObjectModel,org.apache.torque.om.Persistent
- Direct Known Subclasses:
BaseTorqueDynamicGroup
public abstract class TorqueAbstractDynamicGroup extends TorqueAbstractSecurityEntity implements DynamicGroup
This abstract class provides the SecurityInterface to the managers.
- Version:
- $Id:$
- Author:
- Thomas Vandahl
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description TorqueAbstractDynamicGroup() -
Method Summary
Modifier and Type Method Description voidaddRole(Role role)voidaddUser(User user)voiddelete()Delete this entityStringgetDatabaseName()RoleSetgetRoles()<T extends Role>
Set<T>getRolesAsSet()protected List<TorqueDynamicGroupRole>getTorqueDynamicGroupRolesJoinTorqueDynamicRole(org.apache.torque.criteria.Criteria criteria, Connection con)Forward reference to generated code Get a list of association objects, pre-populated with their TorqueDynamicRole objects.protected List<TorqueDynamicUserGroup>getTorqueDynamicUserGroupsJoinTorqueDynamicUser(org.apache.torque.criteria.Criteria criteria, Connection con)Forward reference to generated code Get a list of association objects, pre-populated with their TorqueDynamicUser objects.UserSetgetUsers()<T extends User>
Set<T>getUsersAsSet()voidremoveRole(Role role)voidremoveUser(User user)voidretrieveAttachedObjects(Connection con)old contract, lazy is set tofalse.voidretrieveAttachedObjects(Connection con, Boolean lazy)Retrieve attached objects such as users, permissions, ...voidsetRoles(RoleSet roleSet)<T extends Role>
voidsetRolesAsSet(Set<T> roles)voidsetUsers(UserSet userSet)<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.fulcrum.security.entity.SecurityEntity
getId, getName, setId, setName
-
Constructor Details
-
TorqueAbstractDynamicGroup
public TorqueAbstractDynamicGroup()
-
-
Method Details
-
getTorqueDynamicUserGroupsJoinTorqueDynamicUser
protected List<TorqueDynamicUserGroup> getTorqueDynamicUserGroupsJoinTorqueDynamicUser(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 TorqueDynamicUser 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
-
getTorqueDynamicGroupRolesJoinTorqueDynamicRole
protected List<TorqueDynamicGroupRole> getTorqueDynamicGroupRolesJoinTorqueDynamicRole(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 TorqueDynamicRole objects.- Parameters:
criteria- Criteria to define the selection of recordscon- a database connection- Returns:
- a list of Role/Group relations
- Throws:
org.apache.torque.TorqueException- if any database error occurs
-
addUser
- Specified by:
addUserin interfaceBasicGroup
-
getUsers
- Specified by:
getUsersin interfaceBasicGroup
-
getUsersAsSet
- Specified by:
getUsersAsSetin interfaceBasicGroup
-
removeUser
- Specified by:
removeUserin interfaceBasicGroup
-
setUsers
- Specified by:
setUsersin interfaceBasicGroup
-
setUsersAsSet
- Specified by:
setUsersAsSetin interfaceBasicGroup
-
addRole
- Specified by:
addRolein interfaceDynamicGroup
-
getRoles
- Specified by:
getRolesin interfaceDynamicGroup
-
getRolesAsSet
- Specified by:
getRolesAsSetin interfaceDynamicGroup
-
removeRole
- Specified by:
removeRolein interfaceDynamicGroup
-
setRoles
- Specified by:
setRolesin interfaceDynamicGroup
-
setRolesAsSet
- Specified by:
setRolesAsSetin interfaceDynamicGroup
-
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
-
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
-
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
-