Class D1Admin

java.lang.Object
edu.ucsb.nceas.metacat.admin.MetacatAdmin
edu.ucsb.nceas.metacat.admin.D1Admin

public class D1Admin extends MetacatAdmin
Control the display of the database configuration page and the processing of the configuration values.
  • Method Details

    • getInstance

      public static D1Admin getInstance() throws AdminException
      Get the single instance of D1Admin.
      Returns:
      the single instance of D1Admin
      Throws:
      AdminException
    • configureDataONE

      public void configureDataONE(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws AdminException
      Handle configuration of the database the first time that Metacat starts or when it is explicitly called. Collect necessary update information from the administrator.
      Parameters:
      request - the http request information
      response - the http response to be sent back to the client
      Throws:
      AdminException
    • upRegD1MemberNode

      public void upRegD1MemberNode() throws edu.ucsb.nceas.utilities.GeneralPropertyException, AdminException
      upReg: Either update ("up") or register ("reg") DataONE Member Node (MN) config, depending upon whether this Metacat instance is already registered as a DataONE MN. Registration is carried out only if the operator has indicated that registration is required. NOTE: The node description is retrieved from the getCapabilities() service, and so this should only be called after the properties have been properly set up in Metacat.
      Throws:
      edu.ucsb.nceas.utilities.GeneralPropertyException
      AdminException
    • validateOptions

      protected Vector<String> validateOptions(javax.servlet.http.HttpServletRequest request)
      Validate the most important configuration options submitted by the user.
      Specified by:
      validateOptions in class MetacatAdmin
      Returns:
      a vector holding error message for any fields that fail validation.