public class PublishOrUnpublishPageSchedulable extends AbstractStaticSchedulable
Schedulable job which publishes/unpublishes a page.AbstractStaticSchedulable.SchedulableParameterParser| Modifier and Type | Field and Description | 
|---|---|
protected CurrentUserProvider | 
_currentUserProvider
The current user provider 
 | 
private static String | 
_JOBDATAMAP_PAGE_ID_KEY  | 
protected ObservationManager | 
_observationManager
The observation manager 
 | 
protected AmetysObjectResolver | 
_resolver
The Ametys object resolver 
 | 
static String | 
PAGE_ID_KEY
The key for the id of the page to publish 
 | 
_acceptConcurrentExecution, _context, _description, _iconGlyph, _iconLarge, _iconMedium, _iconSmall, _id, _label, _parameters, _pluginName, _private, _smanager| Constructor and Description | 
|---|
PublishOrUnpublishPageSchedulable()  | 
| 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, setPluginInfogetLogger, setLoggerpublic static final String PAGE_ID_KEY
private static final String _JOBDATAMAP_PAGE_ID_KEY
protected ObservationManager _observationManager
protected AmetysObjectResolver _resolver
protected CurrentUserProvider _currentUserProvider
public PublishOrUnpublishPageSchedulable()
public void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class AbstractStaticSchedulableServiceExceptionpublic void execute(JobExecutionContext context) throws Exception
Schedulableexecute in interface Schedulableexecute in class AbstractStaticSchedulablecontext - the contextException - if an error occured