|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An interface for the Presence service, a service that allows peers to exchange presence status information specifying their current status (offline, online, busy, away). This interface defines the operations a developer can expect to use to manipulate the Presence service regardless of which underlying implementation of the service is being used.
| Field Summary | |
static int |
AWAY
A status value indicating a user is currently online, but is temporarily away from their device. |
static int |
BUSY
A status value indicating a user is currently online, but is busy and does not wish to be disturbed. |
static int |
OFFLINE
A status value indicating a user is currently offline. |
static int |
ONLINE
A status value indicating a user is currently online. |
static java.lang.String |
refModuleClassID
The module class ID for the Presence class of service. |
| Method Summary | |
void |
addListener(pawn.services.presence.PresenceListener listener)
Add a listener object to the service. |
void |
announcePresence(int presenceStatus,
java.lang.String emailAddress,
java.lang.String name)
Announce updated presence information within the peer group. |
void |
findPresence(java.lang.String emailAddress)
Sends a query to find presence information for the user specified by the given email address. |
boolean |
removeListener(pawn.services.presence.PresenceListener listener)
Removes a given listener object from the service. |
| Methods inherited from interface net.jxta.service.Service |
getImplAdvertisement, getInterface |
| Methods inherited from interface net.jxta.platform.Module |
init, startApp, stopApp |
| Field Detail |
public static final java.lang.String refModuleClassID
public static final int AWAY
public static final int BUSY
public static final int OFFLINE
public static final int ONLINE
| Method Detail |
public void addListener(pawn.services.presence.PresenceListener listener)
listener - the listener object to register with the service.
public void announcePresence(int presenceStatus,
java.lang.String emailAddress,
java.lang.String name)
presenceStatus - the updated status for the user identified by the email address.emailAddress - the email address used to identify the user associated with the presence info.name - a display name for the user associated with the presence info.public void findPresence(java.lang.String emailAddress)
emailAddress - the email address to use to find presence info.public boolean removeListener(pawn.services.presence.PresenceListener listener)
listener - the listener object to unregister.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||