public class ClearspaceVCardProvider extends Object implements VCardProvider
| Modifier and Type | Field and Description |
|---|---|
protected static String |
AVATAR_URL_PREFIX |
protected static String |
PROFILE_FIELDS_URL_PREFIX |
protected static String |
PROFILE_URL_PREFIX |
| Constructor and Description |
|---|
ClearspaceVCardProvider() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected static final String PROFILE_URL_PREFIX
protected static final String PROFILE_FIELDS_URL_PREFIX
protected static final String AVATAR_URL_PREFIX
public org.dom4j.Element loadVCard(String username)
loadVCard in interface VCardProviderusername - username of user to load VCard ofpublic org.dom4j.Element createVCard(String username, org.dom4j.Element vCardElement) throws AlreadyExistsException
createVCard in interface VCardProviderusername - the usernamevCardElement - the vCard to save.AlreadyExistsException - it's never throw by this implementationUnsupportedOperationException - if the provider does not support the
operation.public org.dom4j.Element updateVCard(String username, org.dom4j.Element vCardElement) throws NotFoundException
updateVCard in interface VCardProviderusername - 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 VCardProviderpublic void deleteVCard(String username)
deleteVCard in interface VCardProviderusername - the username.Copyright © 2003-2008 Jive Software.