Package org.ametys.web.live
Class RebuildContentsWithoutSiteLiveWorkspaceSchedulable
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.RebuildContentsWithoutSiteLiveWorkspaceSchedulable
- All Implemented Interfaces:
 Schedulable,LogEnabled,PluginAware,Initializable,Component,Configurable,Contextualizable,Serviceable
public class RebuildContentsWithoutSiteLiveWorkspaceSchedulable
extends AbstractRebuildLiveWorkspaceSchedulable
Rebuild live workspace for all contents without site.
 
 This schedulable will send a report mail at the end end of execution
- 
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, JOBDATAMAP_MAINTENANCE_KEYFields 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 String_getErrorMailBody(JobExecutionContext context, Throwable throwable) Retrieves the body of the error mailprotected I18nizableText_getErrorMailSubject(JobExecutionContext context) Retrieves the subject of the error mailprotected String_getSuccessMailBody(JobExecutionContext context) Retrieves the body of the success mailprotected I18nizableTextRetrieves the subject of the success mailprotected boolean_isMailBodyInHTML(JobExecutionContext context) Determines if the mail body is in HTMLprotected void_rebuildLiveWorkspace(JobExecutionContext context, ContainerProgressionTracker progressionTracker) Implements this method for building the live.Methods inherited from class org.ametys.web.live.AbstractRebuildLiveWorkspaceSchedulable
_doExecute, contextualize, serviceMethods inherited from class org.ametys.cms.schedule.AbstractSendingMailSchedulable
_getRecipient, _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 
- 
Constructor Details
- 
RebuildContentsWithoutSiteLiveWorkspaceSchedulable
 
 - 
 - 
Method Details
- 
_rebuildLiveWorkspace
protected void _rebuildLiveWorkspace(JobExecutionContext context, ContainerProgressionTracker progressionTracker) throws Exception Description copied from class:AbstractRebuildLiveWorkspaceSchedulableImplements this method for building the live.- Specified by:
 _rebuildLiveWorkspacein classAbstractRebuildLiveWorkspaceSchedulable- Parameters:
 context- the contextprogressionTracker- The progression tracker- Throws:
 Exception- if an error occurred
 - 
_isMailBodyInHTML
Description copied from class:AbstractSendingMailSchedulableDetermines if the mail body is in HTML- Overrides:
 _isMailBodyInHTMLin classAbstractSendingMailSchedulable- Parameters:
 context- the context- Returns:
 trueif the mail body is in HTML,falseotherwise- Throws:
 Exception- If an error occurs while retrieving if mail body should be HTML
 - 
_getSuccessMailSubject
Description copied from class:AbstractSendingMailSchedulableRetrieves the subject of the success mail- Specified by:
 _getSuccessMailSubjectin classAbstractSendingMailSchedulable- Parameters:
 context- the context- Returns:
 - the subject of the success mail
 
 - 
_getSuccessMailBody
Description copied from class:AbstractSendingMailSchedulableRetrieves the body of the success mail- Specified by:
 _getSuccessMailBodyin classAbstractSendingMailSchedulable- Parameters:
 context- the context- Returns:
 - the body of the success mail
 
 - 
_getErrorMailSubject
Description copied from class:AbstractSendingMailSchedulableRetrieves the subject of the error mail- Specified by:
 _getErrorMailSubjectin classAbstractSendingMailSchedulable- Parameters:
 context- the context- Returns:
 - the subject of the error mail
 
 - 
_getErrorMailBody
Description copied from class:AbstractSendingMailSchedulableRetrieves the body of the error mail- Specified by:
 _getErrorMailBodyin classAbstractSendingMailSchedulable- Parameters:
 context- the contextthrowable- the error- Returns:
 - the body of the error mail
 
 
 -