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

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.DataSetCountResource

public class DataSetCountResource
extends AbstractDataSetResource

Resource that performs a count on a dataset with some parameters Return only the number of records for this search

Author:
m.gond

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
DataSetCountResource()
           
 
Method Summary
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
          Describe the GET method
 void doInit()
          Initiate the resource
 org.restlet.representation.Representation getCount(org.restlet.representation.Variant variant)
          Get the count of a search
 org.restlet.representation.Representation getCountFromFile(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Get the count of a search
 void sitoolsDescribe()
          Method implementation mandatory
 
Methods inherited from class fr.cnes.sitools.dataset.AbstractDataSetResource
getObject, getRepresentation, 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

DataSetCountResource

public DataSetCountResource()
Method Detail

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


getCount

@Get
public org.restlet.representation.Representation getCount(org.restlet.representation.Variant variant)
Get the count of a search

Parameters:
variant - the Variant needed
Returns:
the number of records for a particular search

getCountFromFile

@Post
public org.restlet.representation.Representation getCountFromFile(org.restlet.representation.Representation representation,
                                                                       org.restlet.representation.Variant variant)
Get the count of a search

Parameters:
representation - The Post representation
variant - the Variant needed
Returns:
the number of records for a particular search

describeGet

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

Parameters:
info - the WADL information


Copyright © 2010-2013 CNES. All Rights Reserved.