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 boolean
equals(Object obj)
boolean
getAutoSubscribed()
String
getAvailableIn()
String
getChannel()
boolean
getEnabled()
String
getLabel()
String
getName()
String
getSubject()
String
getSubjectTemplate()
String
getTemplate()
String
getTemplateExpr()
int
hashCode()
void
setEnabled(boolean enabled)
void
setTemplateExpr(String templateExpr)
-
-
-
Method Detail
-
setTemplateExpr
public void setTemplateExpr(String templateExpr)
- Since:
- 5.6
-
getName
public String getName()
- Specified by:
getName
in interfaceNotification
- Returns:
- the name.
-
getChannel
public String getChannel()
- Specified by:
getChannel
in interfaceNotification
- Returns:
- the channel.
-
getTemplate
public String getTemplate()
- Specified by:
getTemplate
in interfaceNotification
- Returns:
- the template.
-
getAutoSubscribed
public boolean getAutoSubscribed()
- Specified by:
getAutoSubscribed
in interfaceNotification
- Returns:
- the autoSubscribed.
-
getSubject
public String getSubject()
- Specified by:
getSubject
in interfaceNotification
- Returns:
- the subject.
-
getSubjectTemplate
public String getSubjectTemplate()
- Specified by:
getSubjectTemplate
in interfaceNotification
- Returns:
- the subject template.
-
getAvailableIn
public String getAvailableIn()
- Specified by:
getAvailableIn
in interfaceNotification
- Returns:
- the availableIn.
-
getLabel
public String getLabel()
- Specified by:
getLabel
in interfaceNotification
-
getEnabled
public boolean getEnabled()
- Specified by:
getEnabled
in interfaceNotification
-
setEnabled
public void setEnabled(boolean enabled)
-
getTemplateExpr
public String getTemplateExpr()
- Specified by:
getTemplateExpr
in interfaceNotification
- Returns:
- the mvelExpr used to evaluate the mail template name
-
-