Class UserGroupDAO

java.lang.Object
com.logicaldoc.ldap.model.UserGroupDAO

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

    • UserGroupDAO

      public UserGroupDAO(LDAPServer server)
  • Method Details

    • getGroupName

      public String getGroupName(String groupDn)
    • getGroup

      public LDAPGroup getGroup(String groupDn)
    • 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