@Override protected Result buildRepositoryResult() throws RepositoryException { return buildResult(null, true, false, new EntryFilterImpl(principalNames, session.getQPath("/"), session)); }
private boolean matches(Entry entry) { if (principalNames == null || principalNames.contains(entry.getPrincipalName())) { if (!entry.hasRestrictions()) { // short cut: there is no glob-restriction -> the entry matches // because it is either defined on the node or inherited. return true; } else { // there is a glob-restriction: check if the target path matches // this entry. try { return entry.matches(getPath()); } catch (RepositoryException e) { log.error("Cannot determine ACE match.", e); } } } // doesn't match this filter -> ignore return false; }
@Override protected Result buildRepositoryResult() throws RepositoryException { return buildResult( null, true, false, new EntryFilterImpl( principalNames, session.getQPath( "/" ), session ) ); }
private boolean matches(Entry entry) { if (principalNames == null || principalNames.contains(entry.getPrincipalName())) { if (!entry.hasRestrictions()) { // short cut: there is no glob-restriction -> the entry matches // because it is either defined on the node or inherited. return true; } else { // there is a glob-restriction: check if the target path matches // this entry. try { return entry.matches(getPath()); } catch (RepositoryException e) { log.error("Cannot determine ACE match.", e); } } } // doesn't match this filter -> ignore return false; }
if (matches(ace)) {
@Override protected Result buildRepositoryResult() throws RepositoryException { return buildResult(null, true, false, new EntryFilterImpl(principalNames, session.getQPath("/"), session)); }
PrivilegeBits parentDenyBits = PrivilegeBits.getInstance(); String parentPath = Text.getRelativeParent(filter.getPath(), 1); NodeId nodeId = (node == null) ? null : node.getNodeId();
EntryFilterImpl filter; if (path == null) { filter = new EntryFilterImpl(principalNames, id, session); } else { filter = new EntryFilterImpl(principalNames, path, session);
PrivilegeBits parentDenyBits = PrivilegeBits.getInstance(); String parentPath = Text.getRelativeParent(filter.getPath(), 1); NodeId nodeId = (node == null) ? null : node.getNodeId();
EntryFilterImpl filter; if (path == null) { filter = new EntryFilterImpl(principalNames, id, session); } else { filter = new EntryFilterImpl(principalNames, path, session);
PrivilegeBits parentDenyBits = PrivilegeBits.getInstance(); String parentPath = Text.getRelativeParent( filter.getPath(), 1 ); NodeId nodeId = ( node == null ) ? null : node.getNodeId();
return buildResult(node, existingNode, isAcItem, new EntryFilterImpl(principalNames, absPath, session));
return buildResult(node, existingNode, isAcItem, new EntryFilterImpl(principalNames, absPath, session));