Interface AutoPageTranslateService
-
- All Known Implementing Classes:
AutoPageTranslateServiceImpl
public interface AutoPageTranslateServiceActual logic for translating a livecopy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAutoPageTranslateService.Stats
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,LocalDateTime>getRunningTranslations()voidrollback(org.apache.sling.api.resource.Resource resource)Rolls everything back in the resource - mostly for testing purposes.AutoPageTranslateService.StatstranslateLiveCopy(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.WCMExceptionorg.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.PersistenceExceptionRolls everything back in the resource - mostly for testing purposes.- Throws:
com.day.cq.wcm.api.WCMExceptionorg.apache.sling.api.resource.PersistenceException
-
-