Class CreateADNRecordAction

java.lang.Object
org.apache.struts.action.Action
Direct Known Subclasses:
CreateMastRecordAction

public class CreateADNRecordAction extends CreateRecordAction
A Struts Action controlling interaction during creation of ADN records in the DCS.

Ensures that new records have unique ID's across their collection. Works in conjunction with CreateADNRecordForm.

Author:
Jonathan Ostwald
  • Constructor Details

    • CreateADNRecordAction

      public CreateADNRecordAction()
  • Method Details

    • getXmlFormat

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

      protected org.apache.struts.action.ActionForward getCreateForward(org.apache.struts.action.ActionMapping mapping)
      Gets the createForward attribute of the CreateADNRecordAction object
      Specified by:
      getCreateForward in class CreateRecordAction
      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 CreateADNRecordAction object
      Specified by:
      getConfirmForward in class CreateRecordAction
      Parameters:
      mapping - NOT YET DOCUMENTED
      carForm - NOT YET DOCUMENTED
      request - NOT YET DOCUMENTED
      response - NOT YET DOCUMENTED
      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). ActionErrors available to pass messages back up call chain (but not currently used).
      Specified by:
      makeRecordDoc in class CreateRecordAction
      Parameters:
      carForm - the ActionForm
      framework - the MetaDataFramework of the record being created
      adnFramework - NOT YET DOCUMENTED
      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 adnFramework)
      Validate the input from user. Put changed or default values into carForm. After this method returns carForm (rather than request) is used to process user input
      Specified by:
      validateForm in class CreateRecordAction
      Parameters:
      request - Description of the Parameter
      carForm - Description of the Parameter
      adnFramework - NOT YET DOCUMENTED
      Returns:
      Description of the Return Value
    • setDebug

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