|
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.service.protocol.AbstractOperationSetServerStoredAccountInfo
net.java.sip.communicator.impl.protocol.msn.OperationSetServerStoredAccountInfoMsnImpl
public class OperationSetServerStoredAccountInfoMsnImpl
Saves account avatar image. If one is already saved we set it as initial one for the MsnOwner.
| Constructor Summary | |
|---|---|
protected |
OperationSetServerStoredAccountInfoMsnImpl(ProtocolProviderServiceMsnImpl msnProvider,
String uin)
Constructor. |
| Method Summary | |
|---|---|
void |
addDetail(ServerStoredDetails.GenericDetail detail)
Adds the specified detail to the list of details registered on-line for this account. |
Iterator<ServerStoredDetails.GenericDetail> |
getAllAvailableDetails()
Returns all details currently available and set for our account. |
(package private) List<ServerStoredDetails.GenericDetail> |
getContactDetails(String contactAddress)
request the full info for the given contactAddress waits and return this details |
Iterator<ServerStoredDetails.GenericDetail> |
getDetails(Class<? extends ServerStoredDetails.GenericDetail> detailClass)
Returns an iterator over all details that are instances of exactly the same class as the one specified. |
Iterator<ServerStoredDetails.GenericDetail> |
getDetailsAndDescendants(Class<? extends ServerStoredDetails.GenericDetail> detailClass)
Returns an iterator over all details that are instances or descendants of the specified class. |
int |
getMaxDetailInstances(Class<? extends ServerStoredDetails.GenericDetail> detailClass)
The method returns the number of instances supported for a particular detail type. |
Iterator<Class<? extends ServerStoredDetails.GenericDetail>> |
getSupportedDetailTypes()
Returns all detail Class-es that the underlying implementation supports setting. |
boolean |
isDetailClassSupported(Class<? extends ServerStoredDetails.GenericDetail> detailClass)
Determines whether a detail class represents a detail supported by the underlying implementation or not. |
void |
registrationStateChanged(RegistrationStateChangeEvent evt)
The method is called by a ProtocolProviderService
implementation whenever a change in the registration state of the
corresponding provider had occurred. |
boolean |
removeDetail(ServerStoredDetails.GenericDetail detail)
Removes the specified detail from the list of details stored online for this account. |
boolean |
replaceDetail(ServerStoredDetails.GenericDetail currentDetailValue,
ServerStoredDetails.GenericDetail newDetailValue)
Replaces the currentDetailValue detail with newDetailValue and returns true if the operation was a success or false if currentDetailValue did not previously exist (in this case an additional call to addDetail is required). |
| Methods inherited from class net.java.sip.communicator.service.protocol.AbstractOperationSetServerStoredAccountInfo |
|---|
addServerStoredDetailsChangeListener, fireServerStoredDetailsChangeEvent, removeServerStoredDetailsChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected OperationSetServerStoredAccountInfoMsnImpl(ProtocolProviderServiceMsnImpl msnProvider,
String uin)
msnProvider - MSN service provideruin - MSN UIN| Method Detail |
|---|
public Iterator<ServerStoredDetails.GenericDetail> getDetailsAndDescendants(Class<? extends ServerStoredDetails.GenericDetail> detailClass)
getDetailsAndDescendants in interface OperationSetServerStoredAccountInfodetailClass - one of the detail classes defined in the
ServerStoredDetails class, indicating the kind of details we're
interested in.
List<ServerStoredDetails.GenericDetail> getContactDetails(String contactAddress)
contactAddress - String
public Iterator<ServerStoredDetails.GenericDetail> getDetails(Class<? extends ServerStoredDetails.GenericDetail> detailClass)
getDetails in interface OperationSetServerStoredAccountInfodetailClass - one of the detail classes defined in the
ServerStoredDetails class, indicating the kind of details we're
interested in.
public Iterator<ServerStoredDetails.GenericDetail> getAllAvailableDetails()
getAllAvailableDetails in interface OperationSetServerStoredAccountInfopublic Iterator<Class<? extends ServerStoredDetails.GenericDetail>> getSupportedDetailTypes()
getSupportedDetailTypes in interface OperationSetServerStoredAccountInfopublic boolean isDetailClassSupported(Class<? extends ServerStoredDetails.GenericDetail> detailClass)
isDetailClassSupported in interface OperationSetServerStoredAccountInfodetailClass - the class the support for which we'd like to
determine.
public int getMaxDetailInstances(Class<? extends ServerStoredDetails.GenericDetail> detailClass)
getMaxDetailInstances in interface OperationSetServerStoredAccountInfodetailClass - the class whose max instance number we'd like to find
out.
public void addDetail(ServerStoredDetails.GenericDetail detail)
throws IllegalArgumentException,
OperationFailedException,
ArrayIndexOutOfBoundsException
addDetail in interface OperationSetServerStoredAccountInfodetail - the detail that we'd like registered on the server.
IllegalArgumentException - if such a detail already exists and its
max instances number has been attained or if the underlying
implementation does not support setting details of the corresponding
class.
OperationFailedException - with code Network Failure if putting the
new value online has failed
ArrayIndexOutOfBoundsException - if the number of
instances currently registered by the application is already equal to the
maximum number of supported instances (@see getMaxDetailInstances())
public boolean removeDetail(ServerStoredDetails.GenericDetail detail)
throws OperationFailedException
removeDetail in interface OperationSetServerStoredAccountInfodetail - the detail to remove
OperationFailedException - with code Network Failure if removing the
detail from the server has failed
public boolean replaceDetail(ServerStoredDetails.GenericDetail currentDetailValue,
ServerStoredDetails.GenericDetail newDetailValue)
throws ClassCastException,
OperationFailedException
replaceDetail in interface OperationSetServerStoredAccountInfocurrentDetailValue - the detail value we'd like to replace.newDetailValue - the value of the detail that we'd like to replace
currentDetailValue with.
ClassCastException - if newDetailValue is not an instance of the
same class as currentDetailValue.
OperationFailedException - with code Network Failure if putting the
new value back online has failedpublic void registrationStateChanged(RegistrationStateChangeEvent evt)
ProtocolProviderService
implementation whenever a change in the registration state of the
corresponding provider had occurred.
registrationStateChanged in interface RegistrationStateChangeListenerevt - the event describing the status change.
|
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 | |||||||||