Search in sources :

Example 6 with XXPermMap

use of org.apache.ranger.entity.XXPermMap in project ranger by apache.

the class XResourceService method populatePermList.

private void populatePermList(VXResource vXResource) {
    List<XXPermMap> xPermMapList = daoManager.getXXPermMap().findByResourceId(vXResource.getId());
    List<VXPermMap> vXPermMapList = new ArrayList<VXPermMap>();
    for (XXPermMap xPermMap : xPermMapList) {
        vXPermMapList.add(xPermMapService.populateViewBean(xPermMap));
    }
    vXResource.setPermMapList(vXPermMapList);
}
Also used : VXPermMap(org.apache.ranger.view.VXPermMap) ArrayList(java.util.ArrayList) XXPermMap(org.apache.ranger.entity.XXPermMap)

Aggregations

XXPermMap (org.apache.ranger.entity.XXPermMap)6 ArrayList (java.util.ArrayList)3 LinkedHashMap (java.util.LinkedHashMap)2 XXGroup (org.apache.ranger.entity.XXGroup)2 XXUser (org.apache.ranger.entity.XXUser)2 VXPermMap (org.apache.ranger.view.VXPermMap)2 Date (java.util.Date)1 Random (java.util.Random)1 VXPermObj (org.apache.ranger.view.VXPermObj)1