Package org.ametys.web.live
Class RebuildLiveAllWorkspaceSchedulable
- 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
-
- org.ametys.web.live.RebuildLiveAllWorkspaceSchedulable
-
- All Implemented Interfaces:
Schedulable
,LogEnabled
,PluginAware
,Initializable
,Component
,Configurable
,Contextualizable
,Serviceable
public class RebuildLiveAllWorkspaceSchedulable extends AbstractRebuildLiveWorkspaceSchedulable
ASchedulable
job which rebuild and populate the live workspace. This ensures data integrity inside the live workspace if by mistake synchronizationObserver
s fails to update the live workspace.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ametys.plugins.core.impl.schedule.AbstractStaticSchedulable
AbstractStaticSchedulable.SchedulableParameterParser
-
-
Field Summary
-
Fields inherited from class org.ametys.web.live.AbstractRebuildLiveWorkspaceSchedulable
_environmentContext, _rebuildLiveComponent, _repository
-
Fields inherited from class org.ametys.cms.schedule.AbstractSendingMailSchedulable
_i18nUtils, _mailSender, _sysadminMail
-
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 RebuildLiveAllWorkspaceSchedulable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected I18nizableText
_getErrorMailBody(JobExecutionContext context)
Retrieves the body of the error mailprotected I18nizableText
_getErrorMailSubject(JobExecutionContext context)
Retrieves the subject of the error mailprotected I18nizableText
_getSuccessMailBody(JobExecutionContext context)
Retrieves the body of the success mailprotected I18nizableText
_getSuccessMailSubject(JobExecutionContext context)
Retrieves the subject of the success mailprotected void
_rebuildLiveWorkspace(JobExecutionContext context)
Implements this method for building the live.-
Methods inherited from class org.ametys.web.live.AbstractRebuildLiveWorkspaceSchedulable
_doExecute, contextualize, service
-
Methods inherited from class org.ametys.cms.schedule.AbstractSendingMailSchedulable
_sendMail, execute, initialize
-
Methods inherited from class org.ametys.plugins.core.impl.schedule.AbstractStaticSchedulable
_getLaunchUser, _getLaunchUserIdentity, acceptConcurrentExecution, configure, getDescription, getIconGlyph, getIconLarge, getIconMedium, getIconSmall, getId, getLabel, getParameters, isPrivate, setPluginInfo
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
RebuildLiveAllWorkspaceSchedulable
public RebuildLiveAllWorkspaceSchedulable()
-
-
Method Detail
-
_rebuildLiveWorkspace
protected void _rebuildLiveWorkspace(JobExecutionContext context) throws Exception
Description copied from class:AbstractRebuildLiveWorkspaceSchedulable
Implements this method for building the live.- Specified by:
_rebuildLiveWorkspace
in classAbstractRebuildLiveWorkspaceSchedulable
- Parameters:
context
- the context- Throws:
Exception
- if an error occurred
-
_getSuccessMailSubject
protected I18nizableText _getSuccessMailSubject(JobExecutionContext context)
Description copied from class:AbstractSendingMailSchedulable
Retrieves the subject of the success mail- Specified by:
_getSuccessMailSubject
in classAbstractSendingMailSchedulable
- Parameters:
context
- the context- Returns:
- the subject of the success mail
-
_getSuccessMailBody
protected I18nizableText _getSuccessMailBody(JobExecutionContext context)
Description copied from class:AbstractSendingMailSchedulable
Retrieves the body of the success mail- Specified by:
_getSuccessMailBody
in classAbstractSendingMailSchedulable
- Parameters:
context
- the context- Returns:
- the body of the success mail
-
_getErrorMailSubject
protected I18nizableText _getErrorMailSubject(JobExecutionContext context)
Description copied from class:AbstractSendingMailSchedulable
Retrieves the subject of the error mail- Specified by:
_getErrorMailSubject
in classAbstractSendingMailSchedulable
- Parameters:
context
- the context- Returns:
- the subject of the error mail
-
_getErrorMailBody
protected I18nizableText _getErrorMailBody(JobExecutionContext context)
Description copied from class:AbstractSendingMailSchedulable
Retrieves the body of the error mail- Specified by:
_getErrorMailBody
in classAbstractSendingMailSchedulable
- Parameters:
context
- the context- Returns:
- the body of the error mail
-
-