Alok Lal created RANGER-786:
-------------------------------

             Summary: Details about default policy creation during service 
creation should be delegated to the plugin
                 Key: RANGER-786
                 URL: https://issues.apache.org/jira/browse/RANGER-786
             Project: Ranger
          Issue Type: Improvement
          Components: admin, plugins
    Affects Versions: 0.6.0
            Reporter: Alok Lal


[~madhan.neethiraj] made the following suggestion during an offline discussion 
I had with him.

We should delegate the details of the default policies to the plugin 
implementors – just as they provide implementation of lookup and 
test-connection, we should have them provide getDefaultPolicies() 
implementation as well.

{code}
public abstract class RangerBaseService {
public abstract HashMap<String, Object> validateConfig() throws Exception;
public abstract List<String> lookupResource(ResourceLookupContext context) 
throws Exception;
public abstract List<RangerPolicy> getDefaultPolicies() throws Exception;
}
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to