Interface IDssSessionAuthorizer
-
public interface IDssSessionAuthorizerRole 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ch.systemsx.cisd.common.exceptions.StatuscheckDatasetAccess(java.lang.String sessionToken, java.lang.String datasetCode)Checks whether the session identified by sessionToken is authorized to access the given datasetCode.ch.systemsx.cisd.common.exceptions.StatuscheckDatasetAccess(java.lang.String sessionToken, java.util.List<java.lang.String> datasetCodes)Checks whether the session identified by sessionToken is authorized to access the given datasetCodes.ch.systemsx.cisd.common.exceptions.StatuscheckExperimentWriteable(java.lang.String sessionToken, java.lang.String experimentIdentifier)Checks whether the session identified by sessionToken is authorized to write to the given experimentIdentifier.ch.systemsx.cisd.common.exceptions.StatuscheckInstanceAdminAuthorization(java.lang.String sessionToken)Checks whether the session identified by sessionToken has openBIS instance admin privileges.ch.systemsx.cisd.common.exceptions.StatuscheckProjectPowerUserAuthorization(java.lang.String sessionToken)Checks whether the session identified by sessionToken has openBIS project power user privileges.ch.systemsx.cisd.common.exceptions.StatuscheckSampleWriteable(java.lang.String sessionToken, java.lang.String sampleIdentifier)Checks whether the session identified by sessionToken is authorized to write to the given sampleIdentifier.ch.systemsx.cisd.common.exceptions.StatuscheckSpaceWriteable(java.lang.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 Detail
-
checkDatasetAccess
ch.systemsx.cisd.common.exceptions.Status checkDatasetAccess(java.lang.String sessionToken, java.lang.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(java.lang.String sessionToken, java.util.List<java.lang.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.
-
checkSpaceWriteable
ch.systemsx.cisd.common.exceptions.Status checkSpaceWriteable(java.lang.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.OKif the access is granted, an error status otherwise.
-
checkExperimentWriteable
ch.systemsx.cisd.common.exceptions.Status checkExperimentWriteable(java.lang.String sessionToken, java.lang.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(java.lang.String sessionToken, java.lang.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
ch.systemsx.cisd.common.exceptions.Status checkInstanceAdminAuthorization(java.lang.String sessionToken)
Checks whether the session identified by sessionToken has openBIS instance admin privileges.- Returns:
Status.OKif the access is granted, an error status otherwise.
-
checkProjectPowerUserAuthorization
ch.systemsx.cisd.common.exceptions.Status checkProjectPowerUserAuthorization(java.lang.String sessionToken)
Checks whether the session identified by sessionToken has openBIS project power user privileges.- Returns:
Status.OKif the access is granted, an error status otherwise.
-
-