Class UserGroupBasedAttributesRetrievalStrategy

  • All Implemented Interfaces:
    AttributesRetrievalStrategy

    public class UserGroupBasedAttributesRetrievalStrategy
    extends java.lang.Object
    implements AttributesRetrievalStrategy
    An implementation of the AttributesRetrievalStrategy, which uses different attributes provider based on the context user role (aka User Group). The providers can implement different approaches for retrieving item attributes and/or restrict access to all or some attributes.
    • Constructor Detail

      • UserGroupBasedAttributesRetrievalStrategy

        public UserGroupBasedAttributesRetrievalStrategy()
    • Method Detail

      • retrieveAttributes

        public java.util.List<com.hybris.cockpitng.core.config.impl.jaxb.editorarea.Attribute> retrieveAttributes​(java.lang.Object object)
        Description copied from interface: AttributesRetrievalStrategy
        Retrieves attributes of the given item.
        Specified by:
        retrieveAttributes in interface AttributesRetrievalStrategy
        Parameters:
        object - a data item, whose attribute values need to be retrieved.
        Returns:
        a list of attributes or an empty list, if the item does not have attributes.
      • setUserContext

        public void setUserContext​(UserContext context)