SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main.contactlist
Class MetaContactListManager

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.main.contactlist.MetaContactListManager

public class MetaContactListManager
extends Object

The MetaContactListManager is the class through which we make operations with the MetaContactList. All methods in this class are static.

Author:
Yana Stamcheva

Constructor Summary
MetaContactListManager()
           
 
Method Summary
static void moveContactToGroup(Contact srcContact, MetaContactGroup destGroup)
          Moves the given srcContact to the destGroup.
static void moveContactToMetaContact(Contact srcContact, MetaContact destMetaContact)
          Moves the given srcContact to the destMetaContact.
static void moveMetaContactToGroup(MetaContact srcContact, MetaContactGroup group)
          Moves the given srcContact to the destGroup.
static void moveMetaContactToGroup(MetaContact srcContact, String groupID)
          Moves the given srcContact to the destGroup.
static void moveMetaContactToMetaContact(MetaContact srcMetaContact, MetaContact destMetaContact)
          Moves the given srcMetaContact to the destMetaContact.
static void removeContact(Contact contact)
          Removes the given Contact from its MetaContact.
static void removeMetaContact(MetaContact metaContact)
          Removes the given MetaContact from the list.
static void removeMetaContactGroup(MetaContactGroup group)
          Removes the given MetaContactGroup from the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaContactListManager

public MetaContactListManager()
Method Detail

moveContactToMetaContact

public static void moveContactToMetaContact(Contact srcContact,
                                            MetaContact destMetaContact)
Moves the given srcContact to the destMetaContact.

Parameters:
srcContact - the Contact to move
destMetaContact - the destination MetaContact to move to

moveMetaContactToMetaContact

public static void moveMetaContactToMetaContact(MetaContact srcMetaContact,
                                                MetaContact destMetaContact)
Moves the given srcMetaContact to the destMetaContact.

Parameters:
srcMetaContact - the MetaContact to move
destMetaContact - the destination MetaContact to move to

moveContactToGroup

public static void moveContactToGroup(Contact srcContact,
                                      MetaContactGroup destGroup)
Moves the given srcContact to the destGroup.

Parameters:
srcContact - the Contact to move
destGroup - the destination MetaContactGroup to move to

moveMetaContactToGroup

public static void moveMetaContactToGroup(MetaContact srcContact,
                                          MetaContactGroup group)
Moves the given srcContact to the destGroup.

Parameters:
srcContact - the MetaContact to move
group - the destination MetaContactGroup to move to

moveMetaContactToGroup

public static void moveMetaContactToGroup(MetaContact srcContact,
                                          String groupID)
Moves the given srcContact to the destGroup.

Parameters:
srcContact - the MetaContact to move
groupID - the identifier of the destination MetaContactGroup to move to

removeContact

public static void removeContact(Contact contact)
Removes the given Contact from its MetaContact.

Parameters:
contact - the Contact to remove

removeMetaContact

public static void removeMetaContact(MetaContact metaContact)
Removes the given MetaContact from the list.

Parameters:
metaContact - the MetaContact to remove

removeMetaContactGroup

public static void removeMetaContactGroup(MetaContactGroup group)
Removes the given MetaContactGroup from the list.

Parameters:
group - the MetaContactGroup to remove

SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.