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 ApproverHierarchyBuilder
builder()
builder factory method for ApproverHierarchystatic ApproverHierarchyBuilder
builder
(ApproverHierarchy template) create builder for ApproverHierarchy instancestatic ApproverHierarchy
deepCopy
(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 ApproverHierarchy
of()
factory methodstatic ApproverHierarchy
of
(ApproverHierarchy template) factory method to create a shallow copy ApproverHierarchyvoid
setTiers
(ApproverConjunction... tiers) All of the nested conjunctions must be approved in order for the hierarchy to be considered approved.void
setTiers
(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> T
withApproverHierarchy
(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
-
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
-