Class StoreAnonymizerHandler

    • Field Detail

      • opAnonymize

        protected boolean opAnonymize
      • opDownload

        protected boolean opDownload
    • Constructor Detail

      • StoreAnonymizerHandler

        public StoreAnonymizerHandler()
    • Method Detail

      • processAction

        public boolean processAction()
                              throws java.io.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:
        java.io.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 java.io.IOException
        Throws:
        java.io.IOException
        Since:
        jcms-10.0.8
      • validateAnonymize

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

        public void setOpAnonymize​(java.lang.String v)
        Since:
        jcms-10.0.8
      • performDownload

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

        protected java.lang.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 java.lang.String getFormattedDownloadFileSize​(boolean htmlDisplay)
        Since:
        jcms-10.0.8
      • validateDownload

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

        public void setOpDownload​(java.lang.String v)
        Since:
        jcms-10.0.8
      • getInputFilePath

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

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

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