public class DefaultVCardProvider extends Object implements VCardProvider
| Constructor and Description |
|---|
DefaultVCardProvider() |
| Modifier and Type | Method and Description |
|---|---|
org.dom4j.Element |
createVCard(String username,
org.dom4j.Element vCardElement)
Creates and saves the new user vcard.
|
void |
deleteVCard(String username)
Delets a user vcard.
|
boolean |
isReadOnly()
Returns true if this VCardProvider is read-only.
|
org.dom4j.Element |
loadVCard(String username)
Loads the specified user vcard by username.
|
org.dom4j.Element |
updateVCard(String username,
org.dom4j.Element vCardElement)
Updates the user vcard in the backend store.
|
public org.dom4j.Element loadVCard(String username)
VCardProviderloadVCard in interface VCardProviderusername - the usernamepublic org.dom4j.Element createVCard(String username, org.dom4j.Element vCardElement) throws AlreadyExistsException
VCardProvidercreateVCard in interface VCardProviderusername - the username.vCardElement - the vCard to save.AlreadyExistsException - if the user already has a vCard.public org.dom4j.Element updateVCard(String username, org.dom4j.Element vCardElement) throws NotFoundException
VCardProviderupdateVCard in interface VCardProviderusername - the username.vCardElement - the vCard to save.NotFoundException - if the vCard to update does not exist.public void deleteVCard(String username)
VCardProviderdeleteVCard in interface VCardProviderusername - the username to delete.public boolean isReadOnly()
VCardProviderisReadOnly in interface VCardProviderCopyright © 2003-2008 Jive Software.