Class TorqueAbstractGroupManager

    • Field Detail

      • lazyLoading

        protected Boolean lazyLoading
    • Constructor Detail

      • TorqueAbstractGroupManager

        public TorqueAbstractGroupManager()
    • 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
      • doSelectAllGroups

        protected abstract <T extends GroupList<T> doSelectAllGroups​(Connection con)
                                                                throws org.apache.torque.TorqueException
        Get all specialized Groups
        Parameters:
        con - a database connection
        Returns:
        a List of Group instances
        Throws:
        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
        Parameters:
        name - the name of the group
        con - a database connection
        Returns:
        a Group 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 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
        Parameters:
        id - the id of the group
        con - a database connection
        Returns:
        a Group 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
      • persistNewGroup

        protected <T extends Group> T persistNewGroup​(T group)
                                               throws DataBackendException
        Creates a new group with specified attributes.
        Specified by:
        persistNewGroup in class AbstractGroupManager
        Parameters:
        group - the object describing the group to be created.
        Returns:
        a new Group object that has id set up properly.
        Throws:
        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.
        Specified by:
        checkExists in interface GroupManager
        Parameters:
        groupName - a Group value
        Returns:
        true if the group name exists in the system, false otherwise
        Throws:
        DataBackendException - when more than one Group with the same name exists.