Class TorqueDynamicPermissionManagerImpl

All Implemented Interfaces:
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, PermissionManager

public class TorqueDynamicPermissionManagerImpl extends TorqueAbstractPermissionManager
This implementation persists to a database via Torque.
Version:
$Id:$
Author:
Thomas Vandahl
See Also:
  • Constructor Details

    • TorqueDynamicPermissionManagerImpl

      public TorqueDynamicPermissionManagerImpl()
  • Method Details

    • doSelectAllPermissions

      protected <T extends Permission> List<T> doSelectAllPermissions(Connection con) throws org.apache.torque.TorqueException
      Description copied from class: TorqueAbstractPermissionManager
      Get all specialized Permissions
      Specified by:
      doSelectAllPermissions in class TorqueAbstractPermissionManager
      Parameters:
      con - a database connection
      Returns:
      a List of Permission instances
      Throws:
      org.apache.torque.TorqueException - if any database error occurs
    • doSelectById

      protected <T extends Permission> T doSelectById(Integer id, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException
      Description copied from class: TorqueAbstractPermissionManager
      Get a specialized Permission by id
      Specified by:
      doSelectById in class TorqueAbstractPermissionManager
      Parameters:
      id - the id of the group
      con - a database connection
      Returns:
      a Permission instance
      Throws:
      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
    • doSelectByName

      protected <T extends Permission> T doSelectByName(String name, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException
      Description copied from class: TorqueAbstractPermissionManager
      Get a specialized Permission by name
      Specified by:
      doSelectByName in class TorqueAbstractPermissionManager
      Parameters:
      name - the name of the group
      con - a database connection
      Returns:
      a Permission instance
      Throws:
      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