Class StoreAnonymizerHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class StoreAnonymizerHandler extends JcmsFormHandler
Provides admin UI to anonymize a store.
Since:
jcms-10.0.8
Author:
Sylvain Devaux
  • Field Details

    • opAnonymize

      protected boolean opAnonymize
    • opDownload

      protected boolean opDownload
  • Constructor Details

    • StoreAnonymizerHandler

      public StoreAnonymizerHandler()
  • Method Details

    • 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 JcmsFormHandler
      Returns:
      false if no redirection is needed, true otherwise
      Throws:
      IOException - IO Exception
      Since:
      jcms-10.0.8
    • checkAccess

      public static boolean checkAccess(JcmsJspContext jcmsContext, Member member)
      Since:
      jcms-10.0.8
    • performAnonymize

      protected boolean performAnonymize() throws IOException
      Throws:
      IOException
      Since:
      jcms-10.0.8
    • validateAnonymize

      protected boolean validateAnonymize() throws IOException
      Throws:
      IOException
      Since:
      jcms-10.0.8
    • setOpAnonymize

      public void setOpAnonymize(String v)
      Since:
      jcms-10.0.8
    • performDownload

      protected boolean performDownload() throws IOException
      Creates a download ticket to the resulting file.
      Returns:
      always false
      Throws:
      IOException - if error occured
      Since:
      jcms-10.0.8
    • getNewDownloadFilename

      protected String getNewDownloadFilename(boolean zip)
      Creates a filename following format: store_anonymized_2024-05-29_18-12-24.xml
      Parameters:
      zip - if true, .zip suffix is added
      Returns:
      filename for the file to download
      Since:
      jcms-10.0.8
    • showOpDownload

      public boolean showOpDownload()
      Since:
      jcms-10.0.8
    • getFormattedDownloadFileSize

      public String getFormattedDownloadFileSize(boolean htmlDisplay)
      Since:
      jcms-10.0.8
    • validateDownload

      protected boolean validateDownload()
      Since:
      jcms-10.0.8
    • setOpDownload

      public void setOpDownload(String v)
      Since:
      jcms-10.0.8
    • getInputFilePath

      protected String getInputFilePath()
      Returns:
      the path to the file containing anonymization result
      Since:
      jcms-10.0.8
    • getOutputFilePath

      protected String getOutputFilePath()
      Since:
      jcms-10.0.8
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Since:
      jcms-10.0.8