Class NotifyContentMentionsObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.repository.mentions.AbstractNotifyMentionsObserver<Content>
org.ametys.cms.repository.comment.contributor.AbstractCommentNotifyMentionsObserver<Content>
org.ametys.cms.repository.comment.contributor.NotifyContentMentionsObserver
org.ametys.web.repository.comment.contributor.NotifyContentMentionsObserver
- All Implemented Interfaces:
AsyncObserver,Observer,LogEnabled,Prioritizable,Supporter<Event>,Component,Serviceable
Listener to send mails to mentioned users in contributor comments of
Contents-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.cms.repository.mentions.AbstractNotifyMentionsObserver
AbstractNotifyMentionsObserver.LinkToAmetysObject, AbstractNotifyMentionsObserver.MentionableObject -
Field Summary
Fields inherited from class org.ametys.cms.repository.comment.contributor.NotifyContentMentionsObserver
_contentHelper, _rightManagerFields inherited from class org.ametys.cms.repository.mentions.AbstractNotifyMentionsObserver
_currentUserProvider, _i18nUtils, _mentionUtils, _resolvedUsers, _resolver, _userLanguagesManager, _userManagerFields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected I18nizableText_getAdminMailSubject(Content ametysObject, User author) Retrieves the admin notification mail's subjectprotected I18nizableText_getMailSubject(AbstractNotifyMentionsObserver.MentionableObject mentionableObject) Retrieves the notification mail's subjectRetrieves the content's site_getSiteTitle(Content content) Retrieves the title of the content's siteMethods inherited from class org.ametys.cms.repository.comment.contributor.NotifyContentMentionsObserver
_canSendMailToMentionedUser, _getAdminMailMessage, _getAmetysObjectTitle, _getMailMessage, _getMailTitle, _getMentionableObjectFromArguments, getAdminUsers, observe, service, supportsMethods inherited from class org.ametys.cms.repository.comment.contributor.AbstractCommentNotifyMentionsObserver
_getComment, _getMailMessageType, _transformSyntaxTextToReadableTextWithColorsMethods inherited from class org.ametys.cms.repository.mentions.AbstractNotifyMentionsObserver
_createBody, _sendMail, _sendMailToMentionedUsers, getPriority, getStandardMailBodyHelperMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.core.observation.AsyncObserver
parallelizable
-
Constructor Details
-
NotifyContentMentionsObserver
public NotifyContentMentionsObserver()
-
-
Method Details
-
_getMailSubject
protected I18nizableText _getMailSubject(AbstractNotifyMentionsObserver.MentionableObject mentionableObject) Description copied from class:AbstractNotifyMentionsObserverRetrieves the notification mail's subject- Overrides:
_getMailSubjectin classAbstractCommentNotifyMentionsObserver<Content>- Parameters:
mentionableObject- the mentionable object- Returns:
- the notification mail's subject
-
_getAdminMailSubject
Description copied from class:NotifyContentMentionsObserverRetrieves the admin notification mail's subject- Overrides:
_getAdminMailSubjectin classNotifyContentMentionsObserver- Parameters:
ametysObject- the contentauthor- the author of the comment- Returns:
- the admin notification mail's subject
-
_getSiteTitle
Retrieves the title of the content's site- Parameters:
content- the content- Returns:
- the site's title
-
_getSite
Retrieves the content's site- Parameters:
content- the content- Returns:
- the site
-