Class WorkflowProcessor
- java.lang.Object
-
- org.craftercms.studio.impl.v1.service.workflow.WorkflowProcessor
-
public class WorkflowProcessor extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected DmPublishService
dmPublishService
protected Set<String>
inflightItems
protected ItemServiceInternal
itemServiceInternal
-
Constructor Summary
Constructors Constructor Description WorkflowProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToWorkflow(String site, List<String> paths, ZonedDateTime launchDate, String label, SubmitLifeCycleOperation operation, String approvedBy, MultiChannelPublishingContext mcpContext)
Add items to workflowprotected WorkflowBatch
createBatch(Collection<String> paths, ZonedDateTime launchDate, String label, SubmitLifeCycleOperation preSubmitOperation, String approvedBy, MultiChannelPublishingContext mcpContext)
protected void
execute(String site, WorkflowBatch workflowBatch)
ItemServiceInternal
getItemServiceInternal()
boolean
isInFlight(String path)
void
setDmPublishService(DmPublishService dmPublishService)
void
setItemServiceInternal(ItemServiceInternal itemServiceInternal)
-
-
-
Field Detail
-
dmPublishService
protected DmPublishService dmPublishService
-
itemServiceInternal
protected ItemServiceInternal itemServiceInternal
-
-
Method Detail
-
isInFlight
public boolean isInFlight(String path)
-
addToWorkflow
public void addToWorkflow(String site, List<String> paths, ZonedDateTime launchDate, String label, SubmitLifeCycleOperation operation, String approvedBy, MultiChannelPublishingContext mcpContext)
Add items to workflow- Parameters:
site
- the sitepaths
- paths to items to addlaunchDate
- date and time when items are to go livelabel
- the label to use for submissionoperation
-approvedBy
- username of the user that approved the submission
-
createBatch
protected WorkflowBatch createBatch(Collection<String> paths, ZonedDateTime launchDate, String label, SubmitLifeCycleOperation preSubmitOperation, String approvedBy, MultiChannelPublishingContext mcpContext)
-
execute
protected void execute(String site, WorkflowBatch workflowBatch)
-
setDmPublishService
public void setDmPublishService(DmPublishService dmPublishService)
-
getItemServiceInternal
public ItemServiceInternal getItemServiceInternal()
-
setItemServiceInternal
public void setItemServiceInternal(ItemServiceInternal itemServiceInternal)
-
-