|
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 | |||||||||
public interface ContactGroup
A ContactGroup is a collection of Contacts/Buddies/Subscriptions, stored by a communications service (e.g. AIM/ICQ or Skype)returned by persistent presence operation sets. A group may contain simple members or subgroups. Instances of ContactGroup cannot be directly modified by users of the protocol provider service. In order to add buddies or subgroups to a ContactGroup one needs to do so through the OperationSetPersistentPresence interface.
| Method Summary | |
|---|---|
boolean |
canContainSubgroups()
Determines whether the group may contain subgroups or not. |
Iterator<Contact> |
contacts()
Returns an Iterator over all contacts, member of this ContactGroup. |
int |
countContacts()
Returns the number of Contact members of this ContactGroup |
int |
countSubgroups()
Returns the number of subgroups contained by this ContactGroup. |
Contact |
getContact(String id)
Returns the Contact with the specified address or identifier. |
ContactGroup |
getGroup(int index)
Returns the subgroup with the specified index. |
ContactGroup |
getGroup(String groupName)
Returns the subgroup with the specified name. |
String |
getGroupName()
Returns the name of this group. |
ContactGroup |
getParentContactGroup()
Returns the contact group that currently contains this group or null if this is the root contact group. |
String |
getPersistentData()
Returns a String that can be used to create a unresolved instance of this group. |
ProtocolProviderService |
getProtocolProvider()
Returns the protocol provider that this group belongs to. |
String |
getUID()
Returns a String that uniquely represents the group inside the current protocol. |
boolean |
isPersistent()
Determines whether or not this contact group is being stored by the server. |
boolean |
isResolved()
Determines whether or not this group has been resolved against the server. |
Iterator<ContactGroup> |
subgroups()
Returns an iterator over the sub groups that this ContactGroup contains. |
| Method Detail |
|---|
Iterator<ContactGroup> subgroups()
int countSubgroups()
ContactGroup getGroup(int index)
index - the index of the ContactGroup to retrieve.
ContactGroup getGroup(String groupName)
groupName - the name of the ContactGroup to retrieve.
Iterator<Contact> contacts()
int countContacts()
Contact getContact(String id)
id - the addres or identifier of the Contact we are
looking for.
boolean canContainSubgroups()
String getGroupName()
ProtocolProviderService getProtocolProvider()
ContactGroup getParentContactGroup()
boolean isPersistent()
String getUID()
boolean isResolved()
String getPersistentData()
|
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 | |||||||||