Class DataLocaleProvider

java.lang.Object
org.nuclos.api.provider.DataLocaleProvider

public class DataLocaleProvider extends Object
  • Constructor Details

    • DataLocaleProvider

      DataLocaleProvider()
  • Method Details

    • setDataLocaleService

      public void setDataLocaleService(DataLocaleService service)
    • getDataLocales

      public static List<NuclosLocale> getDataLocales() throws BusinessException
      This method returns all active NuclosLocale. (installation depending)
      Returns:
      List of NuclosLocale
      Throws:
      BusinessException
    • getPrimaryDataLocale

      public static NuclosLocale getPrimaryDataLocale() throws BusinessException
      Returns the system primary (default) data language as NuclosLocale.

      This is the locale that backs non-localized storage for fields whose declaration is localized only at the generic-BO level: when a value list is applied to a generic BO whose implementation is non-localized, the value for this locale is the one that is persisted. (NUCLOS-11460.)

      Returns:
      the primary data locale, or null if no data languages are configured.
      Throws:
      BusinessException