Package org.ametys.web.live
Class AbstractRebuildLiveWorkspaceSchedulable
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.core.impl.schedule.AbstractStaticSchedulable
org.ametys.cms.schedule.AbstractSendingMailSchedulable
org.ametys.web.live.AbstractRebuildLiveWorkspaceSchedulable
- All Implemented Interfaces:
Schedulable,LogEnabled,PluginAware,Initializable,Component,Configurable,Contextualizable,Serviceable
- Direct Known Subclasses:
RebuildContentsWithoutSiteLiveWorkspaceSchedulable,RebuildLiveAllWorkspaceSchedulable,RebuildLiveSiteWorkspaceSchedulable
public abstract class AbstractRebuildLiveWorkspaceSchedulable
extends AbstractSendingMailSchedulable
Abstract schedulable for rebuilding the live workspace.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.plugins.core.impl.schedule.AbstractStaticSchedulable
AbstractStaticSchedulable.SchedulableParameterParser -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContextThe cocoon environment context.protected RebuildLiveComponentComponent for rebuilding the live workspaceprotected javax.jcr.RepositoryJCR repositoryprotected static final StringThe key for the maintenance mode to rebuild the live workspaceFields inherited from class org.ametys.cms.schedule.AbstractSendingMailSchedulable
_currentUserProvider, _i18nUtils, _mailSender, _sysadminMail, _userHelperFields inherited from class org.ametys.plugins.core.impl.schedule.AbstractStaticSchedulable
_acceptConcurrentExecution, _context, _description, _iconGlyph, _iconLarge, _iconMedium, _iconSmall, _id, _label, _parameters, _pluginName, _private, _schedulableParameterTypeExtensionPoint, _smanager, _startTime, _userManager, PROGRESSION_TRACKER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_doExecute(JobExecutionContext context, ContainerProgressionTracker progressionTracker) Executes the schedulable.protected abstract void_rebuildLiveWorkspace(JobExecutionContext context, ContainerProgressionTracker progressionTracker) Implements this method for building the live.voidcontextualize(Context context) voidservice(ServiceManager manager) Methods inherited from class org.ametys.cms.schedule.AbstractSendingMailSchedulable
_getErrorMailBody, _getErrorMailSubject, _getRecipient, _getSuccessMailBody, _getSuccessMailSubject, _isMailBodyInHTML, _sendMail, execute, initializeMethods inherited from class org.ametys.plugins.core.impl.schedule.AbstractStaticSchedulable
acceptConcurrentExecution, configure, getDescription, getIconGlyph, getIconLarge, getIconMedium, getIconSmall, getId, getLabel, getParameters, getProgressionTracker, isPrivate, setPluginInfoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
JOBDATAMAP_MAINTENANCE_KEY
The key for the maintenance mode to rebuild the live workspace- See Also:
-
_environmentContext
The cocoon environment context. -
_rebuildLiveComponent
Component for rebuilding the live workspace -
_repository
JCR repository
-
-
Constructor Details
-
AbstractRebuildLiveWorkspaceSchedulable
-
-
Method Details
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Overrides:
contextualizein classAbstractStaticSchedulable- Throws:
ContextException
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractSendingMailSchedulable- Throws:
ServiceException
-
_doExecute
protected void _doExecute(JobExecutionContext context, ContainerProgressionTracker progressionTracker) throws Exception Description copied from class:AbstractSendingMailSchedulableExecutes the schedulable.- Specified by:
_doExecutein classAbstractSendingMailSchedulable- Parameters:
context- the contextprogressionTracker- The progression tracker- Throws:
Exception- if an error occurred
-
_rebuildLiveWorkspace
protected abstract void _rebuildLiveWorkspace(JobExecutionContext context, ContainerProgressionTracker progressionTracker) throws Exception Implements this method for building the live.- Parameters:
context- the contextprogressionTracker- The progression tracker- Throws:
Exception- if an error occurred
-