fr.cnes.sitools.dataset
Class DataSetApplication

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
                  extended by fr.cnes.sitools.dataset.DataSetApplication

public final class DataSetApplication
extends AbstractDataSetApplication

Application for exposing DataSets (one instance of DataSetApplication per DataSet) TODO Constructor with all generic security configuration (Authenticator informations)

Author:
AKKA

Constructor Summary
DataSetApplication(org.restlet.Context context, java.lang.String dataSetId)
          Constructor with a DataSet id
 
Method Summary
 void attachDataSet(DataSet ds)
          Create and attach a new DataSetApplication
 org.restlet.Restlet createInboundRoot()
           
 void detachDataSet(DataSet ds)
          Detach the DataSetApplication corresponding with the DataSet given object
 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)
           
 DictionaryMappingDTO getColumnConceptMappingDTO(java.lang.String dictionaryName)
          Get the DictionaryMappingDTO from the mapping of this dataset from its dictionaryName
 ConverterChained getConverterChained()
          Gets the converterChained value
 DataSet getDataSet()
          Gets the DataSet object model
 SitoolsDataSource getDataSource()
          Gets the SitoolsDataSource
 java.util.List<DictionaryMappingDTO> getDictionaryMappings()
          Gets the dictionaryMappings value
 FilterChained getFilterChained()
          Gets the filterChained value
 void setDictionaryMappings(java.util.List<DictionaryMappingDTO> dictionaryMappings)
          Sets the value of dictionaryMappings
 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 start()
           
 void stop()
           
 
Methods inherited from class fr.cnes.sitools.dataset.AbstractDataSetApplication
getDatasetId, getStore
 
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, unregister, wrapToResource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSetApplication

public DataSetApplication(org.restlet.Context context,
                          java.lang.String dataSetId)
Constructor with a DataSet id

Parameters:
context - RESTlet Host context
dataSetId - DataSet identifier
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()

getDataSource

public SitoolsDataSource getDataSource()
Gets the SitoolsDataSource

Returns:
SitoolsDataSource

getDataSet

public DataSet getDataSet()
Gets the DataSet object model

Returns:
DataSet

attachDataSet

public void attachDataSet(DataSet ds)
Description copied from class: AbstractDataSetApplication
Create and attach a new DataSetApplication

Specified by:
attachDataSet in class AbstractDataSetApplication
Parameters:
ds - DataSet object

detachDataSet

public void detachDataSet(DataSet ds)
Description copied from class: AbstractDataSetApplication
Detach the DataSetApplication corresponding with the DataSet given object

Specified by:
detachDataSet in class AbstractDataSetApplication
Parameters:
ds - DataSet object

detachDataSetDefinitif

public void detachDataSetDefinitif(DataSet ds)
Description copied from class: AbstractDataSetApplication
Detach the DataSetApplication corresponding with the DataSet given object

Specified by:
detachDataSetDefinitif in class AbstractDataSetApplication
Parameters:
ds - DataSet object

getConverterChained

public ConverterChained getConverterChained()
Gets the converterChained value

Returns:
the converterChained

getFilterChained

public FilterChained getFilterChained()
Gets the filterChained value

Returns:
the filterChained

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

getApplicationInfo

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

setDictionaryMappings

public void setDictionaryMappings(java.util.List<DictionaryMappingDTO> dictionaryMappings)
Sets the value of dictionaryMappings

Parameters:
dictionaryMappings - the dictionaryMappings to set

getDictionaryMappings

public java.util.List<DictionaryMappingDTO> getDictionaryMappings()
Gets the dictionaryMappings value

Returns:
the dictionaryMappings

getColumnConceptMappingDTO

public DictionaryMappingDTO getColumnConceptMappingDTO(java.lang.String dictionaryName)
Get the DictionaryMappingDTO from the mapping of this dataset from its dictionaryName

Parameters:
dictionaryName - the name of the dictionary
Returns:
the DictionaryMappingDTO if there is a DictionaryMappingDTO corresponding to the following dictionaryName or null otherwise


Copyright © 2010-2013 CNES. All Rights Reserved.