fr.cnes.sitools.notification.store
Class NotificationStoreXML

java.lang.Object
  extended by fr.cnes.sitools.notification.store.NotificationStoreXML
All Implemented Interfaces:
NotificationStore, java.io.Closeable

public final class NotificationStoreXML
extends java.lang.Object
implements NotificationStore

Implementation of NotificationStore with XStream FilePersistenceStrategy

Author:
AKKA

Constructor Summary
NotificationStoreXML(org.restlet.Context context)
          Default constructor
NotificationStoreXML(java.io.File location, org.restlet.Context context)
          Constructor with the XML file location
 
Method Summary
 void addObservable(java.lang.String observableUUID, RestletObservable observable)
          Add an observable
 void close()
           
 RestletObservable getObservable(java.lang.String observableUUID)
          Get the observable from ID
 void removeObservable(java.lang.String observableUUID)
          Remove an observable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationStoreXML

public NotificationStoreXML(java.io.File location,
                            org.restlet.Context context)
Constructor with the XML file location

Parameters:
location - directory of FilePersistenceStrategy
context - the Restlet Context

NotificationStoreXML

public NotificationStoreXML(org.restlet.Context context)
Default constructor

Parameters:
context - the Restlet Context
Method Detail

close

public void close()
Specified by:
close in interface java.io.Closeable

getObservable

public RestletObservable getObservable(java.lang.String observableUUID)
Description copied from interface: NotificationStore
Get the observable from ID

Specified by:
getObservable in interface NotificationStore
Parameters:
observableUUID - the observable ID
Returns:
Observable restlet

addObservable

public void addObservable(java.lang.String observableUUID,
                          RestletObservable observable)
Description copied from interface: NotificationStore
Add an observable

Specified by:
addObservable in interface NotificationStore
Parameters:
observableUUID - observable ID
observable - restlet observable

removeObservable

public void removeObservable(java.lang.String observableUUID)
Description copied from interface: NotificationStore
Remove an observable

Specified by:
removeObservable in interface NotificationStore
Parameters:
observableUUID - the observable ID to remove


Copyright © 2010-2013 CNES. All Rights Reserved.