Interface WorkflowServiceInternal
- All Known Implementing Classes:
WorkflowServiceInternalImpl
public interface WorkflowServiceInternal
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteWorkflowEntries
(String site, Collection<String> paths) Delete workflow entries for given site and pathsvoid
deleteWorkflowEntries
(String site, Collection<String> paths, String workflowState) Delete workflow entries for given site and paths matching the workflow statevoid
deleteWorkflowEntriesForSite
(long siteId) Delete workflow entries for given sitevoid
deleteWorkflowEntry
(String site, String path) Delete workflow entry for given site and pathvoid
deleteWorkflowPackages
(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 approvalint
getContentPendingApprovalTotal
(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) void
insertWorkflow
(Workflow workflow) insert new workflow entryvoid
insertWorkflowEntries
(List<Workflow> workflowEntries) insert new workflow entriesvoid
updateWorkflow
(Workflow workflow) Update new workflow entry
-
Method Details
-
getWorkflowItem
-
getWorkflowEntry
Get workflow entry- Parameters:
siteId
-path
-- Returns:
-
getWorkflowEntryForApproval
Get workflow entry for approval- Parameters:
itemId
- item identifier- Returns:
-
getWorkflowEntry
Get workflow entry- Parameters:
siteId
-path
-publishingPackageId
-- Returns:
-
insertWorkflow
insert new workflow entry- Parameters:
workflow
- workflow entry
-
insertWorkflowEntries
insert new workflow entries- Parameters:
workflowEntries
- list of workflow entries
-
updateWorkflow
Update new workflow entry- Parameters:
workflow
- workflow entry
-
getSubmittedItems
Get submitted items for site- Parameters:
site
- site identifier- Returns:
-
deleteWorkflowEntries
Delete workflow entries for given site and paths- Parameters:
site
- site identifierpaths
- list of paths to delete workflow
-
deleteWorkflowEntries
Delete workflow entries for given site and paths matching the workflow state- Parameters:
site
- site identifierpaths
- list of paths to delete workflowworkflowState
- workflow state to match
-
deleteWorkflowEntry
Delete workflow entry for given site and path- Parameters:
site
- site identifierpath
- path to delete workflow
-
deleteWorkflowEntriesForSite
void deleteWorkflowEntriesForSite(long siteId) Delete workflow entries for given site- Parameters:
siteId
- site id
-
getContentPendingApprovalTotal
Get total number of workflow packages pending approval- Parameters:
siteId
- site identifier- Returns:
- total number of workflow packages
-
getContentPendingApproval
Get workflow packages pending approval- 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
Get items from workflow package pending approval- Parameters:
siteId
- site identifierpackageId
- workflow package identifier- Returns:
- list of workflow entries
-
getWorkflowAffectedPaths
Collection<String> getWorkflowAffectedPaths(String siteId, String path) throws ServiceLayerException Get workflow affected paths if content is edited- 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
Get the path hard dependencies that are currently in workflow- 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
Delete workflow packages matching the affected package ids- Parameters:
siteId
- the site identifieraffectedPackages
- the affected package ids to delete
-