|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.messenger.group.Group
public class Group
Groups organize users into a single entity for easier management.
GroupManager.createGroup(String)
,
Serialized FormConstructor Summary | |
---|---|
Group(GroupProvider provider,
String name,
String description,
Collection<String> members,
Collection<String> administrators)
Constructs a new group. |
Method Summary | |
---|---|
Collection<String> |
getAdmins()
Returns a Collection of the group administrators. |
int |
getCachedSize()
Returns the approximate size of the Object in bytes. |
String |
getDescription()
Returns the description of the group. |
Collection<String> |
getMembers()
Returns a Collection of the group members. |
String |
getName()
Returns the name of the group. |
Map<String,String> |
getProperties()
Returns all extended properties of the group. |
boolean |
isUser(String username)
Returns true if the provided username belongs to a user of the group. |
void |
setDescription(String description)
Sets the description of the group. |
void |
setName(String name)
Sets the name of the group. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Group(GroupProvider provider, String name, String description, Collection<String> members, Collection<String> administrators)
GroupProvider
interface. To create a new group, use the
GroupManager.createGroup(String)
method.
provider
- the group provider.name
- the name.description
- the description.members
- a Collection of the group members.administrators
- a Collection of the group administrators.Method Detail |
---|
public String getName()
public void setName(String name)
name
- the name for the group.public String getDescription()
public void setDescription(String description)
description
- the description of the group.public Map<String,String> getProperties()
public Collection<String> getAdmins()
public Collection<String> getMembers()
public boolean isUser(String username)
username
- the username to check.
public int getCachedSize()
Cacheable
getCachedSize
in interface Cacheable
|
Jive Messenger 2.2.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |