Interface PolicyEvaluator

All Known Implementing Classes:
TrackableEntityPolicyEvaluator

public interface PolicyEvaluator
Validate security context required to execute a method annotated with Policy.
Author:
Jeff Fischer
  • Method Details

    • validate

      PolicyResponse validate(Map<Integer,Object> methodParams, PolicyInformation policy, ContextInfo contextInfo, OperationType operationType)
      Validate security context required to execute a method annotated with Policy.
      Parameters:
      methodParams - The method parameters in the method call being validated
      policy - The Policy annotation on the method
      Returns:
      The result of the validation
    • validateReadOutput

      PolicyResponse validateReadOutput(Object output, PolicyInformation policy)
      Validate the output of a read method for methods annotated with a Policy of the IdentityType.OWNER type and a matching user of the owner type (see TrackablePolicyUtils#isOwnerUser()).
      Parameters:
      output - The results of the read operation
      policy - The Policy annotation on the method
      Returns:
      The result of the validation