Package org.ametys.web.duplicate
Class DuplicateContentsDetectionSchedulable
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.core.impl.schedule.AbstractStaticSchedulable
org.ametys.cms.schedule.AbstractSendingMailSchedulable
org.ametys.cms.duplicate.contents.DuplicateContentsDetectionSchedulable
org.ametys.web.duplicate.DuplicateContentsDetectionSchedulable
- All Implemented Interfaces:
Schedulable,LogEnabled,PluginAware,Initializable,Component,Configurable,Contextualizable,Serviceable
A
Schedulable job for detecting duplicates, overriding DuplicateContentsDetectionSchedulable to get the site to use for links.-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.plugins.core.impl.schedule.AbstractStaticSchedulable
AbstractStaticSchedulable.SchedulableParameterParser -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentHelperThe content helperprotected SiteGetterExtensionPointThe extension point for site gettersprotected SiteManagerThe site manager.Fields inherited from class org.ametys.cms.duplicate.contents.DuplicateContentsDetectionSchedulable
_baseUrl, _contentTypesHelper, _cTypeEP, _duplicatesManagerFields 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, _userManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringBuilder_displayContents(Map<Content, List<Content>> duplicatesMap, Map<Content, List<Content>> nearDuplicatesMap, Map<Content, DuplicateContentsManager.Status> tooComplexMap) Create StringBuilder used to display contentsprotected String_renderCmsToolLink(Content content) Render the cms tool linkvoidservice(ServiceManager manager) Methods inherited from class org.ametys.cms.duplicate.contents.DuplicateContentsDetectionSchedulable
_createBody, _displayDuplicateContent, _doExecute, _getErrorMailBody, _getErrorMailSubject, _getSuccessMailBody, _getSuccessMailSubject, _isMailBodyInHTML, _renderContentTitle, initializeMethods inherited from class org.ametys.cms.schedule.AbstractSendingMailSchedulable
_getRecipient, _sendMail, executeMethods inherited from class org.ametys.plugins.core.impl.schedule.AbstractStaticSchedulable
acceptConcurrentExecution, configure, contextualize, getDescription, getIconGlyph, getIconLarge, getIconMedium, getIconSmall, getId, getLabel, getParameters, isPrivate, setPluginInfoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_contentHelper
The content helper -
_siteGetterExtensionPoint
The extension point for site getters -
_siteManager
The site manager.
-
-
Constructor Details
-
DuplicateContentsDetectionSchedulable
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classDuplicateContentsDetectionSchedulable- Throws:
ServiceException
-
_renderCmsToolLink
Render the cms tool link- Overrides:
_renderCmsToolLinkin classDuplicateContentsDetectionSchedulable- Parameters:
content- The content- Returns:
- the link
-
_displayContents
protected StringBuilder _displayContents(Map<Content, List<Content>> duplicatesMap, Map<Content, List<Content>> nearDuplicatesMap, Map<Content, DuplicateContentsManager.Status> tooComplexMap) Description copied from class:DuplicateContentsDetectionSchedulableCreate StringBuilder used to display contents- Overrides:
_displayContentsin classDuplicateContentsDetectionSchedulable- Parameters:
duplicatesMap- map linking a content to his duplicatesnearDuplicatesMap- map linking a content to his near duplicatestooComplexMap- map linking a content to his search status (used to know if a query failed because the fuzzy query was too complex for example)- Returns:
- the StringBuilder used to display contents
-