Package edu.ucsb.nceas.metacat.admin
Class D1Admin
java.lang.Object
edu.ucsb.nceas.metacat.admin.MetacatAdmin
edu.ucsb.nceas.metacat.admin.D1Admin
Control the display of the database 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
configureDataONE
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Handle configuration of the database the first time that Metacat starts or when it is explicitly called.static D1Admin
Get the single instance of D1Admin.void
upReg: Either update ("up") or register ("reg") DataONE Member Node (MN) config, depending upon whether this Metacat instance is already registered as a DataONE MN.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 D1Admin.- Returns:
- the single instance of D1Admin
- Throws:
AdminException
-
configureDataONE
public void configureDataONE(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws AdminException Handle configuration of the database the first time that Metacat starts or when it is explicitly called. Collect necessary update information from the administrator.- Parameters:
request
- the http request informationresponse
- the http response to be sent back to the client- Throws:
AdminException
-
upRegD1MemberNode
public void upRegD1MemberNode() throws edu.ucsb.nceas.utilities.GeneralPropertyException, AdminExceptionupReg: Either update ("up") or register ("reg") DataONE Member Node (MN) config, depending upon whether this Metacat instance is already registered as a DataONE MN. Registration is carried out only if the operator has indicated that registration is required. NOTE: The node description is retrieved from the getCapabilities() service, and so this should only be called after the properties have been properly set up in Metacat.- Throws:
edu.ucsb.nceas.utilities.GeneralPropertyException
AdminException
-
validateOptions
Validate the most important configuration options submitted by the user.- Specified by:
validateOptions
in classMetacatAdmin
- Returns:
- a vector holding error message for any fields that fail validation.
-