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 org.springframework.context.ApplicationContextprotected ItemServiceInternalprotected NotificationServiceprotected PublishServiceInternalprotected SecurityServiceprotected UserServiceInternalprotected WorkflowServiceInternal -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_cancelWorkflow(String site, String path) @jakarta.validation.Valid booleancleanWorkflow(String url, String site) 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) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetItemServiceInternal(ItemServiceInternal itemServiceInternal) voidsetNotificationService(NotificationService notificationService) voidsetPublishServiceInternal(PublishServiceInternal publishServiceInternal) voidsetSecurityService(SecurityService securityService) voidsetUserServiceInternal(UserServiceInternal userServiceInternal) voidsetWorkflowServiceInternal(WorkflowServiceInternal workflowServiceInternal)
-
Field Details
-
securityService
-
notificationService
-
itemServiceInternal
-
userServiceInternal
-
workflowServiceInternal
-
publishServiceInternal
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
-
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
-
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(@NotNull org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
setSecurityService
-
setNotificationService
-
setItemServiceInternal
-
setUserServiceInternal
-
setWorkflowServiceInternal
-
setPublishServiceInternal
-