use of org.apache.ranger.entity.XXTagResourceMap in project ranger by apache.
the class RangerTagResourceMapService method getByGuid.
public RangerTagResourceMap getByGuid(String guid) {
RangerTagResourceMap ret = null;
XXTagResourceMap xxTagResourceMap = daoMgr.getXXTagResourceMap().findByGuid(guid);
if (xxTagResourceMap != null) {
ret = populateViewBean(xxTagResourceMap);
}
return ret;
}
use of org.apache.ranger.entity.XXTagResourceMap in project ranger by apache.
the class RangerTagResourceMapService method getTagResourceMapsByServiceId.
public List<RangerTagResourceMap> getTagResourceMapsByServiceId(Long serviceId) {
List<RangerTagResourceMap> ret = new ArrayList<RangerTagResourceMap>();
List<XXTagResourceMap> xxTagResourceMaps = daoMgr.getXXTagResourceMap().findByServiceId(serviceId);
if (CollectionUtils.isNotEmpty(xxTagResourceMaps)) {
for (XXTagResourceMap xxTagResourceMap : xxTagResourceMaps) {
RangerTagResourceMap tagResourceMap = populateViewBean(xxTagResourceMap);
ret.add(tagResourceMap);
}
}
return ret;
}
use of org.apache.ranger.entity.XXTagResourceMap in project ranger by apache.
the class RangerTagResourceMapService method getByResourceId.
public List<RangerTagResourceMap> getByResourceId(Long resourceId) {
List<RangerTagResourceMap> ret = new ArrayList<RangerTagResourceMap>();
List<XXTagResourceMap> xxTagResourceMaps = daoMgr.getXXTagResourceMap().findByResourceId(resourceId);
if (CollectionUtils.isNotEmpty(xxTagResourceMaps)) {
for (XXTagResourceMap xxTagResourceMap : xxTagResourceMaps) {
RangerTagResourceMap tagResourceMap = populateViewBean(xxTagResourceMap);
ret.add(tagResourceMap);
}
}
return ret;
}
use of org.apache.ranger.entity.XXTagResourceMap in project ranger by apache.
the class RangerTagResourceMapService method getByTagAndResourceGuid.
public RangerTagResourceMap getByTagAndResourceGuid(String tagGuid, String resourceGuid) {
RangerTagResourceMap ret = null;
XXTagResourceMap xxTagResourceMap = daoMgr.getXXTagResourceMap().findByTagAndResourceGuid(tagGuid, resourceGuid);
if (xxTagResourceMap != null) {
ret = populateViewBean(xxTagResourceMap);
}
return ret;
}
Aggregations