Class TorqueAbstractUserManager

    • Method Detail

      • configure

        public void configure​(org.apache.avalon.framework.configuration.Configuration conf)
                       throws org.apache.avalon.framework.configuration.ConfigurationException
        Avalon Service lifecycle method
        Specified by:
        configure in interface org.apache.avalon.framework.configuration.Configurable
        Overrides:
        configure in class AbstractEntityManager
        Throws:
        org.apache.avalon.framework.configuration.ConfigurationException
      • doSelectAllUsers

        protected abstract <T extends UserList<T> doSelectAllUsers​(Connection con)
                                                              throws org.apache.torque.TorqueException
        Get all specialized Users
        Parameters:
        con - a database connection
        Returns:
        a List of User instances
        Throws:
        org.apache.torque.TorqueException - if any database error occurs
      • doSelectByName

        protected abstract <T extends User> T doSelectByName​(String name,
                                                             Connection con)
                                                      throws org.apache.torque.NoRowsException,
                                                             org.apache.torque.TooManyRowsException,
                                                             org.apache.torque.TorqueException
        Get a specialized User by name
        Parameters:
        name - the name of the group
        con - a database connection
        Returns:
        a User 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
      • doSelectById

        protected abstract <T extends User> T doSelectById​(Integer id,
                                                           Connection con)
                                                    throws org.apache.torque.NoRowsException,
                                                           org.apache.torque.TooManyRowsException,
                                                           org.apache.torque.TorqueException
        Get a specialized User by id
        Parameters:
        id - the id of the group
        con - a database connection
        Returns:
        a User 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
      • checkExists

        public boolean checkExists​(String userName)
                            throws DataBackendException
        Check whether a specified user's account exists. The login name is used for looking up the account.
        Parameters:
        userName - The name of the user to be checked.
        Returns:
        true if the specified account exists
        Throws:
        DataBackendException - if there was an error accessing the data backend.