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 pathRetryingDatabaseOperationFacade
getRetryingDatabaseOperationFacade()
List<WorkflowItem>
getSubmittedItems(String site)
Get submitted items for siteWorkflowDAO
getWorkflowDao()
WorkflowItem
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 approvalvoid
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
-
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
-
getWorkflowDao
public WorkflowDAO getWorkflowDao()
-
setWorkflowDao
public void setWorkflowDao(WorkflowDAO workflowDao)
-
getRetryingDatabaseOperationFacade
public RetryingDatabaseOperationFacade getRetryingDatabaseOperationFacade()
-
setRetryingDatabaseOperationFacade
public void setRetryingDatabaseOperationFacade(RetryingDatabaseOperationFacade retryingDatabaseOperationFacade)
-
-