In a Report, I am trying to add a query to get the entitlements but cannot feed it as a query.
List entitlements = new ArrayList();
List entitlementList = new ArrayList();
entitlementList = args.getList("entitlements");
if((entitlementList != null) && (!entitlementList.isEmpty())){
for (String entitlementMap : entitlementList)
{
IdentityItem ent = new IdentityItem();
ent.setApplication((String) entitlementMap.get("app"));
ent.setName((String) entitlementMap.get("attr"));
ent.setValue(entitlementMap.get("attrVal"));
entitlements.add(ent);
}
}
query += " and iri.value in (:entitlements)";
Its empty