public class DeleteClassifiedAdsSchedulable extends AbstractStaticSchedulable
Schedulable
job which delete classified ads after an defined number of daysAbstractStaticSchedulable.SchedulableParameterParser
Modifier and Type | Field and Description |
---|---|
protected ContentDAO |
_contentDAO
The content DAO
|
protected AmetysObjectResolver |
_resolver
The Ametys object resolver
|
static String |
CLASSIFIED_ADS_CONTENT_TYPE
The content type id
|
static String |
JOBDATAMAP_NB_DAY
The key for the number of day
|
_acceptConcurrentExecution, _context, _description, _iconGlyph, _iconLarge, _iconMedium, _iconSmall, _id, _label, _parameters, _pluginName, _private, _schedulableParameterTypeExtensionPoint, _smanager
Constructor and Description |
---|
DeleteClassifiedAdsSchedulable() |
Modifier and Type | Method and Description |
---|---|
void |
execute(JobExecutionContext context)
The action to perform when a trigger is fired.
|
void |
service(ServiceManager manager) |
acceptConcurrentExecution, configure, contextualize, getDescription, getIconGlyph, getIconLarge, getIconMedium, getIconSmall, getId, getLabel, getParameters, isPrivate, setPluginInfo
getLogger, setLogger
public static final String JOBDATAMAP_NB_DAY
public static final String CLASSIFIED_ADS_CONTENT_TYPE
protected AmetysObjectResolver _resolver
protected ContentDAO _contentDAO
public DeleteClassifiedAdsSchedulable()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractStaticSchedulable
ServiceException
public void execute(JobExecutionContext context) throws Exception
Schedulable
execute
in interface Schedulable
execute
in class AbstractStaticSchedulable
context
- the contextException
- if an error occured