Interface AutoPageTranslateService

  • All Known Implementing Classes:
    AutoPageTranslateServiceImpl

    public interface AutoPageTranslateService
    Actual logic for translating a livecopy.
    • Method Detail

      • translateLiveCopy

        AutoPageTranslateService.Stats translateLiveCopy​(@Nonnull
                                                         org.apache.sling.api.resource.Resource resource,
                                                         @Nonnull
                                                         AutoTranslateService.TranslationParameters translationParameters)
                                                  throws com.day.cq.wcm.api.WCMException,
                                                         org.apache.sling.api.resource.PersistenceException
        Implements the actual translation for one page or asset.
        Throws:
        com.day.cq.wcm.api.WCMException
        org.apache.sling.api.resource.PersistenceException
      • rollback

        void rollback​(org.apache.sling.api.resource.Resource resource)
               throws com.day.cq.wcm.api.WCMException,
                      org.apache.sling.api.resource.PersistenceException
        Rolls everything back in the resource - mostly for testing purposes.
        Throws:
        com.day.cq.wcm.api.WCMException
        org.apache.sling.api.resource.PersistenceException