Class TorqueAbstractDynamicUser

java.lang.Object
org.apache.fulcrum.security.torque.security.TorqueAbstractSecurityEntity
org.apache.fulcrum.security.torque.dynamic.TorqueAbstractDynamicUser
All Implemented Interfaces:
Serializable, SecurityEntity, User, BasicUser, DynamicUser, org.apache.torque.om.ObjectModel, org.apache.torque.om.Persistent
Direct Known Subclasses:
BaseTorqueDynamicUser

public abstract class TorqueAbstractDynamicUser extends TorqueAbstractSecurityEntity implements DynamicUser
This abstract class provides the SecurityInterface to the managers.
Version:
$Id:$
Author:
Thomas Vandahl
See Also:
  • Constructor Details

    • TorqueAbstractDynamicUser

      public TorqueAbstractDynamicUser()
  • Method Details

    • getTorqueDynamicUserGroupsJoinTorqueDynamicGroup

      protected List<TorqueDynamicUserGroup> getTorqueDynamicUserGroupsJoinTorqueDynamicGroup(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 TorqueDynamicGroup objects.
      Parameters:
      criteria - Criteria to define the selection of records
      con - a database connection
      Returns:
      a list of User/Group relations
      Throws:
      org.apache.torque.TorqueException - if any database error occurs
    • getTorqueDynamicUserDelegatessRelatedByDelegateeUserIdJoinTorqueDynamicUserRelatedByDelegatorUserId

      protected List<TorqueDynamicUserDelegates> getTorqueDynamicUserDelegatessRelatedByDelegateeUserIdJoinTorqueDynamicUserRelatedByDelegatorUserId(org.apache.torque.criteria.Criteria criteria, Connection con) throws org.apache.torque.TorqueException
      Forward reference to generated code Get a list of delegator association objects, pre-populated with their TorqueDynamicUserDelegates objects.
      Parameters:
      criteria - Criteria to define the selection of records
      con - a database connection
      Returns:
      a list of User/Delegator relations
      Throws:
      org.apache.torque.TorqueException - if any database error occurs
    • getTorqueDynamicUserDelegatessRelatedByDelegatorUserIdJoinTorqueDynamicUserRelatedByDelegateeUserId

      protected List<TorqueDynamicUserDelegates> getTorqueDynamicUserDelegatessRelatedByDelegatorUserIdJoinTorqueDynamicUserRelatedByDelegateeUserId(org.apache.torque.criteria.Criteria criteria, Connection con) throws org.apache.torque.TorqueException
      Forward reference to generated code Get a list of delegatee association objects, pre-populated with their TorqueDynamicUserDelegates objects.
      Parameters:
      criteria - Criteria to define the selection of records
      con - a database connection
      Returns:
      a list of User/Delegator relations
      Throws:
      org.apache.torque.TorqueException - if any database error occurs
    • addGroup

      public void addGroup(Group group)
      Specified by:
      addGroup in interface BasicUser
    • getGroups

      public GroupSet getGroups()
      Specified by:
      getGroups in interface BasicUser
    • getGroupsAsSet

      public <T extends Group> Set<T> getGroupsAsSet()
      Specified by:
      getGroupsAsSet in interface BasicUser
    • removeGroup

      public void removeGroup(Group group)
      Specified by:
      removeGroup in interface BasicUser
    • setGroups

      public void setGroups(GroupSet groups)
      Specified by:
      setGroups in interface BasicUser
    • setGroupsAsSet

      public <T extends Group> void setGroupsAsSet(Set<T> groups)
      Specified by:
      setGroupsAsSet in interface BasicUser
    • getDelegatees

      public <T extends User> Set<T> getDelegatees()
      Specified by:
      getDelegatees in interface DynamicUser
    • getDelegators

      public <T extends User> Set<T> getDelegators()
      Specified by:
      getDelegators in interface DynamicUser
    • setDelegatees

      public <T extends User> void setDelegatees(Set<T> delegatees)
      Specified by:
      setDelegatees in interface DynamicUser
    • setDelegators

      public <T extends User> void setDelegators(Set<T> delegates)
      Specified by:
      setDelegators in interface DynamicUser
    • getDatabaseName

      public String getDatabaseName()
      Returns:
      the database name
    • retrieveAttachedObjects

      public void retrieveAttachedObjects(Connection con) throws DataBackendException
      Description copied from class: TorqueAbstractSecurityEntity
      old contract, lazy is set to false.
      Specified by:
      retrieveAttachedObjects in class TorqueAbstractSecurityEntity
      Parameters:
      con - A database connection
      Throws:
      DataBackendException - wrapper exception: user information not found exception
    • retrieveAttachedObjects

      public void retrieveAttachedObjects(Connection con, Boolean lazy) throws DataBackendException
      Description copied from class: TorqueAbstractSecurityEntity
      Retrieve attached objects such as users, permissions, ...
      Specified by:
      retrieveAttachedObjects in class TorqueAbstractSecurityEntity
      Parameters:
      con - A database connection
      lazy - if true, may load some or all relationships later
      Throws:
      DataBackendException
      See Also:
    • update

      public void update(Connection con) throws org.apache.torque.TorqueException
      Description copied from class: TorqueAbstractSecurityEntity
      Update this instance to the database with all dependent objects
      Specified by:
      update in class TorqueAbstractSecurityEntity
      Parameters:
      con - A database connection
      Throws:
      org.apache.torque.TorqueException - database not found exception
      See Also:
    • delete

      public void delete() throws org.apache.torque.TorqueException
      Description copied from class: TorqueAbstractSecurityEntity
      Delete this entity
      Specified by:
      delete in class TorqueAbstractSecurityEntity
      Throws:
      org.apache.torque.TorqueException - if any database error occurs if any database operation fails
      See Also: