|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.sip.ServerStoredContactList
net.java.sip.communicator.impl.protocol.sip.ServerStoredContactListXivoImpl
public class ServerStoredContactListXivoImpl
Xivo server stored contact list. Currently no modifications are possible. Just connecting and downloading server contact list.
| Field Summary | |
|---|---|
static String |
XIVO_ENABLE
The name of the property under which the user may specify whether to use or not xivo. |
static String |
XIVO_PASSWORD
The name of the property under which the user may specify the xivo user password. |
static String |
XIVO_SERVER_ADDRESS
The name of the property under which the user may specify the xivo server address. |
static String |
XIVO_USE_SIP_CREDETIALS
The name of the property under which the user may specify whether to use original sip credentials for the xivo. |
static String |
XIVO_USER
The name of the property under which the user may specify the xivo user. |
| Fields inherited from class net.java.sip.communicator.impl.protocol.sip.ServerStoredContactList |
|---|
parentOperationSet, ROOT_GROUP_NAME, rootGroup, sipProvider |
| Constructor Summary | |
|---|---|
ServerStoredContactListXivoImpl(ProtocolProviderServiceSipImpl sipProvider,
OperationSetPresenceSipImpl parentOperationSet)
Creates a ServerStoredContactList wrapper for the specified BuddyList. |
|
| Method Summary | |
|---|---|
void |
authorizationAccepted(ContactSipImpl contact)
The user accepted authorization request for contact |
void |
authorizationIgnored(ContactSipImpl contact)
The user ignored authorization request for contact |
void |
authorizationRejected(ContactSipImpl contact)
The user rejected authorization request for contact |
ContactSipImpl |
createContact(ContactGroupSipImpl parentGroup,
String contactId,
String displayName,
boolean persistent,
String contactType)
Creates contact for the specified address and inside the specified group . |
ContactGroupSipImpl |
createGroup(ContactGroupSipImpl parentGroup,
String groupName,
boolean persistent)
Creates a group with the specified name and parent in the server stored contact list. |
void |
deleteAccountImage()
Deletes current account image from server. |
void |
destroy()
Destroys the server stored list. |
ServerStoredDetails.ImageDetail |
getAccountImage()
Get current account image from server if any. |
byte[] |
getImage(URI imageUri)
Gets image from the specified uri. |
URI |
getImageUri()
Gets the pres-content image uri. |
void |
init()
Initializes the server stored list. |
boolean |
isAccountImageSupported()
Whether current contact list supports account image. |
void |
moveContactToGroup(ContactSipImpl contact,
ContactGroupSipImpl newParentGroup)
Removes the specified contact from its current parent and places it under newParent. |
void |
removeContact(ContactSipImpl contact)
Removes a contact. |
void |
removeGroup(ContactGroupSipImpl group)
Removes the specified group from the server stored contact list. |
void |
renameContact(ContactSipImpl contact,
String newName)
Renames the specified contact. |
void |
renameGroup(ContactGroupSipImpl group,
String newName)
Renames the specified group from the server stored contact list. |
void |
run()
The logic that runs in separate thread. |
void |
setAccountImage(byte[] newImageBytes)
Change the image of the account on server. |
(package private) static void |
showError(Throwable ex,
String title,
String message)
Shows an error and a short description. |
| Methods inherited from class net.java.sip.communicator.impl.protocol.sip.ServerStoredContactList |
|---|
addGroupListener, createContact, createUnresolvedContact, createUnresolvedContactGroup, fireContactAdded, fireContactMoved, fireContactRemoved, fireContactResolved, fireGroupEvent, getAllContacts, getAllGroups, getRootGroup, getUniqueContacts, removeGroupListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String XIVO_ENABLE
public static final String XIVO_USE_SIP_CREDETIALS
public static final String XIVO_SERVER_ADDRESS
public static final String XIVO_USER
public static final String XIVO_PASSWORD
| Constructor Detail |
|---|
ServerStoredContactListXivoImpl(ProtocolProviderServiceSipImpl sipProvider,
OperationSetPresenceSipImpl parentOperationSet)
sipProvider - the provider that has instantiated us.parentOperationSet - the operation set that created us and that
we could use for dispatching subscription events| Method Detail |
|---|
public void init()
init in class ServerStoredContactListpublic void destroy()
destroy in class ServerStoredContactListpublic void run()
run in interface Runnablepublic URI getImageUri()
getImageUri in class ServerStoredContactListIllegalStateException - if the user has not been connected.public byte[] getImage(URI imageUri)
getImage in class ServerStoredContactListimageUri - the image uri.
public ContactGroupSipImpl createGroup(ContactGroupSipImpl parentGroup,
String groupName,
boolean persistent)
throws OperationFailedException
createGroup in class ServerStoredContactListparentGroup - the group where the new group should be created.groupName - the name of the new group to create.persistent - specify whether created contact is persistent ot not.
OperationFailedException - with code NETWORK_FAILURE if creating
the group fails because of server
error or with code
CONTACT_GROUP_ALREADY_EXISTS if contact
group with such name already exists.
public void renameGroup(ContactGroupSipImpl group,
String newName)
renameGroup in class ServerStoredContactListgroup - the group to rename.newName - the new name of the group.
public void moveContactToGroup(ContactSipImpl contact,
ContactGroupSipImpl newParentGroup)
throws OperationFailedException
moveContactToGroup in class ServerStoredContactListcontact - the Contact to movenewParentGroup - the ContactGroup where Contact
would be placed.
OperationFailedException - with code NETWORK_FAILURE if the
operation if failed during network
communication.public void removeGroup(ContactGroupSipImpl group)
removeGroup in class ServerStoredContactListgroup - the group to delete.
public ContactSipImpl createContact(ContactGroupSipImpl parentGroup,
String contactId,
String displayName,
boolean persistent,
String contactType)
throws OperationFailedException
createContact in class ServerStoredContactListparentGroup - the group where the unresolved contact is to be
created.contactId - the sip id of the contact to create.displayName - the display name of the contact to createpersistent - specify whether created contact is persistent ot not.contactType - the contact type to create, if missing null.
OperationFailedException - with code NETWORK_FAILURE if the
operation if failed during network
communication.
public void removeContact(ContactSipImpl contact)
throws OperationFailedException
removeContact in class ServerStoredContactListcontact - contact to be removed.
OperationFailedException - with code NETWORK_FAILURE if the
operation if failed during network
communication.
public void renameContact(ContactSipImpl contact,
String newName)
renameContact in class ServerStoredContactListcontact - the contact to be renamed.newName - the new contact name.public void authorizationAccepted(ContactSipImpl contact)
authorizationAccepted in class ServerStoredContactListcontact - the user has accepted.public void authorizationRejected(ContactSipImpl contact)
authorizationRejected in class ServerStoredContactListcontact - the user has rejected.public void authorizationIgnored(ContactSipImpl contact)
authorizationIgnored in class ServerStoredContactListcontact - the user has ignored.
public ServerStoredDetails.ImageDetail getAccountImage()
throws OperationFailedException
getAccountImage in class ServerStoredContactListOperationFailedException
public void deleteAccountImage()
throws OperationFailedException
deleteAccountImage in class ServerStoredContactListOperationFailedException
public void setAccountImage(byte[] newImageBytes)
throws OperationFailedException
setAccountImage in class ServerStoredContactListnewImageBytes - the new image.
OperationFailedExceptionpublic boolean isAccountImageSupported()
isAccountImageSupported in class ServerStoredContactList
static void showError(Throwable ex,
String title,
String message)
ex - the exception
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||