|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.mn.communicator.DefaultPublicDirectoryService
public class DefaultPublicDirectoryService
The default implementation of IPublicDirectoryService.
Created on 2004-12-14
| 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(Session session)
| Method Detail |
|---|
public void search(PublicDirSearchQuery publicDirQuery)
throws GGException
IPublicDirectoryServicePublicDirSearchQuery object.
search in interface IPublicDirectoryServicepublicDirQuery - the query that will be used in searching process.
GGException - if there is an error while searching.IPublicDirectoryService.search(pl.mn.communicator.PublicDirSearchQuery)
public void readFromPublicDirectory()
throws GGException
readFromPublicDirectory in interface IPublicDirectoryServiceGGException - if there is an error while sending request to read personal information from directory.
GGSessionException - if we are currently not logged in.
public void writeToPublicDirectory(PersonalInfo publicDirInfo)
throws GGException
IPublicDirectoryService
writeToPublicDirectory in interface IPublicDirectoryServicepublicDirInfo - the object that holds information to be written or updated.
GGException - if an error occurs while writing to the public directory.
GGSessionException - if we are currently not logged in.IPublicDirectoryService.writeToPublicDirectory(pl.mn.communicator.PersonalInfo)public void addPublicDirListener(PublicDirListener publicDirListener)
IPublicDirectoryServicePublicDirListener object to the list of listeners
that will be notified of public directory related events.
addPublicDirListener in interface IPublicDirectoryServicepublicDirListener - the PublicDirListener object that will be notified.IPublicDirectoryService.addPublicDirListener(pl.mn.communicator.event.PublicDirListener)public void removePublicDirListener(PublicDirListener publicDirListener)
IPublicDirectoryServicePublicDirListener object from the list of listeners
that will be notified of public directory related events.
removePublicDirListener in interface IPublicDirectoryServicepublicDirListener - the PublicDirListener object that will not longer be notified.IPublicDirectoryService.removePublicDirListener(pl.mn.communicator.event.PublicDirListener)
protected void notifyPubdirRead(int queryID,
PersonalInfo publicDirInfo)
protected void notifyPubdirUpdated(int queryID)
protected void notifyPubdirGotSearchResults(int queryID,
PublicDirSearchReply publicDirSearchReply)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||