Class FrameworkConfigAction


public final class FrameworkConfigAction extends StandAloneSchemEditAction
Controller for the DcsDataFramework editor. As a stand-alone schemedit action, this supports framework-config files to be created and edited in a particular directory, and is not connected to the index or repository.
Author:
ostwald

$Id: FrameworkConfigAction.java,v 1.6 2009/03/20 23:33:55 jweather Exp $

  • Constructor Details

    • FrameworkConfigAction

      public FrameworkConfigAction()
  • Method Details

    • getXmlFormat

      protected String getXmlFormat()
      Description copied from class: StandAloneSchemEditAction
      Gets the xmlFormat attribute of the StandAloneSchemEditAction object
      Overrides:
      getXmlFormat in class StandAloneSchemEditAction
      Returns:
      The xmlFormat value
    • getRecordsDir

      protected File getRecordsDir()
      Description copied from class: StandAloneSchemEditAction
      Gets the recordsDir attribute of the StandAloneSchemEditAction object
      Overrides:
      getRecordsDir in class StandAloneSchemEditAction
      Returns:
      The recordsDir value
    • execute

      public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
      Place the name of the edited framework in the request before calling super.execute.
      Overrides:
      execute in class StandAloneSchemEditAction
      Parameters:
      mapping - Description of the Parameter
      form - Description of the Parameter
      request - Description of the Parameter
      response - Description of the Parameter
      Returns:
      Description of the Return Value
      Throws:
      IOException - Description of the Exception
      ServletException - Description of the Exception
    • getFileToEdit

      protected File getFileToEdit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, SchemaHelper schemaHelper) throws Exception
      Description copied from class: StandAloneSchemEditAction
      Gets the fileToEdit attribute of the StandAloneSchemEditAction object
      Overrides:
      getFileToEdit in class StandAloneSchemEditAction
      Parameters:
      mapping - Description of the Parameter
      form - Description of the Parameter
      request - Description of the Parameter
      schemaHelper - Description of the Parameter
      Returns:
      The fileToEdit value
      Throws:
      Exception - Description of the Exception
    • putRecord

      protected void putRecord(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request) throws Exception
      Description copied from class: StandAloneSchemEditAction
      Saves a metadata record either to disk
      Overrides:
      putRecord in class StandAloneSchemEditAction
      Parameters:
      mapping - Description of the Parameter
      form - Description of the Parameter
      request - Description of the Parameter
      Throws:
      Exception - if save operation is unsuccessful
    • handleMissingCommand

      protected org.apache.struts.action.ActionForward handleMissingCommand(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException
      Description copied from class: StandAloneSchemEditAction
      Requests without a command forward control to the home page for this framework.
      Overrides:
      handleMissingCommand in class StandAloneSchemEditAction
      Parameters:
      mapping - Description of the Parameter
      form - Description of the Parameter
      request - Description of the Parameter
      response - Description of the Parameter
      Returns:
      Description of the Return Value
      Throws:
      ServletException - Description of the Exception
    • prtln

      protected void prtln(String s)
      Description copied from class: StandAloneSchemEditAction
      Print a line to standard out.
      Overrides:
      prtln in class StandAloneSchemEditAction
      Parameters:
      s - The String to print.