use of org.apache.ranger.view.VXPolicyLabelList in project ranger by apache.
the class ServiceDBStore method getPolicyLabels.
public List<String> getPolicyLabels(SearchFilter searchFilter) {
if (LOG.isDebugEnabled()) {
LOG.debug("==> ServiceDBStore.getPolicyLabels()");
}
VXPolicyLabelList vxPolicyLabelList = new VXPolicyLabelList();
List<XXPolicyLabel> xPolList = (List<XXPolicyLabel>) policyLabelsService.searchResources(searchFilter, policyLabelsService.searchFields, policyLabelsService.sortFields, vxPolicyLabelList);
List<String> result = new ArrayList<String>();
for (XXPolicyLabel xPolicyLabel : xPolList) {
result.add(xPolicyLabel.getPolicyLabel());
}
if (LOG.isDebugEnabled()) {
LOG.debug("<== ServiceDBStore.getPolicyLabels()");
}
return result;
}
Aggregations