[ 
https://issues.apache.org/jira/browse/ATLAS-4916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

VINAYAK MARRAIYA updated ATLAS-4916:
------------------------------------
    Description: 
*Usage:*

AtlasAccessRequest object is used by Authorizer (Ranger Authorizer) to verify 
the access.

*Obeservation 1:* 

AtlasEntityAccessRequest has entityClassification attribute which populates its 
value from AtlasClassification object.

AtlasEntityAccessRequest has entity attribute which has classificationNames 
populated 

*Action 1:*

classificationNames can be populated from entity.getClassificationNames() 
instead of entity.getClassification()

*Observation 2:*

To populate AtlasEntityAccessRequest.entityClassification, 
entityRetriever.toAtlasEntityHeaderWithClassifications is used in most of the 
cases, which used an extra call to get all classification object.

*Action 2:*

Instead of entityRetriever.toAtlasEntityHeaderWithClassifications, 
entityRetriever.toAtlasEntityHeader can be used.

*Action 3:*

Readings of Improvement.

> Improve APIs where AtlasAccessRequest is used
> ---------------------------------------------
>
>                 Key: ATLAS-4916
>                 URL: https://issues.apache.org/jira/browse/ATLAS-4916
>             Project: Atlas
>          Issue Type: Improvement
>          Components:  atlas-core
>    Affects Versions: 3.0.0, 2.3.0
>            Reporter: VINAYAK MARRAIYA
>            Priority: Major
>
> *Usage:*
> AtlasAccessRequest object is used by Authorizer (Ranger Authorizer) to verify 
> the access.
> *Obeservation 1:* 
> AtlasEntityAccessRequest has entityClassification attribute which populates 
> its value from AtlasClassification object.
> AtlasEntityAccessRequest has entity attribute which has classificationNames 
> populated 
> *Action 1:*
> classificationNames can be populated from entity.getClassificationNames() 
> instead of entity.getClassification()
> *Observation 2:*
> To populate AtlasEntityAccessRequest.entityClassification, 
> entityRetriever.toAtlasEntityHeaderWithClassifications is used in most of the 
> cases, which used an extra call to get all classification object.
> *Action 2:*
> Instead of entityRetriever.toAtlasEntityHeaderWithClassifications, 
> entityRetriever.toAtlasEntityHeader can be used.
> *Action 3:*
> Readings of Improvement.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to