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 Summary
Modifier and TypeMethodDescriptionstatic ApproverHierarchyBuilderbuilder()builder factory method for ApproverHierarchystatic ApproverHierarchyBuilderbuilder(ApproverHierarchy template) create builder for ApproverHierarchy instancecopyDeep()static ApproverHierarchydeepCopy(ApproverHierarchy template) factory method to create a deep copy of ApproverHierarchy@NotNull @Valid List<ApproverConjunction>getTiers()All of the nested conjunctions must be approved in order for the hierarchy to be considered approved.static ApproverHierarchyof()factory methodstatic ApproverHierarchyof(ApproverHierarchy template) factory method to create a shallow copy ApproverHierarchyvoidsetTiers(ApproverConjunction... tiers) All of the nested conjunctions must be approved in order for the hierarchy to be considered approved.voidsetTiers(List<ApproverConjunction> tiers) All of the nested conjunctions must be approved in order for the hierarchy to be considered approved.static com.fasterxml.jackson.core.type.TypeReference<ApproverHierarchy>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithApproverHierarchy(Function<ApproverHierarchy, T> helper) accessor map function
-
Method Details
-
getTiers
All of the nested conjunctions must be approved in order for the hierarchy to be considered approved.
- Returns:
- tiers
-
setTiers
All of the nested conjunctions must be approved in order for the hierarchy to be considered approved.
- Parameters:
tiers- values to be set
-
setTiers
All of the nested conjunctions must be approved in order for the hierarchy to be considered approved.
- Parameters:
tiers- values to be set
-
of
factory method- Returns:
- instance of ApproverHierarchy
-
of
factory method to create a shallow copy ApproverHierarchy- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ApproverHierarchy copyDeep() -
deepCopy
factory method to create a deep copy of ApproverHierarchy- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApproverHierarchy- Returns:
- builder
-
builder
create builder for ApproverHierarchy instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withApproverHierarchy
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-