Class ItemAttributeProvider

java.lang.Object
de.hybris.platform.servicelayer.internal.converter.impl.ItemAttributeProvider
All Implemented Interfaces:
AttributeProvider, Serializable

public class ItemAttributeProvider extends Object implements AttributeProvider
Provides attribute values for a specific Item.
See Also:
  • Constructor Details

    • 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 Details

    • getConverter

      public ItemModelConverter getConverter()
    • getAttribute

      public Object getAttribute(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 Object getLocalizedAttribute(String qualifier, 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
    • getPersistenceObject

      public PersistenceObject getPersistenceObject()
    • getItem

      @Deprecated(since="5.7.0", forRemoval=true) public Item getItem()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 5.7.0
    • toString

      public String toString()
      Overrides:
      toString in class Object