|
Openfire 3.3.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.group.Group
public class Group
Groups organize users into a single entity for easier management.
The actual group implementation is controlled by the GroupProvider
, which
includes things like the group name, the members, and adminstrators. Each group
also has properties, which are always stored in the Openfire database.
GroupManager.createGroup(String)
,
Serialized FormConstructor Summary | |
---|---|
Group(String name,
String description,
Collection<JID> members,
Collection<JID> administrators)
Constructs a new group. |
Method Summary | |
---|---|
boolean |
equals(Object object)
|
Collection<JID> |
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<JID> |
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. |
int |
hashCode()
|
boolean |
isUser(JID user)
Returns true if the provided JID belongs to a user that is part 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. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Group(String name, String description, Collection<JID> members, Collection<JID> administrators)
GroupProvider
interface. To create a new group, use the
GroupManager.createGroup(String)
method.
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 String toString()
toString
in class Object
public Map<String,String> getProperties()
public Collection<JID> getAdmins()
public Collection<JID> getMembers()
public boolean isUser(JID user)
user
- the JID address of the user to check.
public boolean isUser(String username)
username
- the username to check.
public int getCachedSize()
Cacheable
getCachedSize
in interface Cacheable
public int hashCode()
hashCode
in class Object
public boolean equals(Object object)
equals
in class Object
|
Openfire 3.3.2 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |