fr.cnes.sitools.plugins.applications.business
Class AbstractApplicationPlugin

java.lang.Object
  extended by ExtendedWadlApplication
      extended by fr.cnes.sitools.common.application.SitoolsApplication
          extended by fr.cnes.sitools.common.application.SitoolsParameterizedApplication
              extended by fr.cnes.sitools.plugins.applications.business.AbstractApplicationPlugin
All Implemented Interfaces:
Validable
Direct Known Subclasses:
ProxyApp

public abstract class AbstractApplicationPlugin
extends SitoolsParameterizedApplication
implements Validable

Abstract Application to override

Author:
m.gond (AKKA Technologies)

Constructor Summary
AbstractApplicationPlugin()
          Default constructor
AbstractApplicationPlugin(org.restlet.Context context)
          Constructor with context.
AbstractApplicationPlugin(org.restlet.Context arg0, ApplicationPluginModel model)
          Constructor with context and representation of the application configuration.
AbstractApplicationPlugin(org.restlet.Context arg0, org.restlet.representation.Representation arg1)
          Constructor with context and representation of the application configuration.
 
Method Summary
 void addParameter(ApplicationPluginParameter param)
          Add the given parameter to the Model.
 ApplicationPluginModel getModel()
          Gets the model value
 ApplicationPluginParameter getParameter(java.lang.String paramName)
          Retrieve a parameter from its given name
 Validator<AbstractApplicationPlugin> getValidator()
          Get the Validator on a Object
 void setModel(ApplicationPluginModel model)
          Sets the value of model
 void start()
           
 void stop()
           
 
Methods inherited from class fr.cnes.sitools.common.application.SitoolsParameterizedApplication
attachParameterizedResources, detachParameterizedResource, getApplicationInfo, getModel, getModelMap, getPluginStore, setModelMap
 
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, sitoolsDescribe, unregister, wrapToResource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractApplicationPlugin

public AbstractApplicationPlugin()
Default constructor


AbstractApplicationPlugin

public AbstractApplicationPlugin(org.restlet.Context context)
Constructor with context.

Parameters:
context - Restlet host context

AbstractApplicationPlugin

public AbstractApplicationPlugin(org.restlet.Context arg0,
                                 org.restlet.representation.Representation arg1)
Constructor with context and representation of the application configuration.

Parameters:
arg0 - Restlet context
arg1 - wadl representation

AbstractApplicationPlugin

public AbstractApplicationPlugin(org.restlet.Context arg0,
                                 ApplicationPluginModel model)
Constructor with context and representation of the application configuration.

Parameters:
arg0 - Restlet context
model - ApplicationPLuginModel object
Method Detail

start

public void start()
           throws java.lang.Exception
Overrides:
start in class SitoolsApplication
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Overrides:
stop in class SitoolsApplication
Throws:
java.lang.Exception

getModel

public final ApplicationPluginModel getModel()
Gets the model value

Returns:
the model

setModel

public final void setModel(ApplicationPluginModel model)
Sets the value of model

Parameters:
model - the model to set

addParameter

public final void addParameter(ApplicationPluginParameter param)
Add the given parameter to the Model.

Parameters:
param - the parameter

getParameter

public final ApplicationPluginParameter getParameter(java.lang.String paramName)
Retrieve a parameter from its given name

Parameters:
paramName - the name of the parameter
Returns:
the parameter

getValidator

public Validator<AbstractApplicationPlugin> getValidator()
Description copied from interface: Validable
Get the Validator on a Object

Specified by:
getValidator in interface Validable
Returns:
the validator on a object


Copyright © 2010-2013 CNES. All Rights Reserved.