pl.mn.communicator
Class DefaultPublicDirectoryService

java.lang.Object
  extended by pl.mn.communicator.DefaultPublicDirectoryService
All Implemented Interfaces:
IPublicDirectoryService

public class DefaultPublicDirectoryService
extends java.lang.Object
implements IPublicDirectoryService

The default implementation of IPublicDirectoryService.

Created on 2004-12-14

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

Constructor Summary
DefaultPublicDirectoryService(Session session)
           
 
Method Summary
 void addPublicDirListener(PublicDirListener publicDirListener)
          Adds PublicDirListener object to the list of listeners that will be notified of public directory related events.
protected  void notifyPubdirGotSearchResults(int queryID, PublicDirSearchReply publicDirSearchReply)
           
protected  void notifyPubdirRead(int queryID, PersonalInfo publicDirInfo)
           
protected  void notifyPubdirUpdated(int queryID)
           
 void readFromPublicDirectory()
          * @see pl.mn.communicator.IPublicDirectoryService#readFromPublicDirectory()
 void removePublicDirListener(PublicDirListener publicDirListener)
          Remove PublicDirListener object from the list of listeners that will be notified of public directory related events.
 void search(PublicDirSearchQuery publicDirQuery)
          Looks up for Gadu-Gadu users that are matching criteria specified in PublicDirSearchQuery object.
 void writeToPublicDirectory(PersonalInfo publicDirInfo)
          Write or update personal information to the Gadu-Gadu's public directory service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPublicDirectoryService

DefaultPublicDirectoryService(Session session)
Method Detail

search

public void search(PublicDirSearchQuery publicDirQuery)
            throws GGException
Description copied from interface: IPublicDirectoryService
Looks up for Gadu-Gadu users that are matching criteria specified in PublicDirSearchQuery object.

Specified by:
search in interface IPublicDirectoryService
Parameters:
publicDirQuery - the query that will be used in searching process.
Throws:
GGException - if there is an error while searching.
See Also:
IPublicDirectoryService.search(pl.mn.communicator.PublicDirSearchQuery)

readFromPublicDirectory

public void readFromPublicDirectory()
                             throws GGException
* @see pl.mn.communicator.IPublicDirectoryService#readFromPublicDirectory()

Specified by:
readFromPublicDirectory in interface IPublicDirectoryService
Throws:
GGException - if there is an error while sending request to read personal information from directory.
GGSessionException - if we are currently not logged in.

writeToPublicDirectory

public void writeToPublicDirectory(PersonalInfo publicDirInfo)
                            throws GGException
Description copied from interface: IPublicDirectoryService
Write or update personal information to the Gadu-Gadu's public directory service.

Specified by:
writeToPublicDirectory in interface IPublicDirectoryService
Parameters:
publicDirInfo - the object that holds information to be written or updated.
Throws:
GGException - if an error occurs while writing to the public directory.
GGSessionException - if we are currently not logged in.
See Also:
IPublicDirectoryService.writeToPublicDirectory(pl.mn.communicator.PersonalInfo)

addPublicDirListener

public void addPublicDirListener(PublicDirListener publicDirListener)
Description copied from interface: IPublicDirectoryService
Adds PublicDirListener object to the list of listeners that will be notified of public directory related events.

Specified by:
addPublicDirListener in interface IPublicDirectoryService
Parameters:
publicDirListener - the PublicDirListener object that will be notified.
See Also:
IPublicDirectoryService.addPublicDirListener(pl.mn.communicator.event.PublicDirListener)

removePublicDirListener

public void removePublicDirListener(PublicDirListener publicDirListener)
Description copied from interface: IPublicDirectoryService
Remove PublicDirListener object from the list of listeners that will be notified of public directory related events.

Specified by:
removePublicDirListener in interface IPublicDirectoryService
Parameters:
publicDirListener - the PublicDirListener object that will not longer be notified.
See Also:
IPublicDirectoryService.removePublicDirListener(pl.mn.communicator.event.PublicDirListener)

notifyPubdirRead

protected void notifyPubdirRead(int queryID,
                                PersonalInfo publicDirInfo)

notifyPubdirUpdated

protected void notifyPubdirUpdated(int queryID)

notifyPubdirGotSearchResults

protected void notifyPubdirGotSearchResults(int queryID,
                                            PublicDirSearchReply publicDirSearchReply)


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