Attila Doroszlai created HDDS-10274:
---------------------------------------

             Summary: Remove or deprecate 
AccessPolicy#deserializePolicyFromJsonString
                 Key: HDDS-10274
                 URL: https://issues.apache.org/jira/browse/HDDS-10274
             Project: Apache Ozone
          Issue Type: Improvement
          Components: common
            Reporter: Attila Doroszlai
            Assignee: Attila Doroszlai


Found by [~arafat2198]:

bq. We have a class named as {{RangerAccessPolicy}} which has a method 
{{deserializePolicyFromJsonString}} that takes in a parameter of type 
{{JsonObject}} which is a representation of JSON data in memory and is a part 
of the GSON lib

{{deserializePolicyFromJsonString}} is part of the {{AccessPolicy}} interface, 
too.  

Previously it was used by {{MultiTenantAccessAuthorizerRangerPlugin}}, which 
was removed in HDDS-6909.

[~smeng], can you please help us understand if 
{{AccessPolicy#deserializePolicyFromJsonString}} is still needed or can be 
removed?

We should strive to avoid using types defined in third-party libraries as part 
of public API.  Such usage may cause trouble when trying to upgrade/replace 
these dependencies.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to