Package com.logicaldoc.ldap.model
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 Summary
Constructors Constructor Description UserGroupDAO(LDAPServer server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<LDAPGroup>
getAllGroups()
Returning all groups being found on groupBase.LDAPGroup
getGroup(String groupDn)
List<LDAPUser>
getUsers(String login)
Returning all users being found on userBase List with the specified login.List<LDAPUser>
listUsers(String login)
Returning all users being found on userBase List with the specified login.
-
-
-
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
-
-