public abstract class UIContactDetail
extends java.lang.Object
Constructor and Description |
---|
UIContactDetail(java.lang.String address,
java.lang.String displayName,
java.lang.Object descriptor)
Creates a UIContactDetail by specifying the contact
address, the displayName and preferredProvider.
|
UIContactDetail(java.lang.String address,
java.lang.String displayName,
java.lang.String category,
java.util.Collection<java.lang.String> labels,
java.util.Map<java.lang.Class<? extends OperationSet>,ProtocolProviderService> preferredProviders,
java.util.Map<java.lang.Class<? extends OperationSet>,java.lang.String> preferredProtocols,
java.lang.Object descriptor)
Creates a UIContactDetail by specifying the contact
address, the displayName and preferredProvider.
|
Modifier and Type | Method and Description |
---|---|
void |
addPreferredProtocol(java.lang.Class<? extends OperationSet> opSetClass,
java.lang.String protocol)
Adds a preferred protocol for a given OperationSet class.
|
void |
addPreferredProtocolProvider(java.lang.Class<? extends OperationSet> opSetClass,
ProtocolProviderService protocolProvider)
Adds a preferred protocol provider for a given OperationSet class.
|
java.lang.String |
getAddress()
Returns the address of this detail.
|
java.lang.String |
getCategory()
Returns the category of the underlying detail.
|
java.lang.Object |
getDescriptor()
Returns the underlying object that this class is wrapping
|
java.lang.String |
getDisplayName()
Returns the display name of this detail.
|
java.util.Iterator<java.lang.String> |
getLabels()
Returns an iterator over the collection of labels associated with this
detail.
|
java.lang.String |
getPreferredProtocol(java.lang.Class<? extends OperationSet> opSetClass)
Returns the name of the protocol preferred for contacting this detail for
the given OperationSet class if no preferred protocol provider
is set.
|
ProtocolProviderService |
getPreferredProtocolProvider(java.lang.Class<? extends OperationSet> opSetClass)
Returns the protocol provider preferred for contacting this detail for
the given OperationSet class.
|
java.lang.String |
getPrefix()
Returns the prefix to be used when calling this contact detail.
|
abstract PresenceStatus |
getPresenceStatus()
Returns the PresenceStatus of this ContactDetail or
null if the detail doesn't support presence.
|
void |
setPrefix(java.lang.String prefix)
Sets the prefix to be used when calling this contact detail.
|
public UIContactDetail(java.lang.String address, java.lang.String displayName, java.lang.Object descriptor)
address
- the contact addressdisplayName
- the contact display namedescriptor
- the underlying object that this class is wrappingpublic UIContactDetail(java.lang.String address, java.lang.String displayName, java.lang.String category, java.util.Collection<java.lang.String> labels, java.util.Map<java.lang.Class<? extends OperationSet>,ProtocolProviderService> preferredProviders, java.util.Map<java.lang.Class<? extends OperationSet>,java.lang.String> preferredProtocols, java.lang.Object descriptor)
address
- the contact addressdisplayName
- the contact display namecategory
- the category of the underlying contact detaillabels
- the collection of labels associated with this detailpreferredProviders
- the preferred protocol providerpreferredProtocols
- the preferred protocol if no protocol provider
is setdescriptor
- the underlying object that this class is wrappingpublic java.lang.String getDisplayName()
public java.lang.String getAddress()
public java.lang.String getCategory()
public java.util.Iterator<java.lang.String> getLabels()
public ProtocolProviderService getPreferredProtocolProvider(java.lang.Class<? extends OperationSet> opSetClass)
opSetClass
- the OperationSet class for which we're looking
for providerpublic void addPreferredProtocolProvider(java.lang.Class<? extends OperationSet> opSetClass, ProtocolProviderService protocolProvider)
opSetClass
- the OperationSet class for which we're looking
for protocolprotocolProvider
- the preferred protocol provider to addpublic java.lang.String getPreferredProtocol(java.lang.Class<? extends OperationSet> opSetClass)
opSetClass
- the OperationSet class for which we're looking
for protocolpublic void addPreferredProtocol(java.lang.Class<? extends OperationSet> opSetClass, java.lang.String protocol)
opSetClass
- the OperationSet class for which we're looking
for protocolprotocol
- the preferred protocol to addpublic java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix)
prefix
- the prefix to be used when calling this contact detailpublic java.lang.Object getDescriptor()
public abstract PresenceStatus getPresenceStatus()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.