Class UserGroupDAO


  • public class UserGroupDAO
    extends Object
    A DAO for accessing LDAP informations regarding users and groups
    Since:
    4.5
    Author:
    Sebastian Wenzky
    • Constructor Detail

      • UserGroupDAO

        public UserGroupDAO​(LDAPServer server)
    • Method Detail

      • getAllGroups

        public List<LDAPGroup> getAllGroups()
        Returning all groups being found on groupBase. The search is paginated.
        Returns:
        list of the groups
      • getUsers

        public List<LDAPUser> getUsers​(String login)
        Returning all users being found on userBase List with the specified login. The search is NOT paged.
        Parameters:
        login - the username to search
        Returns:
        list of the users
      • listUsers

        public List<LDAPUser> listUsers​(String login)
        Returning all users being found on userBase List with the specified login. The search IS paged if ldap.pagesize > 0
        Parameters:
        login - username to search
        Returns:
        list of the users