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, isReadOnly
public org.dom4j.Element loadVCard(String username)
VCardProvider
loadVCard
in interface VCardProvider
loadVCard
in class DefaultVCardProvider
username
- the usernameDefaultVCardProvider.loadVCard(java.lang.String)
public org.dom4j.Element createVCard(String username, org.dom4j.Element vCardElement) throws AlreadyExistsException
VCardProvider
createVCard
in interface VCardProvider
createVCard
in class DefaultVCardProvider
username
- 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
VCardProvider
updateVCard
in interface VCardProvider
updateVCard
in class DefaultVCardProvider
username
- 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.