Class WorkflowRebaseRequest
java.lang.Object
com.broadleafcommerce.data.tracking.core.transition.WorkflowRebaseRequest
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.Securable
,TargetRelatedRequest
,TransitionRequest
,Serializable
A request for a rebase operation, moving all missing changes from a more advanced sandbox state
of an item to a less advanced state. This should bring the less advanced state up-to-date with
all the changes in the more advanced state. If the less advanced state has conflicting changes,
those changes in the less advanced state will be retained.
- Author:
- Jeff Fischer
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The applicationId that should be used to filter the results fromTrackableRepository.findPromotable(WorkflowPromoteRequest)
.The author of the promotion.The catalogId that should be used to filter the results fromTrackableRepository.findPromotable(WorkflowPromoteRequest)
.The contextId used to identify the originating item to promote.The entity's class name for this promotion.getLevel()
The level at which the originating item resides.A user defined message to go along with the state transition.The id for the sandbox in which the originating item resides.getStage()
The informational stage in which the originating item resides.The level for which the transition is targeted.The id for the sandbox for which the transition is targeted.The informational stage for which the transition is targeted.getToken()
Get the IDs of the transition requested mapped by theTransferType
.Context list of the contextIds for the deep catalog tree parenting theTransitionRequest.getCatalogId()
.int
hashCode()
void
setApplicationId
(String applicationId) The applicationId that should be used to filter the results fromTrackableRepository.findPromotable(WorkflowPromoteRequest)
.void
setCatalogId
(String catalogId) The catalogId that should be used to filter the results fromTrackableRepository.findPromotable(WorkflowPromoteRequest)
.void
void
setMessage
(String message) A user defined message to go along with the state transition.void
setRouteKey
(String routeKey) void
The informational stage in which the originating item resides.void
setTargetSandboxId
(String targetSandboxId) The id for the sandbox for which the transition is targeted.void
setTargetStage
(String targetStage) The informational stage for which the transition is targeted.void
void
setVisibleFromCatalog
(Set<String> visibleFromCatalog) Context list of the contextIds for the deep catalog tree parenting theTransitionRequest.getCatalogId()
.toString()
withApplication
(String application) withCatalog
(String catalog) withMessage
(String message) withRouteKey
(String routeKey) withTargetSandboxId
(String targetSandboxId) withTargetStage
(String targetStage)
-
Constructor Details
-
WorkflowRebaseRequest
-
-
Method Details
-
withMessage
-
withToken
-
withCatalog
-
withRouteKey
-
withApplication
-
withStage
-
withTargetStage
-
withTargetSandboxId
-
getTransitionRequest
-
getTargetSandboxId
Description copied from interface:TargetRelatedRequest
The id for the sandbox for which the transition is targeted.- Specified by:
getTargetSandboxId
in interfaceTargetRelatedRequest
- Returns:
- The id for the sandbox for which the transition is targeted
-
getTargetStage
Description copied from interface:TargetRelatedRequest
The informational stage for which the transition is targeted.- Specified by:
getTargetStage
in interfaceTargetRelatedRequest
- Returns:
- The informational stage for which the transition is targeted
-
getTargetLevel
Description copied from interface:TargetRelatedRequest
The level for which the transition is targeted. SeeTracking.getLevel()
for more information.- Specified by:
getTargetLevel
in interfaceTargetRelatedRequest
- Returns:
- The level for which the transition is targeted
-
setTargetSandboxId
Description copied from interface:TargetRelatedRequest
The id for the sandbox for which the transition is targeted.- Specified by:
setTargetSandboxId
in interfaceTargetRelatedRequest
- Parameters:
targetSandboxId
- The id for the sandbox for which the transition is targeted
-
setTargetStage
Description copied from interface:TargetRelatedRequest
The informational stage for which the transition is targeted.- Specified by:
setTargetStage
in interfaceTargetRelatedRequest
- Parameters:
targetStage
- The informational stage for which the transition is targeted
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getTransferTypeIdMap
Description copied from interface:TransitionRequest
Get the IDs of the transition requested mapped by theTransferType
. Could be the ids of a change summary, summary group, or deployment. A single summary could be one of a large group of changes or a deployment thereby leading to the map containing the ID of a the individual summary related to 1 set of changes being transitioned and the ID of the entire group. This is used to clean up state once all of the related transition requests have completed.- Specified by:
getTransferTypeIdMap
in interfaceTransitionRequest
-
getContextId
Description copied from interface:TransitionRequest
The contextId used to identify the originating item to promote. SeeTrackable.getContextId()
.- Specified by:
getContextId
in interfaceTransitionRequest
- Returns:
- The contextId used to identify the originating item to promote
-
getSandboxId
Description copied from interface:TransitionRequest
The id for the sandbox in which the originating item resides.- Specified by:
getSandboxId
in interfaceTransitionRequest
- Returns:
- The id for the sandbox in which the originating item resides
-
getAuthor
Description copied from interface:TransitionRequest
The author of the promotion. This is useful when finding originating domain items in a user sandbox for promotion to a subsequent level. User sandbox changes are partially identified by their author.- Specified by:
getAuthor
in interfaceTransitionRequest
- Returns:
- The author of the promotion
-
getLevel
Description copied from interface:TransitionRequest
The level at which the originating item resides. SeeTracking.getLevel()
for more information.- Specified by:
getLevel
in interfaceTransitionRequest
- Returns:
- The level at which the originating item resides
-
getRouteKey
- Specified by:
getRouteKey
in interfaceTransitionRequest
-
getEntity
Description copied from interface:TransitionRequest
The entity's class name for this promotion.- Specified by:
getEntity
in interfaceTransitionRequest
- Returns:
- The entity's class name for this promotion
-
getStage
Description copied from interface:TransitionRequest
The informational stage in which the originating item resides.- Specified by:
getStage
in interfaceTransitionRequest
- Returns:
- The informational stage in which the originating item resides.
-
getCatalogId
Description copied from interface:TransitionRequest
The catalogId that should be used to filter the results fromTrackableRepository.findPromotable(WorkflowPromoteRequest)
. Can be null if the item is not catalog discriminatable.- Specified by:
getCatalogId
in interfaceTransitionRequest
- Returns:
- The catalogId that should be used to filter the results
-
getApplicationId
Description copied from interface:TransitionRequest
The applicationId that should be used to filter the results fromTrackableRepository.findPromotable(WorkflowPromoteRequest)
. Can be null if the item is not application discriminatable.- Specified by:
getApplicationId
in interfaceTransitionRequest
- Returns:
- The applicationId that should be used to filter the results
-
getVisibleFromCatalog
Description copied from interface:TransitionRequest
Context list of the contextIds for the deep catalog tree parenting theTransitionRequest.getCatalogId()
. This is not a value that is generally populated via JSON. Rather, this variable is generally calculated via lookup of catalog using catalogId. This is helpful for identifying inherited targets during a promotion.- Specified by:
getVisibleFromCatalog
in interfaceTransitionRequest
- Returns:
- Context list of the contextIds for the deep catalog tree parenting the
TransitionRequest.getCatalogId()
-
getMessage
Description copied from interface:TransitionRequest
A user defined message to go along with the state transition. This is generally descriptive of the purpose served by the transition.- Specified by:
getMessage
in interfaceTransitionRequest
- Returns:
- A user defined message to go along with the state transition
-
getToken
- Specified by:
getToken
in interfacecom.broadleafcommerce.common.messaging.Securable
-
setRouteKey
-
setEntity
-
setStage
Description copied from interface:TransitionRequest
The informational stage in which the originating item resides.- Specified by:
setStage
in interfaceTransitionRequest
- Parameters:
stage
- The informational stage in which the originating item resides.
-
setCatalogId
Description copied from interface:TransitionRequest
The catalogId that should be used to filter the results fromTrackableRepository.findPromotable(WorkflowPromoteRequest)
. Can be null if the item is not catalog discriminatable.- Specified by:
setCatalogId
in interfaceTransitionRequest
- Parameters:
catalogId
- The catalogId that should be used to filter the results
-
setApplicationId
Description copied from interface:TransitionRequest
The applicationId that should be used to filter the results fromTrackableRepository.findPromotable(WorkflowPromoteRequest)
. Can be null if the item is not application discriminatable.- Specified by:
setApplicationId
in interfaceTransitionRequest
- Parameters:
applicationId
- The applicationId that should be used to filter the results
-
setVisibleFromCatalog
Description copied from interface:TransitionRequest
Context list of the contextIds for the deep catalog tree parenting theTransitionRequest.getCatalogId()
. This is not a value that is generally populated via JSON. Rather, this variable is generally calculated via lookup of catalog using catalogId. This is helpful for identifying inherited targets during a promotion.- Specified by:
setVisibleFromCatalog
in interfaceTransitionRequest
- Parameters:
visibleFromCatalog
- list of the contextIds for the deep catalog tree parenting theTransitionRequest.getCatalogId()
-
setMessage
Description copied from interface:TransitionRequest
A user defined message to go along with the state transition. This is generally descriptive of the purpose served by the transition.- Specified by:
setMessage
in interfaceTransitionRequest
- Parameters:
message
- A user defined message to go along with the state transition
-
setToken
- Specified by:
setToken
in interfacecom.broadleafcommerce.common.messaging.Securable
-