Class ConfigurationUtil

java.lang.Object
edu.ucsb.nceas.metacat.util.ConfigurationUtil

public class ConfigurationUtil extends Object
A suite of utility classes for the metadata catalog server
  • Field Details

  • 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.PropertyNotFoundException
      Check 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

      public static boolean isEZIDConfigured() throws MetacatUtilException
      Throws:
      MetacatUtilException
    • bypassConfiguration

      public static boolean bypassConfiguration() throws MetacatUtilException, ServiceException
      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