|
Openfire 3.9.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.clearspace.ClearspaceVCardProvider
public class ClearspaceVCardProvider
The ClearspaceLockOutProvider uses the UserService web service inside of Clearspace to retrieve, edit and delete user information from Clearspace. With this information the provider builds user's VCard.
Field Summary | |
---|---|
protected static String |
AVATAR_URL_PREFIX
|
protected static String |
PROFILE_FIELDS_URL_PREFIX
|
protected static String |
PROFILE_URL_PREFIX
|
Constructor Summary | |
---|---|
ClearspaceVCardProvider()
|
Method Summary | |
---|---|
org.dom4j.Element |
createVCard(String username,
org.dom4j.Element vCardElement)
Creates the user's VCard. |
void |
deleteVCard(String username)
Deletes the profiles and avatar information of the user. |
boolean |
isReadOnly()
Always return false since Clearspace always support some changes. |
org.dom4j.Element |
loadVCard(String username)
Loads the VCard with information from CS. |
org.dom4j.Element |
updateVCard(String username,
org.dom4j.Element vCardElement)
Updates the user vcard in Clearspace. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String PROFILE_URL_PREFIX
protected static final String PROFILE_FIELDS_URL_PREFIX
protected static final String AVATAR_URL_PREFIX
Constructor Detail |
---|
public ClearspaceVCardProvider()
Method Detail |
---|
public org.dom4j.Element loadVCard(String username)
loadVCard
in interface VCardProvider
username
- username of user to load VCard of
public org.dom4j.Element createVCard(String username, org.dom4j.Element vCardElement) throws AlreadyExistsException
createVCard
in interface VCardProvider
username
- the usernamevCardElement
- the vCard to save.
AlreadyExistsException
- it's never throw by this implementation
UnsupportedOperationException
- if the provider does not support the
operation.public org.dom4j.Element updateVCard(String username, org.dom4j.Element vCardElement) throws NotFoundException
updateVCard
in interface VCardProvider
username
- the username.vCardElement
- the vCard to save.
NotFoundException
- if the vCard to update does not exist.
UnsupportedOperationException
- if the provider does not support the
operation.public boolean isReadOnly()
isReadOnly
in interface VCardProvider
public void deleteVCard(String username)
deleteVCard
in interface VCardProvider
username
- the username.
|
Openfire 3.9.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |