Search in sources :

Example 1 with RangerPolicyRetriever

use of org.apache.ranger.biz.RangerPolicyRetriever in project ranger by apache.

the class RangerPolicyService method populateViewBean.

@Override
protected RangerPolicy populateViewBean(XXPolicy xPolicy) {
    RangerPolicyRetriever retriever = new RangerPolicyRetriever(daoMgr);
    RangerPolicy vPolicy = retriever.getPolicy(xPolicy);
    return vPolicy;
}
Also used : RangerPolicyRetriever(org.apache.ranger.biz.RangerPolicyRetriever) RangerPolicy(org.apache.ranger.plugin.model.RangerPolicy)

Example 2 with RangerPolicyRetriever

use of org.apache.ranger.biz.RangerPolicyRetriever in project ranger by apache.

the class RangerPolicyWithAssignedIdService method populateViewBean.

@Override
protected RangerPolicy populateViewBean(XXPolicyWithAssignedId xPolicy) {
    RangerPolicyRetriever retriever = new RangerPolicyRetriever(daoMgr);
    RangerPolicy vPolicy = retriever.getPolicy(xPolicy.getId());
    return vPolicy;
}
Also used : RangerPolicyRetriever(org.apache.ranger.biz.RangerPolicyRetriever) RangerPolicy(org.apache.ranger.plugin.model.RangerPolicy)

Aggregations

RangerPolicyRetriever (org.apache.ranger.biz.RangerPolicyRetriever)2 RangerPolicy (org.apache.ranger.plugin.model.RangerPolicy)2