|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xpn.xwiki.user.impl.LDAP.LDAPProfileXClass
public class LDAPProfileXClass
Helper to manager LDAP profile XClass and XObject.
Field Summary | |
---|---|
static String |
LDAP_XCLASS
|
static String |
LDAP_XFIELD_DN
|
static String |
LDAP_XFIELD_UID
|
static String |
LDAP_XFIELDPN_DN
|
static String |
LDAP_XFIELDPN_UID
|
static EntityReference |
LDAPPROFILECLASS_REFERENCE
|
Constructor Summary | |
---|---|
LDAPProfileXClass(XWikiContext context)
|
Method Summary | |
---|---|
String |
getDn(BaseObject ldapObject)
|
String |
getDn(XWikiDocument userDocument)
|
String |
getUid(BaseObject ldapObject)
|
String |
getUid(XWikiDocument userDocument)
|
String |
searchDn(String uid)
Search the LDAP user DN stored in an existing user profile with provided LDAP user uid stored. |
XWikiDocument |
searchDocumentByUid(String uid)
Search the XWiki storage for a existing user profile with provided LDAP user uid stored. |
void |
updateLDAPObject(String xwikiUserName,
String dn,
String uid)
Update or create LDAP profile of an existing user profile with provided LDAP user informations. |
boolean |
updateLDAPObject(XWikiDocument userDocument,
String dn,
String uid)
Update LDAP profile object with provided LDAP user informations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String LDAP_XCLASS
public static final String LDAP_XFIELD_DN
public static final String LDAP_XFIELDPN_DN
public static final String LDAP_XFIELD_UID
public static final String LDAP_XFIELDPN_UID
public static final EntityReference LDAPPROFILECLASS_REFERENCE
Constructor Detail |
---|
public LDAPProfileXClass(XWikiContext context) throws XWikiException
XWikiException
Method Detail |
---|
public String getDn(XWikiDocument userDocument)
userDocument
- the user profile page.
public String getDn(BaseObject ldapObject)
ldapObject
- the ldap profile object.
public String getUid(XWikiDocument userDocument)
userDocument
- the user profile page.
public String getUid(BaseObject ldapObject)
ldapObject
- the ldap profile object.
public void updateLDAPObject(String xwikiUserName, String dn, String uid) throws XWikiException
xwikiUserName
- the name of the XWiki user to update LDAP profile.dn
- the dn to store in the LDAP profile.uid
- the uid to store in the LDAP profile.
XWikiException
- error when storing information in user profile.public boolean updateLDAPObject(XWikiDocument userDocument, String dn, String uid)
userDocument
- the user profile page to update.dn
- the dn to store in the LDAP profile.uid
- the uid to store in the LDAP profile.
public XWikiDocument searchDocumentByUid(String uid)
If more than one profile is found the first one in returned and an error is logged.
uid
- the LDAP unique id.
public String searchDn(String uid)
If more than one profile is found the first one in returned and an error is logged.
uid
- the LDAP unique id.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |