fr.cnes.sitools.dataset
Class AbstractDataSetApplication

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.dataset.AbstractDataSetApplication
Direct Known Subclasses:
DataSetAdministration, DataSetApplication

public abstract class AbstractDataSetApplication
extends SitoolsParameterizedApplication

Abstract application - Factors a DataSetStore and a datasetId

Author:
AKKA

Constructor Summary
AbstractDataSetApplication(org.restlet.Context context)
          Constructor
 
Method Summary
abstract  void attachDataSet(DataSet ds)
          Create and attach a new DataSetApplication
abstract  void detachDataSet(DataSet ds)
          Detach the DataSetApplication corresponding with the DataSet given object
abstract  void detachDataSetDefinitif(DataSet ds)
          Detach the DataSetApplication corresponding with the DataSet given object
 org.restlet.ext.wadl.ApplicationInfo getApplicationInfo(org.restlet.Request request, org.restlet.Response response)
           
 java.lang.String getDatasetId()
          Gets the datasetId value
 SitoolsStore<DataSet> getStore()
          Gets the store value
 
Methods inherited from class fr.cnes.sitools.common.application.SitoolsParameterizedApplication
attachParameterizedResources, detachParameterizedResource, 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, start, stop, unregister, wrapToResource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDataSetApplication

public AbstractDataSetApplication(org.restlet.Context context)
Constructor

Parameters:
context - RESTlet Application Context
Method Detail

getDatasetId

public final java.lang.String getDatasetId()
Gets the datasetId value

Returns:
the datasetId

getStore

public final SitoolsStore<DataSet> getStore()
Gets the store value

Returns:
the store

attachDataSet

public abstract void attachDataSet(DataSet ds)
Create and attach a new DataSetApplication

Parameters:
ds - DataSet object

detachDataSet

public abstract void detachDataSet(DataSet ds)
Detach the DataSetApplication corresponding with the DataSet given object

Parameters:
ds - DataSet object

detachDataSetDefinitif

public abstract void detachDataSetDefinitif(DataSet ds)
Detach the DataSetApplication corresponding with the DataSet given object

Parameters:
ds - DataSet object

getApplicationInfo

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


Copyright © 2010-2013 CNES. All Rights Reserved.