Class EntityI18NSupportBase

    • Field Detail

      • entityI18Ns

        protected java.util.Set<EntityI18N> entityI18Ns
        A set of EntityI18N(s) for property value translations.
      • entityI18NMap

        protected java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​EntityI18N>> entityI18NMap
        entityI18NMap: cache, built from entityI18Ns. map from property name to locale to translation(EntityI18N)
    • Constructor Detail

      • EntityI18NSupportBase

        public EntityI18NSupportBase()
    • Method Detail

      • setEntityI18Ns

        public void setEntityI18Ns​(java.util.Set<EntityI18N> entityI18Ns)
        Description copied from interface: EntityI18NSupport
        Set the set of EntityI18N(s) that this entity has.
        Specified by:
        setEntityI18Ns in interface EntityI18NSupport
        Parameters:
        entityI18Ns - a set of EntityI18N(s)
      • getEntityI18NMap

        public java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​EntityI18N>> getEntityI18NMap()
        Description copied from interface: EntityI18NSupport
        Get entity I18N map from property to translations(map from locale to EntityI18N). The map is built from the set of EntityI18Ns, see getEntityI18Ns().
        Specified by:
        getEntityI18NMap in interface EntityI18NSupport
        Returns:
        i18N map
      • setEntityI18NMap

        public void setEntityI18NMap​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​EntityI18N>> entityI18NMap)
        Description copied from interface: EntityI18NSupport
        Set entity I18N map from property to translations(map from locale to EntityI18N). The map is built from the set of EntityI18Ns, see getEntityI18Ns().
        Specified by:
        setEntityI18NMap in interface EntityI18NSupport
        Parameters:
        entityI18NMap - property translation map
      • getPropertyValue

        public java.lang.String getPropertyValue​(java.lang.String property,
                                                 java.util.Locale locale)
                                          throws SystemException
        Get property value by locale
        Specified by:
        getPropertyValue in interface EntityI18NSupport
        Parameters:
        property - the property for which to get value
        locale - locale
        Returns:
        property value
        Throws:
        SystemException - throw if an error occurs