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
Fields Modifier and Type Field Description protected Context
_environmentContext
The cocoon environment context.protected RebuildLiveComponent
_rebuildLiveComponent
Component for rebuilding the live workspaceprotected Repository
_repository
JCR repository-
Fields 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
Constructors Constructor Description AbstractRebuildLiveWorkspaceSchedulable()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
_environmentContext
protected Context _environmentContext
The cocoon environment context.
-
_rebuildLiveComponent
protected RebuildLiveComponent _rebuildLiveComponent
Component for rebuilding the live workspace
-
_repository
protected Repository _repository
JCR repository
-
-
Constructor Detail
-
AbstractRebuildLiveWorkspaceSchedulable
public AbstractRebuildLiveWorkspaceSchedulable()
-
-
Method Detail
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Overrides:
contextualize
in classAbstractStaticSchedulable
- Throws:
ContextException
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractSendingMailSchedulable
- Throws:
ServiceException
-
_doExecute
protected void _doExecute(JobExecutionContext context) throws Exception
Description copied from class:AbstractSendingMailSchedulable
Executes the schedulable.- Specified by:
_doExecute
in classAbstractSendingMailSchedulable
- Parameters:
context
- the context- Throws:
Exception
- if an error occurred
-
_rebuildLiveWorkspace
protected abstract void _rebuildLiveWorkspace(JobExecutionContext context) throws Exception
Implements this method for building the live.- Parameters:
context
- the context- Throws:
Exception
- if an error occurred
-
-