Package edu.ucsb.nceas.metacat.admin
Class PropertiesAdmin
java.lang.Object
edu.ucsb.nceas.metacat.admin.MetacatAdmin
edu.ucsb.nceas.metacat.admin.PropertiesAdmin
Control the display of the main properties configuration page and the
processing of the configuration values.
-
Field Summary
Fields inherited from class edu.ucsb.nceas.metacat.admin.MetacatAdmin
FAILURE, IN_PROGRESS, SUCCESS
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configureProperties
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Handle configuration of the main application propertiesstatic PropertiesAdmin
Get the single instance of the MetaCatConfig.protected boolean
Determine if the metacat-index context exists with metacat in the same Tomcat container.protected void
setMNBaseURL
(Collection<String> validationErrors) Set the property of dataone.mn.baseURL automaticallyprotected String
updateMetacatPropertiesPath
(String metacatContext, String webXmlContents) validateOptions
(javax.servlet.http.HttpServletRequest request) Validate the most important configuration options submitted by the user.Methods inherited from class edu.ucsb.nceas.metacat.admin.MetacatAdmin
updateUpgradeStatus
-
Method Details
-
getInstance
Get the single instance of the MetaCatConfig.- Returns:
- the single instance of MetaCatConfig
-
configureProperties
public void configureProperties(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws AdminException Handle configuration of the main application properties- Parameters:
request
- the http request objectresponse
- the http response to be sent back to the client- Throws:
AdminException
-
updateMetacatPropertiesPath
-
validateOptions
Validate the most important configuration options submitted by the user.- Specified by:
validateOptions
in classMetacatAdmin
- Parameters:
request
- the http request object- Returns:
- a vector holding error message for any fields that fail validation.
-
setMNBaseURL
Set the property of dataone.mn.baseURL automatically- Parameters:
validationErrors
- the container for error message
-
isIndexerCodeployed
Determine if the metacat-index context exists with metacat in the same Tomcat container. Now we use the file directory as the indicator. We maybe change it in the future.- Returns:
- true if it exists; otherwise false.
- Throws:
AdminException
-