Interface ApproverHierarchy


public interface ApproverHierarchy

Describes the order in which Associates can approve the matched Order.


Example to create an instance using the builder pattern

     ApproverHierarchy approverHierarchy = ApproverHierarchy.builder()
             .plusTiers(tiersBuilder -> tiersBuilder)
             .build()
 
  • Method Details

    • getTiers

      @NotNull @Valid @NotNull @Valid List<ApproverConjunction> getTiers()

      All of the nested conjunctions must be approved in order for the hierarchy to be considered approved.

      Returns:
      tiers
    • setTiers

      void setTiers(ApproverConjunction... tiers)

      All of the nested conjunctions must be approved in order for the hierarchy to be considered approved.

      Parameters:
      tiers - values to be set
    • setTiers

      void setTiers(List<ApproverConjunction> tiers)

      All of the nested conjunctions must be approved in order for the hierarchy to be considered approved.

      Parameters:
      tiers - values to be set
    • of

      static ApproverHierarchy of()
      factory method
      Returns:
      instance of ApproverHierarchy
    • of

      static ApproverHierarchy of(ApproverHierarchy template)
      factory method to create a shallow copy ApproverHierarchy
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of ApproverHierarchy
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static ApproverHierarchyBuilder builder()
      builder factory method for ApproverHierarchy
      Returns:
      builder
    • builder

      static ApproverHierarchyBuilder builder(ApproverHierarchy template)
      create builder for ApproverHierarchy instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withApproverHierarchy

      default <T> T withApproverHierarchy(Function<ApproverHierarchy,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ApproverHierarchy> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference