|
||||||||||
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 Group
public String getId()
Group
getId
in class Group
public String getName()
Group
getName
in class Group
public int getNbUsers()
Group
com.stratelia.webactiv.beans.admin.Group#getTotalNbUsers
method instead.
getNbUsers
in class Group
public int getTotalNbUsers()
Group
getTotalNbUsers
in class Group
public String getSpecificId()
Group
getSpecificId
in class Group
public void setDescription(String newDescription)
Group
setDescription
in class Group
public void setId(String newId)
Group
setId
in class Group
public void setName(String newName)
Group
setName
in class Group
public String getDomainId()
Group
getDomainId
in class Group
public String getSuperGroupId()
Group
getSuperGroupId
in class Group
public void setDomainId(String newDomainId)
Group
setDomainId
in class Group
public void setSpecificId(String newSpecificId)
Group
setSpecificId
in class Group
public void setSuperGroupId(String newSuperGroupId)
Group
setSuperGroupId
in class Group
public String getDomainName()
public List<? extends Group> getSubGroups()
Group
getSubGroups
in class Group
public void traceGroup()
Group
traceGroup
in class Group
public void setUserIds(String[] sUserIds)
Group
setUserIds
in class Group
public void setRule(String rule)
setRule
in class Group
public boolean isSynchronized()
isSynchronized
in class Group
public boolean isRoot()
Group
isRoot
in class Group
public String[] getUserIds()
Group
getUserIds
in class Group
public String getRule()
getRule
in class Group
public int compareTo(Group o)
compareTo
in interface Comparable<Group>
compareTo
in class Group
public boolean equals(Object obj)
equals
in class Group
public int hashCode()
hashCode
in class Group
public URI getURI()
Exposable
getURI
in interface Exposable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |