org.silverpeas.admin.web
Class UsersAndGroupsRoleEntity
java.lang.Object
org.silverpeas.admin.web.AbstractTypeEntity
org.silverpeas.admin.web.UsersAndGroupsRoleEntity
- All Implemented Interfaces:
- Exposable, Serializable
public class UsersAndGroupsRoleEntity
- extends AbstractTypeEntity
This entity provides the users and groups that are in the role for the parent URI that
represents, for example, a space or a component. Users and groups are represented by their URI,
user and group information are retrieved by user profile and group profile Web-Services.
- Author:
- Yohann Chastagnier
- See Also:
- Serialized Form
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
UsersAndGroupsRoleEntity
protected UsersAndGroupsRoleEntity()
createFrom
public static UsersAndGroupsRoleEntity createFrom(SilverpeasRole role,
String label)
- Creates a new entity.
- Parameters:
role
- label
-
- Returns:
withURI
public UsersAndGroupsRoleEntity withURI(URI uri)
- Sets a URI to this entity. With this URI, it can then be accessed through the Web.
- Parameters:
uri
- the web entity URI.
- Returns:
- itself.
withParentURI
public UsersAndGroupsRoleEntity withParentURI(URI parentURI)
- Sets a parent URI to this entity. It could be a space URI or a component URI for example.
- Parameters:
parentURI
- the parent web entity URI.
- Returns:
- itself.
getURI
public URI getURI()
- Description copied from interface:
Exposable
- Gets the URI at which this resource is published and can be accessed.
- Returns:
- the web resource URI.
getParentURI
protected final URI getParentURI()
getRole
public SilverpeasRole getRole()
getLabel
public String getLabel()
getUsers
public Collection<URI> getUsers()
addUser
protected UsersAndGroupsRoleEntity addUser(URI userProfileURI)
getGroups
public Collection<URI> getGroups()
addGroup
protected UsersAndGroupsRoleEntity addGroup(URI groupProfileURI)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2016 Silverpeas. All Rights Reserved.