use of org.apache.ranger.entity.XXTagResourceMap in project ranger by apache.
the class RangerTagResourceMapService method getByTagGuid.
public List<RangerTagResourceMap> getByTagGuid(String tagGuid) {
List<RangerTagResourceMap> ret = new ArrayList<RangerTagResourceMap>();
List<XXTagResourceMap> xxTagResourceMaps = daoMgr.getXXTagResourceMap().findByTagGuid(tagGuid);
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 getByTagAndResourceId.
public RangerTagResourceMap getByTagAndResourceId(Long tagId, Long resourceId) {
RangerTagResourceMap ret = null;
XXTagResourceMap xxTagResourceMap = daoMgr.getXXTagResourceMap().findByTagAndResourceId(tagId, resourceId);
if (xxTagResourceMap != null) {
ret = populateViewBean(xxTagResourceMap);
}
return ret;
}
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 getByResourceGuid.
public List<RangerTagResourceMap> getByResourceGuid(String resourceGuid) {
List<RangerTagResourceMap> ret = new ArrayList<RangerTagResourceMap>();
List<XXTagResourceMap> xxTagResourceMaps = daoMgr.getXXTagResourceMap().findByResourceGuid(resourceGuid);
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 getByTagId.
public List<RangerTagResourceMap> getByTagId(Long tagId) {
List<RangerTagResourceMap> ret = new ArrayList<RangerTagResourceMap>();
List<XXTagResourceMap> xxTagResourceMaps = daoMgr.getXXTagResourceMap().findByTagId(tagId);
if (CollectionUtils.isNotEmpty(xxTagResourceMaps)) {
for (XXTagResourceMap xxTagResourceMap : xxTagResourceMaps) {
RangerTagResourceMap tagResourceMap = populateViewBean(xxTagResourceMap);
ret.add(tagResourceMap);
}
}
return ret;
}
Aggregations