Interface Decision<D extends Evaluation>

All Known Implementing Classes:
AbstractDecisionCollector, DecisionPermissionCollector, DecisionResultCollector, PermissionTicketAwareDecisionResultCollector, PolicyEvaluationService.EvaluationDecisionCollector

public interface Decision<D extends Evaluation>
Author:
Pedro Igor
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Checks if the given scope is associated with any policy processed in this decision.
    default void
     
    default void
     
    void
    onDecision(D evaluation)
     
    default void
     
  • Method Details

    • onDecision

      void onDecision(D evaluation)
    • onError

      default void onError(Throwable cause)
    • onComplete

      default void onComplete()
    • onComplete

      default void onComplete(ResourcePermission permission)
    • isEvaluated

      default boolean isEvaluated(String scope)
      Checks if the given scope is associated with any policy processed in this decision.
      Parameters:
      scope - the scope name
      Returns:
      true if the scope is associated with a policy. Otherwise, false.