public class WorkflowPromoteRequest extends Object implements TargetRelatedRequest
Constructor and Description |
---|
WorkflowPromoteRequest(Map<String,String> transferTypeIdMap,
String contextId,
String sandboxId,
String author,
Integer level,
String entity,
Integer targetLevel,
String promotionId) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getApplicationId()
The applicationId that should be used to filter the results from
TrackableRepository.findPromotable(WorkflowPromoteRequest) . |
String |
getAuthor()
The author of the promotion.
|
String |
getCatalogId()
The catalogId that should be used to filter the results from
TrackableRepository.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 |
getPromotionId() |
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.
|
Integer |
getTargetLevel()
The level for which the transition is targeted.
|
String |
getTargetSandboxId()
The id for the sandbox for which the transition is targeted.
|
String |
getTargetStage()
The informational stage for which the transition is targeted.
|
String |
getToken() |
Map<String,String> |
getTransferTypeIdMap()
Get the IDs of the transition requested mapped by the
TransferType . |
WorkflowTransitionRequest |
getTransitionRequest() |
Set<String> |
getVisibleFromCatalog()
Context list of the contextIds for the deep catalog tree parenting the
TransitionRequest.getCatalogId() . |
int |
hashCode() |
void |
setApplicationId(String applicationId)
The applicationId that should be used to filter the results from
TrackableRepository.findPromotable(WorkflowPromoteRequest) . |
void |
setCatalogId(String catalogId)
The catalogId that should be used to filter the results from
TrackableRepository.findPromotable(WorkflowPromoteRequest) . |
void |
setEntity(String entity) |
void |
setMessage(String message)
A user defined message to go along with the state transition.
|
void |
setRouteKey(String routeKey) |
void |
setStage(String stage)
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 |
setToken(String token) |
void |
setVisibleFromCatalog(Set<String> visibleFromCatalog)
Context list of the contextIds for the deep catalog tree parenting the
TransitionRequest.getCatalogId() . |
String |
toString() |
WorkflowPromoteRequest |
withApplication(String application) |
WorkflowPromoteRequest |
withCatalog(String catalog) |
WorkflowPromoteRequest |
withMessage(String message) |
WorkflowPromoteRequest |
withRouteKey(String routeKey) |
WorkflowPromoteRequest |
withStage(String stage) |
WorkflowPromoteRequest |
withTargetSandboxId(String targetSandboxId) |
WorkflowPromoteRequest |
withTargetStage(String targetStage) |
WorkflowPromoteRequest |
withToken(String token) |
public WorkflowPromoteRequest withMessage(String message)
public WorkflowPromoteRequest withToken(String token)
public WorkflowPromoteRequest withCatalog(String catalog)
public WorkflowPromoteRequest withRouteKey(String routeKey)
public WorkflowPromoteRequest withApplication(String application)
public WorkflowPromoteRequest withStage(String stage)
public WorkflowPromoteRequest withTargetStage(String targetStage)
public WorkflowPromoteRequest withTargetSandboxId(String targetSandboxId)
public WorkflowTransitionRequest getTransitionRequest()
public String getPromotionId()
public String getTargetSandboxId()
TargetRelatedRequest
getTargetSandboxId
in interface TargetRelatedRequest
public String getTargetStage()
TargetRelatedRequest
getTargetStage
in interface TargetRelatedRequest
public Integer getTargetLevel()
TargetRelatedRequest
Tracking.getLevel()
for more
information.getTargetLevel
in interface TargetRelatedRequest
public void setTargetSandboxId(String targetSandboxId)
TargetRelatedRequest
setTargetSandboxId
in interface TargetRelatedRequest
targetSandboxId
- The id for the sandbox for which the transition is targetedpublic void setTargetStage(String targetStage)
TargetRelatedRequest
setTargetStage
in interface TargetRelatedRequest
targetStage
- The informational stage for which the transition is targetedprotected boolean canEqual(Object other)
public Map<String,String> getTransferTypeIdMap()
TransitionRequest
TransferType
. 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.getTransferTypeIdMap
in interface TransitionRequest
public String getContextId()
TransitionRequest
Trackable.getContextId()
.getContextId
in interface TransitionRequest
public String getSandboxId()
TransitionRequest
getSandboxId
in interface TransitionRequest
public String getAuthor()
TransitionRequest
getAuthor
in interface TransitionRequest
public Integer getLevel()
TransitionRequest
Tracking.getLevel()
for more
information.getLevel
in interface TransitionRequest
public String getRouteKey()
getRouteKey
in interface TransitionRequest
public String getEntity()
TransitionRequest
getEntity
in interface TransitionRequest
public String getStage()
TransitionRequest
getStage
in interface TransitionRequest
public String getCatalogId()
TransitionRequest
TrackableRepository.findPromotable(WorkflowPromoteRequest)
. Can be null if the item
is not catalog discriminatable.getCatalogId
in interface TransitionRequest
public String getApplicationId()
TransitionRequest
TrackableRepository.findPromotable(WorkflowPromoteRequest)
. Can be null if the item
is not application discriminatable.getApplicationId
in interface TransitionRequest
public Set<String> getVisibleFromCatalog()
TransitionRequest
TransitionRequest.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.getVisibleFromCatalog
in interface TransitionRequest
TransitionRequest.getCatalogId()
public String getMessage()
TransitionRequest
getMessage
in interface TransitionRequest
public String getToken()
getToken
in interface com.broadleafcommerce.common.messaging.Securable
public void setRouteKey(String routeKey)
public void setEntity(String entity)
public void setStage(String stage)
TransitionRequest
setStage
in interface TransitionRequest
stage
- The informational stage in which the originating item resides.public void setCatalogId(String catalogId)
TransitionRequest
TrackableRepository.findPromotable(WorkflowPromoteRequest)
. Can be null if the item
is not catalog discriminatable.setCatalogId
in interface TransitionRequest
catalogId
- The catalogId that should be used to filter the resultspublic void setApplicationId(String applicationId)
TransitionRequest
TrackableRepository.findPromotable(WorkflowPromoteRequest)
. Can be null if the item
is not application discriminatable.setApplicationId
in interface TransitionRequest
applicationId
- The applicationId that should be used to filter the resultspublic void setVisibleFromCatalog(Set<String> visibleFromCatalog)
TransitionRequest
TransitionRequest.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.setVisibleFromCatalog
in interface TransitionRequest
visibleFromCatalog
- list of the contextIds for the deep catalog tree parenting the
TransitionRequest.getCatalogId()
public void setMessage(String message)
TransitionRequest
setMessage
in interface TransitionRequest
message
- A user defined message to go along with the state transitionpublic void setToken(String token)
setToken
in interface com.broadleafcommerce.common.messaging.Securable
Copyright © 2021. All rights reserved.