Class UserGroupBasedAttributesRetrievalStrategy
- java.lang.Object
-
- de.hybris.platform.datahubbackoffice.presentation.renderer.UserGroupBasedAttributesRetrievalStrategy
-
- All Implemented Interfaces:
AttributesRetrievalStrategy
public class UserGroupBasedAttributesRetrievalStrategy extends java.lang.Object implements AttributesRetrievalStrategy
An implementation of theAttributesRetrievalStrategy, 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 Constructor Description UserGroupBasedAttributesRetrievalStrategy()
-
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>retrieveAttributes(java.lang.Object object)Retrieves attributes of the given item.voidsetProviders(java.util.Map<java.lang.String,CanonicalItemAttributesProvider> providers)voidsetUserContext(UserContext context)
-
-
-
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: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
public void setProviders(java.util.Map<java.lang.String,CanonicalItemAttributesProvider> providers)
-
setUserContext
public void setUserContext(UserContext context)
-
-