Class WorkflowDeployRequest
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.transition.WorkflowDeployRequest
-
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.Securable
,TransitionRequest
,Serializable
public class WorkflowDeployRequest extends Object implements TransitionRequest
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:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getApplicationId()
The applicationId that should be used to filter the results fromTrackableRepository.findPromotable(WorkflowPromoteRequest)
.String
getAuthor()
The author of the promotion.String
getCatalogId()
The catalogId that should be used to filter the results fromTrackableRepository.findPromotable(WorkflowPromoteRequest)
.String
getContextId()
The contextId used to identify the originating item to promote.String
getEntity()
The entity's class name for this promotion.Integer
getLevel()
The level at which the originating item resides.String
getMessage()
A user defined message to go along with the state transition.String
getRouteKey()
String
getSandboxId()
The id for the sandbox in which the originating item resides.String
getStage()
The informational stage in which the originating item resides.String
getToken()
Map<String,String>
getTransferTypeIdMap()
Get the IDs of the transition requested mapped by theTransferType
.WorkflowTransitionRequest
getTransitionRequest()
String
getVersion()
The maximum version ofChangeDetail
instances on an entity to deploy to production.Set<String>
getVisibleFromCatalog()
Context list of the contextIds for the deep catalog tree parenting theTransitionRequest.getCatalogId()
.int
hashCode()
boolean
isRemoveTemporaryOverride()
Whether or not to remove temporary application catalog override state at the edges of sandbox transition.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
setEntity(String entity)
void
setMessage(String message)
A user defined message to go along with the state transition.void
setRemoveTemporaryOverride(boolean isRemoveTemporaryOverride)
Whether or not to remove temporary application catalog override state at the edges of sandbox transition.void
setRouteKey(String routeKey)
void
setStage(String stage)
The informational stage in which the originating item resides.void
setToken(String token)
void
setTransitionRequest(WorkflowTransitionRequest transitionRequest)
void
setVisibleFromCatalog(Set<String> visibleFromCatalog)
Context list of the contextIds for the deep catalog tree parenting theTransitionRequest.getCatalogId()
.String
toString()
WorkflowDeployRequest
withApplication(String application)
WorkflowDeployRequest
withCatalog(String catalog)
WorkflowDeployRequest
withMessage(String message)
WorkflowDeployRequest
withRemoveTemporaryOverride(boolean isRemoveTemporaryOverride)
WorkflowDeployRequest
withRouteKey(String routeKey)
WorkflowDeployRequest
withToken(String token)
-
-
-
Constructor Detail
-
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, seeTransferType
contextId
- 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 Detail
-
withMessage
public WorkflowDeployRequest withMessage(String message)
-
withToken
public WorkflowDeployRequest withToken(String token)
-
withCatalog
public WorkflowDeployRequest withCatalog(String catalog)
-
withRouteKey
public WorkflowDeployRequest withRouteKey(String routeKey)
-
withApplication
public WorkflowDeployRequest withApplication(String application)
-
withRemoveTemporaryOverride
public WorkflowDeployRequest withRemoveTemporaryOverride(boolean isRemoveTemporaryOverride)
-
getTransitionRequest
public WorkflowTransitionRequest 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. SeeVendorSandboxPropagationHandler
for more information.
-
getVersion
public String getVersion()
The maximum version ofChangeDetail
instances on an entity to deploy to production.- Returns:
- The maximum version of
ChangeDetail
instances
-
setTransitionRequest
public void setTransitionRequest(WorkflowTransitionRequest transitionRequest)
-
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. SeeVendorSandboxPropagationHandler
for more information.
-
canEqual
protected boolean canEqual(Object other)
-
getTransferTypeIdMap
public Map<String,String> 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
public String 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
public String 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
public String 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
public Integer 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
public String getRouteKey()
- Specified by:
getRouteKey
in interfaceTransitionRequest
-
getEntity
public String 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
public String 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
public String 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
public String 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
public Set<String> 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
public String 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
public String getToken()
- Specified by:
getToken
in interfacecom.broadleafcommerce.common.messaging.Securable
-
setRouteKey
public void setRouteKey(String routeKey)
-
setEntity
public void setEntity(String entity)
-
setStage
public void setStage(String stage)
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
public void setCatalogId(String catalogId)
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
public void setApplicationId(String applicationId)
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
public void setVisibleFromCatalog(Set<String> visibleFromCatalog)
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
public void setMessage(String message)
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
public void setToken(String token)
- Specified by:
setToken
in interfacecom.broadleafcommerce.common.messaging.Securable
-
-