Class SiteLanguageHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class SiteLanguageHandler extends JcmsFormHandler
Since:
jcms-10.0.8 / JCMS-10722
  • Constructor Details

    • SiteLanguageHandler

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

      public String getFormStepHiddenFields()
      Overrides:
      getFormStepHiddenFields in class JcmsFormHandler
    • setOpUpdate

      public void setOpUpdate(String v)
    • validateUpdate

      public boolean validateUpdate() throws IOException
      Throws:
      IOException
    • performUpdate

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

      public 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 String getAvailableTargetLanguage()
      Returns:
      selected target language if any, null by default
      Since:
      jcms-10.0.8 / JCMS-10722
    • setTargetLanguage

      public void setTargetLanguage(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 String toString()
      Overrides:
      toString in class Object