|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Group
This entity is responsible for actions on a user specific group that is stored on a RLS server. All actions related to the content of the group result in interactions with the RLS server.
A group contains the list of users to whose presence information an application subscribes to when initiating a PresenceWatcher. In a convenience method it has been made possible to start a PresenceWatcher from a group. The PresenceWatcher also allows to specify filters.
PresenceWatcher
Method Summary | |
---|---|
void |
createOrModifyBuddy(String userId,
String displayName)
Adds a buddy to the group with the specified user ID and display name, or, if a buddy with the specified user ID already exists, modifies the display name. |
void |
delete()
Deletes the complete group. |
String |
getBuddyDisplayName(String userId)
Returns the display name of the buddy with the specified user ID. |
List<String> |
getBuddyNames()
Returns the list of user IDs of the buddies in the group. |
String |
getDisplayName()
Returns the display name of the group. |
String |
getName()
Returns the name of the group. |
String |
getOwner()
Returns the owner of the group. |
void |
removeBuddy(String userId)
Removes the buddy with the specified user ID from the group. |
void |
setDisplayName(String name)
Returns the name of the group. |
PresenceWatcher |
startWatching(CommunicationSession session)
Creates a new PresenceWatcher in the provided CommunicationSession, and issues the update() method for the current group on the newly created PresenceWatcher. |
Method Detail |
---|
void delete()
void createOrModifyBuddy(String userId, String displayName)
userId
- the user ID of the buddy.displayName
- the new display name of the buddy.void removeBuddy(String userId)
userId
- The user ID of the buddy to be removed.List<String> getBuddyNames()
String getBuddyDisplayName(String userId)
userId
- the user ID.
String getName()
void setDisplayName(String name)
name
- the group display name.String getDisplayName()
String getOwner()
PresenceWatcher startWatching(CommunicationSession session)
session
- the CommunicationSession in which the PresenceWatcher is created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |