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; }
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; }
PrivilegeBits parentDenyBits = PrivilegeBits.getInstance(); String parentPath = Text.getRelativeParent(filter.getPath(), 1); NodeId nodeId = (node == null) ? null : node.getNodeId();
PrivilegeBits parentDenyBits = PrivilegeBits.getInstance(); String parentPath = Text.getRelativeParent(filter.getPath(), 1); NodeId nodeId = (node == null) ? null : node.getNodeId();
PrivilegeBits parentDenyBits = PrivilegeBits.getInstance(); String parentPath = Text.getRelativeParent( filter.getPath(), 1 ); NodeId nodeId = ( node == null ) ? null : node.getNodeId();