fi.hut.tml.xsmiles.comm
Interface Groups

All Superinterfaces:
CommEventSender
All Known Implementing Classes:
JxtaGroups

public interface Groups
extends CommEventSender

The Groups interface for COMM API contains methods related to the general communications groups handling. The actual meaning of a group depends on the underlying communications network it could be a JXTA group, or an IRC channel. In some networks there are no groups.

Author:
ssundell

Method Summary
 void addGroup(Group group)
          Create a new group.
 void deleteGroup(Group group)
          Remove a group.
 java.util.Hashtable getGroups()
          Get a list of available groups.
 void inviteUser(Group group, User user)
          Invite a user into a group.
 void joinGroup(Group group)
          Join a group.
 void leaveGroup(Group group)
          Leave a group.
 
Methods inherited from interface fi.hut.tml.xsmiles.comm.events.CommEventSender
addEventListener, dispatchEvent, removeEventListener
 

Method Detail

getGroups

public java.util.Hashtable getGroups()
Get a list of available groups.


addGroup

public void addGroup(Group group)
Create a new group.

Parameters:
group -

deleteGroup

public void deleteGroup(Group group)
Remove a group.

Parameters:
group -

joinGroup

public void joinGroup(Group group)
Join a group.

Parameters:
group -

leaveGroup

public void leaveGroup(Group group)
Leave a group.

Parameters:
group -

inviteUser

public void inviteUser(Group group,
                       User user)
Invite a user into a group.

Parameters:
group -
user -


X-Smiles 1.2