Class AutoTranslateListModel


  • @Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class)
    public class AutoTranslateListModel
    extends Object
    • Field Detail

      • SUFFIX_TRANSLATECOPY

        public static final String SUFFIX_TRANSLATECOPY
        If parameter copyOriginalPage is set, we create a copy of the original page with this suffix before doing the translation.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AutoTranslateListModel

        public AutoTranslateListModel()
    • Method Detail

      • isDisabled

        public boolean isDisabled()
      • inProgress

        public boolean inProgress()
      • createRun

        public AutoTranslateService.TranslationRun createRun()
                                                      throws org.apache.sling.api.resource.LoginException,
                                                             org.apache.sling.api.resource.PersistenceException,
                                                             com.day.cq.wcm.api.WCMException
        Throws:
        org.apache.sling.api.resource.LoginException
        org.apache.sling.api.resource.PersistenceException
        com.day.cq.wcm.api.WCMException
      • copyOriginalPage

        protected void copyOriginalPage​(org.apache.sling.api.SlingHttpServletRequest request,
                                        String path)
                                 throws com.day.cq.wcm.api.WCMException,
                                        org.apache.sling.api.resource.PersistenceException
        Make a copy of the original page for comparison purposes.
        Throws:
        com.day.cq.wcm.api.WCMException
        org.apache.sling.api.resource.PersistenceException
      • rollback

        public String rollback()
                        throws com.day.cq.wcm.api.WCMException,
                               org.apache.sling.api.resource.PersistenceException
        Throws:
        com.day.cq.wcm.api.WCMException
        org.apache.sling.api.resource.PersistenceException