Class LDAPUser
- java.lang.Object
-
- org.silverpeas.core.admin.domain.driver.ldapdriver.LDAPUser
-
public class LDAPUser extends Object
This class reads user infos from the LDAP DB and translate it into the UserDetail format- Author:
- tleroi
-
-
Constructor Summary
Constructors Constructor Description LDAPUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserDetail[]
getAllUsers(String lds, String extraFilter)
Return all users found in the baseDN treeString[]
getUserAttributes()
void
init(LDAPSettings driverSettings, DomainDriver driverParent, LDAPSynchroCache synchroCache)
Initialize the settings from the read onesList<UserFull>
listUserFulls(String lds, Collection<String> ids, int domainId)
Return a list ofUserFull
instance each one filled with the infos of the user having ID = idList<UserDetail>
listUsers(String lds, Collection<String> ids)
Return a list ofUserDetail
instance each one filled with the infos of the user having ID = id
-
-
-
Method Detail
-
init
public void init(LDAPSettings driverSettings, DomainDriver driverParent, LDAPSynchroCache synchroCache)
Initialize the settings from the read ones- Parameters:
driverSettings
- the settings retrieved from the property file
-
getAllUsers
public UserDetail[] getAllUsers(String lds, String extraFilter) throws AdminException
Return all users found in the baseDN tree- Parameters:
lds
- the LDAP connection- Returns:
- all founded users
- Throws:
AdminException
- if an error occur during LDAP operations
-
listUserFulls
public List<UserFull> listUserFulls(String lds, Collection<String> ids, int domainId) throws AdminException
Return a list ofUserFull
instance each one filled with the infos of the user having ID = idNOTE : the DomainID and the ID are not set.
- Parameters:
lds
- the LDAP connectionids
- list of user id- Returns:
- the list of
UserFull
instance. - Throws:
AdminException
- if an error occur during LDAP operations or if the user is not found
-
listUsers
public List<UserDetail> listUsers(String lds, Collection<String> ids) throws AdminException
Return a list ofUserDetail
instance each one filled with the infos of the user having ID = idNOTE : the DomainID and the ID are not set.
- Parameters:
lds
- the LDAP connectionids
- list of user id- Returns:
- the list of
UserDetail
instance. - Throws:
AdminException
- if an error occur during LDAP operations or if the user is not found
-
getUserAttributes
public String[] getUserAttributes()
-
-