Class AbstractDataSetAccessPredicate<T,D>
- java.lang.Object
-
- ch.systemsx.cisd.openbis.dss.generic.shared.api.internal.authorization.AbstractDataSetAccessPredicate<T,D>
-
- All Implemented Interfaces:
IAuthorizationGuardPredicate<T,D>
,IDataSetPredicate<D>
- Direct Known Subclasses:
DataSetCodeStringPredicate
,DataSetFileDTOPredicate
,DatasetIdentifierPredicate
,SingleDataSetIdentifierPredicate
public abstract class AbstractDataSetAccessPredicate<T,D> extends java.lang.Object implements IAuthorizationGuardPredicate<T,D>
Abstract super class of all implementations checking data set access.
-
-
Constructor Summary
Constructors Constructor Description AbstractDataSetAccessPredicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ch.systemsx.cisd.common.exceptions.Status
evaluate(T receiver, java.lang.String sessionToken, D argument)
Evaluate the predicate for the receiver object, sessionToken, and predicate argument.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.systemsx.cisd.openbis.dss.generic.shared.api.internal.v1.IDataSetPredicate
getDataSetCodes
-
-
-
-
Method Detail
-
evaluate
public ch.systemsx.cisd.common.exceptions.Status evaluate(T receiver, java.lang.String sessionToken, D argument) throws ch.systemsx.cisd.common.exceptions.UserFailureException
Description copied from interface:IAuthorizationGuardPredicate
Evaluate the predicate for the receiver object, sessionToken, and predicate argument.- Specified by:
evaluate
in interfaceIAuthorizationGuardPredicate<T,D>
- Parameters:
receiver
- The object on which the guarded method was calledsessionToken
- A token identifying the userargument
- The argument to the predicate- Returns:
- Status.OK if the action is allowed, Status.createError() otherwise.
- Throws:
ch.systemsx.cisd.common.exceptions.UserFailureException
-
-