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 SummaryConstructors Constructor Description SpaceWithProjectsAndRoleAssignments(java.lang.String code)Creates a new instance for the specified code.
 - 
Method SummaryAll 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- 
getCodepublic java.lang.String getCode() Returns the space code.- Specified by:
- getCodein interface- ICodeHolder
 
 - 
addpublic void add(Project project) 
 - 
getProjectspublic java.util.List<Project> getProjects() Returns all projects of this space.
 - 
addpublic void add(java.lang.String user, Role role)
 - 
getRolespublic java.util.Set<Role> getRoles(java.lang.String userID) Returns all access roles the specified user has on this space.
 - 
getUserspublic java.util.Set<java.lang.String> getUsers() Returns the set of all users that have a role in this space.
 
- 
 
-