Package org.eclipse.edc.demo.dcp.policy
Class DataAccessLevelFunction<C extends org.eclipse.edc.participant.spi.ParticipantAgentPolicyContext>
java.lang.Object
org.eclipse.edc.demo.dcp.policy.AbstractCredentialEvaluationFunction
org.eclipse.edc.demo.dcp.policy.DataAccessLevelFunction<C>
- All Implemented Interfaces:
org.eclipse.edc.policy.engine.spi.AtomicConstraintRuleFunction<org.eclipse.edc.policy.model.Duty,C>
public class DataAccessLevelFunction<C extends org.eclipse.edc.participant.spi.ParticipantAgentPolicyContext>
extends AbstractCredentialEvaluationFunction
implements org.eclipse.edc.policy.engine.spi.AtomicConstraintRuleFunction<org.eclipse.edc.policy.model.Duty,C>
-
Field Summary
Fields inherited from class org.eclipse.edc.demo.dcp.policy.AbstractCredentialEvaluationFunction
MVD_NAMESPACE -
Method Summary
Modifier and TypeMethodDescriptionstatic <C extends org.eclipse.edc.participant.spi.ParticipantAgentPolicyContext>
DataAccessLevelFunction<C>create()booleanevaluate(org.eclipse.edc.policy.model.Operator operator, Object rightOperand, org.eclipse.edc.policy.model.Duty duty, C policyContext) Methods inherited from class org.eclipse.edc.demo.dcp.policy.AbstractCredentialEvaluationFunction
getCredentialListMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.edc.policy.engine.spi.AtomicConstraintRuleFunction
name, validate
-
Method Details
-
create
public static <C extends org.eclipse.edc.participant.spi.ParticipantAgentPolicyContext> DataAccessLevelFunction<C> create() -
evaluate
public boolean evaluate(org.eclipse.edc.policy.model.Operator operator, Object rightOperand, org.eclipse.edc.policy.model.Duty duty, C policyContext) - Specified by:
evaluatein interfaceorg.eclipse.edc.policy.engine.spi.AtomicConstraintRuleFunction<org.eclipse.edc.policy.model.Duty,C extends org.eclipse.edc.participant.spi.ParticipantAgentPolicyContext>
-