Class NotifyContentMentionsObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.repository.comment.contributor.AbstractNotifyMentionsObserver<Content>
org.ametys.cms.repository.comment.contributor.NotifyContentMentionsObserver
org.ametys.web.repository.comment.contributor.NotifyContentMentionsObserver
- All Implemented Interfaces:
AsyncObserver,Observer,LogEnabled,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.comment.contributor.AbstractNotifyMentionsObserver
AbstractNotifyMentionsObserver.LinkToAmetysObject -
Field Summary
Fields inherited from class org.ametys.cms.repository.comment.contributor.NotifyContentMentionsObserver
_contentHelperFields inherited from class org.ametys.cms.repository.comment.contributor.AbstractNotifyMentionsObserver
_currentUserProvider, _i18nUtils, _resolvedUsers, _resolver, _userManagerFields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String_getContentUrl(Content content) Get the URL to the given content tool.protected I18nizableText_getMailSubject(Content ametysObject) Retrieves the notification mail's subjectRetrieves the content's site_getSiteName(Content content) Retrieves the name of 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
_getAmetysObjectTitle, _getLanguage, _getLinkToAmetysObject, _getRequestUri, service, supportsMethods inherited from class org.ametys.cms.repository.comment.contributor.AbstractNotifyMentionsObserver
_getCommentContentWithReplacedMentions, _getUserFromIdentity, getPriority, observeMethods 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
-
_getContentUrl
Description copied from class:NotifyContentMentionsObserverGet the URL to the given content tool.- Overrides:
_getContentUrlin classNotifyContentMentionsObserver- Parameters:
content- the content.- Returns:
- the content URL.
-
_getMailSubject
Description copied from class:AbstractNotifyMentionsObserverRetrieves the notification mail's subject- Overrides:
_getMailSubjectin classAbstractNotifyMentionsObserver<Content>- Parameters:
ametysObject- the ametys object- Returns:
- the notification mail's subject
-
_getSiteName
Retrieves the name of the content's site- Parameters:
content- the content- Returns:
- the site's name
-
_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
-