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
COMPLETE, FAILURE, IN_PROGRESS, NOT_REQUIRED, PENDING, SUCCESS, UNKNOWN -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureDataONE(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 D1AdminGet the single instance of D1Admin.voidupReg: 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.GeneralPropertyExceptionAdminException
-
validateOptions
Validate the most important configuration options submitted by the user.- Specified by:
validateOptionsin classMetacatAdmin- Returns:
- a vector holding error message for any fields that fail validation.
-