Class WorkflowServiceInternalImpl
- java.lang.Object
-
- org.craftercms.studio.impl.v2.service.workflow.internal.WorkflowServiceInternalImpl
-
- All Implemented Interfaces:
WorkflowServiceInternal
public class WorkflowServiceInternalImpl extends Object implements WorkflowServiceInternal
-
-
Constructor Summary
Constructors Constructor Description WorkflowServiceInternalImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteWorkflowEntries(String siteId, List<String> paths)
Delete workflow entries for given site and pathsvoid
deleteWorkflowEntriesForSite(long siteId)
Delete workflow entries for given sitevoid
deleteWorkflowEntry(String siteId, String path)
Delete workflow entry for given site and pathList<DashboardPublishingPackage>
getContentPendingApproval(String siteId, int offset, int limit)
Get workflow packages pending approvalList<Workflow>
getContentPendingApprovalDetail(String siteId, String packageId)
Get items from workflow package pending approvalint
getContentPendingApprovalTotal(String siteId)
Get total number of workflow packages pending approvalList<WorkflowItem>
getSubmittedItems(String site)
Get submitted items for siteWorkflowItem
getWorkflowEntry(String siteId, String path)
Get workflow entryWorkflow
getWorkflowEntry(String siteId, String path, String publishingPackageId)
Get workflow entryWorkflow
getWorkflowEntryForApproval(Long itemId)
Get workflow entry for approvalWorkflowItem
getWorkflowItem(String siteId, String path, String state)
void
insertWorkflow(Workflow workflow)
insert new workflow entryvoid
insertWorkflowEntries(List<Workflow> workflowEntries)
insert new workflow entriesvoid
setRetryingDatabaseOperationFacade(RetryingDatabaseOperationFacade retryingDatabaseOperationFacade)
void
setWorkflowDao(WorkflowDAO workflowDao)
void
updateWorkflow(Workflow workflow)
Update new workflow entry
-
-
-
Method Detail
-
getWorkflowItem
public WorkflowItem getWorkflowItem(String siteId, String path, String state)
- Specified by:
getWorkflowItem
in interfaceWorkflowServiceInternal
-
getWorkflowEntry
public WorkflowItem getWorkflowEntry(String siteId, String path)
Description copied from interface:WorkflowServiceInternal
Get workflow entry- Specified by:
getWorkflowEntry
in interfaceWorkflowServiceInternal
- Returns:
-
getWorkflowEntryForApproval
public Workflow getWorkflowEntryForApproval(Long itemId)
Description copied from interface:WorkflowServiceInternal
Get workflow entry for approval- Specified by:
getWorkflowEntryForApproval
in interfaceWorkflowServiceInternal
- Parameters:
itemId
- item identifier- Returns:
-
getWorkflowEntry
public Workflow getWorkflowEntry(String siteId, String path, String publishingPackageId)
Description copied from interface:WorkflowServiceInternal
Get workflow entry- Specified by:
getWorkflowEntry
in interfaceWorkflowServiceInternal
- Returns:
-
insertWorkflow
public void insertWorkflow(Workflow workflow)
Description copied from interface:WorkflowServiceInternal
insert new workflow entry- Specified by:
insertWorkflow
in interfaceWorkflowServiceInternal
- Parameters:
workflow
- workflow entry
-
insertWorkflowEntries
public void insertWorkflowEntries(List<Workflow> workflowEntries)
Description copied from interface:WorkflowServiceInternal
insert new workflow entries- Specified by:
insertWorkflowEntries
in interfaceWorkflowServiceInternal
- Parameters:
workflowEntries
- list of workflow entries
-
updateWorkflow
public void updateWorkflow(Workflow workflow)
Description copied from interface:WorkflowServiceInternal
Update new workflow entry- Specified by:
updateWorkflow
in interfaceWorkflowServiceInternal
- Parameters:
workflow
- workflow entry
-
getSubmittedItems
public List<WorkflowItem> getSubmittedItems(String site)
Description copied from interface:WorkflowServiceInternal
Get submitted items for site- Specified by:
getSubmittedItems
in interfaceWorkflowServiceInternal
- Parameters:
site
- site identifier- Returns:
-
deleteWorkflowEntries
public void deleteWorkflowEntries(String siteId, List<String> paths)
Description copied from interface:WorkflowServiceInternal
Delete workflow entries for given site and paths- Specified by:
deleteWorkflowEntries
in interfaceWorkflowServiceInternal
- Parameters:
siteId
- site identifierpaths
- list of paths to delete workflow
-
deleteWorkflowEntry
public void deleteWorkflowEntry(String siteId, String path)
Description copied from interface:WorkflowServiceInternal
Delete workflow entry for given site and path- Specified by:
deleteWorkflowEntry
in interfaceWorkflowServiceInternal
- Parameters:
siteId
- site identifierpath
- path to delete workflow
-
deleteWorkflowEntriesForSite
public void deleteWorkflowEntriesForSite(long siteId)
Description copied from interface:WorkflowServiceInternal
Delete workflow entries for given site- Specified by:
deleteWorkflowEntriesForSite
in interfaceWorkflowServiceInternal
- Parameters:
siteId
- site id
-
getContentPendingApprovalTotal
public int getContentPendingApprovalTotal(String siteId)
Description copied from interface:WorkflowServiceInternal
Get total number of workflow packages pending approval- Specified by:
getContentPendingApprovalTotal
in 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:WorkflowServiceInternal
Get workflow packages pending approval- Specified by:
getContentPendingApproval
in 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
public List<Workflow> getContentPendingApprovalDetail(String siteId, String packageId)
Description copied from interface:WorkflowServiceInternal
Get items from workflow package pending approval- Specified by:
getContentPendingApprovalDetail
in interfaceWorkflowServiceInternal
- Parameters:
siteId
- site identifierpackageId
- workflow package identifier- Returns:
- list of workflow entries
-
setWorkflowDao
public void setWorkflowDao(WorkflowDAO workflowDao)
-
setRetryingDatabaseOperationFacade
public void setRetryingDatabaseOperationFacade(RetryingDatabaseOperationFacade retryingDatabaseOperationFacade)
-
-