org.nuxeo.ecm.platform.ec.notification
Class NotificationImpl
java.lang.Object
org.nuxeo.ecm.platform.ec.notification.NotificationImpl
- All Implemented Interfaces:
- java.io.Serializable, Notification
public class NotificationImpl
- extends java.lang.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
Constructor Summary |
NotificationImpl(java.lang.String name,
java.lang.String template,
java.lang.String channel,
java.lang.String subjectTemplate,
boolean autoSubscribed,
java.lang.String subject,
java.lang.String availableIn,
java.lang.String label)
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
NotificationImpl
public NotificationImpl(java.lang.String name,
java.lang.String template,
java.lang.String channel,
java.lang.String subjectTemplate,
boolean autoSubscribed,
java.lang.String subject,
java.lang.String availableIn,
java.lang.String label)
getName
public java.lang.String getName()
- Specified by:
getName
in interface Notification
- Returns:
- the name.
getChannel
public java.lang.String getChannel()
- Specified by:
getChannel
in interface Notification
- Returns:
- the channel.
getTemplate
public java.lang.String getTemplate()
- Specified by:
getTemplate
in interface Notification
- Returns:
- the template.
getAutoSubscribed
public boolean getAutoSubscribed()
- Specified by:
getAutoSubscribed
in interface Notification
- Returns:
- the autoSubscribed.
getSubject
public java.lang.String getSubject()
- Specified by:
getSubject
in interface Notification
- Returns:
- the subject.
getSubjectTemplate
public java.lang.String getSubjectTemplate()
- Specified by:
getSubjectTemplate
in interface Notification
- Returns:
- the subject template.
getAvailableIn
public java.lang.String getAvailableIn()
- Specified by:
getAvailableIn
in interface Notification
- Returns:
- the availableIn.
getLabel
public java.lang.String getLabel()
- Specified by:
getLabel
in interface Notification
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
getEnabled
public boolean getEnabled()
- Specified by:
getEnabled
in interface Notification
setEnabled
public void setEnabled(boolean enabled)
Copyright © 2010 Nuxeo SAS. All Rights Reserved.