fr.cnes.sitools.portal.multidatasets.opensearch
Class MutliDsOsResource

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.portal.multidatasets.opensearch.MutliDsOsResource

public final class MutliDsOsResource
extends SitoolsResource

Resource to handle multiple datasets opensearch request

Version:
Author:
m.gond (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
MutliDsOsResource()
           
 
Method Summary
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
           
 void doInit()
          Initiate the resource
 org.restlet.representation.Representation getMutliDsOpensearch()
          Handle the search over multiple opensearch index
 int getNbResults()
          Gets the nbResults value
 java.lang.String getOpensearchRSS(java.lang.String query, java.lang.String osId)
          Get the RSS result of an opensearch query
 java.lang.String getOpensearchSuggest(java.lang.String query, java.lang.String osId, org.restlet.data.MediaType mediaType)
          Get the Suggest Representation for a given query and Opensearch Id
 java.util.List<OpensearchDescriptionDTO> getOsList()
          Gets the osList value
 Portal getPortal()
          Gets the portal value
 java.lang.String getSearchQuery()
          Gets the searchQuery value
 void setNbResults(int nbResults)
          Sets the value of nbResults
 void setOsList(java.util.List<OpensearchDescriptionDTO> osList)
          Sets the value of osList
 void setPortal(Portal portal)
          Sets the value of portal
 void setSearchQuery(java.lang.String searchQuery)
          Sets the value of searchQuery
 void sitoolsDescribe()
          Method implementation mandatory
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, configure, getNotificationObject, getRepresentation, 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

MutliDsOsResource

public MutliDsOsResource()
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


getMutliDsOpensearch

@Get
public org.restlet.representation.Representation getMutliDsOpensearch()
Handle the search over multiple opensearch index

Returns:
The result of the search over multiple opensearch index

describeGet

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

getOpensearchRSS

public java.lang.String getOpensearchRSS(java.lang.String query,
                                         java.lang.String osId)
Get the RSS result of an opensearch query

Parameters:
query - The query
osId - The opensearchId
Returns:
A String representing the RSS result of an opensearch query

getOpensearchSuggest

public java.lang.String getOpensearchSuggest(java.lang.String query,
                                             java.lang.String osId,
                                             org.restlet.data.MediaType mediaType)
Get the Suggest Representation for a given query and Opensearch Id

Parameters:
query - The query
osId - the Opensearch Id
mediaType - the mediaType needed
Returns:
a representation representing the suggest for a given query

setOsList

public void setOsList(java.util.List<OpensearchDescriptionDTO> osList)
Sets the value of osList

Parameters:
osList - the osList to set

getOsList

public java.util.List<OpensearchDescriptionDTO> getOsList()
Gets the osList value

Returns:
the osList

getNbResults

public int getNbResults()
Gets the nbResults value

Returns:
the nbResults

setNbResults

public void setNbResults(int nbResults)
Sets the value of nbResults

Parameters:
nbResults - the nbResults to set

getSearchQuery

public java.lang.String getSearchQuery()
Gets the searchQuery value

Returns:
the searchQuery

setSearchQuery

public void setSearchQuery(java.lang.String searchQuery)
Sets the value of searchQuery

Parameters:
searchQuery - the searchQuery to set

setPortal

public void setPortal(Portal portal)
Sets the value of portal

Parameters:
portal - the portal to set

getPortal

public Portal getPortal()
Gets the portal value

Returns:
the portal


Copyright © 2010-2013 CNES. All Rights Reserved.