Interface WorkflowService
- All Known Implementing Classes:
WorkflowServiceImpl
public interface WorkflowService
-
Method Summary
Modifier and TypeMethodDescriptionbooleancleanWorkflow(String url, String site) voidfillQueue(String site, GoLiveQueue goLiveQueue, GoLiveQueue inProcessQueue) getGoLiveItems(String site, String sort, boolean ascending) getInProgressItems(String site, String sort, boolean ascending, boolean inProgressOnly) approve workflows and schedule them as specified in the requestapprove workflows and schedule them as specified in the requestgroupByDate(List<DmDependencyTO> submittedItems, ZonedDateTime now) booleanisRescheduleRequest(DmDependencyTO dependencyTO, String site) voidpreScheduleDelete(Set<String> uris, ZonedDateTime _date, GoLiveContext context) booleanremoveFromWorkflow(String site, String path, boolean cancelWorkflow) cancel the workflow pending on the given item.submitToGoLive(String site, String username, String request)
-
Method Details
-
submitToGoLive
-
getGoLiveItems
Map<String,Object> getGoLiveItems(String site, String sort, boolean ascending) throws ServiceLayerException - Throws:
ServiceLayerException
-
getInProgressItems
-
removeFromWorkflow
boolean removeFromWorkflow(String site, String path, boolean cancelWorkflow) throws ServiceLayerException, UserNotFoundException cancel the workflow pending on the given item.- Parameters:
site- site identifierpath- path of the contentcancelWorkflow- cancel the pending workflow instance this content belongs to?- Returns:
- true if success, otherwise false
- Throws:
ServiceLayerException- general service errorUserNotFoundException
-
goDelete
approve workflows and schedule them as specified in the request- Parameters:
site- site identifierrequest- request body- Returns:
- call result
-
groupByDate
Map<ZonedDateTime,List<DmDependencyTO>> groupByDate(List<DmDependencyTO> submittedItems, ZonedDateTime now) -
preScheduleDelete
-
preDelete
List<String> preDelete(Set<String> urisToDelete, GoLiveContext context, Set<String> rescheduledUris) throws ServiceLayerException, UserNotFoundException -
isRescheduleRequest
-
goLive
approve workflows and schedule them as specified in the request- Parameters:
site- site identifierrequest- request body- Returns:
- call result
- Throws:
ServiceLayerException- general service error
-
reject
- Throws:
ServiceLayerException
-
fillQueue
-
cleanWorkflow
-