|
Openfire 3.8.2 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 Form| Constructor Summary | |
|---|---|
Group()
Constructor added for Externalizable. |
|
Group(String name,
String description,
Collection<org.xmpp.packet.JID> members,
Collection<org.xmpp.packet.JID> administrators)
Constructs a new group. |
|
Group(String name,
String description,
Collection<org.xmpp.packet.JID> members,
Collection<org.xmpp.packet.JID> administrators,
Map<String,String> properties)
Constructs a new group. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
|
Collection<org.xmpp.packet.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<org.xmpp.packet.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(org.xmpp.packet.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 |
readExternal(ObjectInput in)
|
void |
setDescription(String description)
Sets the description of the group. |
void |
setName(String name)
Sets the name of the group. |
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Group()
public Group(String name,
String description,
Collection<org.xmpp.packet.JID> members,
Collection<org.xmpp.packet.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.
public Group(String name,
String description,
Collection<org.xmpp.packet.JID> members,
Collection<org.xmpp.packet.JID> administrators,
Map<String,String> properties)
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.properties - a Map of properties with names and its values.| 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 Objectpublic Map<String,String> getProperties()
public Collection<org.xmpp.packet.JID> getAdmins()
public Collection<org.xmpp.packet.JID> getMembers()
public boolean isUser(org.xmpp.packet.JID user)
user - the JID address of the user to check.
public boolean isUser(String username)
username - the username to check.
public int getCachedSize()
throws CannotCalculateSizeException
Cacheable
getCachedSize in interface CacheableCannotCalculateSizeExceptionpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Object
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
|
Openfire 3.8.2 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||