|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.messenger.vcard.VCardManager
public class VCardManager
Manages VCard information for users.
Method Summary | |
---|---|
void |
deleteVCard(String username)
Deletes the user's vCard from the user account. |
static VCardManager |
getInstance()
|
static VCardProvider |
getProvider()
Returns the currently-installed VCardProvider. |
org.dom4j.Element |
getVCard(String username)
Returns the vCard of a given user or null if none was defined before. |
String |
getVCardProperty(String username,
String name)
Returns the user's vCard information for a given vcard property name. |
void |
setVCard(String username,
org.dom4j.Element vCardElement)
Sets the user's vCard information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static VCardManager getInstance()
public static VCardProvider getProvider()
public String getVCardProperty(String username, String name)
getVCard(String)
to get the whole vCard of
the user.
username
- The username of the user to return his vCard property.name
- The name of the vcard property to retrieve encoded with ':' to denote
the path.
public void setVCard(String username, org.dom4j.Element vCardElement) throws Exception
username
- The username of the user to set his new vCard.vCardElement
- The DOM element sent by the user as his new vcard.
Exception
- if an error occured while storing the new vCard.public void deleteVCard(String username)
username
- The username of the user to delete his vCard.public org.dom4j.Element getVCard(String username)
|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |