Package edu.ucsb.nceas.metacat.util
Class ConfigurationUtil
java.lang.Object
edu.ucsb.nceas.metacat.util.ConfigurationUtil
A suite of utility classes for the metadata catalog server
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Reports whether the metacat configuration utility should be run.static boolean
Check if the application.backupDir property is populated in metacat.properties and that it points to a writable directory.static boolean
static boolean
Reports whether metacat is fully configured.
-
Field Details
-
dbAdapter
-
-
Constructor Details
-
ConfigurationUtil
public ConfigurationUtil()
-
-
Method Details
-
isMetacatConfigured
public static boolean isMetacatConfigured()Reports whether metacat is fully configured.- Returns:
- a boolean that is true if all sections are configured and false otherwise
-
isBackupDirConfigured
public static boolean isBackupDirConfigured() throws MetacatUtilException, edu.ucsb.nceas.utilities.PropertyNotFoundExceptionCheck if the application.backupDir property is populated in metacat.properties and that it points to a writable directory.- Returns:
- false if the application.backupDir property does not point to a writable directory.
- Throws:
MetacatUtilException
edu.ucsb.nceas.utilities.PropertyNotFoundException
-
isEZIDConfigured
- Throws:
MetacatUtilException
-
bypassConfiguration
Reports whether the metacat configuration utility should be run. Returns false if -- dev.runConfiguration=false and -- backup properties file exists Note that dev.runConfiguration should only be set to false when reinstalling the same version of the application in development.- Returns:
- a boolean that is false if dev.runConfiguration is false and the backup properties file exists.
- Throws:
MetacatUtilException
ServiceException
-