Class CreateMastRecordAction


public final class CreateMastRecordAction extends CreateADNRecordAction
A Struts Action controlling interaction during creation of records for the "mast" framework, including iteraction with "metaextract" service to populate record fields.

Ensures that new records have unique URLs across their collection.

Author:
Jonathan Ostwald
  • Constructor Details

    • CreateMastRecordAction

      public CreateMastRecordAction()
  • Method Details

    • getXmlFormat

      protected String getXmlFormat()
      Gets the xmlFormat attribute of the CreateMastRecordAction object
      Overrides:
      getXmlFormat in class CreateADNRecordAction
      Returns:
      The xmlFormat value
    • getCreateForward

      protected org.apache.struts.action.ActionForward getCreateForward(org.apache.struts.action.ActionMapping mapping)
      Gets the createForward attribute of the CreateMastRecordAction object
      Overrides:
      getCreateForward in class CreateADNRecordAction
      Parameters:
      mapping - NOT YET DOCUMENTED
      Returns:
      The createForward value
    • getConfirmForward

      protected org.apache.struts.action.ActionForward getConfirmForward(org.apache.struts.action.ActionMapping mapping, CreateADNRecordForm carForm, HttpServletRequest request, HttpServletResponse response)
      Gets the confirmForward attribute of the CreateMastRecordAction object
      Overrides:
      getConfirmForward in class CreateADNRecordAction
      Parameters:
      mapping - the ActionMapping
      carForm - the ActionForm
      request - the Request
      response - the Response
      Returns:
      The confirmForward value
    • makeRecordDoc

      protected org.dom4j.Document makeRecordDoc(CreateADNRecordForm carForm, MetaDataFramework framework, org.apache.struts.action.ActionMapping mapping, HttpServletRequest request, HttpServletResponse response) throws Exception
      Create an empty collection metadata document and populate from ActionForm (carForm). If MetaExtract is unable to provide an instance Document (e.g., it returns an error), then create a new instanceDoc and pass the metaextract message back to caller as an ActionError.
      Overrides:
      makeRecordDoc in class CreateADNRecordAction
      Parameters:
      carForm - the ActionForm
      framework - the MetaDataFramework of the record being created
      errors - messages passed back to caller
      Returns:
      Description of the Return Value
      Throws:
      Exception - Description of the Exception
    • validateForm

      protected org.apache.struts.action.ActionErrors validateForm(HttpServletRequest request, CreateADNRecordForm carForm, MetaDataFramework mastFramework)
      Validate the input from user. Put changed or default values into carForm. After this method returns, the form, carForm (rather than request), is used to process user input
      Overrides:
      validateForm in class CreateADNRecordAction
      Parameters:
      request - Description of the Parameter
      carForm - Description of the Parameter
      mastFramework - NOT YET DOCUMENTED
      Returns:
      Description of the Return Value
    • setDebug

      public static void setDebug(boolean isDebugOutput)
      Sets the debug attribute of the CreateMastRecordAction class
      Parameters:
      isDebugOutput - The new debug value