public abstract class AbstractRebuildLiveWorkspaceSchedulable extends AbstractStaticSchedulable
AbstractStaticSchedulable.SchedulableParameterParser
Modifier and Type | Field and Description |
---|---|
protected static I18nizableText |
__ERROR_MAIL_BODY
The i18n text for the body of the error mail
|
protected static I18nizableText |
__ERROR_MAIL_SUBJECT
The i18n text for the subject of the error mail
|
protected Context |
_environmentContext
The cocoon environment context.
|
protected I18nUtils |
_i18nUtils
The utils for i18n
|
protected RebuildLiveComponent |
_rebuildLiveComponent
Component for rebuilding the live workspace
|
protected Repository |
_repository
JCR repository
|
_acceptConcurrentExecution, _context, _description, _iconGlyph, _iconLarge, _iconMedium, _iconSmall, _id, _label, _parameters, _pluginName, _private, _smanager
Constructor and Description |
---|
AbstractRebuildLiveWorkspaceSchedulable() |
Modifier and Type | Method and Description |
---|---|
private Map<String,Object> |
_createAndEnterGenerationEnvironment() |
protected abstract void |
_doExecute(JobExecutionContext context)
Executes the runnable.
|
protected abstract void |
_initializeErrorMail(JobExecutionContext context)
Initializes
__ERROR_MAIL_BODY and __ERROR_MAIL_SUBJECT |
private void |
_leaveGenerationEnvironment(Map environmentInformation) |
private void |
_sendErrorMail(String message) |
void |
contextualize(Context context) |
void |
execute(JobExecutionContext context)
The action to perform when a trigger is fired.
|
void |
service(ServiceManager manager) |
acceptConcurrentExecution, configure, getDescription, getIconGlyph, getIconLarge, getIconMedium, getIconSmall, getId, getLabel, getParameters, isPrivate, setPluginInfo
getLogger, setLogger
protected static I18nizableText __ERROR_MAIL_SUBJECT
protected static I18nizableText __ERROR_MAIL_BODY
protected Context _environmentContext
protected I18nUtils _i18nUtils
protected RebuildLiveComponent _rebuildLiveComponent
protected Repository _repository
public AbstractRebuildLiveWorkspaceSchedulable()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
contextualize
in class AbstractStaticSchedulable
ContextException
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 occuredprotected abstract void _doExecute(JobExecutionContext context) throws Exception
context
- the contextException
- if an error occuredprotected abstract void _initializeErrorMail(JobExecutionContext context)
__ERROR_MAIL_BODY
and __ERROR_MAIL_SUBJECT
context
- the contextprivate void _sendErrorMail(String message)
private Map<String,Object> _createAndEnterGenerationEnvironment()
private void _leaveGenerationEnvironment(Map environmentInformation)