public class CrowdVCardProvider extends DefaultVCardProvider
The name, email will be provided by crowd. All other information can be managed by the XMPP client
| Constructor and Description |
|---|
CrowdVCardProvider() |
| Modifier and Type | Method and Description |
|---|---|
org.dom4j.Element |
createVCard(String username,
org.dom4j.Element vCardElement)
Creates and saves the new user vcard.
|
org.dom4j.Element |
loadVCard(String username)
Loads the specified user vcard by username.
|
org.dom4j.Element |
updateVCard(String username,
org.dom4j.Element vCard)
Updates the user vcard in the backend store.
|
deleteVCard, isReadOnlypublic org.dom4j.Element loadVCard(String username)
VCardProviderloadVCard in interface VCardProviderloadVCard in class DefaultVCardProviderusername - the usernameDefaultVCardProvider.loadVCard(java.lang.String)public org.dom4j.Element createVCard(String username, org.dom4j.Element vCardElement) throws AlreadyExistsException
VCardProvidercreateVCard in interface VCardProvidercreateVCard in class DefaultVCardProviderusername - the username.vCardElement - the vCard to save.AlreadyExistsException - if the user already has a vCard.DefaultVCardProvider.createVCard(java.lang.String, org.dom4j.Element)public org.dom4j.Element updateVCard(String username, org.dom4j.Element vCard) throws NotFoundException
VCardProviderupdateVCard in interface VCardProviderupdateVCard in class DefaultVCardProviderusername - the username.vCard - the vCard to save.NotFoundException - if the vCard to update does not exist.DefaultVCardProvider.updateVCard(java.lang.String, org.dom4j.Element)Copyright © 2003-2008 Jive Software.