use of org.apache.ranger.plugin.contextenricher.RangerTagForEval in project ranger by apache.
the class RangerDefaultAuditHandler method getTags.
protected final Set<String> getTags(RangerAccessRequest request) {
Set<String> ret = null;
Set<RangerTagForEval> tags = RangerAccessRequestUtil.getRequestTagsFromContext(request.getContext());
if (CollectionUtils.isNotEmpty(tags)) {
ret = new HashSet<>();
for (RangerTagForEval tag : tags) {
ret.add(writeObjectAsString(tag));
}
}
return ret;
}
Aggregations