Class WebTemplateProvider.LikeTemplateBuilder
java.lang.Object
org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
org.exoplatform.social.notification.channel.template.WebTemplateProvider.LikeTemplateBuilder
- Enclosing class:
- WebTemplateProvider
public class WebTemplateProvider.LikeTemplateBuilder
extends org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
Template builder for likes
The same builder it used for both like activity and like comment.
A inner class (instead of an anonymous class like for others builders) because the same logic
is used for like activity and like comment, but each plugin must have its own instance of
builder (builder contents are not the same since the templates ca be different).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.exoplatform.commons.api.notification.model.NotificationInfogetNotificationToStore(org.exoplatform.commons.api.notification.model.NotificationInfo notification) protected booleanmakeDigest(org.exoplatform.commons.api.notification.NotificationContext ctx, Writer writer) protected org.exoplatform.commons.api.notification.model.MessageInfomakeMessage(org.exoplatform.commons.api.notification.NotificationContext ctx) Methods inherited from class org.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
buildDigest, buildMessage, getLanguage, getOrganizationService, getTemplateEngine, setTemplateEngine
-
Constructor Details
-
LikeTemplateBuilder
public LikeTemplateBuilder()
-
-
Method Details
-
getNotificationToStore
public org.exoplatform.commons.api.notification.model.NotificationInfo getNotificationToStore(org.exoplatform.commons.api.notification.model.NotificationInfo notification) - Overrides:
getNotificationToStorein classorg.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
-
makeMessage
protected org.exoplatform.commons.api.notification.model.MessageInfo makeMessage(org.exoplatform.commons.api.notification.NotificationContext ctx) - Specified by:
makeMessagein classorg.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
-
makeDigest
protected boolean makeDigest(org.exoplatform.commons.api.notification.NotificationContext ctx, Writer writer) - Specified by:
makeDigestin classorg.exoplatform.commons.api.notification.channel.template.AbstractTemplateBuilder
-