public class MetacatHelper
extends java.lang.Object
Constructor and Description |
---|
MetacatHelper() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
constructDN(java.lang.String username,
java.lang.String organization)
Constructs a DN (Distinguished Name) string for the ecoinformatics.org
LDAP.
|
java.lang.String |
constructMetacatURL(java.lang.String serverName,
int serverPort,
java.lang.String contextString)
Constructs a URL to the metacat servlet.
|
java.lang.String |
getResultsetXSL(javax.servlet.http.HttpServletRequest request)
Gets the path to the resultset XSL file.
|
java.lang.String |
getResultsJSP()
Gets the relative path to the advancedsearchresults.jsp file.
|
public java.lang.String constructDN(java.lang.String username, java.lang.String organization)
username
- The LDAP uid, e.g. "dcosta"organization
- The LDAP organization, e.g. "LTER"public java.lang.String constructMetacatURL(java.lang.String serverName, int serverPort, java.lang.String contextString)
serverName
- A server name, e.g. "prairie.lternet.edu"serverPort
- A server port, e.g. 8080. If no port is required in the URL,
pass a 0 and the argument will be ignored.contextString
- The context under which metacat is running, e.g. "knb".public java.lang.String getResultsJSP()
public java.lang.String getResultsetXSL(javax.servlet.http.HttpServletRequest request)
request
- The HttpServletRequest object.Copyright © 2020 Regents of the University of California. All Rights Reserved.