*/
private CompiledPermissionImpl(Set<Principal> principals) throws
RepositoryException {
this.cPermissions = new ArrayList<AbstractCompiledPermissions>();
for (AccessControlProvider provider : providers) {
CompiledPermissions cp = provider.compilePermissions(principals);
if (cp instanceof AbstractCompiledPermissions) {
cPermissions.add((AbstractCompiledPermissions) cp);
} else {
// TODO: deal with other implementations
log.warn("AbstractCompiledPermissions expected. Found " + cp.getClass().getName() + " -> ignore.");
}
}
}