Package org.ametys.web.workflow.archive
Class ArchiveContentsEngine
- java.lang.Object
 - 
- org.ametys.cms.workflow.archive.ArchiveContentsEngine
 - 
- org.ametys.web.workflow.archive.ArchiveContentsEngine
 
 
 
- 
- All Implemented Interfaces:
 Runnable
public class ArchiveContentsEngine extends ArchiveContentsEngine
Runnable engine that archive the contents that have an scheduled archiving date set before the current date. 
- 
- 
Field Summary
- 
Fields inherited from class org.ametys.cms.workflow.archive.ArchiveContentsEngine
_ametysResolver, _archiveRights, _baseUrl, _context, _environmentContext, _i18nUtils, _initialized, _logger, _mailFrom, _manager, _rightManager, _sourceResolver, _sysadminMail, _userErrorMailBody, _userErrorMailSubject, _userMailBody, _userMailSubject, _userManager 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ArchiveContentsEngine() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String_getContentsListAsString(List<Content> contents)Get the contents list as Stringprotected String_getRequestURI(Content content)Get the request URI to set in mailprotected StringgetArchiveActionUri(String contentId)Get the pipeline uri for the archive actionprotected List<String>getBodyParamsForContributors(Content content, boolean archived)Get email body parametersprotected voidsetRequestAttributes(Request request, Content content)Set the necessary request attributes- 
Methods inherited from class org.ametys.cms.workflow.archive.ArchiveContentsEngine
_getAuthorizedContributors, _sendMailsToUsers, archiveContents, checkInitialization, configure, dispose, getAdminEmailParams, initialize, run, sendErrorMailToContributors, sendMailToAdministrator, sendMailToContributors 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
ArchiveContentsEngine
public ArchiveContentsEngine()
 
 - 
 
- 
Method Detail
- 
getArchiveActionUri
protected String getArchiveActionUri(String contentId)
Description copied from class:ArchiveContentsEngineGet the pipeline uri for the archive action- Overrides:
 getArchiveActionUriin classArchiveContentsEngine- Parameters:
 contentId- the current contend id- Returns:
 - a pipeline uri
 
 
- 
setRequestAttributes
protected void setRequestAttributes(Request request, Content content)
Description copied from class:ArchiveContentsEngineSet the necessary request attributes- Overrides:
 setRequestAttributesin classArchiveContentsEngine- Parameters:
 request- The requestcontent- The content
 
- 
getBodyParamsForContributors
protected List<String> getBodyParamsForContributors(Content content, boolean archived)
Description copied from class:ArchiveContentsEngineGet email body parameters- Overrides:
 getBodyParamsForContributorsin classArchiveContentsEngine- Parameters:
 content- the archived contentarchived- true if the content has archived- Returns:
 - The mail parameters
 
 
- 
_getRequestURI
protected String _getRequestURI(Content content)
Description copied from class:ArchiveContentsEngineGet the request URI to set in mail- Overrides:
 _getRequestURIin classArchiveContentsEngine- Parameters:
 content- The content. Can be null- Returns:
 - the request URI
 
 
- 
_getContentsListAsString
protected String _getContentsListAsString(List<Content> contents)
Description copied from class:ArchiveContentsEngineGet the contents list as String- Overrides:
 _getContentsListAsStringin classArchiveContentsEngine- Parameters:
 contents- The contents- Returns:
 - the list of contents as String
 
 
 - 
 
 -