Interface AutoTranslateService
-
- All Known Implementing Classes:
AutoTranslateServiceImpl
public interface AutoTranslateService
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AutoTranslateService.TranslationPage
static class
AutoTranslateService.TranslationParameters
static class
AutoTranslateService.TranslationRun
static class
AutoTranslateService.TranslationStatus
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<AutoTranslateService.TranslationRun>
getTranslationRuns()
Retrieves all currently running translation processes.boolean
isEnabled()
void
rollback(org.apache.sling.api.resource.Resource resource)
Rolls the translation results at this resource back - mostly for debugging.AutoTranslateService.TranslationRun
startTranslation(org.apache.sling.api.resource.ResourceResolver resourceResolver, String path, AutoTranslateService.TranslationParameters translationParameters)
Starts a new translation run.
-
-
-
Method Detail
-
getTranslationRuns
List<AutoTranslateService.TranslationRun> getTranslationRuns()
Retrieves all currently running translation processes.
-
startTranslation
AutoTranslateService.TranslationRun startTranslation(@Nonnull org.apache.sling.api.resource.ResourceResolver resourceResolver, @Nonnull String path, @Nonnull AutoTranslateService.TranslationParameters translationParameters) throws org.apache.sling.api.resource.LoginException, org.apache.sling.api.resource.PersistenceException
Starts a new translation run.- Throws:
org.apache.sling.api.resource.LoginException
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 the translation results at this resource back - mostly for debugging.- Throws:
com.day.cq.wcm.api.WCMException
org.apache.sling.api.resource.PersistenceException
-
isEnabled
boolean isEnabled()
-
-