Class 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 Detail

      • ForwardMapResponse

        public ForwardMapResponse​(@NonNull
                                  Trackable forwardState)
    • Method Detail

      • withShouldArchiveOriginal

        public ForwardMapResponse withShouldArchiveOriginal​(boolean shouldArchiveOriginal)
      • withShouldArchiveTarget

        public ForwardMapResponse withShouldArchiveTarget​(boolean shouldArchiveTarget)
      • 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 are ChangeDetail.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 are ChangeDetail.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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object