Class ImportCategoriesHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class ImportCategoriesHandler extends EditDataHandler
Upload and parse a .txt file containing tree of categories to import in JCMS.
Author:
Olivier Dedieu
  • Field Details

    • isPerformed

      protected boolean isPerformed
    • opImport

      protected boolean opImport
    • importFile

      protected File importFile
    • parent

      protected Category parent
  • Constructor Details

    • ImportCategoriesHandler

      public ImportCategoriesHandler()
  • Method Details

    • getDataClass

      public Class<? extends Data> getDataClass()
      Specified by:
      getDataClass in class EditDataHandler
    • processAction

      public boolean processAction() throws IOException
      Description copied from class: JcmsFormHandler
      Method to be implemented to check/validate action to be performed and process them.

      Default implementation is to return false. No need to call super method.

      This method may NOT be invoked at all if security validation are not met.

      You must ensure your handler and JSP can work properly without any code invoked in this method.

      Overrides:
      processAction in class EditDataHandler
      Returns:
      false if no redirection is needed, true otherwise
      Throws:
      IOException - IO Exception
    • validateImport

      protected boolean validateImport() throws IOException
      Throws:
      IOException
    • validateImportInner

      protected boolean validateImportInner() throws IOException
      Throws:
      IOException
    • performImport

      protected boolean performImport()
    • getFileSettings

      public ControlSettings getFileSettings()
    • getPidSettings

      public ControlSettings getPidSettings()
    • setOpImport

      public void setOpImport(boolean v)
    • setPid

      public void setPid(String pid)