Class WorkflowServiceInternalImpl
java.lang.Object
org.craftercms.studio.impl.v2.service.workflow.internal.WorkflowServiceInternalImpl
- All Implemented Interfaces:
WorkflowServiceInternal
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowServiceInternalImpl(DependencyServiceInternal dependencyService, RetryingDatabaseOperationFacade retryingDatabaseOperationFacade, WorkflowDAO workflowDao) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteWorkflowEntries(String siteId, Collection<String> paths) Delete workflow entries for given site and pathsvoiddeleteWorkflowEntries(String siteId, Collection<String> paths, String workflowState) Delete workflow entries for given site and paths matching the workflow statevoiddeleteWorkflowEntriesForSite(long siteId) Delete workflow entries for given sitevoiddeleteWorkflowEntry(String siteId, String path) Delete workflow entry for given site and pathvoiddeleteWorkflowPackages(String siteId, Collection<String> affectedPackages) Delete workflow packages matching the affected package idsgetContentPendingApproval(String siteId, int offset, int limit) Get workflow packages pending approvalgetContentPendingApprovalDetail(String siteId, String packageId) Get items from workflow package pending approvalintgetContentPendingApprovalTotal(String siteId) Get total number of workflow packages pending approvalgetSubmittedItems(String site) Get submitted items for sitegetWorkflowAffectedPaths(String siteId, String path) Get workflow affected paths if content is editedgetWorkflowEntry(String siteId, String path) Get workflow entrygetWorkflowEntry(String siteId, String path, String publishingPackageId) Get workflow entrygetWorkflowEntryForApproval(Long itemId) Get workflow entry for approvalgetWorkflowHardDeps(String siteId, String path) Get the path hard dependencies that are currently in workflowgetWorkflowItem(String siteId, String path, String state) voidinsertWorkflow(Workflow workflow) insert new workflow entryvoidinsertWorkflowEntries(List<Workflow> workflowEntries) insert new workflow entriesvoidupdateWorkflow(Workflow workflow) Update new workflow entry
-
Constructor Details
-
WorkflowServiceInternalImpl
@ConstructorProperties({"dependencyService","retryingDatabaseOperationFacade","workflowDao"}) public WorkflowServiceInternalImpl(DependencyServiceInternal dependencyService, RetryingDatabaseOperationFacade retryingDatabaseOperationFacade, WorkflowDAO workflowDao)
-
-
Method Details
-
getWorkflowItem
- Specified by:
getWorkflowItemin interfaceWorkflowServiceInternal
-
getWorkflowEntry
Description copied from interface:WorkflowServiceInternalGet workflow entry- Specified by:
getWorkflowEntryin interfaceWorkflowServiceInternal- Parameters:
siteId-path-- Returns:
-
getWorkflowEntryForApproval
Description copied from interface:WorkflowServiceInternalGet workflow entry for approval- Specified by:
getWorkflowEntryForApprovalin interfaceWorkflowServiceInternal- Parameters:
itemId- item identifier- Returns:
-
getWorkflowEntry
Description copied from interface:WorkflowServiceInternalGet workflow entry- Specified by:
getWorkflowEntryin interfaceWorkflowServiceInternal- Parameters:
siteId-path-publishingPackageId-- Returns:
-
insertWorkflow
Description copied from interface:WorkflowServiceInternalinsert new workflow entry- Specified by:
insertWorkflowin interfaceWorkflowServiceInternal- Parameters:
workflow- workflow entry
-
insertWorkflowEntries
Description copied from interface:WorkflowServiceInternalinsert new workflow entries- Specified by:
insertWorkflowEntriesin interfaceWorkflowServiceInternal- Parameters:
workflowEntries- list of workflow entries
-
updateWorkflow
Description copied from interface:WorkflowServiceInternalUpdate new workflow entry- Specified by:
updateWorkflowin interfaceWorkflowServiceInternal- Parameters:
workflow- workflow entry
-
getSubmittedItems
Description copied from interface:WorkflowServiceInternalGet submitted items for site- Specified by:
getSubmittedItemsin interfaceWorkflowServiceInternal- Parameters:
site- site identifier- Returns:
-
deleteWorkflowEntries
Description copied from interface:WorkflowServiceInternalDelete workflow entries for given site and paths- Specified by:
deleteWorkflowEntriesin interfaceWorkflowServiceInternal- Parameters:
siteId- site identifierpaths- list of paths to delete workflow
-
deleteWorkflowEntries
Description copied from interface:WorkflowServiceInternalDelete workflow entries for given site and paths matching the workflow state- Specified by:
deleteWorkflowEntriesin interfaceWorkflowServiceInternal- Parameters:
siteId- site identifierpaths- list of paths to delete workflowworkflowState- workflow state to match
-
deleteWorkflowEntry
Description copied from interface:WorkflowServiceInternalDelete workflow entry for given site and path- Specified by:
deleteWorkflowEntryin interfaceWorkflowServiceInternal- Parameters:
siteId- site identifierpath- path to delete workflow
-
deleteWorkflowEntriesForSite
public void deleteWorkflowEntriesForSite(long siteId) Description copied from interface:WorkflowServiceInternalDelete workflow entries for given site- Specified by:
deleteWorkflowEntriesForSitein interfaceWorkflowServiceInternal- Parameters:
siteId- site id
-
getContentPendingApprovalTotal
Description copied from interface:WorkflowServiceInternalGet total number of workflow packages pending approval- Specified by:
getContentPendingApprovalTotalin interfaceWorkflowServiceInternal- Parameters:
siteId- site identifier- Returns:
- total number of workflow packages
-
getContentPendingApproval
public List<DashboardPublishingPackage> getContentPendingApproval(String siteId, int offset, int limit) Description copied from interface:WorkflowServiceInternalGet workflow packages pending approval- Specified by:
getContentPendingApprovalin interfaceWorkflowServiceInternal- Parameters:
siteId- site identifieroffset- offset of the first record in the resultlimit- limit number of records in the result- Returns:
- list of workflow packages
-
getContentPendingApprovalDetail
Description copied from interface:WorkflowServiceInternalGet items from workflow package pending approval- Specified by:
getContentPendingApprovalDetailin interfaceWorkflowServiceInternal- Parameters:
siteId- site identifierpackageId- workflow package identifier- Returns:
- list of workflow entries
-
getWorkflowAffectedPaths
public Collection<String> getWorkflowAffectedPaths(String siteId, String path) throws ServiceLayerException Description copied from interface:WorkflowServiceInternalGet workflow affected paths if content is edited- Specified by:
getWorkflowAffectedPathsin interfaceWorkflowServiceInternal- Parameters:
siteId- site identifierpath- path of the content to be edited- Returns:
- List of sandbox items that will be taken out of workflow after edit
- Throws:
ServiceLayerException
-
getWorkflowHardDeps
public Collection<String> getWorkflowHardDeps(String siteId, String path) throws ServiceLayerException Description copied from interface:WorkflowServiceInternalGet the path hard dependencies that are currently in workflow- Specified by:
getWorkflowHardDepsin interfaceWorkflowServiceInternal- Parameters:
siteId- the site identifierpath- the path to get hard dependencies for- Returns:
- collection of paths that are hard dependencies of path and are in workflow
- Throws:
ServiceLayerException- if an error occurs while getting the hard dependencies
-
deleteWorkflowPackages
Description copied from interface:WorkflowServiceInternalDelete workflow packages matching the affected package ids- Specified by:
deleteWorkflowPackagesin interfaceWorkflowServiceInternal- Parameters:
siteId- the site identifieraffectedPackages- the affected package ids to delete
-