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 useTriggerRolloutWorkflowProcessAutotranslate 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,"recursive":false} .
-
-
Field Summary
Fields Modifier and Type Field Description protected AutoPageTranslateServiceautoPageTranslateServiceDeprecated.protected AutoTranslateConfigServiceautoTranslateConfigServiceDeprecated.protected com.google.gson.GsongsonDeprecated.
-
Constructor Summary
Constructors Constructor Description AutoTranslateWorkflowProcess()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidexecute(com.adobe.granite.workflow.exec.WorkItem workItem, com.adobe.granite.workflow.WorkflowSession workflowSession, com.adobe.granite.workflow.metadata.MetaDataMap metaDataMap)Deprecated.protected AutoTranslateService.TranslationParametersgetTranslationParameters(String processArguments)Deprecated.protected voidtranslate(org.apache.sling.api.resource.Resource resource, AutoTranslateService.TranslationParameters parms, int depth)Deprecated.protected voidtranslate(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.WorkflowExceptionDeprecated.- Specified by:
executein 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.PersistenceExceptioncom.day.cq.wcm.api.WCMExceptioncom.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.PersistenceExceptioncom.day.cq.wcm.api.WCMExceptioncom.adobe.granite.workflow.WorkflowException
-
-