fr.cnes.sitools.notification
Class NotificationApplication

java.lang.Object
  extended by ExtendedWadlApplication
      extended by fr.cnes.sitools.common.application.SitoolsApplication
          extended by fr.cnes.sitools.notification.NotificationApplication

public final class NotificationApplication
extends SitoolsApplication

Notification application

Author:
jp.boignard (AKKA Technologies)

Constructor Summary
NotificationApplication(org.restlet.Context context)
          Constructor
 
Method Summary
 void attachTrigger(java.lang.String eventName, java.lang.Class<?> targetClass)
          Attach trigger to a class
 org.restlet.Restlet createInboundRoot()
           
 void detachTrigger(java.lang.String eventName)
          Detach trigger
 org.restlet.ext.wadl.ApplicationInfo getApplicationInfo(org.restlet.Request request, org.restlet.Response response)
           
 NotificationManager getEngine()
          Gets the engine value
 NotificationStore getStore()
          Gets the store value
 java.util.Map<java.lang.String,java.lang.Class<?>> getTriggerTable()
          Get the table of triggers
 void registerEvent(java.lang.String eventName)
          register a new event if it does not ever registered
 void setEngine(NotificationManager engine)
          Sets the value of engine
 void sitoolsDescribe()
          Abstract method for thinking about implementing it for each concrete application describe is the RESTlet method, but overriding, prevents the self-describing functionality.
 void unregisterEvent(java.lang.String eventName)
          Unregister an event
 
Methods inherited from class fr.cnes.sitools.common.application.SitoolsApplication
addSecurity, addSecurity, addSecurityFilter, defaultDescribe, getAttachementRef, getAuthenticationRealm, getAuthorizer, getAuthorizer, getAuthorizer, getCategory, getId, getPublicBaseRef, getRepresentationInfoReferences, getSecure, getSettings, getSitoolsApplicationInfo, getType, getUserAuthorizer, isAuthorizationSecure, isUserAuthenticationNeeded, register, setAutoRegistration, setCategory, setId, setSitoolsApplicationInfo, setType, setUserAuthenticationNeeded, start, stop, unregister, wrapToResource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationApplication

public NotificationApplication(org.restlet.Context context)
Constructor

Parameters:
context - Restlet Host context
Method Detail

sitoolsDescribe

public void sitoolsDescribe()
Description copied from class: SitoolsApplication
Abstract method for thinking about implementing it for each concrete application describe is the RESTlet method, but overriding, prevents the self-describing functionality.

Specified by:
sitoolsDescribe in class SitoolsApplication

createInboundRoot

public org.restlet.Restlet createInboundRoot()

getEngine

public NotificationManager getEngine()
Gets the engine value

Returns:
the engine

setEngine

public void setEngine(NotificationManager engine)
Sets the value of engine

Parameters:
engine - the engine to set

getStore

public NotificationStore getStore()
Gets the store value

Returns:
the store

attachTrigger

public void attachTrigger(java.lang.String eventName,
                          java.lang.Class<?> targetClass)
Attach trigger to a class

Parameters:
eventName - the name of the event to trigger
targetClass - the class targeted

detachTrigger

public void detachTrigger(java.lang.String eventName)
Detach trigger

Parameters:
eventName - event name to detach

registerEvent

public void registerEvent(java.lang.String eventName)
register a new event if it does not ever registered

Parameters:
eventName - the event name to register

unregisterEvent

public void unregisterEvent(java.lang.String eventName)
Unregister an event

Parameters:
eventName - the name of the event to unregister

getTriggerTable

public java.util.Map<java.lang.String,java.lang.Class<?>> getTriggerTable()
Get the table of triggers

Returns:
the table of triggers

getApplicationInfo

public org.restlet.ext.wadl.ApplicationInfo getApplicationInfo(org.restlet.Request request,
                                                               org.restlet.Response response)
Overrides:
getApplicationInfo in class SitoolsApplication


Copyright © 2010-2013 CNES. All Rights Reserved.