Search in sources :

Example 6 with XXTag

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;
}
Also used : RangerTag(org.apache.ranger.plugin.model.RangerTag) ArrayList(java.util.ArrayList) XXTag(org.apache.ranger.entity.XXTag)

Aggregations

XXTag (org.apache.ranger.entity.XXTag)6 RangerTag (org.apache.ranger.plugin.model.RangerTag)5 ArrayList (java.util.ArrayList)4 XXService (org.apache.ranger.entity.XXService)1 XXServiceResource (org.apache.ranger.entity.XXServiceResource)1 XXServiceResourceElement (org.apache.ranger.entity.XXServiceResourceElement)1 XXServiceResourceElementValue (org.apache.ranger.entity.XXServiceResourceElementValue)1 XXTagAttribute (org.apache.ranger.entity.XXTagAttribute)1 XXTagResourceMap (org.apache.ranger.entity.XXTagResourceMap)1 RangerServiceNotFoundException (org.apache.ranger.plugin.util.RangerServiceNotFoundException)1