public class BtgResultCleaningJob extends AbstractJobPerformable<BTGResultCleaningCronJobModel>
flexibleSearchService, modelService, sessionService| Constructor and Description |
|---|
BtgResultCleaningJob() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> List<T> |
doSearch(String query,
Map<String,Object> params,
Class<T> resultClass) |
protected ModelService |
getModelService() |
protected TimeService |
getTimeService() |
PerformResult |
perform(BTGResultCleaningCronJobModel job)
The execution body for a
ServicelayerJob. |
protected void |
removeResult(Date modifiedBefore,
BTGResultScope resultScope) |
void |
setTimeService(TimeService timeService) |
protected void |
validateResultMaxAge(int resultMaxAge) |
clearAbortRequestedIfNeeded, isAbortable, isPerformable, setFlexibleSearchService, setModelService, setSessionServicepublic PerformResult perform(BTGResultCleaningCronJobModel job)
JobPerformableServicelayerJob. Implement here your execution logic. It can be called
synchronous or asynchronous. So be aware of thread-safety. Method will return a result object saying if the
execution has reached end and if it was successful.perform in interface JobPerformable<BTGResultCleaningCronJobModel>perform in class AbstractJobPerformable<BTGResultCleaningCronJobModel>job - the related CronJob in whose context the execution will be performed.PerformResult that indicates whether the execution was successfully executed
or not and has finished or not.protected void validateResultMaxAge(int resultMaxAge)
protected void removeResult(Date modifiedBefore, BTGResultScope resultScope)
protected <T> List<T> doSearch(String query, Map<String,Object> params, Class<T> resultClass)
protected TimeService getTimeService()
public void setTimeService(TimeService timeService)
protected ModelService getModelService()
Copyright © 2017 SAP SE. All Rights Reserved.