|
Openfire 3.4.5 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()
Constructor added for Externalizable. |
|
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 |
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<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
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
Openfire 3.4.5 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |