Interface IDssSessionAuthorizer
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 TypeMethodDescriptionch.systemsx.cisd.common.exceptions.StatuscheckDatasetAccess(String sessionToken, String datasetCode) Checks whether the session identified by sessionToken is authorized to access the given datasetCode.ch.systemsx.cisd.common.exceptions.StatuscheckDatasetAccess(String sessionToken, List<String> datasetCodes) Checks whether the session identified by sessionToken is authorized to access the given datasetCodes.ch.systemsx.cisd.common.exceptions.StatuscheckExperimentWriteable(String sessionToken, String experimentIdentifier) Checks whether the session identified by sessionToken is authorized to write to the given experimentIdentifier.ch.systemsx.cisd.common.exceptions.StatuscheckInstanceAdminAuthorization(String sessionToken) Checks whether the session identified by sessionToken has openBIS instance admin privileges.ch.systemsx.cisd.common.exceptions.StatuscheckProjectPowerUserAuthorization(String sessionToken) Checks whether the session identified by sessionToken has openBIS project power user privileges.ch.systemsx.cisd.common.exceptions.StatuscheckSampleWriteable(String sessionToken, String sampleIdentifier) Checks whether the session identified by sessionToken is authorized to write to the given sampleIdentifier.ch.systemsx.cisd.common.exceptions.StatuscheckSpaceWriteable(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.OKif 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.OKif 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.OKif 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.OKif the access is granted, an error status otherwise.
-
checkInstanceAdminAuthorization
Checks whether the session identified by sessionToken has openBIS instance admin privileges.- Returns:
Status.OKif the access is granted, an error status otherwise.
-
checkProjectPowerUserAuthorization
Checks whether the session identified by sessionToken has openBIS project power user privileges.- Returns:
Status.OKif the access is granted, an error status otherwise.
-