Interface AutoPageTranslateService
-
- All Known Implementing Classes:
AutoPageTranslateServiceImpl
public interface AutoPageTranslateService
Actual logic for translating a livecopy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AutoPageTranslateService.Stats
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,LocalDateTime>
getRunningTranslations()
void
rollback(org.apache.sling.api.resource.Resource resource)
Rolls everything back in the resource - mostly for testing purposes.AutoPageTranslateService.Stats
translateLiveCopy(org.apache.sling.api.resource.Resource resource, AutoTranslateService.TranslationParameters translationParameters)
Implements the actual translation for one page or asset.
-
-
-
Method Detail
-
getRunningTranslations
Map<String,LocalDateTime> getRunningTranslations()
-
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
-
-