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:
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
Modifier and TypeFieldDescriptionprotected Context
The cocoon environment context.protected RebuildLiveComponent
Component for rebuilding the live workspaceprotected javax.jcr.Repository
JCR repositoryFields inherited from class org.ametys.cms.schedule.AbstractSendingMailSchedulable
_currentUserProvider, _i18nUtils, _mailSender, _sysadminMail, _userHelper
Fields inherited from class org.ametys.plugins.core.impl.schedule.AbstractStaticSchedulable
_acceptConcurrentExecution, _context, _description, _iconGlyph, _iconLarge, _iconMedium, _iconSmall, _id, _label, _parameters, _pluginName, _private, _schedulableParameterTypeExtensionPoint, _smanager, _userManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
_doExecute
(JobExecutionContext context) Executes the schedulable.protected abstract void
_rebuildLiveWorkspace
(JobExecutionContext context) Implements this method for building the live.void
contextualize
(Context context) void
service
(ServiceManager manager) Methods inherited from class org.ametys.cms.schedule.AbstractSendingMailSchedulable
_getErrorMailBody, _getErrorMailSubject, _getRecipient, _getSuccessMailBody, _getSuccessMailSubject, _isMailBodyInHTML, _sendMail, execute, initialize
Methods inherited from class org.ametys.plugins.core.impl.schedule.AbstractStaticSchedulable
acceptConcurrentExecution, configure, getDescription, getIconGlyph, getIconLarge, getIconMedium, getIconSmall, getId, getLabel, getParameters, isPrivate, setPluginInfo
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_environmentContext
The cocoon environment context. -
_rebuildLiveComponent
Component for rebuilding the live workspace -
_repository
JCR repository
-
-
Constructor Details
-
AbstractRebuildLiveWorkspaceSchedulable
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Overrides:
contextualize
in classAbstractStaticSchedulable
- Throws:
ContextException
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractSendingMailSchedulable
- Throws:
ServiceException
-
_doExecute
Description copied from class:AbstractSendingMailSchedulable
Executes the schedulable.- Specified by:
_doExecute
in classAbstractSendingMailSchedulable
- Parameters:
context
- the context- Throws:
Exception
- if an error occurred
-
_rebuildLiveWorkspace
Implements this method for building the live.- Parameters:
context
- the context- Throws:
Exception
- if an error occurred
-