Class SpaceWithProjectsAndRoleAssignments
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SpaceWithProjectsAndRoleAssignments
-
- All Implemented Interfaces:
ICodeHolder,java.io.Serializable
@JsonObject("SpaceWithProjectsAndRoleAssignments") public class SpaceWithProjectsAndRoleAssignments extends java.lang.Object implements ICodeHolder, java.io.SerializableBean which represents a space, all its projects, and all its relevant role assignments- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SpaceWithProjectsAndRoleAssignments(java.lang.String code)Creates a new instance for the specified code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Project project)voidadd(java.lang.String user, Role role)java.lang.StringgetCode()Returns the space code.java.util.List<Project>getProjects()Returns all projects of this space.java.util.Set<Role>getRoles(java.lang.String userID)Returns all access roles the specified user has on this space.java.util.Set<java.lang.String>getUsers()Returns the set of all users that have a role in this space.
-
-
-
Method Detail
-
getCode
public java.lang.String getCode()
Returns the space code.- Specified by:
getCodein interfaceICodeHolder
-
add
public void add(Project project)
-
getProjects
public java.util.List<Project> getProjects()
Returns all projects of this space.
-
add
public void add(java.lang.String user, Role role)
-
getRoles
public java.util.Set<Role> getRoles(java.lang.String userID)
Returns all access roles the specified user has on this space.
-
getUsers
public java.util.Set<java.lang.String> getUsers()
Returns the set of all users that have a role in this space.
-
-