Package gov.nasa.pds.dsview.registry
Class PDS3Search
- java.lang.Object
-
- gov.nasa.pds.dsview.registry.PDS3Search
-
public class PDS3Search 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 PDS3Search(String url)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.solr.common.SolrDocument
getDataSet(String identifier)
org.apache.solr.common.SolrDocumentList
getDataSetList()
String
getDoi(String identifier)
List<org.apache.solr.common.SolrDocument>
getInst(String identifier)
org.apache.solr.common.SolrDocument
getInst(String instId, String instHostId)
org.apache.solr.common.SolrDocument
getInstHost(String identifier)
org.apache.solr.common.SolrDocument
getMission(String identifier)
org.apache.solr.common.SolrDocument
getResource(String identifier)
org.apache.solr.common.SolrDocument
getTarget(String identifier)
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
-
PDS3Search
public PDS3Search(String url)
Constructor.
-
-
Method Detail
-
getDataSetList
public org.apache.solr.common.SolrDocumentList getDataSetList() throws org.apache.solr.client.solrj.SolrServerException, IOException
- Throws:
org.apache.solr.client.solrj.SolrServerException
IOException
-
getDataSet
public org.apache.solr.common.SolrDocument getDataSet(String identifier) throws org.apache.solr.client.solrj.SolrServerException, IOException
- Throws:
org.apache.solr.client.solrj.SolrServerException
IOException
-
getMission
public org.apache.solr.common.SolrDocument getMission(String identifier) throws org.apache.solr.client.solrj.SolrServerException, IOException
- Throws:
org.apache.solr.client.solrj.SolrServerException
IOException
-
getInstHost
public org.apache.solr.common.SolrDocument getInstHost(String identifier) throws org.apache.solr.client.solrj.SolrServerException, IOException
- Throws:
org.apache.solr.client.solrj.SolrServerException
IOException
-
getInst
public List<org.apache.solr.common.SolrDocument> getInst(String identifier) throws org.apache.solr.client.solrj.SolrServerException, IOException
- Throws:
org.apache.solr.client.solrj.SolrServerException
IOException
-
getInst
public org.apache.solr.common.SolrDocument getInst(String instId, String instHostId) throws org.apache.solr.client.solrj.SolrServerException, IOException
- Throws:
org.apache.solr.client.solrj.SolrServerException
IOException
-
getTarget
public org.apache.solr.common.SolrDocument getTarget(String identifier) throws org.apache.solr.client.solrj.SolrServerException, IOException
- Throws:
org.apache.solr.client.solrj.SolrServerException
IOException
-
getResource
public org.apache.solr.common.SolrDocument getResource(String identifier) throws org.apache.solr.client.solrj.SolrServerException, IOException
- Throws:
org.apache.solr.client.solrj.SolrServerException
IOException
-
getDoi
public String getDoi(String identifier) 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.
-
-