public class NotificationEvent
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
NotificationEvent() |
NotificationEvent(java.lang.String eventId,
java.lang.String[] userIds,
java.lang.String[] userKeys,
java.lang.String[] ccIds,
java.lang.String[] bccIds,
java.lang.String templateName,
java.lang.String description,
java.lang.String sender,
java.util.HashMap params,
java.util.Date createdOn,
java.util.Date validTill)
Constructor to construct a notification event
|
NotificationEvent(java.lang.String eventId,
java.lang.String[] userIds,
java.lang.String[] ccIds,
java.lang.String[] bccIds,
java.lang.String templateName,
java.lang.String description,
java.lang.String sender,
java.util.HashMap params,
java.util.Date createdOn,
java.util.Date validTill)
Constructor to construct a notification event
|
NotificationEvent(java.lang.String eventId,
java.lang.String[] userIds,
java.lang.String[] userKeys,
java.lang.String contextId,
java.lang.String templateName,
java.lang.String description,
java.lang.String sender,
java.util.HashMap params,
java.util.Date createdOn,
java.util.Date validTill)
Constructor to construct a notification event
|
NotificationEvent(java.lang.String eventId,
java.lang.String[] userIds,
java.lang.String contextId,
java.lang.String templateName,
java.lang.String description,
java.lang.String sender,
java.util.HashMap params,
java.util.Date createdOn,
java.util.Date validTill)
Constructor to construct a notification event
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getBccEmailIds()
Provides the
Array of the recepient's user names who are to be bcc'ed in the notification. |
java.lang.String[] |
getCcEmailIds()
Provides the
Array of the recepient's user names who are to be cc'ed in the notification. |
java.util.Date |
getCreatedOn()
Provides the date on which event occurs
|
java.lang.String |
getDescription()
Provides Description for the event
|
java.lang.String |
getEventId()
Provides ID of the event
|
java.util.HashMap |
getParams()
Provides
Map containing attribute-value pair for the parameters corresponding to the event |
java.lang.String |
getSender()
Provides username of the user sending the notification for the event
|
java.lang.String |
getTemplateName()
Provides template name associated with the event
|
java.lang.String[] |
getUserIds()
Provides the
Array of the recepient's username to whom notification is to be sent |
java.lang.String[] |
getUserKeys()
Provides the
Array of the recepient's user Keys to whom notification is to be sent. |
java.util.Date |
getValidTill()
Provides the date till which the event is valid
|
void |
setBccEmailIds(java.lang.String[] bccEmailIds)
Adds recepient's user names of the notification for the event.
|
void |
setCcEmailIds(java.lang.String[] ccEmailIds)
Adds recepient's user names of the notification for the event.
|
void |
setCreatedOn(java.util.Date createdOn)
Sets date on which the event occurs
|
void |
setDescription(java.lang.String description)
Adds description for the event
|
void |
setEventId(java.lang.String eventId)
Sets ID for the event
|
void |
setParams(java.util.HashMap params)
Sets value to the parameters corresponding to the event as per
Map of attribute-value pair passed |
void |
setSender(java.lang.String sender)
Sets username of the user sending the notification for the event
|
void |
setTemplateName(java.lang.String templateName)
Adds name of the template to be associated with the event
|
void |
setUserIds(java.lang.String[] userIds)
Adds recepient's username of the notification for the event
|
void |
setUserKeys(java.lang.String[] userKeys)
Adds recepient's user keys of the notification for the event.
|
void |
setValidTill(java.util.Date validTill)
Sets date till which the event is valid
|
public NotificationEvent(java.lang.String eventId, java.lang.String[] userIds, java.lang.String contextId, java.lang.String templateName, java.lang.String description, java.lang.String sender, java.util.HashMap params, java.util.Date createdOn, java.util.Date validTill)
eventId
- ID of the eventuserIds
- Array
of the receipient's usernamecontextId
- templateName
- Template name associated with the eventdescription
- Description for the eventsender
- Username of the user sending the notification for the eventparams
- Map
containing attribute-value pair for the parameters corresponding to the eventcreatedOn
- Date on which event occursvalidTill
- Date till which the event is validpublic NotificationEvent(java.lang.String eventId, java.lang.String[] userIds, java.lang.String[] userKeys, java.lang.String contextId, java.lang.String templateName, java.lang.String description, java.lang.String sender, java.util.HashMap params, java.util.Date createdOn, java.util.Date validTill)
eventId
- ID of the eventuserIds
- Array
of the receipient's usernameuserKeys
- Array
of the receipient's user keys. These values will get preference over User IDs.contextId
- templateName
- Template name associated with the eventdescription
- Description for the eventsender
- Username of the user sending the notification for the eventparams
- Map
containing attribute-value pair for the parameters corresponding to the eventcreatedOn
- Date on which event occursvalidTill
- Date till which the event is validpublic NotificationEvent(java.lang.String eventId, java.lang.String[] userIds, java.lang.String[] ccIds, java.lang.String[] bccIds, java.lang.String templateName, java.lang.String description, java.lang.String sender, java.util.HashMap params, java.util.Date createdOn, java.util.Date validTill)
eventId
- ID of the eventuserIds
- Array
of the receipient's usernameccIds
- Array
of the cc email Ids.bccIds
- Array
of the bcc email IdstemplateName
- Template name associated with the eventdescription
- Description for the eventsender
- Username of the user sending the notification for the eventparams
- Map
containing attribute-value pair for the parameters corresponding to the eventcreatedOn
- Date on which event occursvalidTill
- Date till which the event is validpublic NotificationEvent(java.lang.String eventId, java.lang.String[] userIds, java.lang.String[] userKeys, java.lang.String[] ccIds, java.lang.String[] bccIds, java.lang.String templateName, java.lang.String description, java.lang.String sender, java.util.HashMap params, java.util.Date createdOn, java.util.Date validTill)
eventId
- ID of the eventuserIds
- Array
of the receipient's usernameuserKeys
- Array
of the receipient's user keys. These values will get preference over User IDs.ccIds
- Array
of the cc email Ids.bccIds
- Array
of the bcc email IdstemplateName
- Template name associated with the eventdescription
- Description for the eventsender
- Username of the user sending the notification for the eventparams
- Map
containing attribute-value pair for the parameters corresponding to the eventcreatedOn
- Date on which event occursvalidTill
- Date till which the event is validpublic NotificationEvent()
public java.lang.String getDescription()
public java.lang.String[] getUserIds()
Array
of the recepient's username to whom notification is to be sentArray
of the receipient's usernamepublic java.lang.String[] getUserKeys()
Array
of the recepient's user Keys to whom notification is to be sent. These values will get preference over User IDs.Array
of the receipient's user Keyspublic java.lang.String[] getCcEmailIds()
Array
of the recepient's user names who are to be cc'ed in the notification.Array
of the receipient user names cc'ed listpublic java.lang.String[] getBccEmailIds()
Array
of the recepient's user names who are to be bcc'ed in the notification.Array
of the receipient user names in bcc'ed listpublic java.util.Date getCreatedOn()
public java.lang.String getTemplateName()
public java.util.Date getValidTill()
public java.lang.String getEventId()
public java.util.HashMap getParams()
Map
containing attribute-value pair for the parameters corresponding to the eventMap
containing attribute-value pairpublic void setParams(java.util.HashMap params)
Map
of attribute-value pair passedparams
- Map
of attribute-value pairpublic void setUserIds(java.lang.String[] userIds)
userIds
- Array
of the recepient's usernamepublic void setCcEmailIds(java.lang.String[] ccEmailIds)
userIds
- Array
of the recepient's user namespublic void setBccEmailIds(java.lang.String[] bccEmailIds)
userIds
- Array
of the recepient's user namespublic void setUserKeys(java.lang.String[] userKeys)
userIds
- Array
of the recepient's user keyspublic void setCreatedOn(java.util.Date createdOn)
createdOn
- Date object to be setpublic void setValidTill(java.util.Date validTill)
validTill
- Date object till which the event is validpublic void setTemplateName(java.lang.String templateName)
templateName
- template name to be associatedpublic void setDescription(java.lang.String description)
description
- description to be addedpublic void setEventId(java.lang.String eventId)
eventId
- value of ID to be setpublic java.lang.String getSender()
public void setSender(java.lang.String sender)
sender
- Sender's username