fr.cnes.sitools.resources.geojson
Class JeoSearchResourceMongoDB

java.lang.Object
  extended by ExtendedWadlServerResource
      extended by fr.cnes.sitools.common.resource.AbstractSitoolsResource
          extended by fr.cnes.sitools.common.SitoolsResource
              extended by fr.cnes.sitools.common.resource.SitoolsParameterizedResource
                  extended by fr.cnes.sitools.resources.geojson.AbstractJeoSearchResource
                      extended by fr.cnes.sitools.resources.geojson.JeoSearchResourceMongoDB
All Implemented Interfaces:
IResource

public class JeoSearchResourceMongoDB
extends AbstractJeoSearchResource

Classic implementation of JeoSearch resource

Author:
m.gond

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
JeoSearchResourceMongoDB()
           
 
Method Summary
 java.lang.String getColumnNameFromConcept(java.lang.String dicoParamName, java.lang.String conceptName)
          Get the columnName corresponding to the given conceptName and dictionary name in the dataset
 org.restlet.representation.Representation getRepresentation(DatabaseRequestParameters params, java.lang.String geometryColName, ConverterChained converterChained, DataSet dataset, org.restlet.Context context)
          Get a representation
 
Methods inherited from class fr.cnes.sitools.resources.geojson.AbstractJeoSearchResource
describeGet, search
 
Methods inherited from class fr.cnes.sitools.common.resource.SitoolsParameterizedResource
addStandardResponseInfo, doInit, getId, getModel, getOverrideParameterValue, getOverrideParameterValueObject, getOverrideParams, getParameterValue, getParent, setId, setModel, setParent, sitoolsDescribe
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardSimpleResponseInfo, configure, getNotificationObject, getRepresentation, getRepresentation, getSettings, getSitoolsApplication, getSitoolsSetting
 
Methods inherited from class fr.cnes.sitools.common.resource.AbstractSitoolsResource
getMediaType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.cnes.sitools.common.model.IResource
getDescription, getName
 

Constructor Detail

JeoSearchResourceMongoDB

public JeoSearchResourceMongoDB()
Method Detail

getRepresentation

public org.restlet.representation.Representation getRepresentation(DatabaseRequestParameters params,
                                                                   java.lang.String geometryColName,
                                                                   ConverterChained converterChained,
                                                                   DataSet dataset,
                                                                   org.restlet.Context context)
Description copied from class: AbstractJeoSearchResource
Get a representation

Specified by:
getRepresentation in class AbstractJeoSearchResource
Parameters:
params - the DatabaseRequestParameters
geometryColName - the name of the Geometry column
converterChained - the list of converters
dataset - the dataset
context - the context
Returns:
a representation

getColumnNameFromConcept

public java.lang.String getColumnNameFromConcept(java.lang.String dicoParamName,
                                                 java.lang.String conceptName)
Get the columnName corresponding to the given conceptName and dictionary name in the dataset

Parameters:
dicoParamName - the name of the resource parameter which contains the dictionary name
conceptName - the name of the concept
Returns:
the columnName or null if not found


Copyright © 2010-2013 CNES. All Rights Reserved.