Package oracle.iam.notification.vo
Class NotificationEvent
java.lang.Object
oracle.iam.notification.vo.NotificationEvent
- All Implemented Interfaces:
Serializable
This object represents a notification event
- Author:
- saggarwa
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNotificationEvent(String eventId, String[] userIds, String[] userKeys, String[] ccIds, String[] bccIds, String templateName, String description, String sender, HashMap<String, Object> params, Date createdOn, Date validTill) Constructor to construct a notification eventNotificationEvent(String eventId, String[] userIds, String[] ccIds, String[] bccIds, String templateName, String description, String sender, HashMap<String, Object> params, Date createdOn, Date validTill) Constructor to construct a notification eventNotificationEvent(String eventId, String[] userIds, String[] userKeys, String contextId, String templateName, String description, String sender, HashMap<String, Object> params, Date createdOn, Date validTill) Constructor to construct a notification eventNotificationEvent(String eventId, String[] userIds, String contextId, String templateName, String description, String sender, HashMap<String, Object> params, Date createdOn, Date validTill) Constructor to construct a notification event -
Method Summary
Modifier and TypeMethodDescriptionString[]Provides theArrayof the recepient's user names who are to be bcc'ed in the notification.String[]Provides theArrayof the recepient's user names who are to be cc'ed in the notification.Provides the date on which event occursProvides Description for the eventProvides ID of the eventProvidesMapcontaining attribute-value pair for the parameters corresponding to the eventProvides username of the user sending the notification for the eventProvides template name associated with the eventString[]Provides theArrayof the recepient's username to whom notification is to be sentString[]Provides theArrayof the recepient's user Keys to whom notification is to be sent.Provides the date till which the event is validvoidsetBccEmailIds(String[] bccEmailIds) Adds recepient's user names of the notification for the event.voidsetCcEmailIds(String[] ccEmailIds) Adds recepient's user names of the notification for the event.voidsetCreatedOn(Date createdOn) Sets date on which the event occursvoidsetDescription(String description) Adds description for the eventvoidsetEventId(String eventId) Sets ID for the eventvoidSets value to the parameters corresponding to the event as perMapof attribute-value pair passedvoidSets username of the user sending the notification for the eventvoidsetTemplateName(String templateName) Adds name of the template to be associated with the eventvoidsetUserIds(String[] userIds) Adds recepient's username of the notification for the eventvoidsetUserKeys(String[] userKeys) Adds recepient's user keys of the notification for the event.voidsetValidTill(Date validTill) Sets date till which the event is valid
-
Constructor Details
-
NotificationEvent
public NotificationEvent(String eventId, String[] userIds, String contextId, String templateName, String description, String sender, HashMap<String, Object> params, Date createdOn, Date validTill) Constructor to construct a notification event- Parameters:
eventId- ID of the eventuserIds-Arrayof 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-Mapcontaining attribute-value pair for the parameters corresponding to the eventcreatedOn- Date on which event occursvalidTill- Date till which the event is valid
-
NotificationEvent
public NotificationEvent(String eventId, String[] userIds, String[] userKeys, String contextId, String templateName, String description, String sender, HashMap<String, Object> params, Date createdOn, Date validTill) Constructor to construct a notification event- Parameters:
eventId- ID of the eventuserIds-Arrayof the receipient's usernameuserKeys-Arrayof 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-Mapcontaining attribute-value pair for the parameters corresponding to the eventcreatedOn- Date on which event occursvalidTill- Date till which the event is valid
-
NotificationEvent
public NotificationEvent(String eventId, String[] userIds, String[] ccIds, String[] bccIds, String templateName, String description, String sender, HashMap<String, Object> params, Date createdOn, Date validTill) Constructor to construct a notification event- Parameters:
eventId- ID of the eventuserIds-Arrayof the receipient's usernameccIds-Arrayof the cc email Ids.bccIds-Arrayof the bcc email IdstemplateName- Template name associated with the eventdescription- Description for the eventsender- Username of the user sending the notification for the eventparams-Mapcontaining attribute-value pair for the parameters corresponding to the eventcreatedOn- Date on which event occursvalidTill- Date till which the event is valid
-
NotificationEvent
public NotificationEvent(String eventId, String[] userIds, String[] userKeys, String[] ccIds, String[] bccIds, String templateName, String description, String sender, HashMap<String, Object> params, Date createdOn, Date validTill) Constructor to construct a notification event- Parameters:
eventId- ID of the eventuserIds-Arrayof the receipient's usernameuserKeys-Arrayof the receipient's user keys. These values will get preference over User IDs.ccIds-Arrayof the cc email Ids.bccIds-Arrayof the bcc email IdstemplateName- Template name associated with the eventdescription- Description for the eventsender- Username of the user sending the notification for the eventparams-Mapcontaining attribute-value pair for the parameters corresponding to the eventcreatedOn- Date on which event occursvalidTill- Date till which the event is valid
-
NotificationEvent
public NotificationEvent()
-
-
Method Details
-
getDescription
Provides Description for the event- Returns:
- description for the event
-
getUserIds
Provides theArrayof the recepient's username to whom notification is to be sent- Returns:
Arrayof the receipient's username
-
getUserKeys
Provides theArrayof the recepient's user Keys to whom notification is to be sent. These values will get preference over User IDs.- Returns:
Arrayof the receipient's user Keys
-
getCcEmailIds
Provides theArrayof the recepient's user names who are to be cc'ed in the notification.- Returns:
Arrayof the receipient user names cc'ed list
-
getBccEmailIds
Provides theArrayof the recepient's user names who are to be bcc'ed in the notification.- Returns:
Arrayof the receipient user names in bcc'ed list
-
getCreatedOn
Provides the date on which event occurs- Returns:
- date on which event occurs
-
getTemplateName
Provides template name associated with the event- Returns:
- template name associated with the event
-
getValidTill
Provides the date till which the event is valid- Returns:
- date till which event is valid
-
getEventId
Provides ID of the event- Returns:
- ID of the event
-
getParams
ProvidesMapcontaining attribute-value pair for the parameters corresponding to the event- Returns:
Mapcontaining attribute-value pair
-
setParams
Sets value to the parameters corresponding to the event as perMapof attribute-value pair passed- Parameters:
params-Mapof attribute-value pair
-
setUserIds
Adds recepient's username of the notification for the event- Parameters:
userIds-Arrayof the recepient's username
-
setCcEmailIds
Adds recepient's user names of the notification for the event. These values will get preference over User IDs.- Parameters:
userIds-Arrayof the recepient's user names
-
setBccEmailIds
Adds recepient's user names of the notification for the event. These values will get preference over User IDs.- Parameters:
userIds-Arrayof the recepient's user names
-
setUserKeys
Adds recepient's user keys of the notification for the event. These values will get preference over User IDs.- Parameters:
userIds-Arrayof the recepient's user keys
-
setCreatedOn
Sets date on which the event occurs- Parameters:
createdOn- Date object to be set
-
setValidTill
Sets date till which the event is valid- Parameters:
validTill- Date object till which the event is valid
-
setTemplateName
Adds name of the template to be associated with the event- Parameters:
templateName- template name to be associated
-
setDescription
Adds description for the event- Parameters:
description- description to be added
-
setEventId
Sets ID for the event- Parameters:
eventId- value of ID to be set
-
getSender
Provides username of the user sending the notification for the event- Returns:
- Sender's username
-
setSender
Sets username of the user sending the notification for the event- Parameters:
sender- Sender's username
-