Class Notification
- java.lang.Object
-
- org.silverpeas.core.notification.user.DefaultUserNotification
-
- org.silverpeas.web.notificationuser.Notification
-
- All Implemented Interfaces:
UserNotification
public class Notification extends DefaultUserNotification
User notification defined in the Notification User personal component.
-
-
Constructor Summary
Constructors Constructor Description Notification()
Constructs an empty user notification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NotificationMetaData
getNotificationMetaData()
Gets the metadata about the notification to send so that all the properties required to send the notification can be set.void
send()
Sends this notification at the specified addresses declared within the metadata of this notification.void
setAddressId(String addressId)
Sets the identifier of a notification address to which this notification has to be sent.void
setPriority(int priority)
Sets the priority of this notification.void
setSource(String source)
Sets the source of this notification.-
Methods inherited from class org.silverpeas.core.notification.user.DefaultUserNotification
send
-
-
-
-
Method Detail
-
setPriority
public void setPriority(int priority)
Sets the priority of this notification.- Parameters:
priority
- the priority level.
-
setSource
public void setSource(String source)
Sets the source of this notification. The source is the component from which this notification is sent.- Parameters:
source
- the name of the source of this notification.
-
getNotificationMetaData
public NotificationMetaData getNotificationMetaData()
Description copied from interface:UserNotification
Gets the metadata about the notification to send so that all the properties required to send the notification can be set.- Specified by:
getNotificationMetaData
in interfaceUserNotification
- Overrides:
getNotificationMetaData
in classDefaultUserNotification
- Returns:
- the notification metadata.
-
setAddressId
public void setAddressId(String addressId)
Sets the identifier of a notification address to which this notification has to be sent.- Parameters:
addressId
- the unique identifier of a notification address.
-
send
public void send()
Description copied from interface:UserNotification
Sends this notification at the specified addresses declared within the metadata of this notification.- Specified by:
send
in interfaceUserNotification
- Overrides:
send
in classDefaultUserNotification
-
-