fr.cnes.sitools.datasource.mongodb
Class MongoDBDataSourceResource

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.datasource.mongodb.AbstractDataSourceResource
                  extended by fr.cnes.sitools.datasource.mongodb.MongoDBDataSourceResource

public final class MongoDBDataSourceResource
extends AbstractDataSourceResource

Resource for managing single MongoDBDataSource (GET UPDATE DELETE)

Author:
jp.boignard (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
MongoDBDataSourceResource()
           
 
Method Summary
 org.restlet.representation.Representation deleteDataSource(org.restlet.representation.Variant variant)
          Delete data source
 void describeDelete(org.restlet.ext.wadl.MethodInfo info)
          DELETE description
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
          GET description
 void describePut(org.restlet.ext.wadl.MethodInfo info)
          PUT description
 org.restlet.representation.Representation retrieveDataSource(org.restlet.representation.Variant variant)
          get all DataSources
 void sitoolsDescribe()
          Method implementation mandatory
 org.restlet.representation.Representation updateDataSource(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Update / Validate existing DataSource
 
Methods inherited from class fr.cnes.sitools.datasource.mongodb.AbstractDataSourceResource
getDatasourceId, getMongoDBDataSourceAdministration, getObject, getRepresentation, getStore
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, configure, getNotificationObject, getRepresentation, getSettings, getSitoolsApplication, getSitoolsSetting, trace, trace
 
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

MongoDBDataSourceResource

public MongoDBDataSourceResource()
Method Detail

sitoolsDescribe

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

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

retrieveDataSource

@Get
public org.restlet.representation.Representation retrieveDataSource(org.restlet.representation.Variant variant)
get all DataSources

Parameters:
variant - client preferred media type
Returns:
Representation

describeGet

public void describeGet(org.restlet.ext.wadl.MethodInfo info)
GET description

Parameters:
info - WADL method information

updateDataSource

@Put
public org.restlet.representation.Representation updateDataSource(org.restlet.representation.Representation representation,
                                                                      org.restlet.representation.Variant variant)
Update / Validate existing DataSource

Parameters:
representation - the representation sent
variant - client preferred media type
Returns:
Representation

describePut

public void describePut(org.restlet.ext.wadl.MethodInfo info)
PUT description

Parameters:
info - WADL method information

deleteDataSource

@Delete
public org.restlet.representation.Representation deleteDataSource(org.restlet.representation.Variant variant)
Delete data source

Parameters:
variant - client preferred media type
Returns:
Representation

describeDelete

public void describeDelete(org.restlet.ext.wadl.MethodInfo info)
DELETE description

Parameters:
info - WADL method information


Copyright © 2010-2013 CNES. All Rights Reserved.