Search in sources :

Example 1 with VXPolicyLabelList

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;
}
Also used : XXPolicyLabel(org.apache.ranger.entity.XXPolicyLabel) ArrayList(java.util.ArrayList) RangerServiceList(org.apache.ranger.view.RangerServiceList) ArrayList(java.util.ArrayList) VXPolicyLabelList(org.apache.ranger.view.VXPolicyLabelList) List(java.util.List) RangerExportPolicyList(org.apache.ranger.view.RangerExportPolicyList) RangerPolicyList(org.apache.ranger.view.RangerPolicyList) RangerServiceDefList(org.apache.ranger.view.RangerServiceDefList) PList(org.apache.ranger.plugin.store.PList) VXString(org.apache.ranger.view.VXString) VXPolicyLabelList(org.apache.ranger.view.VXPolicyLabelList)

Aggregations

ArrayList (java.util.ArrayList)1 List (java.util.List)1 XXPolicyLabel (org.apache.ranger.entity.XXPolicyLabel)1 PList (org.apache.ranger.plugin.store.PList)1 RangerExportPolicyList (org.apache.ranger.view.RangerExportPolicyList)1 RangerPolicyList (org.apache.ranger.view.RangerPolicyList)1 RangerServiceDefList (org.apache.ranger.view.RangerServiceDefList)1 RangerServiceList (org.apache.ranger.view.RangerServiceList)1 VXPolicyLabelList (org.apache.ranger.view.VXPolicyLabelList)1 VXString (org.apache.ranger.view.VXString)1