Class ChangeSummary
java.lang.Object
com.broadleafcommerce.sandbox.domain.ChangeSummary
- All Implemented Interfaces:
Serializable
Detailed summary information of a change made to an instance of a sandboxable entity. Each
summary is unique for it's combination of
domainContextId
, domainAlias
,
author
, sandbox
, and state
.- Author:
- Chad Harchar (charchar)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The archival state.The author responsible for the change.All of the information contained withinTracking
for the original record (domainAlias
+domainContextId
) of this change.The name to display to the user that represents this change summary.Changes that have been promoted in advance of the current change represented in this ChangeInfo.Whether this change is identified as divergent, meaning it is aChangeState.USER
change that requires a rebase due to a higher level change before advancing.The projection domain alias for this change, represented as the class simple name, i.e., Product.The contextId of the domain object that underwent the change.The entity type for this change, represented as the fully qualified classname.Any exceptions that result from this change summary.getId()
Unique identifier for this change summary.If the change implementsIndexable
and is a member ofBatchIndexableType
, reference the contextId of the target item to be indexed.If the change implementsIndexable
and is a member ofBatchIndexableType
, reference the string value ofBatchIndexableType
here for the target item to be indexed.The most recentChangeDeploy
to be associated with this summary.The most recentChangeSummaryGroup
to be associated with this summary.The identifier given to this change summary during a promotionThe message given to this change summary during rejection.The sandbox that contains the change.getState()
The currentstate
of this change summary.The currentstatus
of this change summary.The time that the status last changed.If the corresponding entity was changed within a particular vendor, this field should contain the value of that vendor code or ID.int
hashCode()
boolean
In the case ofPropagationType.REQUIRES_APPROVAL
, sandbox state for the incoming change is created at the application level for approval.void
setArchived
(Boolean archived) The archival state.void
The author responsible for the change.void
setChangeTracking
(ChangeTracking changeTracking) All of the information contained withinTracking
for the original record (domainAlias
+domainContextId
) of this change.void
setDisplayName
(String displayName) The name to display to the user that represents this change summary.void
setDivergedChanges
(List<DivergedChange> divergedChanges) Changes that have been promoted in advance of the current change represented in this ChangeInfo.void
setDivergentStatus
(String divergentStatus) Whether this change is identified as divergent, meaning it is aChangeState.USER
change that requires a rebase due to a higher level change before advancing.void
setDomainAlias
(String domainAlias) The projection domain alias for this change, represented as the class simple name, i.e., Product.void
setDomainContextId
(String domainContextId) The contextId of the domain object that underwent the change.void
setEntityType
(String entityType) The entity type for this change, represented as the fully qualified classname.void
setException
(String exception) Any exceptions that result from this change summary.void
Unique identifier for this change summary.void
setIndexableTargetId
(String indexableTargetId) If the change implementsIndexable
and is a member ofBatchIndexableType
, reference the contextId of the target item to be indexed.void
setIndexableType
(String indexableType) If the change implementsIndexable
and is a member ofBatchIndexableType
, reference the string value ofBatchIndexableType
here for the target item to be indexed.void
setLastDeployRelation
(String lastDeployRelation) The most recentChangeDeploy
to be associated with this summary.void
setLastGroupRelation
(String lastGroupRelation) The most recentChangeSummaryGroup
to be associated with this summary.void
setPromotionId
(String promotionId) The identifier given to this change summary during a promotionvoid
setRejectMessage
(String rejectMessage) The message given to this change summary during rejection.void
setRemoveTemporaryOverride
(boolean isRemoveTemporaryOverride) In the case ofPropagationType.REQUIRES_APPROVAL
, sandbox state for the incoming change is created at the application level for approval.void
setSandbox
(String sandbox) The sandbox that contains the change.void
The currentstate
of this change summary.void
The currentstatus
of this change summary.void
setStatusChangeTime
(Instant statusChangeTime) The time that the status last changed.void
setVendorRef
(String vendorRef) If the corresponding entity was changed within a particular vendor, this field should contain the value of that vendor code or ID.toString()
-
Constructor Details
-
ChangeSummary
public ChangeSummary()
-
-
Method Details
-
getId
Unique identifier for this change summary.- Returns:
- Unique identifier for this change summary
-
getDomainContextId
The contextId of the domain object that underwent the change.- Returns:
- The contextId of the domain object that underwent the change
-
getDomainAlias
The projection domain alias for this change, represented as the class simple name, i.e., Product.- Returns:
- The projection domain alias for this change
-
getEntityType
The entity type for this change, represented as the fully qualified classname.- Returns:
- The entity type for this change
-
getAuthor
The author responsible for the change.- Returns:
- The author responsible for this change
-
getSandbox
The sandbox that contains the change.- Returns:
- The sandbox that contains the change
-
getChangeTracking
All of the information contained withinTracking
for the original record (domainAlias
+domainContextId
) of this change.- Returns:
- All of the information contained within
Tracking
for the record of this change
-
getState
The currentstate
of this change summary. This will change only when thestatus
changes to a completed type, i.e.,ChangeStatusType.REJECTED
,ChangeStatusType.FINISHED
, or an error status.- Returns:
- The current
state
of this change summary
-
getStatusChangeTime
The time that the status last changed.- Returns:
- The time that the status last changed
-
getStatus
The currentstatus
of this change summary.- Returns:
- The current
status
of this change summary
-
getDisplayName
The name to display to the user that represents this change summary. Typically retrieved fromTrackable.getDisplay()
.- Returns:
- The name to display to the user that represents this change summary
-
getException
Any exceptions that result from this change summary.- Returns:
- Any exceptions that result from this change summary
-
getRejectMessage
The message given to this change summary during rejection.- Returns:
- The message given to this change summary during rejection
-
getPromotionId
The identifier given to this change summary during a promotion- Returns:
- The identifier given to this change summary during a promotion
-
getArchived
The archival state. Archived records are generally filtered from fetch results. Records are often archived at this level as a result of a completed reversion.- Returns:
- The archival state
-
getDivergentStatus
Whether this change is identified as divergent, meaning it is aChangeState.USER
change that requires a rebase due to a higher level change before advancing. By default, this value will beDivergentStatus.UNKNOWN
, meaning the summary has not been evaluated for divergence. This value is generally set via some post processing routine for those flows that are concerned with detection of divergent state.- Returns:
- Whether this change is identified as divergent, meaning it is a
ChangeState.USER
change that requires a rebase due to a higher level change before advancing - See Also:
-
getDivergedChanges
Changes that have been promoted in advance of the current change represented in this ChangeInfo. The base from which the current ChangeSummary is derived has diverged as a result of these changes.- Returns:
- Changes that have been promoted in advance of the current ChangeInfo
-
getIndexableType
If the change implementsIndexable
and is a member ofBatchIndexableType
, reference the string value ofBatchIndexableType
here for the target item to be indexed. Note, this may not be the entity actually being changed here. If, for example, this change is for aCatalogProduct
, the target item to be indexed is actually the referenced product.- Returns:
- The string value of
BatchIndexableType
here for the target item to be indexed
-
getIndexableTargetId
If the change implementsIndexable
and is a member ofBatchIndexableType
, reference the contextId of the target item to be indexed. Note, this may not be the entity actually being changed here. If, for example, this change is for aCatalogProduct
, the target item to be indexed is actually the referenced product.- Returns:
- The contextId of the target item to be indexed
-
isRemoveTemporaryOverride
public boolean isRemoveTemporaryOverride()In the case ofPropagationType.REQUIRES_APPROVAL
, sandbox state for the incoming change is created at the application level for approval. If there is not already an application override, a temporary override is put into place to cover hiding the incoming changes from production until the change completes its lifecycle. At the point where the application-level change is either reverted or deployed, the system will evaluate the temporary override for possible removal if no additional changes were made during the application level sandbox lifecycle (in order to maintain sparse overrides). This flag determines if the system should perform this completion evaluation and possibly remove the temporary override.- Returns:
- If the system should perform this completion evaluation and possibly remove the temporary override
-
getVendorRef
If the corresponding entity was changed within a particular vendor, this field should contain the value of that vendor code or ID. Otherwise, if non-vendor data is affected, then this field should benull
.If vendor processing is enabled, this will affect which summaries a vendor-restricted user can view and operate on.
- See Also:
-
ChangeEvent.getVendorRef()
-
getLastGroupRelation
The most recentChangeSummaryGroup
to be associated with this summary. -
getLastDeployRelation
The most recentChangeDeploy
to be associated with this summary. -
setId
Unique identifier for this change summary.- Parameters:
id
- Unique identifier for this change summary
-
setDomainContextId
The contextId of the domain object that underwent the change.- Parameters:
domainContextId
- The contextId of the domain object that underwent the change
-
setDomainAlias
The projection domain alias for this change, represented as the class simple name, i.e., Product.- Parameters:
domainAlias
- The projection domain alias for this change
-
setEntityType
The entity type for this change, represented as the fully qualified classname.- Parameters:
entityType
- The entity type for this change
-
setAuthor
The author responsible for the change.- Parameters:
author
- The author responsible for this change
-
setSandbox
The sandbox that contains the change.- Parameters:
sandbox
- The sandbox that contains the change
-
setChangeTracking
All of the information contained withinTracking
for the original record (domainAlias
+domainContextId
) of this change.- Parameters:
changeTracking
- All of the information contained withinTracking
for the record of this change
-
setState
The currentstate
of this change summary. This will change only when thestatus
changes to a completed type, i.e.,ChangeStatusType.REJECTED
,ChangeStatusType.FINISHED
, or an error status.- Parameters:
state
- The currentstate
of this change summary
-
setStatusChangeTime
The time that the status last changed.- Parameters:
statusChangeTime
- The time that the status last changed.
-
setStatus
The currentstatus
of this change summary.- Parameters:
state
- The currentstatus
of this change summary
-
setDisplayName
The name to display to the user that represents this change summary. Typically retrieved fromTrackable.getDisplay()
.- Parameters:
displayName
- The name to display to the user that represents this change summary
-
setException
Any exceptions that result from this change summary.- Parameters:
exception
- Any exceptions that result from this change summary
-
setRejectMessage
The message given to this change summary during rejection.- Parameters:
rejectMessage
- The message given to this change summary during rejection
-
setPromotionId
The identifier given to this change summary during a promotion- Parameters:
promotionId
- The identifier given to this change summary during a promotion
-
setArchived
The archival state. Archived records are generally filtered from fetch results. Records are often archived at this level as a result of a completed reversion.- Parameters:
archived
- Whether this summary should be filtered from fetch results
-
setDivergentStatus
Whether this change is identified as divergent, meaning it is aChangeState.USER
change that requires a rebase due to a higher level change before advancing. By default, this value will beDivergentStatus.UNKNOWN
, meaning the summary has not been evaluated for divergence. This value is generally set via some post processing routine for those flows that are concerned with detection of divergent state.- Parameters:
divergentStatus
- Whether this change is identified as divergent, meaning it is aChangeState.USER
change that requires a rebase due to a higher level change before advancing- See Also:
-
setDivergedChanges
Changes that have been promoted in advance of the current change represented in this ChangeInfo. The base from which the current ChangeSummary is derived has diverged as a result of these changes.- Parameters:
divergedChanges
- Changes that have been promoted in advance of the current ChangeInfo
-
setIndexableType
If the change implementsIndexable
and is a member ofBatchIndexableType
, reference the string value ofBatchIndexableType
here for the target item to be indexed. Note, this may not be the entity actually being changed here. If, for example, this change is for aCatalogProduct
, the target item to be indexed is actually the referenced product.- Parameters:
indexableType
- The string value ofBatchIndexableType
here for the target item to be indexed
-
setIndexableTargetId
If the change implementsIndexable
and is a member ofBatchIndexableType
, reference the contextId of the target item to be indexed. Note, this may not be the entity actually being changed here. If, for example, this change is for aCatalogProduct
, the target item to be indexed is actually the referenced product.- Parameters:
indexableTargetId
- The contextId of the target item to be indexed
-
setRemoveTemporaryOverride
public void setRemoveTemporaryOverride(boolean isRemoveTemporaryOverride) In the case ofPropagationType.REQUIRES_APPROVAL
, sandbox state for the incoming change is created at the application level for approval. If there is not already an application override, a temporary override is put into place to cover hiding the incoming changes from production until the change completes its lifecycle. At the point where the application-level change is either reverted or deployed, the system will evaluate the temporary override for possible removal if no additional changes were made during the application level sandbox lifecycle (in order to maintain sparse overrides). This flag determines if the system should perform this completion evaluation and possibly remove the temporary override.- Parameters:
isRemoveTemporaryOverride
- If the system should perform this completion evaluation and possibly remove the temporary override
-
setVendorRef
If the corresponding entity was changed within a particular vendor, this field should contain the value of that vendor code or ID. Otherwise, if non-vendor data is affected, then this field should benull
.If vendor processing is enabled, this will affect which summaries a vendor-restricted user can view and operate on.
- See Also:
-
ChangeEvent.getVendorRef()
-
setLastGroupRelation
The most recentChangeSummaryGroup
to be associated with this summary. -
setLastDeployRelation
The most recentChangeDeploy
to be associated with this summary. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-