Class AutoTranslateServiceImpl.TranslationRunImpl
- java.lang.Object
-
- com.composum.ai.aem.core.impl.autotranslate.AutoTranslateService.TranslationRun
-
- com.composum.ai.aem.core.impl.autotranslate.AutoTranslateServiceImpl.TranslationRunImpl
-
- Enclosing class:
- AutoTranslateServiceImpl
public class AutoTranslateServiceImpl.TranslationRunImpl extends AutoTranslateService.TranslationRun
-
-
Constructor Summary
Constructors Constructor Description TranslationRunImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
void
execute(org.apache.sling.api.resource.ResourceResolver callResourceResolver)
Translate the pages; close the resolver when done.List<AutoTranslateService.TranslationPage>
getTranslatedPages()
void
rollback(org.apache.sling.api.resource.ResourceResolver resourceResolver)
-
Methods inherited from class com.composum.ai.aem.core.impl.autotranslate.AutoTranslateService.TranslationRun
isInProgress, statusString, toString
-
-
-
-
Field Detail
-
future
public Future<?> future
-
waituntil
public long waituntil
-
-
Method Detail
-
getTranslatedPages
public List<AutoTranslateService.TranslationPage> getTranslatedPages()
- Specified by:
getTranslatedPages
in classAutoTranslateService.TranslationRun
-
cancel
public void cancel()
- Specified by:
cancel
in classAutoTranslateService.TranslationRun
-
rollback
public void rollback(@Nonnull org.apache.sling.api.resource.ResourceResolver resourceResolver) throws org.apache.sling.api.resource.PersistenceException, com.day.cq.wcm.api.WCMException
- Specified by:
rollback
in classAutoTranslateService.TranslationRun
- Throws:
org.apache.sling.api.resource.PersistenceException
com.day.cq.wcm.api.WCMException
-
execute
public void execute(org.apache.sling.api.resource.ResourceResolver callResourceResolver)
Translate the pages; close the resolver when done.
-
-