use of org.alfresco.solr.AclReport in project SearchServices by Alfresco.
the class AclTracker method checkAcl.
public AclReport checkAcl(Long aclid) {
AclReport aclReport = new AclReport();
aclReport.setAclId(aclid);
try {
List<AclReaders> readers = client.getAclReaders(Collections.singletonList(new Acl(0, aclid)));
aclReport.setExistsInDb(readers.size() == 1);
} catch (IOException | JSONException | AuthenticationException e) {
aclReport.setExistsInDb(false);
}
// In Index
return this.infoSrv.checkAclInIndex(aclid, aclReport);
}
Aggregations