Interface WorkflowService
-
- All Known Implementing Classes:
WorkflowServiceImpl
public interface WorkflowService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
cleanWorkflow(String url, String site)
void
fillQueue(String site, GoLiveQueue goLiveQueue, GoLiveQueue inProcessQueue)
Map<String,Object>
getGoLiveItems(String site, String sort, boolean ascending)
Map<String,Object>
getInProgressItems(String site, String sort, boolean ascending, boolean inProgressOnly)
ResultTO
goDelete(String site, String request)
approve workflows and schedule them as specified in the requestResultTO
goLive(String site, String request)
approve workflows and schedule them as specified in the requestMap<ZonedDateTime,List<DmDependencyTO>>
groupByDate(List<DmDependencyTO> submittedItems, ZonedDateTime now)
boolean
isRescheduleRequest(DmDependencyTO dependencyTO, String site)
List<String>
preDelete(Set<String> urisToDelete, GoLiveContext context, Set<String> rescheduledUris)
void
preScheduleDelete(Set<String> uris, ZonedDateTime _date, GoLiveContext context)
ResultTO
reject(String site, String request)
boolean
removeFromWorkflow(String site, String path, boolean cancelWorkflow)
cancel the workflow pending on the given item.ResultTO
submitToGoLive(String site, String username, String request)
-
-
-
Method Detail
-
getGoLiveItems
Map<String,Object> getGoLiveItems(String site, String sort, boolean ascending) throws ServiceLayerException
- Throws:
ServiceLayerException
-
getInProgressItems
Map<String,Object> getInProgressItems(String site, String sort, boolean ascending, boolean inProgressOnly)
-
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
ResultTO goDelete(String site, String request)
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
void preScheduleDelete(Set<String> uris, ZonedDateTime _date, GoLiveContext context)
-
preDelete
List<String> preDelete(Set<String> urisToDelete, GoLiveContext context, Set<String> rescheduledUris) throws ServiceLayerException, UserNotFoundException
-
isRescheduleRequest
boolean isRescheduleRequest(DmDependencyTO dependencyTO, String site)
-
goLive
ResultTO goLive(String site, String request) throws ServiceLayerException
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
ResultTO reject(String site, String request) throws ServiceLayerException
- Throws:
ServiceLayerException
-
fillQueue
void fillQueue(String site, GoLiveQueue goLiveQueue, GoLiveQueue inProcessQueue)
-
cleanWorkflow
boolean cleanWorkflow(String url, String site) throws ServiceLayerException, UserNotFoundException
-
-