Class SpaceWithProjectsAndRoleAssignments

java.lang.Object
ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.SpaceWithProjectsAndRoleAssignments
All Implemented Interfaces:
ICodeHolder, Serializable

@JsonObject("SpaceWithProjectsAndRoleAssignments") public class SpaceWithProjectsAndRoleAssignments extends Object implements ICodeHolder, Serializable
Bean which represents a space, all its projects, and all its relevant role assignments
See Also:
  • Constructor Details

    • SpaceWithProjectsAndRoleAssignments

      public SpaceWithProjectsAndRoleAssignments(String code)
      Creates a new instance for the specified code.
      Throws:
      IllegalArgumentException - if the code is null or an empty string.
  • Method Details

    • getCode

      public String getCode()
      Returns the space code.
      Specified by:
      getCode in interface ICodeHolder
    • add

      public void add(Project project)
    • getProjects

      public List<Project> getProjects()
      Returns all projects of this space.
    • add

      public void add(String user, Role role)
    • getRoles

      public Set<Role> getRoles(String userID)
      Returns all access roles the specified user has on this space.
    • getUsers

      public Set<String> getUsers()
      Returns the set of all users that have a role in this space.