Package gov.nasa.pds.dsview.registry
Class PDS4Search
- java.lang.Object
-
- gov.nasa.pds.dsview.registry.PDS4Search
-
public class PDS4Search extends Object
This class is used by the PDS data set view web interface to retrieve values for building the search parameter pull-down lists.- Author:
- Hyun Lee
-
-
Field Summary
Fields Modifier and Type Field Description static String
DOI_SERVER_URL
-
Constructor Summary
Constructors Constructor Description PDS4Search(String url)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.solr.common.SolrDocumentList
getBundles()
org.apache.solr.common.SolrDocumentList
getCollections()
org.apache.solr.common.SolrDocument
getContext(String identifier)
org.apache.solr.common.SolrDocumentList
getDocuments()
String
getDoi(String lid, String vid)
org.codehaus.jettison.json.JSONArray
getDoiResponse(URL url)
org.apache.solr.common.SolrDocumentList
getObservationals(int start)
Map<String,String>
getResourceLinks(List<String> resourceRefList)
List<String>
getValues(org.apache.solr.common.SolrDocument doc, String key)
static void
main(String[] argv)
Command line invocation.
-
-
-
Field Detail
-
DOI_SERVER_URL
public static final String DOI_SERVER_URL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PDS4Search
public PDS4Search(String url)
Constructor.
-
-
Method Detail
-
getCollections
public org.apache.solr.common.SolrDocumentList getCollections() throws org.apache.solr.client.solrj.SolrServerException, IOException
- Throws:
org.apache.solr.client.solrj.SolrServerException
IOException
-
getBundles
public org.apache.solr.common.SolrDocumentList getBundles() throws org.apache.solr.client.solrj.SolrServerException, IOException
- Throws:
org.apache.solr.client.solrj.SolrServerException
IOException
-
getObservationals
public org.apache.solr.common.SolrDocumentList getObservationals(int start) throws org.apache.solr.client.solrj.SolrServerException, IOException
- Throws:
org.apache.solr.client.solrj.SolrServerException
IOException
-
getDocuments
public org.apache.solr.common.SolrDocumentList getDocuments() throws org.apache.solr.client.solrj.SolrServerException, IOException
- Throws:
org.apache.solr.client.solrj.SolrServerException
IOException
-
getContext
public org.apache.solr.common.SolrDocument getContext(String identifier) throws org.apache.solr.client.solrj.SolrServerException, IOException
- Throws:
org.apache.solr.client.solrj.SolrServerException
IOException
-
getResourceLinks
public Map<String,String> getResourceLinks(List<String> resourceRefList) throws org.apache.solr.client.solrj.SolrServerException, IOException
- Throws:
org.apache.solr.client.solrj.SolrServerException
IOException
-
getDoiResponse
public org.codehaus.jettison.json.JSONArray getDoiResponse(URL url) throws IOException, org.codehaus.jettison.json.JSONException
- Throws:
IOException
org.codehaus.jettison.json.JSONException
-
getDoi
public String getDoi(String lid, String vid) throws IOException, org.codehaus.jettison.json.JSONException
- Throws:
IOException
org.codehaus.jettison.json.JSONException
-
main
public static void main(String[] argv)
Command line invocation.- Parameters:
argv
- Command-line arguments.
-
-