public class AdvancedSearch
extends java.lang.Object
Constructor and Description |
---|
AdvancedSearch(AdvancedSearchBean advancedSearchBean)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
executeAdvancedSearch(java.lang.String metacatURL,
Metacat metacat,
java.lang.String qformat,
java.lang.String xslPath)
Builds and runs an advanced search, returning HTML result string.
|
java.lang.String |
executeSearch(java.lang.String metacatURL,
Metacat metacat,
java.lang.String qformat,
java.lang.String xslPath,
java.lang.String value)
Builds and runs a simple search, returning HTML result string.
|
static void |
main(java.lang.String[] argv)
Main program to run a test query from the command line.
|
public AdvancedSearch(AdvancedSearchBean advancedSearchBean)
advancedSearchBean
- An AdvancedSearch bean.public java.lang.String executeAdvancedSearch(java.lang.String metacatURL, Metacat metacat, java.lang.String qformat, java.lang.String xslPath)
metacatURL
- URL to the metacat servletmetacat
- A metacat client object, possible null.qformat
- The qformat (skin) to use when displaying results.xslPath
- File path to the resultset.xsl stylesheet.public java.lang.String executeSearch(java.lang.String metacatURL, Metacat metacat, java.lang.String qformat, java.lang.String xslPath, java.lang.String value)
metacatURL
- URL to the metacat servletmetacat
- A metacat client object, possible null.qformat
- The qformat (skin) to use when displaying results.xslPath
- File path to the resultset.xsl stylesheet.value
- String value to search on.public static void main(java.lang.String[] argv)
argv[0]
- The server name, e.g. "earth.lternet.edu"argv[1]
- The server port, e.g. "8080", or 0 if no port needs
to be specified.argv[2]
- The context string, e.g. "knb"argv[3]
- The path to the resultset.xsl stylesheet, e.g.
"C:/Tomcat5/webapps/query/style/common/resultset.xsl"Copyright © 2020 Regents of the University of California. All Rights Reserved.