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
Modifier and TypeFieldDescriptionprotected ContentHelper
The content helperprotected SiteGetterExtensionPoint
The extension point for site gettersprotected SiteManager
The site manager.Fields inherited from class org.ametys.cms.duplicate.contents.DuplicateContentsDetectionSchedulable
_baseUrl, _contentTypesHelper, _cTypeEP, _duplicatesManager
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, _startTime, _userManager, PROGRESSION_TRACKER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
_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 linkvoid
service
(ServiceManager manager) Methods inherited from class org.ametys.cms.duplicate.contents.DuplicateContentsDetectionSchedulable
_createBody, _displayDuplicateContent, _doExecute, _getErrorMailBody, _getErrorMailSubject, _getSuccessMailBody, _getSuccessMailSubject, _isMailBodyInHTML, _renderContentTitle, initialize
Methods inherited from class org.ametys.cms.schedule.AbstractSendingMailSchedulable
_getRecipient, _sendMail, execute
Methods inherited from class org.ametys.plugins.core.impl.schedule.AbstractStaticSchedulable
acceptConcurrentExecution, configure, contextualize, getDescription, getIconGlyph, getIconLarge, getIconMedium, getIconSmall, getId, getLabel, getParameters, getProgressionTracker, isPrivate, setPluginInfo
Methods 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:
service
in interfaceServiceable
- Overrides:
service
in classDuplicateContentsDetectionSchedulable
- Throws:
ServiceException
-
_renderCmsToolLink
Render the cms tool link- Overrides:
_renderCmsToolLink
in classDuplicateContentsDetectionSchedulable
- Parameters:
content
- The content- Returns:
- the link
-
_displayContents
protected String _displayContents(Map<Content, List<Content>> duplicatesMap, Map<Content, List<Content>> nearDuplicatesMap, Map<Content, DuplicateContentsManager.Status> tooComplexMap) Description copied from class:DuplicateContentsDetectionSchedulable
Create StringBuilder used to display contents- Overrides:
_displayContents
in 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
-