pl.mn.communicator
Class DefaultContactListService

java.lang.Object
  extended by pl.mn.communicator.DefaultContactListService
All Implemented Interfaces:
IContactListService

public class DefaultContactListService
extends java.lang.Object
implements IContactListService

The default implementation of IContactListService.

Created on 2004-12-11

Version:
$Id: DefaultContactListService.java,v 1.1 2005/11/05 23:34:52 winnetou25 Exp $
Author:
Mateusz Szczap

Constructor Summary
DefaultContactListService(Session session)
           
 
Method Summary
 void addContactListListener(ContactListListener contactListListener)
          Adds ContactListListener object to the list of listeners to be notified of events such as successfuly importing or exporting contact list.
 void clearContactList()
          Clears user's contact list from the Gadu-Gadu server.
 void exportContactList(java.util.Collection localUsers)
          Exports user's contact list to the Gadu-Gadu server.
 void importContactList()
          Imports user's contact list from the Gadu-Gadu server.
protected  void notifyContactListExported()
           
protected  void notifyContactListReceived(java.util.Collection users)
           
 void removeContactListlistener(ContactListListener contactListListener)
          Removes ContactListListener object from the list of listeners that are notified of events such as successfuly importing or exporting contact list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultContactListService

DefaultContactListService(Session session)
Method Detail

clearContactList

public void clearContactList()
                      throws GGException
Description copied from interface: IContactListService
Clears user's contact list from the Gadu-Gadu server.

Specified by:
clearContactList in interface IContactListService
Throws:
GGException - if there is an error while exporting contact.
GGSessionException - if we are currently not logged in.
See Also:
IContactListService.clearContactList()

exportContactList

public void exportContactList(java.util.Collection localUsers)
                       throws GGException
Description copied from interface: IContactListService
Exports user's contact list to the Gadu-Gadu server.

Specified by:
exportContactList in interface IContactListService
Parameters:
localUsers - collection of LocalUser objects.
Throws:
GGException - if where is an error while exporting contact list.
GGSessionException - if we are currently not logged in.
See Also:
IContactListService.exportContactList(java.util.Collection)

importContactList

public void importContactList()
                       throws GGException
Description copied from interface: IContactListService
Imports user's contact list from the Gadu-Gadu server.

Specified by:
importContactList in interface IContactListService
Throws:
GGException - if there is an error while importing contact list.
GGSessionException - if we are currently not logged in.
See Also:
IContactListService.importContactList()

addContactListListener

public void addContactListListener(ContactListListener contactListListener)
Description copied from interface: IContactListService
Adds ContactListListener object to the list of listeners to be notified of events such as successfuly importing or exporting contact list.

Specified by:
addContactListListener in interface IContactListService
Parameters:
contactListListener - the listener to be notified of contact list events.
See Also:
IContactListService.addContactListListener(pl.mn.communicator.event.ContactListListener)

removeContactListlistener

public void removeContactListlistener(ContactListListener contactListListener)
Description copied from interface: IContactListService
Removes ContactListListener object from the list of listeners that are notified of events such as successfuly importing or exporting contact list.

Specified by:
removeContactListlistener in interface IContactListService
Parameters:
contactListListener - the listener object to be removed from contact list events notification.
See Also:
IContactListService.removeContactListlistener(pl.mn.communicator.event.ContactListListener)

notifyContactListExported

protected void notifyContactListExported()

notifyContactListReceived

protected void notifyContactListReceived(java.util.Collection users)


Copyright 2004-2004-2005 SourceForge.net. All Rights Reserved.