|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.silverpeas.domains.ldapdriver.LDAPUser
public class LDAPUser
This class reads user infos from the LDAP DB and translate it into the UserDetail format
Field Summary | |
---|---|
protected DomainDriver |
driverParent
|
Constructor Summary | |
---|---|
LDAPUser()
|
Method Summary | |
---|---|
void |
beginSynchronization()
Called when Admin starts the synchronization |
String |
endSynchronization()
Called when Admin ends the synchronization |
UserDetail[] |
getAllUsers(String lds,
String extraFilter)
Return all users found in the baseDN tree |
AbstractLDAPTimeStamp |
getMaxTimeStamp(String lds,
String minTimeStamp)
|
UserDetail |
getUser(String lds,
String id)
Return a UserDetail object filled with the infos of the user having ID = id NOTE : the DomainID and the ID are not set. |
String[] |
getUserAttributes()
|
UserDetail |
getUserByLogin(String lds,
String loginUser)
|
UserFull |
getUserFull(String lds,
String id,
int domainId)
Return a UserDetail object filled with the infos of the user having ID = id NOTE : the DomainID and the ID are not set. |
void |
init(LDAPSettings driverSettings,
DomainDriver driverParent,
LDAPSynchroCache synchroCache)
Initialize the settings from the read ones |
UserDetail |
translateUser(String lds,
com.novell.ldap.LDAPEntry userEntry)
Translate a LDAP user entry into a UserDetail structure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DomainDriver driverParent
Constructor Detail |
---|
public LDAPUser()
Method Detail |
---|
public void init(LDAPSettings driverSettings, DomainDriver driverParent, LDAPSynchroCache synchroCache)
driverSettings
- the settings retreived from the property filepublic void beginSynchronization() throws Exception
Exception
public String endSynchronization() throws Exception
Exception
public UserDetail[] getAllUsers(String lds, String extraFilter) throws AdminException
lds
- the LDAP connection
AdminException
- if an error occur during LDAP operationspublic UserFull getUserFull(String lds, String id, int domainId) throws AdminException
lds
- the LDAP connectionid
- the user id
AdminException
- if an error occur during LDAP operations or if the user is not foundpublic UserDetail getUser(String lds, String id) throws AdminException
lds
- the LDAP connectionid
- the user id
AdminException
- if an error occur during LDAP operations or if the user is not foundpublic UserDetail getUserByLogin(String lds, String loginUser) throws AdminException
AdminException
public UserDetail translateUser(String lds, com.novell.ldap.LDAPEntry userEntry) throws AdminException
userEntry
- the LDAP user object
AdminException
- if an error occur during LDAP operations or if there is no userEntry
objectpublic AbstractLDAPTimeStamp getMaxTimeStamp(String lds, String minTimeStamp) throws AdminException
AdminException
public String[] getUserAttributes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |