public class UserGroupBasedAttributesRetrievalStrategy extends java.lang.Object implements AttributesRetrievalStrategy
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 and Description |
|---|
UserGroupBasedAttributesRetrievalStrategy() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Attribute> |
retrieveAttributes(java.lang.Object object)
Retrieves attributes of the given item.
|
void |
setProviders(java.util.Map<java.lang.String,CanonicalItemAttributesProvider> providers) |
void |
setUserContext(UserContext context) |
public UserGroupBasedAttributesRetrievalStrategy()
public java.util.List<Attribute> retrieveAttributes(java.lang.Object object)
AttributesRetrievalStrategyretrieveAttributes in interface AttributesRetrievalStrategyobject - a data item, whose attribute values need to be retrieved.public void setProviders(java.util.Map<java.lang.String,CanonicalItemAttributesProvider> providers)
public void setUserContext(UserContext context)
Copyright © 2018 SAP SE. All Rights Reserved.