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.AbstractTemplateBuilderTemplate 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 Constructor Description LikeTemplateBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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)
-
-
-
Method Detail
-
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
-
-