Class AutoTranslateWorkflowProcess
- java.lang.Object
-
- com.composum.ai.aem.core.impl.autotranslate.workflow.AutoTranslateWorkflowProcess
-
- All Implemented Interfaces:
com.adobe.granite.workflow.exec.WorkflowProcess
public class AutoTranslateWorkflowProcess extends Object implements com.adobe.granite.workflow.exec.WorkflowProcess
Deprecated.rather useTriggerRolloutWorkflowProcess
Autotranslate workflow. This triggers a automatic translation of a live copy from it's blueprint. As process arguments a JSON can be given that configures the translation process - a serialization ofAutoTranslateService.TranslationParameters
, e.g. {"autoSave":false,"breakInheritance":false,"translateWhenChanged":true,"recursive":false} .
-
-
Field Summary
Fields Modifier and Type Field Description protected AutoPageTranslateService
autoPageTranslateService
Deprecated.protected AutoTranslateConfigService
autoTranslateConfigService
Deprecated.protected com.google.gson.Gson
gson
Deprecated.
-
Constructor Summary
Constructors Constructor Description AutoTranslateWorkflowProcess()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
execute(com.adobe.granite.workflow.exec.WorkItem workItem, com.adobe.granite.workflow.WorkflowSession workflowSession, com.adobe.granite.workflow.metadata.MetaDataMap metaDataMap)
Deprecated.protected AutoTranslateService.TranslationParameters
getTranslationParameters(String processArguments)
Deprecated.protected void
translate(org.apache.sling.api.resource.Resource resource, AutoTranslateService.TranslationParameters parms, int depth)
Deprecated.protected void
translate(org.apache.sling.api.resource.Resource resource, String processArguments)
Deprecated.We only translate jcr:content resources or resources that are within a jcr:content.
-
-
-
Field Detail
-
autoPageTranslateService
protected AutoPageTranslateService autoPageTranslateService
Deprecated.
-
autoTranslateConfigService
protected AutoTranslateConfigService autoTranslateConfigService
Deprecated.
-
gson
protected final com.google.gson.Gson gson
Deprecated.
-
-
Method Detail
-
execute
public void execute(com.adobe.granite.workflow.exec.WorkItem workItem, com.adobe.granite.workflow.WorkflowSession workflowSession, com.adobe.granite.workflow.metadata.MetaDataMap metaDataMap) throws com.adobe.granite.workflow.WorkflowException
Deprecated.- Specified by:
execute
in interfacecom.adobe.granite.workflow.exec.WorkflowProcess
- Throws:
com.adobe.granite.workflow.WorkflowException
-
getTranslationParameters
protected AutoTranslateService.TranslationParameters getTranslationParameters(String processArguments) throws com.adobe.granite.workflow.WorkflowException
Deprecated.- Throws:
com.adobe.granite.workflow.WorkflowException
-
translate
protected void translate(@Nonnull org.apache.sling.api.resource.Resource resource, String processArguments) throws org.apache.sling.api.resource.PersistenceException, com.day.cq.wcm.api.WCMException, com.adobe.granite.workflow.WorkflowException
Deprecated.We only translate jcr:content resources or resources that are within a jcr:content. If recursive is enabled, we search for the jcr:content recursively.- Throws:
org.apache.sling.api.resource.PersistenceException
com.day.cq.wcm.api.WCMException
com.adobe.granite.workflow.WorkflowException
-
translate
protected void translate(@Nonnull org.apache.sling.api.resource.Resource resource, AutoTranslateService.TranslationParameters parms, int depth) throws org.apache.sling.api.resource.PersistenceException, com.day.cq.wcm.api.WCMException, com.adobe.granite.workflow.WorkflowException
Deprecated.- Throws:
org.apache.sling.api.resource.PersistenceException
com.day.cq.wcm.api.WCMException
com.adobe.granite.workflow.WorkflowException
-
-