Class ForwardMapResponse
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.mapping.ForwardMapResponse
-
public class ForwardMapResponse extends Object
The result of a request to move the sandbox state of an entity forward in the approval flow- Author:
- Jeff Fischer
-
-
Constructor Summary
Constructors Constructor Description ForwardMapResponse(Trackable forwardState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)TrackablegetForwardState()The resulting sandbox stateinthashCode()booleanisOverride()Whether or not the state is an override of an item from another catalog.booleanisShouldArchiveOriginal()Whether or not the originating item for the promotion should be archived.booleanisShouldArchiveTarget()Whether or not the target of the promotion should be archived.voidsetOverride(boolean isOverride)Whether or not the state is an override of an item from another catalog.voidsetShouldArchiveOriginal(boolean shouldArchiveOriginal)Whether or not the originating item for the promotion should be archived.voidsetShouldArchiveTarget(boolean shouldArchiveTarget)Whether or not the target of the promotion should be archived.StringtoString()ForwardMapResponsewithIsOverride(boolean isOverride)ForwardMapResponsewithShouldArchiveOriginal(boolean shouldArchiveOriginal)ForwardMapResponsewithShouldArchiveTarget(boolean shouldArchiveTarget)
-
-
-
Constructor Detail
-
ForwardMapResponse
public ForwardMapResponse(@NonNull Trackable forwardState)
-
-
Method Detail
-
withShouldArchiveOriginal
public ForwardMapResponse withShouldArchiveOriginal(boolean shouldArchiveOriginal)
-
withShouldArchiveTarget
public ForwardMapResponse withShouldArchiveTarget(boolean shouldArchiveTarget)
-
withIsOverride
public ForwardMapResponse withIsOverride(boolean isOverride)
-
getForwardState
@NonNull public Trackable 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
-
canEqual
protected boolean canEqual(Object other)
-
-