fr.cnes.sitools.notification.model
Class Notification

java.lang.Object
  extended by fr.cnes.sitools.notification.model.Notification
All Implemented Interfaces:
java.io.Serializable

public final class Notification
extends java.lang.Object
implements java.io.Serializable

Notification class for sending information to observers from observable resource when changes.

Author:
jp.boignard (AKKA Technologies)
See Also:
Serialized Form

Field Summary
static java.lang.String ATTRIBUTE
          object notification key in response attributes
 
Constructor Summary
Notification()
          Default constructor
 
Method Summary
 java.lang.String getEvent()
          Gets the event value
 java.lang.Object getEventSource()
          Gets the eventSource value
 java.lang.String getMessage()
          Gets the message value
 java.lang.String getObservable()
          Gets the observable value
 java.lang.String getStatus()
          Gets the status value
 void setEvent(java.lang.String event)
          Sets the value of event
 void setEventSource(java.lang.Object eventSource)
          Sets the value of eventSource
 void setMessage(java.lang.String message)
          Sets the value of message
 void setObservable(java.lang.String observable)
          Sets the value of observable
 void setStatus(java.lang.String status)
          Sets the value of status
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTE

public static final java.lang.String ATTRIBUTE
object notification key in response attributes

See Also:
Constant Field Values
Constructor Detail

Notification

public Notification()
Default constructor

Method Detail

getObservable

public java.lang.String getObservable()
Gets the observable value

Returns:
the observable

setObservable

public void setObservable(java.lang.String observable)
Sets the value of observable

Parameters:
observable - the observable to set

getStatus

public java.lang.String getStatus()
Gets the status value

Returns:
the status

setStatus

public void setStatus(java.lang.String status)
Sets the value of status

Parameters:
status - the status to set

getMessage

public java.lang.String getMessage()
Gets the message value

Returns:
the message

setMessage

public void setMessage(java.lang.String message)
Sets the value of message

Parameters:
message - the message to set

getEvent

public java.lang.String getEvent()
Gets the event value

Returns:
the event

setEvent

public void setEvent(java.lang.String event)
Sets the value of event

Parameters:
event - the event to set

getEventSource

public java.lang.Object getEventSource()
Gets the eventSource value

Returns:
the eventSource

setEventSource

public void setEventSource(java.lang.Object eventSource)
Sets the value of eventSource

Parameters:
eventSource - the eventSource to set


Copyright © 2010-2013 CNES. All Rights Reserved.