|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stratelia.webactiv.beans.admin.Group
com.silverpeas.profile.web.UserGroupProfileEntity
public class UserGroupProfileEntity
The profile of the user group exposable in the WEB. It is a web entity representing a group of users that can be serialized into a given media type (JSON, XML). It is a decorator that decorates a Group object with additional properties concerning its exposition in the WEB.
| Constructor Summary | |
|---|---|
protected |
UserGroupProfileEntity()
|
| Method Summary | |
|---|---|
int |
compareTo(Group o)
|
boolean |
equals(Object obj)
|
static UserGroupProfileEntity |
fromGroup(Group group)
Decorates the specified user group with the required WEB exposition features. |
static UserGroupProfileEntity[] |
fromGroups(List<? extends Group> groups,
URI groupsURI)
Decorates the specified user groups with required WEB exposition features. |
URI |
getChildrenUri()
Gets the URI at which its direct children groups can be retrieved. |
String |
getDescription()
Get the group description |
String |
getDomainId()
Get the domain id where the group is stored |
String |
getDomainName()
|
String |
getId()
Get the group id |
String |
getName()
Get the group name |
int |
getNbUsers()
Gets the number of direct users in this group; the users from its subgroups aren't counted. |
URI |
getParentUri()
Gets the URI of its parent group. |
String |
getRule()
|
String |
getSpecificId()
Get the group specific id |
List<? extends Group> |
getSubGroups()
Gets the direct subgroups of this user group. |
String |
getSuperGroupId()
Get the father group id |
int |
getTotalNbUsers()
Gets the total number of users in this group and in its subgroups. |
URI |
getURI()
Gets the URI at which this resource is published and can be accessed. |
String[] |
getUserIds()
Get the list of users in the group |
URI |
getUsersUri()
|
int |
hashCode()
|
boolean |
isRoot()
Is this group is a root one? |
boolean |
isSynchronized()
|
void |
setDescription(String newDescription)
Set the group description |
void |
setDomainId(String newDomainId)
Set the domain id where the group is stored |
void |
setId(String newId)
Set the group id |
void |
setName(String newName)
Set the group name |
void |
setRule(String rule)
|
void |
setSpecificId(String newSpecificId)
Set the group specific id |
void |
setSuperGroupId(String newSuperGroupId)
Set the father group id |
void |
setUserIds(String[] sUserIds)
Set the list of users in the group |
void |
traceGroup()
Trace the group's values |
UserGroupProfileEntity |
withAsUri(URI groupUri)
|
| Methods inherited from class com.stratelia.webactiv.beans.admin.Group |
|---|
getAllRoots, getAllRootsInDomain, getAllUsers, getById, getOrganisationController, setTotalNbUsers |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected UserGroupProfileEntity()
| Method Detail |
|---|
public static UserGroupProfileEntity fromGroup(Group group)
group - the user group to decorate.
public static UserGroupProfileEntity[] fromGroups(List<? extends Group> groups,
URI groupsURI)
groups - a list of user groups to decorate.groupsURI - the URI at which the specified groups are defined.
public UserGroupProfileEntity withAsUri(URI groupUri)
public URI getParentUri()
public URI getChildrenUri()
public URI getUsersUri()
public String getDescription()
Group
getDescription in class Grouppublic String getId()
Group
getId in class Grouppublic String getName()
Group
getName in class Grouppublic int getNbUsers()
Groupcom.stratelia.webactiv.beans.admin.Group#getTotalNbUsers method instead.
getNbUsers in class Grouppublic int getTotalNbUsers()
Group
getTotalNbUsers in class Grouppublic String getSpecificId()
Group
getSpecificId in class Grouppublic void setDescription(String newDescription)
Group
setDescription in class Grouppublic void setId(String newId)
Group
setId in class Grouppublic void setName(String newName)
Group
setName in class Grouppublic String getDomainId()
Group
getDomainId in class Grouppublic String getSuperGroupId()
Group
getSuperGroupId in class Grouppublic void setDomainId(String newDomainId)
Group
setDomainId in class Grouppublic void setSpecificId(String newSpecificId)
Group
setSpecificId in class Grouppublic void setSuperGroupId(String newSuperGroupId)
Group
setSuperGroupId in class Grouppublic String getDomainName()
public List<? extends Group> getSubGroups()
Group
getSubGroups in class Grouppublic void traceGroup()
Group
traceGroup in class Grouppublic void setUserIds(String[] sUserIds)
Group
setUserIds in class Grouppublic void setRule(String rule)
setRule in class Grouppublic boolean isSynchronized()
isSynchronized in class Grouppublic boolean isRoot()
Group
isRoot in class Grouppublic String[] getUserIds()
Group
getUserIds in class Grouppublic String getRule()
getRule in class Grouppublic int compareTo(Group o)
compareTo in interface Comparable<Group>compareTo in class Grouppublic boolean equals(Object obj)
equals in class Grouppublic int hashCode()
hashCode in class Grouppublic URI getURI()
Exposable
getURI in interface Exposable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||