Class TorqueAbstractSecurityEntity
java.lang.Object
org.apache.fulcrum.security.torque.security.TorqueAbstractSecurityEntity
- All Implemented Interfaces:
Serializable,SecurityEntity,org.apache.torque.om.ObjectModel,org.apache.torque.om.Persistent
- Direct Known Subclasses:
DefaultAbstractTurbinePermission,FulcrumAbstractTurbinePermission,TorqueAbstractBasicGroup,TorqueAbstractBasicUser,TorqueAbstractDynamicGroup,TorqueAbstractDynamicPermission,TorqueAbstractDynamicRole,TorqueAbstractDynamicUser,TorqueAbstractTurbineTurbineSecurityEntity
public abstract class TorqueAbstractSecurityEntity
extends Object
implements SecurityEntity, Serializable, org.apache.torque.om.Persistent
This abstract class provides the SecurityInterface to the managers.
- Version:
- $Id:$
- Author:
- Thomas Vandahl
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddelete()Delete this entityabstract IntegerGet a numeric entity idabstract StringGet the name of the entitygetId()getName()abstract voidold contract, lazy is set tofalse.abstract voidretrieveAttachedObjects(Connection con, Boolean lazy) Retrieve attached objects such as users, permissions, ...abstract voidsetEntityId(Integer id) Set a numeric entity idabstract voidsetEntityName(String name) Set the name of the entityvoidvoidabstract voidupdate(Connection con) Update this instance to the database with all dependent objectsMethods 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, save
-
Constructor Details
-
TorqueAbstractSecurityEntity
public TorqueAbstractSecurityEntity()
-
-
Method Details
-
getEntityId
Get a numeric entity id- Returns:
- numeric id of this entity
-
setEntityId
Set a numeric entity id- Parameters:
id- numeric id of this entity- Throws:
org.apache.torque.TorqueException- database not found exception
-
getEntityName
Get the name of the entity- Returns:
- name of this entity
-
setEntityName
Set the name of the entity- Parameters:
name- the name of the entity
-
retrieveAttachedObjects
public abstract void retrieveAttachedObjects(Connection con, Boolean lazy) throws DataBackendException, org.apache.torque.TorqueException Retrieve attached objects such as users, permissions, ...- Parameters:
con- A database connectionlazy- iftrue, may load some or all relationships later- Throws:
org.apache.torque.TorqueException- database not found exceptionDataBackendException
-
retrieveAttachedObjects
public abstract void retrieveAttachedObjects(Connection con) throws DataBackendException, org.apache.torque.TorqueException old contract, lazy is set tofalse.- Parameters:
con- A database connection- Throws:
DataBackendException- wrapper exception: user information not found exceptionorg.apache.torque.TorqueException
-
update
Update this instance to the database with all dependent objects- Parameters:
con- A database connection- Throws:
org.apache.torque.TorqueException- database not found exception
-
delete
public abstract void delete() throws org.apache.torque.TorqueExceptionDelete this entity- Throws:
org.apache.torque.TorqueException- if any database error occurs if any database operation fails
-
getId
- Specified by:
getIdin interfaceSecurityEntity- See Also:
-
setId
- Specified by:
setIdin interfaceSecurityEntity- See Also:
-
getName
- Specified by:
getNamein interfaceSecurityEntity- See Also:
-
setName
- Specified by:
setNamein interfaceSecurityEntity- See Also:
-