public class ContactGroupIrcImpl extends java.lang.Object implements ContactGroup
Constructor and Description |
---|
ContactGroupIrcImpl(ProtocolProviderServiceIrcImpl provider)
Contact Group IRC implementation.
|
ContactGroupIrcImpl(ProtocolProviderServiceIrcImpl provider,
ContactGroupIrcImpl parentGroup,
java.lang.String name)
Contact Group IRC implementation.
|
Modifier and Type | Method and Description |
---|---|
void |
addContact(ContactIrcImpl contact)
Add contact to the group.
|
void |
addSubGroup(ContactGroupIrcImpl group)
Add group as subgroup to this group.
|
boolean |
canContainSubgroups()
Check if group can contain subgroups.
|
java.util.Iterator<Contact> |
contacts()
Get contacts in group.
|
int |
countContacts()
Get number of contacts in group.
|
int |
countSubgroups()
Get number of subgroups.
|
ContactIrcImpl |
findContact(java.lang.String id)
Find contact by searching through direct contacts and subsequently
continue searching in subgroups.
|
ContactIrcImpl |
getContact(java.lang.String id)
Get group contact by id.
|
ContactGroup |
getGroup(int index)
Get subgroup by index.
|
ContactGroup |
getGroup(java.lang.String groupName)
Get subgroup by name.
|
java.lang.String |
getGroupName()
Get name of the group.
|
ContactGroup |
getParentContactGroup()
Get parent contact group.
|
java.lang.String |
getPersistentData()
Get group persistent data.
|
ProtocolProviderServiceIrcImpl |
getProtocolProvider()
Get protocol provider service implementation.
|
java.lang.String |
getUID()
Get group UUID.
|
boolean |
isPersistent()
Is persistent group.
|
boolean |
isResolved()
Is group resolved.
|
void |
removeContact(ContactIrcImpl contact)
Remove contact.
|
void |
removeSubGroup(ContactGroupIrcImpl group)
Remove subgroup from this group.
|
void |
setGroupName(java.lang.String name)
Set name of the group.
|
void |
setPersistent(boolean persistent)
Set persistence.
|
java.util.Iterator<ContactGroup> |
subgroups()
Get subgroups of this group.
|
ContactGroupIrcImpl(ProtocolProviderServiceIrcImpl provider)
provider
- IRC protocol provider service instance.public ContactGroupIrcImpl(ProtocolProviderServiceIrcImpl provider, ContactGroupIrcImpl parentGroup, java.lang.String name)
provider
- IRC protocol provider service instance.parentGroup
- Parent groupname
- Group namepublic java.util.Iterator<ContactGroup> subgroups()
subgroups
in interface ContactGroup
public int countSubgroups()
countSubgroups
in interface ContactGroup
public ContactGroup getGroup(int index)
getGroup
in interface ContactGroup
index
- index of subgrouppublic ContactGroup getGroup(java.lang.String groupName)
getGroup
in interface ContactGroup
groupName
- Name of subgroup.public java.util.Iterator<Contact> contacts()
contacts
in interface ContactGroup
public int countContacts()
countContacts
in interface ContactGroup
public ContactIrcImpl getContact(java.lang.String id)
getContact
in interface ContactGroup
id
- contact IDpublic ContactIrcImpl findContact(java.lang.String id)
id
- the contact idpublic boolean canContainSubgroups()
canContainSubgroups
in interface ContactGroup
public java.lang.String getGroupName()
getGroupName
in interface ContactGroup
public void setGroupName(java.lang.String name)
name
- new namepublic ProtocolProviderServiceIrcImpl getProtocolProvider()
getProtocolProvider
in interface ContactGroup
public ContactGroup getParentContactGroup()
getParentContactGroup
in interface ContactGroup
public boolean isPersistent()
isPersistent
in interface ContactGroup
public void setPersistent(boolean persistent)
persistent
- true for persistent group, false for
non-persistent grouppublic java.lang.String getUID()
getUID
in interface ContactGroup
public boolean isResolved()
isResolved
in interface ContactGroup
public java.lang.String getPersistentData()
getPersistentData
in interface ContactGroup
public void addContact(ContactIrcImpl contact)
contact
- Contact to be added.public void removeContact(ContactIrcImpl contact)
contact
- the contact to removepublic void addSubGroup(ContactGroupIrcImpl group)
group
- the grouppublic void removeSubGroup(ContactGroupIrcImpl group)
group
- the group
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.