@Override public boolean isCurrentRowValid( Batch batch ) { CachedNode node = batch.getNode(index); if (node == null) return false; if (isParentRoot) return true; if (parentKey.equals(node.getParentKey(cache))) return true; // Don't have to check the additional parents since we only find shared nodes in the original location ... return false; }
@Override public boolean isCurrentRowValid( Batch batch ) { CachedNode node = batch.getNode(index); if (node == null) return false; if (isParentRoot) return true; if (parentKey.equals(node.getParentKey(cache))) return true; // Don't have to check the additional parents since we only find shared nodes in the original location ... return false; }
@Override public NodeKey getParentKey( NodeCache cache ) { if (newParent != null) { return newParent; } CachedNode cachedNode = nodeInWorkspace(session(cache)); // if it is null, it means it has been removed in the meantime from the ws return cachedNode != null ? cachedNode.getParentKey(cache) : null; }
@Override public NodeKey getParentKey( NodeCache cache ) { if (newParent != null) { return newParent; } CachedNode cachedNode = nodeInWorkspace(session(cache)); // if it is null, it means it has been removed in the meantime from the ws return cachedNode != null ? cachedNode.getParentKey(cache) : null; }
protected NodeKey parentKey() throws RepositoryException { return node().getParentKey(sessionCache()); }
protected NodeKey parentKey() throws RepositoryException { return node().getParentKey(sessionCache()); }
@Override public boolean isCurrentRowValid( Batch batch ) { CachedNode node = batch.getNode(index); while (node != null) { NodeKey parentKey = node.getParentKey(cache); if (parentKey == null) return false; if (ancestorKey.equals(parentKey)) return true; // Don't have to check the additional parents since we only find shared nodes in the original location ... node = cache.getNode(parentKey); } return false; }
@Override public boolean isCurrentRowValid( Batch batch ) { CachedNode node = batch.getNode(index); while (node != null) { NodeKey parentKey = node.getParentKey(cache); if (parentKey == null) return false; if (ancestorKey.equals(parentKey)) return true; // Don't have to check the additional parents since we only find shared nodes in the original location ... node = cache.getNode(parentKey); } return false; }
NodeKey parentKey = placeholder.getParentKey(targetCache); MutableCachedNode parent = targetCache.mutable(parentKey);
@Override public Object getValueInRow( RowAccessor row ) { CachedNode node = row.getNode(indexInRow); if (node == null) return null; NodeKey parentKey = node.getParentKey(cache); if (trace) NodeSequence.LOGGER.trace("Extracting parent key from {0}: {1}", node.getPath(cache), parentKey); return parentKey != null ? parentKey.toString() : null; }
@Override public Object getValueInRow( RowAccessor row ) { CachedNode node = row.getNode(indexInRow); if (node == null) return null; NodeKey parentKey = node.getParentKey(cache); if (trace) NodeSequence.LOGGER.trace("Extracting parent key from {0}: {1}", node.getPath(cache), parentKey); return parentKey != null ? parentKey.toString() : null; }
@Override public Object getValueInRow( RowAccessor row ) { CachedNode node = row.getNode(indexInRow); if (node == null) return null; NodeKey parentKey = node.getParentKey(cache); if (parentKey == null) return null; CachedNode parent = cache.getNode(parentKey); if (parent == null) return null; Path parentPath = parent.getPath(cache); if (trace) NodeSequence.LOGGER.trace("Extracting parent path from {0}: {1}", node.getPath(cache), parentPath); return parentPath; }
@Override public Object getValueInRow( RowAccessor row ) { CachedNode node = row.getNode(indexInRow); if (node == null) return null; NodeKey parentKey = node.getParentKey(cache); if (parentKey == null) return null; CachedNode parent = cache.getNode(parentKey); if (parent == null) return null; Path parentPath = parent.getPath(cache); if (trace) NodeSequence.LOGGER.trace("Extracting parent path from {0}: {1}", node.getPath(cache), parentPath); return parentPath; }
@Override public AbstractJcrNode getParent() throws ItemNotFoundException, RepositoryException { checkSession(); NodeKey parentKey = node().getParentKey(sessionCache()); return session().node(parentKey, null); }
@Override public AbstractJcrNode getParent() throws ItemNotFoundException, RepositoryException { checkSession(); NodeKey parentKey = node().getParentKey(sessionCache()); return session().node(parentKey, null); }
.filter(referrer -> JcrNtLexicon.VERSIONED_CHILD.equals(referrer.getPrimaryType(systemSession))) .forEach(versionedChild -> { NodeKey versionedChildParentKey = versionedChild.getParentKey(systemSession); NodeKey versionedChildKey = versionedChild.getKey(); MutableCachedNode mutableFrozenNode = systemSession.mutable(versionedChildParentKey);
.filter(referrer -> JcrNtLexicon.VERSIONED_CHILD.equals(referrer.getPrimaryType(systemSession))) .forEach(versionedChild -> { NodeKey versionedChildParentKey = versionedChild.getParentKey(systemSession); NodeKey versionedChildKey = versionedChild.getKey(); MutableCachedNode mutableFrozenNode = systemSession.mutable(versionedChildParentKey);
key = cachedNode.getParentKey(cache);
key = cachedNode.getParentKey(cache);
if (segment.isSelfReference()) continue; if (segment.isParentReference()) { node = cache.getNode(node.getParentKey(cache)); } else { ChildReference ref = node.getChildReferences(cache).getChild(segment);