fr.cnes.sitools.dataset.database.common
Class DataSetExplorerResource

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.dataset.AbstractDataSetResource
                  extended by fr.cnes.sitools.dataset.database.common.DataSetExplorerResource

public class DataSetExplorerResource
extends AbstractDataSetResource

DBExplorerResource using DataSource for pooled connections

Author:
AKKA Technologies [#3355053]
2011/07/06 d.arpin {Rename the method getColumnFromQuery -> getColumnFromDistinctQuery. Rename getColumnVisible -> getSQLColumnVisible. Add getAllColumnVisible}

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
DataSetExplorerResource()
           
 
Method Summary
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
          Describe the GET method
 void doInit()
          Initiate the resource
 org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
          Gets XML representation of a DataSet
 DataSetApplication getApplication()
          Gets the application value
 DataSetExplorerUtil getDatasetExplorerUtil()
          Gets the datasetExplorerUtil value
 org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
          XStream aliases are personalized for each resource.
 boolean isRecordSetTarget()
          if target is the record collection
 boolean isRecordTarget()
          if target is a specified record
 org.restlet.representation.Representation processConstraint(org.restlet.data.MediaType media)
          Gets the representation for the given media type
 void setIfRecordSetTarget(boolean isRecordSetTarget)
          Set if the target is a record set
 void sitoolsDescribe()
          Method implementation mandatory
 
Methods inherited from class fr.cnes.sitools.dataset.AbstractDataSetResource
getObject, registerObserver, unregisterObserver
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, configure, getNotificationObject, 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
 

Constructor Detail

DataSetExplorerResource

public DataSetExplorerResource()
Method Detail

isRecordSetTarget

public final boolean isRecordSetTarget()
if target is the record collection

Returns:
boolean

setIfRecordSetTarget

public final void setIfRecordSetTarget(boolean isRecordSetTarget)
Set if the target is a record set

Parameters:
isRecordSetTarget - true if is a record set

isRecordTarget

public final boolean isRecordTarget()
if target is a specified record

Returns:
boolean

sitoolsDescribe

public void sitoolsDescribe()
Description copied from class: AbstractSitoolsResource
Method implementation mandatory

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

doInit

public void doInit()
Description copied from class: SitoolsResource
Initiate the resource


processConstraint

public org.restlet.representation.Representation processConstraint(org.restlet.data.MediaType media)
Gets the representation for the given media type

Parameters:
media - RESTlet MediaType
Returns:
Representation

get

@Get
public final org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
Gets XML representation of a DataSet

Returns:
Representation

describeGet

public void describeGet(org.restlet.ext.wadl.MethodInfo info)
Describe the GET method

Parameters:
info - the WADL information

getRepresentation

public org.restlet.representation.Representation getRepresentation(Response response,
                                                                   org.restlet.data.MediaType media)
XStream aliases are personalized for each resource.

Overrides:
getRepresentation in class AbstractDataSetResource
Parameters:
response - the response to transform
media - the media type to use
Returns:
TODO Optimisation : remonter au niveau DBExplorerApplication les 2 instances xstreamXML et xstreamJSON pour ne pas avoir à les recréer à chaque resource

getApplication

public final DataSetApplication getApplication()
Gets the application value

Returns:
the application

getDatasetExplorerUtil

public DataSetExplorerUtil getDatasetExplorerUtil()
Gets the datasetExplorerUtil value

Returns:
the datasetExplorerUtil


Copyright © 2010-2013 CNES. All Rights Reserved.