|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.notification.SilverpeasNotification
public class SilverpeasNotification
A notification emitted within the Silverpeas system. A notification informs about an event or an action that has occured in a Silverpeas component instance and in what a given object or resource is involved. For example, the creation of a publication can be notified with the publication (or its unique identifier) as object of the announcement. This class can be extended in order to represent a specified type of notifications with which some publishers and subscribers work on.
Constructor Summary | |
---|---|
SilverpeasNotification(NotificationSource source,
Serializable object)
Constructs a new notification involving the specified object and triggered by the specified source. |
|
SilverpeasNotification(NotificationSource source,
SilverpeasNotificationCause cause,
Serializable object)
Constructs a new notification involving the specified object and triggered by the specified source. |
Method Summary | |
---|---|
void |
addParameter(String name,
String value)
Adds a new parameter to this notification. |
SilverpeasNotificationCause |
getCause()
Gets the cause of this notification. |
Serializable |
getObject()
Gets the object focusing by this notification. |
Set<String> |
getParameters()
Gets the set of this notification's parameters. |
String |
getParameterValue(String name)
Gets the value of the specified parameter. |
NotificationSource |
getSource()
Gets the source of this notification. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SilverpeasNotification(NotificationSource source, Serializable object)
source
- the source of the notification.object
- the object on which the notification is focusing.public SilverpeasNotification(NotificationSource source, SilverpeasNotificationCause cause, Serializable object)
source
- the source of the notification.cause
- the cause of the notification.object
- the object on which the notification is focusing.Method Detail |
---|
public Serializable getObject()
public NotificationSource getSource()
public void addParameter(String name, String value)
name
- the parameter name.value
- the parameter value.public String getParameterValue(String name)
name
- the name of the parameter to get.
public Set<String> getParameters()
public SilverpeasNotificationCause getCause()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |