protected void entering(final Node node, int level) throws RepositoryException { super.entering(node, level); if(isCacheEntryNode(node) && node.hasNode(JCRHttpCacheStoreConstants.PATH_CONTENTS)){ final Node contents = node.getNode(JCRHttpCacheStoreConstants.PATH_CONTENTS); if(contents.hasNode(JcrConstants.JCR_CONTENT)){ final Node jcrContent = contents.getNode(JcrConstants.JCR_CONTENT); if(jcrContent.hasProperty(JcrConstants.JCR_DATA)){ final Property property = jcrContent.getProperty(JcrConstants.JCR_DATA); final Binary binary = property.getBinary(); bytes += binary.getSize(); } } } }
public void visit(Node node) throws RepositoryException { session = node.getSession(); super.visit(node); }
@Override public void visit(Node node) throws RepositoryException { if (node instanceof HippoNode) { try { Node canonical = ((HippoNode) node).getCanonicalNode(); if (canonical == null || !canonical.isSame(node)) { return; } } catch (ItemNotFoundException e) { // canonical node no longer exists return; } } super.visit(node); }
@Override protected void entering(Node node, int i) throws RepositoryException { if (node.isNodeType(AccessControlConstants.NT_REP_ACE)) { numACEs[0]++; } super.entering(node, i); } @Override
@Override protected void entering(Node node, int i) throws RepositoryException { visitingNode(node, i); super.entering(node, i); } @Override
@Override protected void entering(Property prop, int i) throws RepositoryException { super.entering(prop, i); } };
@Override protected void entering(Node node, int level) throws RepositoryException { assertTrue(superuser.nodeExists(node.getPath())); super.entering(node, level); } };
@Override protected void entering(Property prop, int i) throws RepositoryException { visitingProperty(prop, i); super.entering(prop, i); } };