use of org.apache.ranger.entity.XXTag in project ranger by apache.
the class RangerTagService method getTagsForResourceId.
public List<RangerTag> getTagsForResourceId(Long resourceId) {
List<RangerTag> ret = new ArrayList<RangerTag>();
List<XXTag> xxTags = daoMgr.getXXTag().findForResourceId(resourceId);
if (CollectionUtils.isNotEmpty(xxTags)) {
for (XXTag xxTag : xxTags) {
RangerTag tag = populateViewBean(xxTag);
ret.add(tag);
}
}
return ret;
}
Aggregations