Class DataLocalizationUpdater


  • public class DataLocalizationUpdater
    extends java.lang.Object
    Static utility that re-localize a given data.

    Since:
    jcms-10.0.8 / JCMS-10722
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void reLocalizeData​(Data data, Data updated, java.lang.String sourceLanguage, java.lang.String targetLanguage)
      Update ML text fields to be in target main language.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • reLocalizeData

        public static void reLocalizeData​(Data data,
                                          Data updated,
                                          java.lang.String sourceLanguage,
                                          java.lang.String targetLanguage)
        Update ML text fields to be in target main language.

        Does not perform update, only work in memory.

        Parameters:
        data - data to be re-localized
        updated - update instance to work on
        sourceLanguage - previous site default lang
        targetLanguage - new site default lang
        Since:
        jcms-10.0.8 / JCMS-10722