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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
delete()
Delete this entitygetRoles()
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.getUsers()
void
removeRole
(Role role) void
removeUser
(User user) void
old contract, lazy is set tofalse
.void
retrieveAttachedObjects
(Connection con, Boolean lazy) Retrieve attached objects such as users, permissions, ...void
<T extends Role>
voidsetRolesAsSet
(Set<T> roles) void
<T extends User>
voidsetUsersAsSet
(Set<T> users) void
update
(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, 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.torque.om.Persistent
save, save, save
Methods 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.TorqueException Forward 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.TorqueException Forward 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:
addUser
in interfaceBasicGroup
-
getUsers
- Specified by:
getUsers
in interfaceBasicGroup
-
getUsersAsSet
- Specified by:
getUsersAsSet
in interfaceBasicGroup
-
removeUser
- Specified by:
removeUser
in interfaceBasicGroup
-
setUsers
- Specified by:
setUsers
in interfaceBasicGroup
-
setUsersAsSet
- Specified by:
setUsersAsSet
in interfaceBasicGroup
-
addRole
- Specified by:
addRole
in interfaceDynamicGroup
-
getRoles
- Specified by:
getRoles
in interfaceDynamicGroup
-
getRolesAsSet
- Specified by:
getRolesAsSet
in interfaceDynamicGroup
-
removeRole
- Specified by:
removeRole
in interfaceDynamicGroup
-
setRoles
- Specified by:
setRoles
in interfaceDynamicGroup
-
setRolesAsSet
- Specified by:
setRolesAsSet
in interfaceDynamicGroup
-
getDatabaseName
- Returns:
- the database name
-
retrieveAttachedObjects
Description copied from class:TorqueAbstractSecurityEntity
old contract, lazy is set tofalse
.- Specified by:
retrieveAttachedObjects
in classTorqueAbstractSecurityEntity
- Parameters:
con
- A database connection- Throws:
DataBackendException
- wrapper exception: user information not found exception
-
retrieveAttachedObjects
Description copied from class:TorqueAbstractSecurityEntity
Retrieve attached objects such as users, permissions, ...- Specified by:
retrieveAttachedObjects
in classTorqueAbstractSecurityEntity
- Parameters:
con
- A database connectionlazy
- iftrue
, may load some or all relationships later- Throws:
DataBackendException
-
update
Description copied from class:TorqueAbstractSecurityEntity
Update this instance to the database with all dependent objects- Specified by:
update
in 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:TorqueAbstractSecurityEntity
Delete this entity- Specified by:
delete
in classTorqueAbstractSecurityEntity
- Throws:
org.apache.torque.TorqueException
- if any database error occurs if any database operation fails
-