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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleangetLabel()getName()inthashCode()voidsetEnabled(boolean enabled) voidsetTemplateExpr(String templateExpr)  
- 
Constructor Details
- 
NotificationImpl
 
 - 
 - 
Method Details
- 
setTemplateExpr
- Since:
 - 5.6
 
 - 
getName
- Specified by:
 getNamein interfaceNotification- Returns:
 - the name.
 
 - 
getChannel
- Specified by:
 getChannelin interfaceNotification- Returns:
 - the channel.
 
 - 
getTemplate
- Specified by:
 getTemplatein interfaceNotification- Returns:
 - the template.
 
 - 
getAutoSubscribed
public boolean getAutoSubscribed()- Specified by:
 getAutoSubscribedin interfaceNotification- Returns:
 - the autoSubscribed.
 
 - 
getSubject
- Specified by:
 getSubjectin interfaceNotification- Returns:
 - the subject.
 
 - 
getSubjectTemplate
- Specified by:
 getSubjectTemplatein interfaceNotification- Returns:
 - the subject template.
 
 - 
getAvailableIn
- Specified by:
 getAvailableInin interfaceNotification- Returns:
 - the availableIn.
 
 - 
getLabel
- Specified by:
 getLabelin interfaceNotification
 - 
equals
 - 
hashCode
public int hashCode() - 
getEnabled
public boolean getEnabled()- Specified by:
 getEnabledin interfaceNotification
 - 
setEnabled
public void setEnabled(boolean enabled)  - 
getTemplateExpr
- Specified by:
 getTemplateExprin interfaceNotification- Returns:
 - the mvelExpr used to evaluate the mail template name
 
 
 -