- sPerms = new ArrayList<>();
- if(cPerms==null) {
- cPerms = new ArrayList<>();
- AAFRealm.singleton.authz.fishAll(bait,cPerms);
- }
- for(final org.onap.aaf.cadi.Permission p : cPerms) {
- sPerms.add(p.getKey());
+ if (pond != null) {
+ sPerms = new ArrayList<String>();
+ for(org.onap.aaf.cadi.Permission p : pond) {
+ sPerms.add(p.getKey().replace("|", ":"));
+ access.printf(Level.INFO, "%s has %s", bait.getName(), p.getKey());
+ }
+ } else {
+ sPerms = new ArrayList<>();
+ if (cPerms == null) {
+ cPerms = new ArrayList<>();
+ AAFRealm.singleton.authz.fishAll(bait, cPerms);
+ }
+ for (final org.onap.aaf.cadi.Permission p : cPerms) {
+ sPerms.add(p.getKey());
+ }