Class WorkflowRejectRequest
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.transition.WorkflowRejectRequest
-
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.Securable,TargetRelatedRequest,TransitionRequest,Serializable
public class WorkflowRejectRequest extends Object implements TargetRelatedRequest
A request for a reject operation, moving all visible changes related to a promotion id from the sandboxable state of an item to the requested target sandbox state.- Author:
- Jeff Fischer
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetApplicationId()The applicationId that should be used to filter the results fromTrackableRepository.findPromotable(WorkflowPromoteRequest).StringgetAuthor()The author of the promotion.StringgetCatalogId()The catalogId that should be used to filter the results fromTrackableRepository.findPromotable(WorkflowPromoteRequest).StringgetContextId()The contextId used to identify the originating item to promote.StringgetEntity()The entity's class name for this promotion.IntegergetLevel()The level at which the originating item resides.StringgetMessage()A user defined message to go along with the state transition.StringgetPromotionId()StringgetReceiver()The admin user that should receive the rejected state.StringgetRouteKey()StringgetSandboxId()The id for the sandbox in which the originating item resides.StringgetStage()The informational stage in which the originating item resides.IntegergetTargetLevel()The level for which the transition is targeted.StringgetTargetSandboxId()The id for the sandbox for which the transition is targeted.StringgetTargetStage()The informational stage for which the transition is targeted.StringgetToken()Map<String,String>getTransferTypeIdMap()Get the IDs of the transition requested mapped by theTransferType.WorkflowTransitionRequestgetTransitionRequest()Set<String>getVisibleFromCatalog()Context list of the contextIds for the deep catalog tree parenting theTransitionRequest.getCatalogId().inthashCode()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).voidsetEntity(String entity)voidsetMessage(String message)A user defined message to go along with the state transition.voidsetReceiver(String receiver)The admin user that should receive the rejected state.voidsetRouteKey(String routeKey)voidsetStage(String stage)The informational stage in which the originating item resides.voidsetTargetSandboxId(String targetSandboxId)The id for the sandbox for which the transition is targeted.voidsetTargetStage(String targetStage)The informational stage for which the transition is targeted.voidsetToken(String token)voidsetVisibleFromCatalog(Set<String> visibleFromCatalog)Context list of the contextIds for the deep catalog tree parenting theTransitionRequest.getCatalogId().StringtoString()WorkflowRejectRequestwithApplication(String application)WorkflowRejectRequestwithCatalog(String catalog)WorkflowRejectRequestwithMessage(String message)WorkflowRejectRequestwithReceiver(String receiver)WorkflowRejectRequestwithRouteKey(String routeKey)WorkflowRejectRequestwithStage(String stage)WorkflowRejectRequestwithTargetSandboxId(String targetSandboxId)WorkflowRejectRequestwithTargetStage(String targetStage)WorkflowRejectRequestwithToken(String token)
-
-
-
Method Detail
-
withMessage
public WorkflowRejectRequest withMessage(String message)
-
withToken
public WorkflowRejectRequest withToken(String token)
-
withCatalog
public WorkflowRejectRequest withCatalog(String catalog)
-
withRouteKey
public WorkflowRejectRequest withRouteKey(String routeKey)
-
withApplication
public WorkflowRejectRequest withApplication(String application)
-
withStage
public WorkflowRejectRequest withStage(String stage)
-
withTargetStage
public WorkflowRejectRequest withTargetStage(String targetStage)
-
withTargetSandboxId
public WorkflowRejectRequest withTargetSandboxId(String targetSandboxId)
-
withReceiver
public WorkflowRejectRequest withReceiver(String receiver)
-
getTransitionRequest
public WorkflowTransitionRequest getTransitionRequest()
-
getTargetSandboxId
public String getTargetSandboxId()
Description copied from interface:TargetRelatedRequestThe id for the sandbox for which the transition is targeted.- Specified by:
getTargetSandboxIdin interfaceTargetRelatedRequest- Returns:
- The id for the sandbox for which the transition is targeted
-
getTargetStage
public String getTargetStage()
Description copied from interface:TargetRelatedRequestThe informational stage for which the transition is targeted.- Specified by:
getTargetStagein interfaceTargetRelatedRequest- Returns:
- The informational stage for which the transition is targeted
-
getTargetLevel
public Integer getTargetLevel()
Description copied from interface:TargetRelatedRequestThe level for which the transition is targeted. SeeTracking.getLevel()for more information.- Specified by:
getTargetLevelin interfaceTargetRelatedRequest- Returns:
- The level for which the transition is targeted
-
getPromotionId
public String getPromotionId()
-
getReceiver
public String getReceiver()
The admin user that should receive the rejected state. This field provides a avenue to override the default destination, which is the original author of the change. This field is useful in situations where a change is generated by the system and the determination of target user cannot be effectively deduced from the original change author.
-
setTargetSandboxId
public void setTargetSandboxId(String targetSandboxId)
Description copied from interface:TargetRelatedRequestThe id for the sandbox for which the transition is targeted.- Specified by:
setTargetSandboxIdin interfaceTargetRelatedRequest- Parameters:
targetSandboxId- The id for the sandbox for which the transition is targeted
-
setTargetStage
public void setTargetStage(String targetStage)
Description copied from interface:TargetRelatedRequestThe informational stage for which the transition is targeted.- Specified by:
setTargetStagein interfaceTargetRelatedRequest- Parameters:
targetStage- The informational stage for which the transition is targeted
-
setReceiver
public void setReceiver(String receiver)
The admin user that should receive the rejected state. This field provides a avenue to override the default destination, which is the original author of the change. This field is useful in situations where a change is generated by the system and the determination of target user cannot be effectively deduced from the original change author.
-
canEqual
protected boolean canEqual(Object other)
-
getTransferTypeIdMap
public Map<String,String> 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
public String 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
public String 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
public String 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
public Integer 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
public String getRouteKey()
- Specified by:
getRouteKeyin interfaceTransitionRequest
-
getEntity
public String 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
public String 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
public String 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
public String 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
public Set<String> 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
public String 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
public String getToken()
- Specified by:
getTokenin 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: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
public void setCatalogId(String catalogId)
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
public void setApplicationId(String applicationId)
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
public void setVisibleFromCatalog(Set<String> visibleFromCatalog)
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
public void setMessage(String message)
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
public void setToken(String token)
- Specified by:
setTokenin interfacecom.broadleafcommerce.common.messaging.Securable
-
-