Class WorkflowServiceImpl
java.lang.Object
org.craftercms.studio.impl.v1.service.workflow.WorkflowServiceImpl
- All Implemented Interfaces:
WorkflowService
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class WorkflowServiceImpl
extends Object
implements WorkflowService, org.springframework.context.ApplicationContextAware
workflow service implementation
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActivityStreamServiceInternal
protected org.springframework.context.ApplicationContext
protected AuditServiceInternal
protected ContentService
protected ContentServiceInternal
protected DependencyService
protected DeploymentService
protected DmPublishService
protected ItemServiceInternal
protected NotificationService
protected PublishServiceInternal
protected SecurityService
protected ServicesConfig
protected SiteService
protected StudioConfiguration
protected UserServiceInternal
protected WorkflowProcessor
protected WorkflowServiceInternal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
_cancelWorkflow
(String site, String path) protected void
cleanUrisFromWorkflow
(Set<String> uris, String site) @jakarta.validation.Valid boolean
cleanWorkflow
(String url, String site) deleteInTransaction
(String site, List<String> itemsToDelete, String approver) void
preScheduleDelete
(Set<String> urisToDelete, ZonedDateTime scheduleDate, GoLiveContext context) protected void
@jakarta.validation.Valid boolean
removeFromWorkflow
(String site, String path, boolean cancelWorkflow) cancel the workflow pending on the given item.protected boolean
removeFromWorkflow
(String site, String path, Set<String> processedPaths, boolean cancelWorkflow) void
setActivityStreamServiceInternal
(ActivityStreamServiceInternal activityStreamServiceInternal) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setAuditServiceInternal
(AuditServiceInternal auditServiceInternal) void
setContentService
(ContentService contentService) void
setContentServiceInternal
(ContentServiceInternal contentServiceInternal) void
setDependencyService
(DependencyService dependencyService) void
setDeploymentService
(DeploymentService deploymentService) void
setDmPublishService
(DmPublishService dmPublishService) void
setItemServiceInternal
(ItemServiceInternal itemServiceInternal) void
setNotificationService
(NotificationService notificationService) void
setPublishServiceInternal
(PublishServiceInternal publishServiceInternal) void
setSecurityService
(SecurityService securityService) void
setServicesConfig
(ServicesConfig servicesConfig) void
setSiteService
(SiteService siteService) void
setStudioConfiguration
(StudioConfiguration studioConfiguration) void
setUserServiceInternal
(UserServiceInternal userServiceInternal) void
setWorkflowProcessor
(WorkflowProcessor workflowProcessor) void
setWorkflowServiceInternal
(WorkflowServiceInternal workflowServiceInternal)
-
Field Details
-
servicesConfig
-
deploymentService
-
contentService
-
dependencyService
-
dmPublishService
-
securityService
-
siteService
-
workflowProcessor
-
notificationService
-
studioConfiguration
-
auditServiceInternal
-
itemServiceInternal
-
userServiceInternal
-
workflowServiceInternal
-
contentServiceInternal
-
publishServiceInternal
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
activityStreamServiceInternal
-
-
Constructor Details
-
WorkflowServiceImpl
public WorkflowServiceImpl()
-
-
Method Details
-
removeFromWorkflow
@Valid public @jakarta.validation.Valid boolean removeFromWorkflow(String site, String path, boolean cancelWorkflow) throws ServiceLayerException, UserNotFoundException Description copied from interface:WorkflowService
cancel the workflow pending on the given item.- Specified by:
removeFromWorkflow
in interfaceWorkflowService
- 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
-
removeFromWorkflow
protected boolean removeFromWorkflow(String site, String path, Set<String> processedPaths, boolean cancelWorkflow) throws ServiceLayerException, UserNotFoundException -
_cancelWorkflow
- Throws:
ServiceLayerException
-
preScheduleDelete
public void preScheduleDelete(Set<String> urisToDelete, ZonedDateTime scheduleDate, GoLiveContext context) - Specified by:
preScheduleDelete
in interfaceWorkflowService
-
preDelete
public List<String> preDelete(Set<String> urisToDelete, GoLiveContext context, Set<String> rescheduledUris) throws ServiceLayerException, UserNotFoundException - Specified by:
preDelete
in interfaceWorkflowService
- Throws:
ServiceLayerException
UserNotFoundException
-
deleteInTransaction
-
cleanUrisFromWorkflow
protected void cleanUrisFromWorkflow(Set<String> uris, String site) throws ServiceLayerException, UserNotFoundException -
cleanWorkflow
@Valid public @jakarta.validation.Valid boolean cleanWorkflow(String url, String site) throws ServiceLayerException, UserNotFoundException - Specified by:
cleanWorkflow
in interfaceWorkflowService
- Throws:
ServiceLayerException
UserNotFoundException
-
reject
protected void reject(String site, List<DmDependencyTO> submittedItems, String reason, String approver) throws ServiceLayerException, UserNotFoundException -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
setServicesConfig
-
setDependencyService
-
setContentService
-
setDeploymentService
-
setDmPublishService
-
setSecurityService
-
setSiteService
-
setWorkflowProcessor
-
setNotificationService
-
setStudioConfiguration
-
setAuditServiceInternal
-
setItemServiceInternal
-
setUserServiceInternal
-
setWorkflowServiceInternal
-
setContentServiceInternal
-
setPublishServiceInternal
-
setActivityStreamServiceInternal
public void setActivityStreamServiceInternal(ActivityStreamServiceInternal activityStreamServiceInternal)
-