Package edu.ucsb.nceas.metacat.admin
Class MetacatAdmin
java.lang.Object
edu.ucsb.nceas.metacat.admin.MetacatAdmin
- Direct Known Subclasses:
AuthAdmin
,BackupAdmin
,D1Admin
,DBAdmin
,EZIDAdmin
,HashStoreConversionAdmin
,LoginAdmin
,PropertiesAdmin
,QuotaAdmin
,SolrAdmin
A suite of utility classes for querying DB
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
updateUpgradeStatus
(String propertyName, String status, boolean persist) Update the status of an sub upgrade process (e.g.validateOptions
(javax.servlet.http.HttpServletRequest request) Require subclasses to implement a properties validator.
-
Field Details
-
SUCCESS
- See Also:
-
FAILURE
- See Also:
-
IN_PROGRESS
- See Also:
-
COMPLETE
- See Also:
-
NOT_REQUIRED
- See Also:
-
PENDING
- See Also:
-
UNKNOWN
- See Also:
-
-
Constructor Details
-
MetacatAdmin
public MetacatAdmin()
-
-
Method Details
-
validateOptions
Require subclasses to implement a properties validator.- Returns:
- a vector holding error message for any fields that fail validation.
-
updateUpgradeStatus
public static void updateUpgradeStatus(String propertyName, String status, boolean persist) throws edu.ucsb.nceas.utilities.GeneralPropertyException Update the status of an sub upgrade process (e.g. database). It will also update the status of the property which indicates the whole upgrade process (database, and java upgrade).- Parameters:
propertyName
- the name of property needs to be updatedstatus
- the new status should be set- Throws:
edu.ucsb.nceas.utilities.GeneralPropertyException
-