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
public class DuplicateContentsDetectionSchedulable extends DuplicateContentsDetectionSchedulable
ASchedulablejob for detecting duplicates, overridingDuplicateContentsDetectionSchedulableto 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
Fields Modifier and Type Field Description protected ContentHelper_contentHelperThe content helperprotected SiteGetterExtensionPoint_siteGetterExtensionPointThe extension point for site gettersprotected SiteManager_siteManagerThe 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, _userManager
-
-
Constructor Summary
Constructors Constructor Description DuplicateContentsDetectionSchedulable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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, 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, isPrivate, setPluginInfo
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_contentHelper
protected ContentHelper _contentHelper
The content helper
-
_siteGetterExtensionPoint
protected SiteGetterExtensionPoint _siteGetterExtensionPoint
The extension point for site getters
-
_siteManager
protected SiteManager _siteManager
The site manager.
-
-
Constructor Detail
-
DuplicateContentsDetectionSchedulable
public DuplicateContentsDetectionSchedulable()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classDuplicateContentsDetectionSchedulable- Throws:
ServiceException
-
_renderCmsToolLink
protected String _renderCmsToolLink(Content content)
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
-
-