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 Detail

      • 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