Class RestrictedAttributesProvider

  • All Implemented Interfaces:
    CanonicalItemAttributesProvider

    public class RestrictedAttributesProvider
    extends java.lang.Object
    implements CanonicalItemAttributesProvider
    An attributes retrieval strategy, which does not provide attributes for an item. It's good to use for users who do not have access to attributes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<com.hybris.cockpitng.core.config.impl.jaxb.editorarea.Attribute> getAttributes​(com.hybris.datahub.dto.item.ItemData item)
      Retrieves attributes of the given item.
      • Methods inherited from class java.lang.Object

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

      • RestrictedAttributesProvider

        public RestrictedAttributesProvider()
    • Method Detail

      • getAttributes

        public java.util.List<com.hybris.cockpitng.core.config.impl.jaxb.editorarea.Attribute> getAttributes​(com.hybris.datahub.dto.item.ItemData item)
        Description copied from interface: CanonicalItemAttributesProvider
        Retrieves attributes of the given item.
        Specified by:
        getAttributes in interface CanonicalItemAttributesProvider
        Parameters:
        item - a canonical item, whose attribute values need to be retrieved.
        Returns:
        a list of attributes or an empty list, if the item does not have attributes.