Package edu.ucsb.nceas.metacat.admin
Class BackupAdmin
java.lang.Object
edu.ucsb.nceas.metacat.admin.MetacatAdmin
edu.ucsb.nceas.metacat.admin.BackupAdmin
Control the display of the login page
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from class edu.ucsb.nceas.metacat.admin.MetacatAdmin
COMPLETE, FAILURE, IN_PROGRESS, NOT_REQUIRED, PENDING, SUCCESS
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configureBackup
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Handle configuration of the backup directoryprotected String
getBackupDirStatus
(String backupBaseDir) Find the status of the backup base directory.static BackupAdmin
Get the single instance of BackupAdmin.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
-
Field Details
-
HIDDEN_EXISTS_POPULATED
- See Also:
-
HIDDEN_EXISTS_UNPOPULATED
- See Also:
-
BASE_EXISTS_ONLY
- See Also:
-
UNKNOWN
- See Also:
-
-
Method Details
-
getInstance
Get the single instance of BackupAdmin.- Returns:
- the single instance of BackupAdmin
-
configureBackup
public void configureBackup(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws AdminException Handle configuration of the backup directory- Parameters:
request
- the http request informationresponse
- the http response to be sent back to the client- Throws:
AdminException
-
getBackupDirStatus
Find the status of the backup base directory. The possible statuses are: -- HIDDEN_EXISTS_POPULATED -- HIDDEN_EXISTS_UNPOPULATED -- METACAT_EXISTS_ONLY -- BASE_EXISTS_ONLY -- UNKNOWN- Parameters:
backupBaseDir
- the directory we want to check- Returns:
- a string corresponding to one of the statuses shown above.
-
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.
-