Class NotificationImpl
java.lang.Object
org.nuxeo.ecm.platform.ec.notification.NotificationImpl
- All Implemented Interfaces:
Serializable
,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:
-
Field Summary
Fields inherited from interface org.nuxeo.ecm.platform.notification.api.Notification
EMAIL_NOTIFICATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
getLabel()
getName()
int
hashCode()
void
setEnabled
(boolean enabled) void
setTemplateExpr
(String templateExpr)
-
Constructor Details
-
NotificationImpl
-
-
Method Details
-
setTemplateExpr
- Since:
- 5.6
-
getName
- Specified by:
getName
in interfaceNotification
- Returns:
- the name.
-
getChannel
- Specified by:
getChannel
in interfaceNotification
- Returns:
- the channel.
-
getTemplate
- Specified by:
getTemplate
in interfaceNotification
- Returns:
- the template.
-
getAutoSubscribed
public boolean getAutoSubscribed()- Specified by:
getAutoSubscribed
in interfaceNotification
- Returns:
- the autoSubscribed.
-
getSubject
- Specified by:
getSubject
in interfaceNotification
- Returns:
- the subject.
-
getSubjectTemplate
- Specified by:
getSubjectTemplate
in interfaceNotification
- Returns:
- the subject template.
-
getAvailableIn
- Specified by:
getAvailableIn
in interfaceNotification
- Returns:
- the availableIn.
-
getLabel
- Specified by:
getLabel
in interfaceNotification
-
equals
-
hashCode
public int hashCode() -
getEnabled
public boolean getEnabled()- Specified by:
getEnabled
in interfaceNotification
-
setEnabled
public void setEnabled(boolean enabled) -
getTemplateExpr
- Specified by:
getTemplateExpr
in interfaceNotification
- Returns:
- the mvelExpr used to evaluate the mail template name
-