Class ApprovalFlowImpl
- All Implemented Interfaces:
ApprovalFlow
,BaseResource
,io.vrap.rmf.base.client.ModelBase
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Existing approvals in the Approval Flow.Business Unit the Approval Flow belongs to.Date and time (UTC) the Approval Flow was initially created.Present on resources created after 1 February 2019 except for events not tracked.Associate Roles required for approval based on the approver hierarchy tiers defined inrules
only for the currently active tier(s).Associate Roles that can approve according to the approver hierarchy tiers defined inrules
.getId()
Unique identifier of the Approval Flow.Date and time (UTC) the Approval Flow was last updated.Present on resources created after 1 February 2019 except for events not tracked.getOrder()
Order that needs to be approved.Associate Roles required for approval based on the approver hierarchy tiers defined inrules
across all remaining tiers.Present when the status of the Approval Flow isRejected
.getRules()
Approval Rules that matched the Order.Indicates whether the Approval Flow is under review, approved, or rejected.Current version of the Approval Flow.int
hashCode()
void
setApprovals
(ApprovalFlowApproval... approvals) Existing approvals in the Approval Flow.void
setApprovals
(List<ApprovalFlowApproval> approvals) Existing approvals in the Approval Flow.void
setBusinessUnit
(BusinessUnitKeyReference businessUnit) Business Unit the Approval Flow belongs to.void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the Approval Flow was initially created.void
setCreatedBy
(CreatedBy createdBy) Present on resources created after 1 February 2019 except for events not tracked.void
setCurrentTierPendingApprovers
(RuleApprover... currentTierPendingApprovers) Associate Roles required for approval based on the approver hierarchy tiers defined inrules
only for the currently active tier(s).void
setCurrentTierPendingApprovers
(List<RuleApprover> currentTierPendingApprovers) Associate Roles required for approval based on the approver hierarchy tiers defined inrules
only for the currently active tier(s).void
setEligibleApprovers
(RuleApprover... eligibleApprovers) Associate Roles that can approve according to the approver hierarchy tiers defined inrules
.void
setEligibleApprovers
(List<RuleApprover> eligibleApprovers) Associate Roles that can approve according to the approver hierarchy tiers defined inrules
.void
Unique identifier of the Approval Flow.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the Approval Flow was last updated.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) Present on resources created after 1 February 2019 except for events not tracked.void
setOrder
(OrderReference order) Order that needs to be approved.void
setPendingApprovers
(RuleApprover... pendingApprovers) Associate Roles required for approval based on the approver hierarchy tiers defined inrules
across all remaining tiers.void
setPendingApprovers
(List<RuleApprover> pendingApprovers) Associate Roles required for approval based on the approver hierarchy tiers defined inrules
across all remaining tiers.void
setRejection
(ApprovalFlowRejection rejection) Present when the status of the Approval Flow isRejected
.void
setRules
(ApprovalRule... rules) Approval Rules that matched the Order.void
setRules
(List<ApprovalRule> rules) Approval Rules that matched the Order.void
setStatus
(ApprovalFlowStatus status) Indicates whether the Approval Flow is under review, approved, or rejected.void
setVersion
(Long version) Current version of the Approval Flow.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.approval_flow.ApprovalFlow
withApprovalFlow
Methods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
ApprovalFlowImpl
public ApprovalFlowImpl()create empty instance
-
-
Method Details
-
getId
Unique identifier of the Approval Flow.
- Specified by:
getId
in interfaceApprovalFlow
- Specified by:
getId
in interfaceBaseResource
- Returns:
- id
-
getVersion
Current version of the Approval Flow.
- Specified by:
getVersion
in interfaceApprovalFlow
- Specified by:
getVersion
in interfaceBaseResource
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the Approval Flow was initially created.
- Specified by:
getCreatedAt
in interfaceApprovalFlow
- Specified by:
getCreatedAt
in interfaceBaseResource
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the Approval Flow was last updated.
- Specified by:
getLastModifiedAt
in interfaceApprovalFlow
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Returns:
- lastModifiedAt
-
getCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getCreatedBy
in interfaceApprovalFlow
- Returns:
- createdBy
-
getLastModifiedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getLastModifiedBy
in interfaceApprovalFlow
- Returns:
- lastModifiedBy
-
getOrder
Order that needs to be approved.
- Specified by:
getOrder
in interfaceApprovalFlow
- Returns:
- order
-
getBusinessUnit
Business Unit the Approval Flow belongs to.
- Specified by:
getBusinessUnit
in interfaceApprovalFlow
- Returns:
- businessUnit
-
getRules
Approval Rules that matched the Order.
- Specified by:
getRules
in interfaceApprovalFlow
- Returns:
- rules
-
getStatus
Indicates whether the Approval Flow is under review, approved, or rejected.
- Specified by:
getStatus
in interfaceApprovalFlow
- Returns:
- status
-
getRejection
Present when the status of the Approval Flow is
Rejected
.- Specified by:
getRejection
in interfaceApprovalFlow
- Returns:
- rejection
-
getApprovals
Existing approvals in the Approval Flow.
- Specified by:
getApprovals
in interfaceApprovalFlow
- Returns:
- approvals
-
getEligibleApprovers
Associate Roles that can approve according to the approver hierarchy tiers defined in
rules
. Associates are allowed to reject even after they have given approval, as long as the current approver hierarchy tier still contains their role.- Specified by:
getEligibleApprovers
in interfaceApprovalFlow
- Returns:
- eligibleApprovers
-
getPendingApprovers
Associate Roles required for approval based on the approver hierarchy tiers defined in
rules
across all remaining tiers.- Specified by:
getPendingApprovers
in interfaceApprovalFlow
- Returns:
- pendingApprovers
-
getCurrentTierPendingApprovers
Associate Roles required for approval based on the approver hierarchy tiers defined in
rules
only for the currently active tier(s).- Specified by:
getCurrentTierPendingApprovers
in interfaceApprovalFlow
- Returns:
- currentTierPendingApprovers
-
setId
Description copied from interface:ApprovalFlow
Unique identifier of the Approval Flow.
- Specified by:
setId
in interfaceApprovalFlow
- Specified by:
setId
in interfaceBaseResource
- Parameters:
id
- value to be set
-
setVersion
Description copied from interface:ApprovalFlow
Current version of the Approval Flow.
- Specified by:
setVersion
in interfaceApprovalFlow
- Specified by:
setVersion
in interfaceBaseResource
- Parameters:
version
- value to be set
-
setCreatedAt
Description copied from interface:ApprovalFlow
Date and time (UTC) the Approval Flow was initially created.
- Specified by:
setCreatedAt
in interfaceApprovalFlow
- Specified by:
setCreatedAt
in interfaceBaseResource
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Description copied from interface:ApprovalFlow
Date and time (UTC) the Approval Flow was last updated.
- Specified by:
setLastModifiedAt
in interfaceApprovalFlow
- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Parameters:
lastModifiedAt
- value to be set
-
setCreatedBy
Description copied from interface:ApprovalFlow
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setCreatedBy
in interfaceApprovalFlow
- Parameters:
createdBy
- value to be set
-
setLastModifiedBy
Description copied from interface:ApprovalFlow
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setLastModifiedBy
in interfaceApprovalFlow
- Parameters:
lastModifiedBy
- value to be set
-
setOrder
Description copied from interface:ApprovalFlow
Order that needs to be approved.
- Specified by:
setOrder
in interfaceApprovalFlow
- Parameters:
order
- value to be set
-
setBusinessUnit
Description copied from interface:ApprovalFlow
Business Unit the Approval Flow belongs to.
- Specified by:
setBusinessUnit
in interfaceApprovalFlow
- Parameters:
businessUnit
- value to be set
-
setRules
Description copied from interface:ApprovalFlow
Approval Rules that matched the Order.
- Specified by:
setRules
in interfaceApprovalFlow
- Parameters:
rules
- values to be set
-
setRules
Description copied from interface:ApprovalFlow
Approval Rules that matched the Order.
- Specified by:
setRules
in interfaceApprovalFlow
- Parameters:
rules
- values to be set
-
setStatus
Description copied from interface:ApprovalFlow
Indicates whether the Approval Flow is under review, approved, or rejected.
- Specified by:
setStatus
in interfaceApprovalFlow
- Parameters:
status
- value to be set
-
setRejection
Description copied from interface:ApprovalFlow
Present when the status of the Approval Flow is
Rejected
.- Specified by:
setRejection
in interfaceApprovalFlow
- Parameters:
rejection
- value to be set
-
setApprovals
Description copied from interface:ApprovalFlow
Existing approvals in the Approval Flow.
- Specified by:
setApprovals
in interfaceApprovalFlow
- Parameters:
approvals
- values to be set
-
setApprovals
Description copied from interface:ApprovalFlow
Existing approvals in the Approval Flow.
- Specified by:
setApprovals
in interfaceApprovalFlow
- Parameters:
approvals
- values to be set
-
setEligibleApprovers
Description copied from interface:ApprovalFlow
Associate Roles that can approve according to the approver hierarchy tiers defined in
rules
. Associates are allowed to reject even after they have given approval, as long as the current approver hierarchy tier still contains their role.- Specified by:
setEligibleApprovers
in interfaceApprovalFlow
- Parameters:
eligibleApprovers
- values to be set
-
setEligibleApprovers
Description copied from interface:ApprovalFlow
Associate Roles that can approve according to the approver hierarchy tiers defined in
rules
. Associates are allowed to reject even after they have given approval, as long as the current approver hierarchy tier still contains their role.- Specified by:
setEligibleApprovers
in interfaceApprovalFlow
- Parameters:
eligibleApprovers
- values to be set
-
setPendingApprovers
Description copied from interface:ApprovalFlow
Associate Roles required for approval based on the approver hierarchy tiers defined in
rules
across all remaining tiers.- Specified by:
setPendingApprovers
in interfaceApprovalFlow
- Parameters:
pendingApprovers
- values to be set
-
setPendingApprovers
Description copied from interface:ApprovalFlow
Associate Roles required for approval based on the approver hierarchy tiers defined in
rules
across all remaining tiers.- Specified by:
setPendingApprovers
in interfaceApprovalFlow
- Parameters:
pendingApprovers
- values to be set
-
setCurrentTierPendingApprovers
Description copied from interface:ApprovalFlow
Associate Roles required for approval based on the approver hierarchy tiers defined in
rules
only for the currently active tier(s).- Specified by:
setCurrentTierPendingApprovers
in interfaceApprovalFlow
- Parameters:
currentTierPendingApprovers
- values to be set
-
setCurrentTierPendingApprovers
Description copied from interface:ApprovalFlow
Associate Roles required for approval based on the approver hierarchy tiers defined in
rules
only for the currently active tier(s).- Specified by:
setCurrentTierPendingApprovers
in interfaceApprovalFlow
- Parameters:
currentTierPendingApprovers
- values to be set
-
equals
-
hashCode
public int hashCode()
-