public class ContentConsistencyEngine extends ContentConsistencyEngine
ContentConsistencyEngine.ContentExistsHandler| Modifier and Type | Field and Description |
|---|---|
private static Map<String,Boolean> |
_RUNNING_SITES |
protected SiteManager |
_siteManager
The site manager.
|
protected String |
_siteName
Name of the site to generate.
|
_ametysResolver, _baseUrl, _context, _environmentContext, _i18nUtils, _initialized, _LOGGER, _MAIL_RIGHT, _mailFrom, _manager, _reportDirectory, _rightManager, _saxParser, _sourceResolver, _userManager| Constructor and Description |
|---|
ContentConsistencyEngine() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_dispose()
Dispose of the resources and looked-up components.
|
protected void |
_generateReport(Site site)
Generate the full consistency report for a site.
|
protected void |
_generateReports()
Send all the alerts.
|
protected Map<String,String> |
_getEmailParams()
Get the report e-mail parameters.
|
protected String |
_getMailUri(Map<String,String> parameters)
Get the pipeline uri for mail body
|
protected void |
_sendErrorEmail()
Send a reminder e-mail to all the users who have the right to edit.
|
void |
initialize(ServiceManager manager,
Context context,
String siteName)
Initialize the consistency engine.
|
static boolean |
isRunning(String siteName)
Test if the engine is running at the time.
|
private static void |
setRunning(String siteName,
boolean running)
Set the running status of a site.
|
_checkInitialization, _generateReport, _getMailPart, _sendMails, configure, initialize, runprivate static Map<String,Boolean> _RUNNING_SITES
protected SiteManager _siteManager
public ContentConsistencyEngine()
public void initialize(ServiceManager manager, Context context, String siteName) throws ContextException, ServiceException
manager - the avalon service manager.context - the avalon context.siteName - the name of the site to generate or null to generate all.ContextException - if an error occurs retrieving the environment context.ServiceException - if an error occurs retrieving a component.public static boolean isRunning(String siteName)
siteName - the site name.private static void setRunning(String siteName, boolean running)
siteName - the site name.running - true to set the site running, false otherwise.protected void _dispose()
ContentConsistencyEngine_dispose in class ContentConsistencyEngineprotected void _generateReports() throws AmetysRepositoryException, IOException
ContentConsistencyEngine_generateReports in class ContentConsistencyEngineAmetysRepositoryException - if an error occurs.IOException - if an error occurredprotected void _generateReport(Site site) throws IOException
site - the site.IOException - if an i/o error occurs.protected void _sendErrorEmail() throws IOException
ContentConsistencyEngine_sendErrorEmail in class ContentConsistencyEngineIOException - if an error occurs building or sending the mail.protected String _getMailUri(Map<String,String> parameters)
ContentConsistencyEngine_getMailUri in class ContentConsistencyEngineparameters - the mail paramtersprotected Map<String,String> _getEmailParams()
ContentConsistencyEngine_getEmailParams in class ContentConsistencyEngine