|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.cnes.sitools.notification.business.NotificationManager
public class NotificationManager
Release 1 : manage notification on DELETE only Release 2 : manage POST / PUT
Constructor Summary | |
---|---|
NotificationManager(NotificationStore store)
Notification Manager |
Method Summary | |
---|---|
void |
addObserver(java.lang.String observableUUID,
RestletObserver observer)
Add an observer |
static Notification |
getObject(org.restlet.representation.Representation representation)
Gets Notification object |
static org.restlet.representation.Representation |
getRepresentation(Notification notification,
org.restlet.data.MediaType media,
org.restlet.Context context)
Representation of a notification |
NotificationStore |
getStore()
Gets the store value |
void |
notifyObservers(org.restlet.Context context,
java.lang.String observableUUID,
Notification notification)
Used by NotificationResource |
void |
removeObserver(java.lang.String observableUUID,
java.lang.String observerUUID)
Remove an observer |
void |
setStore(NotificationStore store)
Sets the value of store |
void |
triggerEvent(org.restlet.Context context,
java.lang.String observable,
Notification notification)
Calls trigger resource registered for this event |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotificationManager(NotificationStore store)
store
- NotificationStoreMethod Detail |
---|
public final NotificationStore getStore()
public final void setStore(NotificationStore store)
store
- the store to setpublic static org.restlet.representation.Representation getRepresentation(Notification notification, org.restlet.data.MediaType media, org.restlet.Context context)
notification
- Notification objectmedia
- Restlet MediaTypecontext
- a Restlet Context
public final void notifyObservers(org.restlet.Context context, java.lang.String observableUUID, Notification notification)
context
- Restlet ContextobservableUUID
- Observable unique identifiernotification
- Notification object to send to observerspublic final void addObserver(java.lang.String observableUUID, RestletObserver observer)
observableUUID
- UUID of the observableobserver
- the restlet observerpublic final void removeObserver(java.lang.String observableUUID, java.lang.String observerUUID)
observableUUID
- UUID of the observableobserverUUID
- UUID of the observerpublic final void triggerEvent(org.restlet.Context context, java.lang.String observable, Notification notification)
context
- RESTlet contextobservable
- the observable to triggernotification
- notification sentpublic static Notification getObject(org.restlet.representation.Representation representation)
representation
- Notification representation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |