Class SiteLanguageHandler

    • Constructor Detail

      • SiteLanguageHandler

        public SiteLanguageHandler()
    • 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
      • setOpUpdate

        public void setOpUpdate​(java.lang.String v)
      • validateUpdate

        public boolean validateUpdate()
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • performUpdate

        public boolean performUpdate()
                              throws java.io.IOException
        Starts the conversion as a background process.
        Returns:
        always false
        Throws:
        java.io.IOException - if an error occurs
        Since:
        jcms-10.0.8 / JCMS-10722
      • getCurrentLanguage

        public java.lang.String getCurrentLanguage()
        Returns:
        channel language
        Since:
        jcms-10.0.8 / JCMS-10722
      • getCurrentLanguageSettings

        public LanguageSettings getCurrentLanguageSettings()
        Returns:
        settings for current language disabled field
        Since:
        jcms-10.0.8 / JCMS-10722
      • getAvailableTargetLanguage

        public java.lang.String getAvailableTargetLanguage()
        Returns:
        selected target language if any, null by default
        Since:
        jcms-10.0.8 / JCMS-10722
      • setTargetLanguage

        public void setTargetLanguage​(java.lang.String v)
        Parameters:
        v - set target language
        Since:
        jcms-10.0.8 / JCMS-10722
      • getTargetLanguageSettings

        public LanguageSettings getTargetLanguageSettings()
        Returns:
        settings for target language field
        Since:
        jcms-10.0.8 / JCMS-10722
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object