Class AutoTranslateWorkflowProcess

  • All Implemented Interfaces:
    com.adobe.granite.workflow.exec.WorkflowProcess

    public class AutoTranslateWorkflowProcess
    extends Object
    implements com.adobe.granite.workflow.exec.WorkflowProcess
    Deprecated.
    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 of AutoTranslateService.TranslationParameters, e.g. {"autoSave":false,"breakInheritance":false,"translateWhenChanged":true,"recursive":false} .
    • Field Detail

      • gson

        protected final com.google.gson.Gson gson
        Deprecated.
    • Constructor Detail

      • AutoTranslateWorkflowProcess

        public AutoTranslateWorkflowProcess()
        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 interface com.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