Class ForwardMapResponse
java.lang.Object
com.broadleafcommerce.data.tracking.core.mapping.ForwardMapResponse
The result of a request to move the sandbox state of an entity forward in the approval flow
- Author:
- Jeff Fischer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The resulting sandbox stateint
hashCode()
boolean
Whether or not the state is an override of an item from another catalog.boolean
Whether or not the originating item for the promotion should be archived.boolean
Whether or not the target of the promotion should be archived.void
setOverride
(boolean isOverride) Whether or not the state is an override of an item from another catalog.void
setShouldArchiveOriginal
(boolean shouldArchiveOriginal) Whether or not the originating item for the promotion should be archived.void
setShouldArchiveTarget
(boolean shouldArchiveTarget) Whether or not the target of the promotion should be archived.toString()
withIsOverride
(boolean isOverride) withShouldArchiveOriginal
(boolean shouldArchiveOriginal) withShouldArchiveTarget
(boolean shouldArchiveTarget)
-
Constructor Details
-
ForwardMapResponse
-
-
Method Details
-
withShouldArchiveOriginal
-
withShouldArchiveTarget
-
withIsOverride
-
getForwardState
The resulting sandbox state- Returns:
- The resulting sandbox state
-
isShouldArchiveOriginal
public boolean isShouldArchiveOriginal()Whether or not the originating item for the promotion should be archived. This generally occurs when all promotable changes on an entity have been moved forward (i.e. all areChangeDetail.getObsolete()
).- Returns:
- Whether or not the originating item for the promotion should be archived
-
isShouldArchiveTarget
public boolean isShouldArchiveTarget()Whether or not the target of the promotion should be archived. This generally occurs when the during a deployment as the result of a delete promotion.- Returns:
- Whether or not the target of the promotion should be archived
-
isOverride
public boolean isOverride()Whether or not the state is an override of an item from another catalog. Only applies to deployments.- Returns:
- Whether or not the state is an override of an item from another catalog
-
setShouldArchiveOriginal
public void setShouldArchiveOriginal(boolean shouldArchiveOriginal) Whether or not the originating item for the promotion should be archived. This generally occurs when all promotable changes on an entity have been moved forward (i.e. all areChangeDetail.getObsolete()
).- Parameters:
shouldArchiveOriginal
- Whether or not the originating item for the promotion should be archived
-
setShouldArchiveTarget
public void setShouldArchiveTarget(boolean shouldArchiveTarget) Whether or not the target of the promotion should be archived. This generally occurs when the during a deployment as the result of a delete promotion.- Parameters:
shouldArchiveTarget
- Whether or not the target of the promotion should be archived
-
setOverride
public void setOverride(boolean isOverride) Whether or not the state is an override of an item from another catalog. Only applies to deployments.- Parameters:
isOverride
- Whether or not the state is an override of an item from another catalog
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-