public interface WorkflowManager
PromoteWorkflowManager
,
RejectWorkflowManager
,
RevertWorkflowManager
,
SyncWorkflowManager
Modifier and Type | Method and Description |
---|---|
Long |
addSandboxItemChangesToExistingDeployment(Long deploymentId,
Long[] ids,
Long[] eventIds,
String message)
Adds changes to an existing deployment
|
Long |
addSandboxItemChangesToNewDeployment(WorkflowDeploymentRecurrenceType recurrenceType,
Date deploymentDate,
Long[] ids,
Long[] eventIds,
String name,
String message)
Set up a time in the future (or now) to approve the changes.
|
Long |
approveSandBoxItemChanges(Long targetSandBox,
Long[] sandBoxItemIds,
String msg)
Promote changes forward (usually to production) that were previously promoted from a user's sandbox.
|
void |
asyncPromoteSandBoxItemChanges(Long targetSandBox,
Long[] sandBoxItemIds,
boolean createEvent,
String name,
String msg,
Boolean isCritical)
Promote changes forward (usually to an approval sandbox) from a user's sandbox.
|
void |
cancelDeployment(Long deploymentId)
Cancel a previously scheduled deployment.
|
void |
cancelEvents(Long[] events)
Cancel one or more events that are part of a deployment.
|
void |
createDeploymentItem(Long[] events,
Date deployTime,
String message,
WorkflowDeploymentRecurrenceType recurrenceType,
String deploymentName) |
Boolean |
getAutoProdPromote()
Whether or not changes made by admin users are automatically promoted and approved to production immediately.
|
boolean |
getAutoSync()
Whether or not auto syncing is supported.
|
void |
markEventsAsApproved(Long[] eventIds)
Mark one or more events as Approved
|
void |
promoteSandBoxItemChanges(Long targetSandBox,
Long[] sandBoxItemIds,
boolean createEvent,
String name,
String msg,
boolean critical)
Promote changes forward (usually to an approval sandbox) from a user's sandbox.
|
void |
promoteSandBoxItemChanges(Long targetSandBox,
Long[] sandBoxItemIds,
Long eventId,
String msg,
boolean critical)
Promote changes forward (usually to an approval sandbox) from a user's sandbox.
|
void |
rejectSandBoxItemChanges(Long[] sandBoxItemIds,
String msg)
Reject changes back to the sandbox from which they originated
|
void |
revertSandBoxItems(Long[] sandBoxItemIds)
Revert changes from a user's sandbox - essentially negating the changes
|
Long |
scheduleSandBoxItemChanges(Long[] events,
String msg,
Date deployTime,
WorkflowDeploymentRecurrenceType recurrenceType,
String deploymentName)
Set up a time in the future (or now) to approve the changes.
|
void |
setAutoProdPromote(Boolean autoProdPromote)
Whether or not changes made by admin users are automatically promoted and approved to production immediately.
|
void |
setAutoSync(boolean autoSync)
Whether or not auto syncing is supported.
|
void |
syncChanges(Long mySandBox,
Long parentSandBox)
Sync the parent sandbox to the current user sandbox
|
void |
unsetAsyncPromote(Long eventId,
Long[] sandBoxItemIds)
Revert the setup for an asynchronous promotion.
|
Long approveSandBoxItemChanges(Long targetSandBox, Long[] sandBoxItemIds, String msg) throws com.broadleafcommerce.enterprise.common.exception.ReplayException
PromoteWorkflowManager.promoteSandBoxItemChanges(Long, Long[], boolean, String, String)
for more information.targetSandBox
- the sandbox receiving these changes (usually null, which represents production)sandBoxItemIds
- the ids for the WorkflowSandBoxItem
instances to approvemsg
- an accompanying message which is persisted and visible in historycom.broadleafcommerce.enterprise.common.exception.ReplayException
PromoteWorkflowManager
void promoteSandBoxItemChanges(Long targetSandBox, Long[] sandBoxItemIds, boolean createEvent, String name, String msg, boolean critical) throws com.broadleafcommerce.enterprise.common.exception.ReplayException
PromoteWorkflowManager.promoteSandBoxItemChanges(Long, Long[], boolean, String, String, boolean)
for more information.targetSandBox
- the sandbox receiving these changessandBoxItemIds
- the ids for the WorkflowSandBoxItem
instances to promotecreateEvent
- whether or not to create an WorkflowEvent
instance and tie these sandbox items to itname
- the name for the event (optional)msg
- the message for the event (optional)com.broadleafcommerce.enterprise.common.exception.ReplayException
PromoteWorkflowManager
void promoteSandBoxItemChanges(Long targetSandBox, Long[] sandBoxItemIds, Long eventId, String msg, boolean critical) throws com.broadleafcommerce.enterprise.common.exception.ReplayException
PromoteWorkflowManager.promoteSandBoxItemChanges(Long, Long[], boolean, String, String, boolean)
for more information.targetSandBox
- the sandbox receiving these changessandBoxItemIds
- the ids for the WorkflowSandBoxItem
instances to promoteeventId
- the id of the pre-existing eventmsg
- the message for the approval (optional)critical
- com.broadleafcommerce.enterprise.common.exception.ReplayException
void unsetAsyncPromote(Long eventId, Long[] sandBoxItemIds)
eventId
- sandBoxItemIds
- com.broadleafcommerce.enterprise.common.exception.ReplayException
void asyncPromoteSandBoxItemChanges(Long targetSandBox, Long[] sandBoxItemIds, boolean createEvent, String name, String msg, Boolean isCritical) throws com.broadleafcommerce.enterprise.common.exception.ReplayException
PromotionSystemEventConsumer
for event consumption details.targetSandBox
- the sandbox receiving these changessandBoxItemIds
- the ids for the WorkflowSandBoxItem
instances to promotecreateEvent
- whether or not to create an WorkflowEvent
instance and tie these sandbox items to itname
- the name for the event (optional)msg
- the message for the event (optional)isCritical
- com.broadleafcommerce.enterprise.common.exception.ReplayException
PromoteWorkflowManager
Long scheduleSandBoxItemChanges(Long[] events, String msg, Date deployTime, WorkflowDeploymentRecurrenceType recurrenceType, String deploymentName) throws com.broadleafcommerce.enterprise.common.exception.ReplayException
approveSandBoxItemChanges(Long, Long[], String)
is calleddeploymentType
- events
- the ids for the WorkflowEvent
instances to approvemsg
- the message for the approval (optional)deployTime
- the time in the future (or now) when the deployment will take placerecurrenceType
- deploymentName
- WorkflowDeployment
instance created for this schedulecom.broadleafcommerce.enterprise.common.exception.ReplayException
PromoteWorkflowManager
,
ScheduledDeploySystemEventConsumer
void rejectSandBoxItemChanges(Long[] sandBoxItemIds, String msg) throws com.broadleafcommerce.enterprise.common.exception.ReplayException
sandBoxItemIds
- the ids for the WorkflowSandBoxItem
instances to rejectmsg
- a rejection message (optional)com.broadleafcommerce.enterprise.common.exception.ReplayException
RejectWorkflowManager
void revertSandBoxItems(Long[] sandBoxItemIds) throws com.broadleafcommerce.enterprise.common.exception.ReplayException
sandBoxItemIds
- the ids for the WorkflowSandBoxItem
instances to revertcom.broadleafcommerce.enterprise.common.exception.ReplayException
RevertWorkflowManager
void syncChanges(Long mySandBox, Long parentSandBox) throws com.broadleafcommerce.enterprise.common.exception.ReplayException
mySandBox
- the current user sandboxparentSandBox
- the parent sandboxcom.broadleafcommerce.enterprise.common.exception.ReplayException
VersionManager
,
SyncWorkflowManager
boolean getAutoSync()
void setAutoSync(boolean autoSync)
autoSync
- whether or not to auto syncBoolean getAutoProdPromote()
void setAutoProdPromote(Boolean autoProdPromote)
autoProdPromote
- Whether or not to immediately deploy changes to production without the workflow stepsvoid createDeploymentItem(Long[] events, Date deployTime, String message, WorkflowDeploymentRecurrenceType recurrenceType, String deploymentName) throws com.broadleafcommerce.enterprise.common.exception.ReplayException
events
- deployTime
- message
- recurrenceType
- deploymentName
- com.broadleafcommerce.enterprise.common.exception.ReplayException
void cancelDeployment(Long deploymentId) throws com.broadleafcommerce.enterprise.common.exception.ReplayException
deploymentId
- the id of the WorkflowDeployment
com.broadleafcommerce.enterprise.common.exception.ReplayException
void cancelEvents(Long[] events) throws com.broadleafcommerce.enterprise.common.exception.ReplayException
events
- the event ids belonging to the WorkflowDeployment
to cancelcom.broadleafcommerce.enterprise.common.exception.ReplayException
void markEventsAsApproved(Long[] eventIds)
eventIds
- the event ids to approveLong addSandboxItemChangesToNewDeployment(WorkflowDeploymentRecurrenceType recurrenceType, Date deploymentDate, Long[] ids, Long[] eventIds, String name, String message) throws com.broadleafcommerce.enterprise.common.exception.ReplayException
approveSandBoxItemChanges(Long, Long[], String)
is calledrecurrenceType
- the recurrence type for the WorkflowDeployment
deploymentDate
- the time in the future (or now) when the deployment will take placeids
- the ids for the WorkflowSandBoxItem
instances to approveeventIds
- the ids for the WorkflowEvent
instances to approvemessage
- the message for the approval (optional)WorkflowDeployment
instance created for this schedulecom.broadleafcommerce.enterprise.common.exception.ReplayException
PromoteWorkflowManager
,
ScheduledDeploySystemEventConsumer
Long addSandboxItemChangesToExistingDeployment(Long deploymentId, Long[] ids, Long[] eventIds, String message) throws com.broadleafcommerce.enterprise.common.exception.ReplayException
ids
- the ids for the WorkflowSandBoxItem
instances to approveeventIds
- the ids for the WorkflowEvent
instances to approvemessage
- the message for the approval (optional)WorkflowDeployment
instance created for this schedulecom.broadleafcommerce.enterprise.common.exception.ReplayException
PromoteWorkflowManager
,
ScheduledDeploySystemEventConsumer
Copyright © 2019. All rights reserved.