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 ActivityStreamServiceInternalprotected org.springframework.context.ApplicationContextprotected AuditServiceInternalprotected ContentServiceprotected ContentServiceInternalprotected DependencyServiceprotected DeploymentServiceprotected DmPublishServiceprotected ItemServiceInternalprotected NotificationServiceprotected PublishServiceInternalprotected SecurityServiceprotected ServicesConfigprotected SiteServiceprotected StudioConfigurationprotected UserServiceInternalprotected WorkflowProcessorprotected WorkflowServiceInternal -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_cancelWorkflow(String site, String path) protected voidcleanUrisFromWorkflow(Set<String> uris, String site) @jakarta.validation.Valid booleancleanWorkflow(String url, String site) deleteInTransaction(String site, List<String> itemsToDelete, String approver) voidpreScheduleDelete(Set<String> urisToDelete, ZonedDateTime scheduleDate, GoLiveContext context) protected void@jakarta.validation.Valid booleanremoveFromWorkflow(String site, String path, boolean cancelWorkflow) cancel the workflow pending on the given item.protected booleanremoveFromWorkflow(String site, String path, Set<String> processedPaths, boolean cancelWorkflow) voidsetActivityStreamServiceInternal(ActivityStreamServiceInternal activityStreamServiceInternal) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetAuditServiceInternal(AuditServiceInternal auditServiceInternal) voidsetContentService(ContentService contentService) voidsetContentServiceInternal(ContentServiceInternal contentServiceInternal) voidsetDependencyService(DependencyService dependencyService) voidsetDeploymentService(DeploymentService deploymentService) voidsetDmPublishService(DmPublishService dmPublishService) voidsetItemServiceInternal(ItemServiceInternal itemServiceInternal) voidsetNotificationService(NotificationService notificationService) voidsetPublishServiceInternal(PublishServiceInternal publishServiceInternal) voidsetSecurityService(SecurityService securityService) voidsetServicesConfig(ServicesConfig servicesConfig) voidsetSiteService(SiteService siteService) voidsetStudioConfiguration(StudioConfiguration studioConfiguration) voidsetUserServiceInternal(UserServiceInternal userServiceInternal) voidsetWorkflowProcessor(WorkflowProcessor workflowProcessor) voidsetWorkflowServiceInternal(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:WorkflowServicecancel the workflow pending on the given item.- Specified by:
removeFromWorkflowin 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:
preScheduleDeletein interfaceWorkflowService
-
preDelete
public List<String> preDelete(Set<String> urisToDelete, GoLiveContext context, Set<String> rescheduledUris) throws ServiceLayerException, UserNotFoundException - Specified by:
preDeletein interfaceWorkflowService- Throws:
ServiceLayerExceptionUserNotFoundException
-
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:
cleanWorkflowin interfaceWorkflowService- Throws:
ServiceLayerExceptionUserNotFoundException
-
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:
setApplicationContextin 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)
-