Currently following methods in RangerAccessResource require RangerServiceDef to be passes as argument.
- RangerAccessResource.getAsString(RangerServiceDef serviceDef)
- RangerAccessResource.isLeafName(RangerServiceDef serviceDef)
This forces the callers to have reference to the serviceDef - which either limits the use of these methods or forces to pass around serviceDef in many places.
RangerAcceessResource interface should be updated to not require serviceDef argument to these methods.