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
Content
s-
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
_contentHelper
Fields inherited from class org.ametys.cms.repository.comment.contributor.AbstractNotifyMentionsObserver
_currentUserProvider, _i18nUtils, _resolvedUsers, _resolver, _userManager
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
-
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, supports
Methods inherited from class org.ametys.cms.repository.comment.contributor.AbstractNotifyMentionsObserver
_getCommentContentWithReplacedMentions, _getUserFromIdentity, getPriority, observe
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.core.observation.AsyncObserver
parallelizable
-
Constructor Details
-
NotifyContentMentionsObserver
public NotifyContentMentionsObserver()
-
-
Method Details
-
_getContentUrl
Description copied from class:NotifyContentMentionsObserver
Get the URL to the given content tool.- Overrides:
_getContentUrl
in classNotifyContentMentionsObserver
- Parameters:
content
- the content.- Returns:
- the content URL.
-
_getMailSubject
Description copied from class:AbstractNotifyMentionsObserver
Retrieves the notification mail's subject- Overrides:
_getMailSubject
in 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
-