Class NotificationImpl
- java.lang.Object
-
- org.nuxeo.ecm.platform.ec.notification.NotificationImpl
-
- All Implemented Interfaces:
Serializable,Notification
public class NotificationImpl extends Object implements Notification
A notification that a user can subscribe to.It has:
- a name
- a channel - for now only email is supported
- a subject - as a fixed string or a template to customize subject notifications
- a template - so the notifications that the user will receive can be customized
- Author:
- Narcis Paslaru, Thierry Martins
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.nuxeo.ecm.platform.notification.api.Notification
EMAIL_NOTIFICATION
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleangetAutoSubscribed()StringgetAvailableIn()StringgetChannel()booleangetEnabled()StringgetLabel()StringgetName()StringgetSubject()StringgetSubjectTemplate()StringgetTemplate()StringgetTemplateExpr()inthashCode()voidsetEnabled(boolean enabled)voidsetTemplateExpr(String templateExpr)
-
-
-
Method Detail
-
setTemplateExpr
public void setTemplateExpr(String templateExpr)
- Since:
- 5.6
-
getName
public String getName()
- Specified by:
getNamein interfaceNotification- Returns:
- the name.
-
getChannel
public String getChannel()
- Specified by:
getChannelin interfaceNotification- Returns:
- the channel.
-
getTemplate
public String getTemplate()
- Specified by:
getTemplatein interfaceNotification- Returns:
- the template.
-
getAutoSubscribed
public boolean getAutoSubscribed()
- Specified by:
getAutoSubscribedin interfaceNotification- Returns:
- the autoSubscribed.
-
getSubject
public String getSubject()
- Specified by:
getSubjectin interfaceNotification- Returns:
- the subject.
-
getSubjectTemplate
public String getSubjectTemplate()
- Specified by:
getSubjectTemplatein interfaceNotification- Returns:
- the subject template.
-
getAvailableIn
public String getAvailableIn()
- Specified by:
getAvailableInin interfaceNotification- Returns:
- the availableIn.
-
getLabel
public String getLabel()
- Specified by:
getLabelin interfaceNotification
-
getEnabled
public boolean getEnabled()
- Specified by:
getEnabledin interfaceNotification
-
setEnabled
public void setEnabled(boolean enabled)
-
getTemplateExpr
public String getTemplateExpr()
- Specified by:
getTemplateExprin interfaceNotification- Returns:
- the mvelExpr used to evaluate the mail template name
-
-