public class NotificationContext extends Object
Constructor and Description |
---|
NotificationContext()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addTo(String to) |
String |
getBody() |
String |
getBodyTemplate() |
org.alfresco.service.cmr.repository.NodeRef |
getDocument() |
String |
getFrom() |
String |
getSubject() |
Map<String,Serializable> |
getTemplateArgs() |
List<String> |
getTo() |
boolean |
isAsyncNotification() |
boolean |
isIgnoreNotificationFailure() |
void |
setAsyncNotification(boolean asyncNotification)
Indicates whether the notification will be sent asynchronously or not.
|
void |
setBody(String body)
Note: this takes presendence over the body template if both are set
|
void |
setBodyTemplate(String bodyTemplate)
The body template is a node re or classpath ref to a template that can be executed with the given
template arguments to produce the body of the notification.
|
void |
setDocument(org.alfresco.service.cmr.repository.NodeRef document)
Document that the notification relates to.
|
void |
setFrom(String from) |
void |
setIgnoreNotificationFailure(boolean ignoreNotificationFailure)
Indicates whether to ignore a notification failure or not.
|
void |
setSubject(String subject) |
void |
setTemplateArgs(Map<String,Serializable> templateArgs)
The template arguments are used as context for the body template when it is executed.
|
public void setFrom(String from)
from
- from authoritypublic void addTo(String to)
to
- to authoritiespublic void setSubject(String subject)
subject
- subject of notificationpublic String getSubject()
public void setBody(String body)
body
- body of notification.public void setBodyTemplate(String bodyTemplate)
bodyTemplate
- body templatepublic String getBodyTemplate()
NodeRef
body templatepublic void setTemplateArgs(Map<String,Serializable> templateArgs)
templateArgs
- template argumentspublic Map<String,Serializable> getTemplateArgs()
Map
<String
, Serializable
> template argumentspublic void setDocument(org.alfresco.service.cmr.repository.NodeRef document)
document
- related documentpublic org.alfresco.service.cmr.repository.NodeRef getDocument()
NodeRef
related documentpublic void setIgnoreNotificationFailure(boolean ignoreNotificationFailure)
ignoreNotificationFailure
- true if ignore notification failure, false otherwisepublic boolean isIgnoreNotificationFailure()
public void setAsyncNotification(boolean asyncNotification)
asyncNotification
- true if notification sent asynchronously, false otherwisepublic boolean isAsyncNotification()
Copyright © 2005–2017 Alfresco Software. All rights reserved.