public class ArchiveContentsEngine extends ArchiveContentsEngine
_ametysResolver, _archiveRights, _baseUrl, _context, _environmentContext, _i18nUtils, _initialized, _logger, _mailFrom, _manager, _rightManager, _sourceResolver, _sysadminMail, _userErrorMailBody, _userErrorMailSubject, _userMailBody, _userMailSubject, _userManager
Constructor and Description |
---|
ArchiveContentsEngine() |
Modifier and Type | Method and Description |
---|---|
protected String |
_getContentsListAsString(List<Content> contents)
Get the contents list as String
|
protected String |
_getRequestURI(Content content)
Get the request URI to set in mail
|
protected String |
getArchiveActionUri(String contentId)
Get the pipeline uri for the archive action
|
protected List<String> |
getBodyParamsForContributors(Content content,
boolean archived)
Get email body parameters
|
protected void |
setRequestAttributes(Request request,
Content content)
Set the necessary request attributes
|
_getAuthorizedContributors, _sendMailsToUsers, archiveContents, checkInitialization, configure, dispose, getAdminEmailParams, initialize, run, sendErrorMailToContributors, sendMailToAdministrator, sendMailToContributors
public ArchiveContentsEngine()
protected String getArchiveActionUri(String contentId)
ArchiveContentsEngine
getArchiveActionUri
in class ArchiveContentsEngine
contentId
- the current contend idprotected void setRequestAttributes(Request request, Content content)
ArchiveContentsEngine
setRequestAttributes
in class ArchiveContentsEngine
request
- The requestcontent
- The contentprotected List<String> getBodyParamsForContributors(Content content, boolean archived)
ArchiveContentsEngine
getBodyParamsForContributors
in class ArchiveContentsEngine
content
- the archived contentarchived
- true if the content has archivedprotected String _getRequestURI(Content content)
ArchiveContentsEngine
_getRequestURI
in class ArchiveContentsEngine
content
- The content. Can be nullprotected String _getContentsListAsString(List<Content> contents)
ArchiveContentsEngine
_getContentsListAsString
in class ArchiveContentsEngine
contents
- The contents