Klasse TorqueAbstractGroupManager

java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
Alle implementierten Schnittstellen:
Serializable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.thread.ThreadSafe, GroupManager, LazyLoadable
Bekannte direkte Unterklassen:
PeerGroupManager, TorqueBasicGroupManagerImpl, TorqueDynamicGroupManagerImpl

public abstract class TorqueAbstractGroupManager extends AbstractGroupManager implements LazyLoadable
This implementation persists to a database via Torque.
Version:
$Id:$
Autor:
Thomas Vandahl
Siehe auch:
  • Felddetails

    • lazyLoading

      protected Boolean lazyLoading
  • Konstruktordetails

    • TorqueAbstractGroupManager

      public TorqueAbstractGroupManager()
  • Methodendetails

    • configure

      public void configure(org.apache.avalon.framework.configuration.Configuration conf) throws org.apache.avalon.framework.configuration.ConfigurationException
      Avalon Service lifecycle method
      Angegeben von:
      configure in Schnittstelle org.apache.avalon.framework.configuration.Configurable
      Setzt außer Kraft:
      configure in Klasse AbstractEntityManager
      Löst aus:
      org.apache.avalon.framework.configuration.ConfigurationException
    • doSelectAllGroups

      protected abstract <T extends Group> List<T> doSelectAllGroups(Connection con) throws org.apache.torque.TorqueException
      Get all specialized Groups
      Parameter:
      con - a database connection
      Gibt zurück:
      a List of Group instances
      Löst aus:
      org.apache.torque.TorqueException - if any database error occurs
    • doSelectByName

      protected abstract <T extends Group> T doSelectByName(String name, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException
      Get a specialized Group by name
      Parameter:
      name - the name of the group
      con - a database connection
      Gibt zurück:
      a Group instance
      Löst aus:
      org.apache.torque.NoRowsException - if no such group exists
      org.apache.torque.TooManyRowsException - if multiple groups with the given name exist
      org.apache.torque.TorqueException - if any database error occurs if any other database error occurs
    • doSelectById

      protected abstract <T extends Group> T doSelectById(Integer id, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException
      Get a specialized Group by id
      Parameter:
      id - the id of the group
      con - a database connection
      Gibt zurück:
      a Group instance
      Löst aus:
      org.apache.torque.NoRowsException - if no such group exists
      org.apache.torque.TooManyRowsException - if multiple groups with the given id exist
      org.apache.torque.TorqueException - if any database error occurs if any other database error occurs
    • persistNewGroup

      protected <T extends Group> T persistNewGroup(T group) throws DataBackendException
      Creates a new group with specified attributes.
      Angegeben von:
      persistNewGroup in Klasse AbstractGroupManager
      Parameter:
      group - the object describing the group to be created.
      Gibt zurück:
      a new Group object that has id set up properly.
      Löst aus:
      DataBackendException - if there was an error accessing the data backend.
    • renameGroup

      public void renameGroup(Group group, String name) throws DataBackendException, UnknownEntityException
      Renames an existing Group.
      Angegeben von:
      renameGroup in Schnittstelle GroupManager
      Parameter:
      group - The object describing the group to be renamed.
      name - the new name for the group.
      Löst aus:
      DataBackendException - if there was an error accessing the data backend.
      UnknownEntityException - if the group does not exist.
    • removeGroup

      public void removeGroup(Group group) throws DataBackendException, UnknownEntityException
      Removes a Group from the system.
      Angegeben von:
      removeGroup in Schnittstelle GroupManager
      Parameter:
      group - The object describing the group to be removed.
      Löst aus:
      DataBackendException - if there was an error accessing the data backend.
      UnknownEntityException - if the group does not exist.
    • getGroupByName

      public <T extends Group> T getGroupByName(String name) throws DataBackendException, UnknownEntityException
      Retrieve a Group object with specified name.
      Angegeben von:
      getGroupByName in Schnittstelle GroupManager
      Setzt außer Kraft:
      getGroupByName in Klasse AbstractGroupManager
      Parameter:
      name - the name of the Group.
      Gibt zurück:
      an object representing the Group with specified name.
      Löst aus:
      DataBackendException - if there was an error accessing the data backend.
      UnknownEntityException - if the group does not exist.
    • getAllGroups

      public GroupSet getAllGroups() throws DataBackendException
      Retrieves all groups defined in the system.
      Angegeben von:
      getAllGroups in Schnittstelle GroupManager
      Gibt zurück:
      the names of all groups defined in the system.
      Löst aus:
      DataBackendException - if there was an error accessing the data backend.
    • checkExists

      public boolean checkExists(String groupName) throws DataBackendException
      Determines if the Group exists in the security system.
      Angegeben von:
      checkExists in Schnittstelle GroupManager
      Parameter:
      groupName - a Group value
      Gibt zurück:
      true if the group name exists in the system, false otherwise
      Löst aus:
      DataBackendException - when more than one Group with the same name exists.
    • getGroupById

      public <T extends Group> T getGroupById(Object id) throws DataBackendException, UnknownEntityException
      Retrieve a Group object with specified id.
      Angegeben von:
      getGroupById in Schnittstelle GroupManager
      Setzt außer Kraft:
      getGroupById in Klasse AbstractGroupManager
      Parameter:
      id - the id of the Group.
      Gibt zurück:
      an object representing the Group with specified id.
      Löst aus:
      DataBackendException - if there was an error accessing the data backend.
      UnknownEntityException - if the group does not exist.
    • getLazyLoading

      public Boolean getLazyLoading()
      Angegeben von:
      getLazyLoading in Schnittstelle LazyLoadable
    • setLazyLoading

      public void setLazyLoading(Boolean lazyLoading)
      Angegeben von:
      setLazyLoading in Schnittstelle LazyLoadable