public class DynamicMaintenanceJobPerformable extends AbstractMaintenanceJobPerformable
DynamicMaintenanceCleanupJobModelflexibleSearchService, modelService, sessionService| Constructor and Description |
|---|
DynamicMaintenanceJobPerformable() |
| Modifier and Type | Method and Description |
|---|---|
FlexibleSearchQuery |
getFetchQuery(CronJobModel cronJob)
The beanshell field from the job model is readed and executed.
|
java.lang.String |
getType()
Must return an existing subtype of
ServicelayerJobModel as String. |
void |
process(java.util.List<ItemModel> elements,
CronJobModel cronJob)
If no beanshell code for the cleanup part is provided, the default behaviour is: iterate through the list and call
on each model modelService.remove(model)
|
void |
setApplicationContext(ApplicationContext applicationContext) |
perform, setAbortOnError, setModelResolver, setPageSizeclearAbortRequestedIfNeeded, isAbortable, isPerformable, setFlexibleSearchService, setModelService, setSessionServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateDefaultJobpublic FlexibleSearchQuery getFetchQuery(CronJobModel cronJob)
getFetchQuery in class AbstractMaintenanceJobPerformableMaintenanceCleanupStrategy.createFetchQuery(CronJobModel)public void process(java.util.List<ItemModel> elements, CronJobModel cronJob)
process in class AbstractMaintenanceJobPerformableMaintenanceCleanupStrategy.process(List)public java.lang.String getType()
TypeAwareJobPerformableServicelayerJobModel as String.getType in interface TypeAwareJobPerformablegetType in class AbstractMaintenanceJobPerformablepublic void setApplicationContext(ApplicationContext applicationContext)
throws BeansException
BeansExceptionCopyright © 2018 SAP SE. All Rights Reserved.