Class UpdateSiteLanguageProcess

java.lang.Object
com.jalios.jcms.backgroundprocess.BackgroundProcess
com.jalios.jcms.admin.properties.UpdateSiteLanguageProcess
All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class UpdateSiteLanguageProcess extends BackgroundProcess
Changes language / main language of a given data set.
Since:
jcms-10.0.8 / JCMS-10722
Author:
Sylvain Devaux
See Also:
  • Field Details

  • Constructor Details

    • UpdateSiteLanguageProcess

      protected UpdateSiteLanguageProcess()
      Since:
      jcms-10.0.8 / JCMS-10722
  • Method Details

    • runProcess

      protected void runProcess() throws BackgroundProcessException
      Re-localize site data, then update default lang property.
      Specified by:
      runProcess in class BackgroundProcess
      Throws:
      BackgroundProcessException - if an error occurs
      Since:
      jcms-10.0.8 / JCMS-10722
    • handleComplete

      protected void handleComplete()
      Disables data write whatever the completedStatus.
      Overrides:
      handleComplete in class BackgroundProcess
      Since:
      jcms-10.0.8 / JCMS-10722
    • getLabelProp

      public String getLabelProp()
      Description copied from class: BackgroundProcess
      Retrieve the I18N property key to use to provide the I18Ned label of this BackgroundProcess to the user.
      Overrides:
      getLabelProp in class BackgroundProcess
      Returns:
      a property
      Since:
      jcms-10.0.8 / JCMS-10722
    • incrementStep

      public void incrementStep()
      Description copied from class: BackgroundProcess
      Increment the step number of this processing by one.

      Implementation detail : If this step changes the progress percentage, it triggers an update in database of the BackgroundProcessInfo used to track the process progress

      Overrides:
      incrementStep in class BackgroundProcess
      Since:
      jcms-10.0.8 / JCMS-10722
    • sourceLanguage

      public UpdateSiteLanguageProcess sourceLanguage(String sourceLanguage)
      Parameters:
      sourceLanguage - source language to set
      Returns:
      current process
      Since:
      jcms-10.0.8 / JCMS-10722
    • targetLanguage

      public UpdateSiteLanguageProcess targetLanguage(String targetLanguage)
      Parameters:
      targetLanguage - target language to set
      Returns:
      current process
      Since:
      jcms-10.0.8 / JCMS-10722
    • targetLanguate

      public String targetLanguate()
      Returns:
      chosen target language
      Since:
      jcms-10.0.8 / JCMS-10722
    • toString

      public String toString()
      Overrides:
      toString in class BackgroundProcess
      Since:
      jcms-10.0.8 / JCMS-10722