org.nuxeo.ecm.platform.ec.notification
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
 
 
 
 
 
 
NotificationImpl
public NotificationImpl(String name,
                        String template,
                        String channel,
                        String subjectTemplate,
                        boolean autoSubscribed,
                        String subject,
                        String availableIn,
                        String label)
getName
public String getName()
- Specified by:
 getName in interface Notification
 
- Returns:
 - the name.
 
 
getChannel
public String getChannel()
- Specified by:
 getChannel in interface Notification
 
- Returns:
 - the channel.
 
 
getTemplate
public 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 String getSubject()
- Specified by:
 getSubject in interface Notification
 
- Returns:
 - the subject.
 
 
getSubjectTemplate
public String getSubjectTemplate()
- Specified by:
 getSubjectTemplate in interface Notification
 
- Returns:
 - the subject template.
 
 
getAvailableIn
public String getAvailableIn()
- Specified by:
 getAvailableIn in interface Notification
 
- Returns:
 - the availableIn.
 
 
getLabel
public String getLabel()
- Specified by:
 getLabel in interface Notification
 
 
equals
public boolean equals(Object obj)
- Overrides:
 equals in class Object
 
 
hashCode
public int hashCode()
- Overrides:
 hashCode in class Object
 
 
getEnabled
public boolean getEnabled()
- Specified by:
 getEnabled in interface Notification
 
 
setEnabled
public void setEnabled(boolean enabled)
 
 
Copyright © 2010 Nuxeo SAS. All Rights Reserved.