@Override public List<Acl> getAcls(List<Long> aclChangeSetIds, Long minAclId, int maxResults) { if (enabled) { List<Acl> acls = solrDAO.getAcls(aclChangeSetIds, minAclId, maxResults); return acls; } else { return Collections.<Acl>emptyList(); } }
private String getTenant(long aclId, long aclChangeSetId) { String tenantDomain = getAclTenant(aclId); if (tenantDomain == null) { List<Long> aclChangeSetIds = new ArrayList<Long>(1); aclChangeSetIds.add(aclChangeSetId); List<Acl> acls = solrDAO.getAcls(aclChangeSetIds, null, 1024); for (Acl acl : acls) { tenantDomain = getAclTenant(acl.getId()); if (tenantDomain != null) { break; } } if (tenantDomain == null) { // tenant not found - log warning ? tenantDomain = null; // temp - for debug breakpoint only } } return tenantDomain; }