Interface AutoTranslateService
-
- All Known Implementing Classes:
AutoTranslateServiceImpl
public interface AutoTranslateService
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAutoTranslateService.TranslationPagestatic classAutoTranslateService.TranslationParametersstatic classAutoTranslateService.TranslationRunstatic classAutoTranslateService.TranslationRunMessageA message from the translation run, displayable in the Test UIstatic classAutoTranslateService.TranslationStatus
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<AutoTranslateService.TranslationRun>getTranslationRuns()Retrieves all currently running translation processes.booleanisEnabled()voidrollback(org.apache.sling.api.resource.Resource resource)Rolls the translation results at this resource back - mostly for debugging.AutoTranslateService.TranslationRunstartTranslation(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.LoginExceptionorg.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 the translation results at this resource back - mostly for debugging.- Throws:
com.day.cq.wcm.api.WCMExceptionorg.apache.sling.api.resource.PersistenceException
-
isEnabled
boolean isEnabled()
-
-