Class UserGroupBasedAttributesRetrievalStrategy
java.lang.Object
de.hybris.platform.datahubbackoffice.presentation.renderer.UserGroupBasedAttributesRetrievalStrategy
- All Implemented Interfaces:
AttributesRetrievalStrategy
public class UserGroupBasedAttributesRetrievalStrategy
extends 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.hybris.cockpitng.core.config.impl.jaxb.editorarea.Attribute>retrieveAttributes(Object object) Retrieves attributes of the given item.voidsetProviders(Map<String, CanonicalItemAttributesProvider> providers) voidsetUserContext(UserContext context)
-
Constructor Details
-
UserGroupBasedAttributesRetrievalStrategy
public UserGroupBasedAttributesRetrievalStrategy()
-
-
Method Details
-
retrieveAttributes
public List<com.hybris.cockpitng.core.config.impl.jaxb.editorarea.Attribute> retrieveAttributes(Object object) Description copied from interface:AttributesRetrievalStrategyRetrieves attributes of the given item.- Specified by:
retrieveAttributesin interfaceAttributesRetrievalStrategy- 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.
-
setProviders
-
setUserContext
-