public interface IDssSessionAuthorizer
Role that allows to authorize calls in DSS for a given session.

This is an internal class. Do not use it as a user of the API.

  • Method Summary

    Modifier and Type
    Method
    Description
    ch.systemsx.cisd.common.exceptions.Status
    checkDatasetAccess(String sessionToken, String datasetCode)
    Checks whether the session identified by sessionToken is authorized to access the given datasetCode.
    ch.systemsx.cisd.common.exceptions.Status
    checkDatasetAccess(String sessionToken, List<String> datasetCodes)
    Checks whether the session identified by sessionToken is authorized to access the given datasetCodes.
    ch.systemsx.cisd.common.exceptions.Status
    checkExperimentWriteable(String sessionToken, String experimentIdentifier)
    Checks whether the session identified by sessionToken is authorized to write to the given experimentIdentifier.
    ch.systemsx.cisd.common.exceptions.Status
    Checks whether the session identified by sessionToken has openBIS instance admin privileges.
    ch.systemsx.cisd.common.exceptions.Status
    Checks whether the session identified by sessionToken has openBIS project power user privileges.
    ch.systemsx.cisd.common.exceptions.Status
    checkSampleWriteable(String sessionToken, String sampleIdentifier)
    Checks whether the session identified by sessionToken is authorized to write to the given sampleIdentifier.
    ch.systemsx.cisd.common.exceptions.Status
    checkSpaceWriteable(String sessionToken, ch.systemsx.cisd.openbis.generic.shared.dto.identifier.SpaceIdentifier spaceId)
    Checks whether the session identified by sessionToken is authorized to write to the given spaceId.
  • Method Details

    • checkDatasetAccess

      ch.systemsx.cisd.common.exceptions.Status checkDatasetAccess(String sessionToken, String datasetCode)
      Checks whether the session identified by sessionToken is authorized to access the given datasetCode.
      Returns:
      Status.OK if the access is granted, an error status otherwise.
    • checkDatasetAccess

      ch.systemsx.cisd.common.exceptions.Status checkDatasetAccess(String sessionToken, List<String> datasetCodes)
      Checks whether the session identified by sessionToken is authorized to access the given datasetCodes.
      Returns:
      Status.OK if the access is granted, an error status otherwise.
    • checkSpaceWriteable

      ch.systemsx.cisd.common.exceptions.Status checkSpaceWriteable(String sessionToken, ch.systemsx.cisd.openbis.generic.shared.dto.identifier.SpaceIdentifier spaceId)
      Checks whether the session identified by sessionToken is authorized to write to the given spaceId.
      Returns:
      Status.OK if the access is granted, an error status otherwise.
    • checkExperimentWriteable

      ch.systemsx.cisd.common.exceptions.Status checkExperimentWriteable(String sessionToken, String experimentIdentifier)
      Checks whether the session identified by sessionToken is authorized to write to the given experimentIdentifier.
      Returns:
      Status.OK if the access is granted, an error status otherwise.
    • checkSampleWriteable

      ch.systemsx.cisd.common.exceptions.Status checkSampleWriteable(String sessionToken, String sampleIdentifier)
      Checks whether the session identified by sessionToken is authorized to write to the given sampleIdentifier.
      Returns:
      Status.OK if the access is granted, an error status otherwise.
    • checkInstanceAdminAuthorization

      ch.systemsx.cisd.common.exceptions.Status checkInstanceAdminAuthorization(String sessionToken)
      Checks whether the session identified by sessionToken has openBIS instance admin privileges.
      Returns:
      Status.OK if the access is granted, an error status otherwise.
    • checkProjectPowerUserAuthorization

      ch.systemsx.cisd.common.exceptions.Status checkProjectPowerUserAuthorization(String sessionToken)
      Checks whether the session identified by sessionToken has openBIS project power user privileges.
      Returns:
      Status.OK if the access is granted, an error status otherwise.