Class ItemAttributeProvider

    • Constructor Detail

      • ItemAttributeProvider

        public ItemAttributeProvider​(PersistenceObject item,
                                     ItemModelConverter converter)
        Creates a new provider setting the managed item.
        Parameters:
        item - item from which the attribute values will be gathered
      • ItemAttributeProvider

        public ItemAttributeProvider​(PK pk,
                                     ItemModelConverter converter)
        Creates a new provider setting with PK only.
    • Method Detail

      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String qualifier)
        Description copied from interface: AttributeProvider
        Gets the attribute value of managed source object for attribute with given qualifier without paying attention to current session language.
        Specified by:
        getAttribute in interface AttributeProvider
        Parameters:
        qualifier - qualifier identifying the attribute for which the value is needed
        Returns:
        value for specified attribute of managed source object
      • getLocalizedAttribute

        public java.lang.Object getLocalizedAttribute​(java.lang.String qualifier,
                                                      java.util.Locale dataLoc)
        Description copied from interface: AttributeProvider
        Gets the attribute value of managed source object for attribute with given qualifier for the given Locale
        Specified by:
        getLocalizedAttribute in interface AttributeProvider
        Parameters:
        qualifier - qualifier identifying the attribute for which the value is needed
        dataLoc - the locale
        Returns:
        value for specified attribute of managed source object
      • getItem

        @Deprecated
        public Item getItem()
        Deprecated.
        since 5.7.0
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object