public class RebuildLiveSiteWorkspaceSchedulable extends AbstractRebuildLiveWorkspaceSchedulable
Schedulable
job which rebuild and populate the live workspace of a site.AbstractStaticSchedulable.SchedulableParameterParser
Modifier and Type | Field and Description |
---|---|
private static String |
__JOBDATAMAP_SITE_KEY |
protected JSONUtils |
_jsonUtils
The utils for JSON
|
protected SiteManager |
_siteManager
The site amanger
|
protected static String |
JOBDATAMAP_SITE_KEY
The key for the site to rebuild the live workspace
|
__ERROR_MAIL_BODY, __ERROR_MAIL_SUBJECT, _environmentContext, _i18nUtils, _rebuildLiveComponent, _repository
_acceptConcurrentExecution, _context, _description, _iconGlyph, _iconLarge, _iconMedium, _iconSmall, _id, _label, _parameters, _pluginName, _private, _schedulableParameterTypeExtensionPoint, _smanager
Constructor and Description |
---|
RebuildLiveSiteWorkspaceSchedulable() |
Modifier and Type | Method and Description |
---|---|
protected void |
_doExecute(JobExecutionContext context)
Executes the runnable.
|
private Site |
_getSite(String siteAsMap) |
protected void |
_initializeErrorMail(JobExecutionContext context)
|
void |
service(ServiceManager manager) |
contextualize, execute
acceptConcurrentExecution, configure, getDescription, getIconGlyph, getIconLarge, getIconMedium, getIconSmall, getId, getLabel, getParameters, isPrivate, setPluginInfo
getLogger, setLogger
protected static final String JOBDATAMAP_SITE_KEY
private static final String __JOBDATAMAP_SITE_KEY
protected SiteManager _siteManager
protected JSONUtils _jsonUtils
public RebuildLiveSiteWorkspaceSchedulable()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractRebuildLiveWorkspaceSchedulable
ServiceException
protected void _initializeErrorMail(JobExecutionContext context)
AbstractRebuildLiveWorkspaceSchedulable
AbstractRebuildLiveWorkspaceSchedulable.__ERROR_MAIL_BODY
and AbstractRebuildLiveWorkspaceSchedulable.__ERROR_MAIL_SUBJECT
_initializeErrorMail
in class AbstractRebuildLiveWorkspaceSchedulable
context
- the contextprotected void _doExecute(JobExecutionContext context) throws Exception
AbstractRebuildLiveWorkspaceSchedulable
_doExecute
in class AbstractRebuildLiveWorkspaceSchedulable
context
- the contextException
- if an error occured