fr.cnes.sitools.dataset.opensearch
Class AbstractSearchResource

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.opensearch.AbstractSearchResource
Direct Known Subclasses:
OpenSearchActionResource, OpenSearchCollectionResource, OpensearchNotificationResource, OpenSearchResource

public abstract class AbstractSearchResource
extends SitoolsResource

Abstract Resource class for Forms management

Author:
jp.boignard (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
AbstractSearchResource()
          Default constructor
 
Method Summary
 void doInit()
          Initiate the resource
 java.lang.String getDatasetId()
          Gets the datasetId value
 java.lang.String getIndexName()
          Gets the indexName value
 OpenSearchApplication getOpenSearchApplication()
          Gets the application value
 org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
          Gets representation according to the specified MediaType.
 SitoolsStore<Opensearch> getStore()
          Gets the store value
 SitoolsStore<FeedModel> getStoreFeed()
          Gets the storeFeed value
 void registerObserver(Opensearch input)
          Register as observer
 void setIndexName(java.lang.String indexName)
          Sets the value of indexName
 void unregisterObserver(Opensearch input)
          Unregister as Observer
 
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, sitoolsDescribe
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSearchResource

public AbstractSearchResource()
Default constructor

Method Detail

getOpenSearchApplication

public final OpenSearchApplication getOpenSearchApplication()
Gets the application value

Returns:
the application

getStore

public final SitoolsStore<Opensearch> getStore()
Gets the store value

Returns:
the store

getStoreFeed

public final SitoolsStore<FeedModel> getStoreFeed()
Gets the storeFeed value

Returns:
the storeFeed

getDatasetId

public final java.lang.String getDatasetId()
Gets the datasetId value

Returns:
the datasetId

getIndexName

public final java.lang.String getIndexName()
Gets the indexName value

Returns:
the indexName

setIndexName

public final void setIndexName(java.lang.String indexName)
Sets the value of indexName

Parameters:
indexName - the indexName to set

doInit

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


getRepresentation

public org.restlet.representation.Representation getRepresentation(Response response,
                                                                   org.restlet.data.MediaType media)
Gets representation according to the specified MediaType.

Overrides:
getRepresentation in class SitoolsResource
Parameters:
response - : The response to get the representation from
media - : The MediaType asked
Returns:
The Representation of the response with the selected mediaType

registerObserver

public void registerObserver(Opensearch input)
Register as observer

Parameters:
input - The opensearch

unregisterObserver

public void unregisterObserver(Opensearch input)
Unregister as Observer

Parameters:
input - OpenSearch Object


Copyright © 2010-2013 CNES. All Rights Reserved.