Class LoggingSetupHandler

    • Field Detail

      • INIT_PACKAGES_RUNNING_PROCESS_DOMAIN_NAME

        public static final java.lang.String INIT_PACKAGES_RUNNING_PROCESS_DOMAIN_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • LoggingSetupHandler

        public LoggingSetupHandler()
    • Method Detail

      • addFrontEndDependencies

        public void addFrontEndDependencies()
      • init

        protected void init()
        Description copied from class: JcmsFormHandler
        Method to implement if you need to initialize your handler from parameter received, prior to all security validation.

        You must absolutely not perform any action which modify data or site configuration.

        Therefore it is strongly recommend NOT TO implement this method, or use very wisely.

        Overrides:
        init in class JcmsFormHandler
      • 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
      • isOriginVisible

        public boolean isOriginVisible​(java.lang.String origin)
      • restoreDefaultConfiguration

        public void restoreDefaultConfiguration()
      • canUseLoggingSetup

        public boolean canUseLoggingSetup()
      • isInitDone

        public boolean isInitDone()
      • initPackages

        public void initPackages()
      • getAvailableLevel

        public org.apache.log4j.Level getAvailableLevel()
      • setLevel

        public void setLevel​(java.lang.String level)
      • getUpdatedPackage

        public java.lang.String getUpdatedPackage()
      • setUpdatedPackage

        public void setUpdatedPackage​(java.lang.String updatedPackage)
      • getJsonResponse

        public java.lang.String getJsonResponse()
      • setJsonResponse

        public void setJsonResponse​(java.lang.String jsonResponse)
      • isOpUpdateLevel

        public boolean isOpUpdateLevel()
      • setOpUpdateLevel

        public void setOpUpdateLevel​(boolean opUpdateLevel)
      • getText

        public java.lang.String getText()
      • setText

        public void setText​(java.lang.String text)
      • isOpRestoreDefaultConfiguration

        public boolean isOpRestoreDefaultConfiguration()
      • setOpRestoreDefaultConfiguration

        public void setOpRestoreDefaultConfiguration​(boolean opRestoreDefaultConfiguration)
      • isOpUpdateLevelWithDuration

        public boolean isOpUpdateLevelWithDuration()
      • setOpUpdateLevelWithDuration

        public void setOpUpdateLevelWithDuration​(boolean opUpdateLevelWithDuration)
      • setDuration

        public void setDuration​(java.lang.String duration)
      • setOrigin

        public void setOrigin​(java.lang.String origin)
      • getOrigin

        public java.lang.String getOrigin()