Class MetacatAdmin

java.lang.Object
edu.ucsb.nceas.metacat.admin.MetacatAdmin
Direct Known Subclasses:
AuthAdmin, BackupAdmin, D1Admin, DBAdmin, EZIDAdmin, LoginAdmin, PropertiesAdmin, QuotaAdmin, SolrAdmin

public abstract class MetacatAdmin extends Object
A suite of utility classes for querying DB
  • Field Details

  • Constructor Details

    • MetacatAdmin

      public MetacatAdmin()
  • Method Details

    • validateOptions

      protected abstract Vector<String> validateOptions(javax.servlet.http.HttpServletRequest request)
      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 updated
      status - the new status should be set
      Throws:
      edu.ucsb.nceas.utilities.GeneralPropertyException