Class WorkflowDeployRequest
java.lang.Object
com.broadleafcommerce.data.tracking.core.transition.WorkflowDeployRequest
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.Securable,TransitionRequest,Serializable
A request for a deployment operation, moving all changes less than or equal to a requested
version from the sandboxable state of an item to production.
- Author:
- Jeff Fischer
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe 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.getToken()Get the IDs of the transition requested mapped by theTransferType.The maximum version ofChangeDetailinstances on an entity to deploy to production.Context list of the contextIds for the deep catalog tree parenting theTransitionRequest.getCatalogId().inthashCode()booleanWhether or not to remove temporary application catalog override state at the edges of sandbox transition.voidsetApplicationId(String applicationId) The applicationId that should be used to filter the results fromTrackableRepository.findPromotable(WorkflowPromoteRequest).voidsetCatalogId(String catalogId) The catalogId that should be used to filter the results fromTrackableRepository.findPromotable(WorkflowPromoteRequest).voidvoidsetMessage(String message) A user defined message to go along with the state transition.voidsetRemoveTemporaryOverride(boolean isRemoveTemporaryOverride) Whether or not to remove temporary application catalog override state at the edges of sandbox transition.voidsetRouteKey(String routeKey) voidThe informational stage in which the originating item resides.voidvoidsetTransitionRequest(WorkflowTransitionRequest transitionRequest) voidsetVisibleFromCatalog(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) withRemoveTemporaryOverride(boolean isRemoveTemporaryOverride) withRouteKey(String routeKey)
-
Constructor Details
-
WorkflowDeployRequest
public WorkflowDeployRequest(Map<String, String> transferTypeIdMap, String contextId, String sandboxId, String author, Integer level, String entity, String version) Create a new deployment- Parameters:
transferTypeIdMap- loose bag of information required to run the transition, seeTransferTypecontextId- the contextId of the item being deployedsandboxId- the sandbox that the item is currently inauthor- author of the deploymentlevel- the tracking level that the item is inclassName- an alias of the class that should undergo the transitionversion-
-
-
Method Details
-
withMessage
-
withToken
-
withCatalog
-
withRouteKey
-
withApplication
-
withRemoveTemporaryOverride
-
getTransitionRequest
-
isRemoveTemporaryOverride
public boolean isRemoveTemporaryOverride()Whether or not to remove temporary application catalog override state at the edges of sandbox transition. This includes revert or deploy. Temporary application override state can occur during parent catalog deployment propagation. SeeVendorSandboxPropagationHandlerfor more information. -
getVersion
The maximum version ofChangeDetailinstances on an entity to deploy to production.- Returns:
- The maximum version of
ChangeDetailinstances
-
setTransitionRequest
-
setRemoveTemporaryOverride
public void setRemoveTemporaryOverride(boolean isRemoveTemporaryOverride) Whether or not to remove temporary application catalog override state at the edges of sandbox transition. This includes revert or deploy. Temporary application override state can occur during parent catalog deployment propagation. SeeVendorSandboxPropagationHandlerfor more information. -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getTransferTypeIdMap
Description copied from interface:TransitionRequestGet 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:
getTransferTypeIdMapin interfaceTransitionRequest
-
getContextId
Description copied from interface:TransitionRequestThe contextId used to identify the originating item to promote. SeeTrackable.getContextId().- Specified by:
getContextIdin interfaceTransitionRequest- Returns:
- The contextId used to identify the originating item to promote
-
getSandboxId
Description copied from interface:TransitionRequestThe id for the sandbox in which the originating item resides.- Specified by:
getSandboxIdin interfaceTransitionRequest- Returns:
- The id for the sandbox in which the originating item resides
-
getAuthor
Description copied from interface:TransitionRequestThe 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:
getAuthorin interfaceTransitionRequest- Returns:
- The author of the promotion
-
getLevel
Description copied from interface:TransitionRequestThe level at which the originating item resides. SeeTracking.getLevel()for more information.- Specified by:
getLevelin interfaceTransitionRequest- Returns:
- The level at which the originating item resides
-
getRouteKey
- Specified by:
getRouteKeyin interfaceTransitionRequest
-
getEntity
Description copied from interface:TransitionRequestThe entity's class name for this promotion.- Specified by:
getEntityin interfaceTransitionRequest- Returns:
- The entity's class name for this promotion
-
getStage
Description copied from interface:TransitionRequestThe informational stage in which the originating item resides.- Specified by:
getStagein interfaceTransitionRequest- Returns:
- The informational stage in which the originating item resides.
-
getCatalogId
Description copied from interface:TransitionRequestThe catalogId that should be used to filter the results fromTrackableRepository.findPromotable(WorkflowPromoteRequest). Can be null if the item is not catalog discriminatable.- Specified by:
getCatalogIdin interfaceTransitionRequest- Returns:
- The catalogId that should be used to filter the results
-
getApplicationId
Description copied from interface:TransitionRequestThe applicationId that should be used to filter the results fromTrackableRepository.findPromotable(WorkflowPromoteRequest). Can be null if the item is not application discriminatable.- Specified by:
getApplicationIdin interfaceTransitionRequest- Returns:
- The applicationId that should be used to filter the results
-
getVisibleFromCatalog
Description copied from interface:TransitionRequestContext 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:
getVisibleFromCatalogin interfaceTransitionRequest- Returns:
- Context list of the contextIds for the deep catalog tree parenting the
TransitionRequest.getCatalogId()
-
getMessage
Description copied from interface:TransitionRequestA user defined message to go along with the state transition. This is generally descriptive of the purpose served by the transition.- Specified by:
getMessagein interfaceTransitionRequest- Returns:
- A user defined message to go along with the state transition
-
getToken
- Specified by:
getTokenin interfacecom.broadleafcommerce.common.messaging.Securable
-
setRouteKey
-
setEntity
-
setStage
Description copied from interface:TransitionRequestThe informational stage in which the originating item resides.- Specified by:
setStagein interfaceTransitionRequest- Parameters:
stage- The informational stage in which the originating item resides.
-
setCatalogId
Description copied from interface:TransitionRequestThe catalogId that should be used to filter the results fromTrackableRepository.findPromotable(WorkflowPromoteRequest). Can be null if the item is not catalog discriminatable.- Specified by:
setCatalogIdin interfaceTransitionRequest- Parameters:
catalogId- The catalogId that should be used to filter the results
-
setApplicationId
Description copied from interface:TransitionRequestThe applicationId that should be used to filter the results fromTrackableRepository.findPromotable(WorkflowPromoteRequest). Can be null if the item is not application discriminatable.- Specified by:
setApplicationIdin interfaceTransitionRequest- Parameters:
applicationId- The applicationId that should be used to filter the results
-
setVisibleFromCatalog
Description copied from interface:TransitionRequestContext 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:
setVisibleFromCatalogin interfaceTransitionRequest- Parameters:
visibleFromCatalog- list of the contextIds for the deep catalog tree parenting theTransitionRequest.getCatalogId()
-
setMessage
Description copied from interface:TransitionRequestA user defined message to go along with the state transition. This is generally descriptive of the purpose served by the transition.- Specified by:
setMessagein interfaceTransitionRequest- Parameters:
message- A user defined message to go along with the state transition
-
setToken
- Specified by:
setTokenin interfacecom.broadleafcommerce.common.messaging.Securable
-