@Override public NodeIterator getSharedSet() throws RepositoryException { if (isShareable()) { // Find the nodes that make up this shared set ... return sharedSet().getSharedNodes(); } // Otherwise, the shared set is just this node ... return new JcrSingleNodeIterator(this); }
@Override public NodeIterator getSharedSet() throws RepositoryException { if (isShareable()) { // Find the nodes that make up this shared set ... return sharedSet().getSharedNodes(); } // Otherwise, the shared set is just this node ... return new JcrSingleNodeIterator(this); }
final AbstractJcrNode node( CachedNode node, Path path ) throws PathNotFoundException, AccessDeniedException, RepositoryException { CachedNode child = cachedNode(cache, node, path, ModeShapePermissions.READ); AbstractJcrNode result = node(child, (Type)null, null); if (result.isShareable()) { // Find the shared node with the desired path ... AbstractJcrNode atOrBelow = result.sharedSet().getSharedNodeAtOrBelow(path); if (atOrBelow != null) result = atOrBelow; } return result; }
final AbstractJcrNode node( CachedNode node, Path path ) throws PathNotFoundException, AccessDeniedException, RepositoryException { CachedNode child = cachedNode(cache, node, path, ModeShapePermissions.READ); AbstractJcrNode result = node(child, (Type)null, null); if (result.isShareable()) { // Find the shared node with the desired path ... AbstractJcrNode atOrBelow = result.sharedSet().getSharedNodeAtOrBelow(path); if (atOrBelow != null) result = atOrBelow; } return result; }
if (isShareable()) { SharedSet sharedSet = sharedSet(); if (sharedSet.getSize() != 1) {
if (isShareable()) { SharedSet sharedSet = sharedSet(); if (sharedSet.getSize() != 1) {
node = node.sharedSet().getSharedNode(cachedNode, parentKey);
node = node.sharedSet().getSharedNode(cachedNode, parentKey);
JcrSharedNodeCache.SharedSet sharedSet = sourceNode.sharedSet(); AbstractJcrNode existingShare = sharedSet.getSharedNodeAtOrBelow(destParent); if (existingShare != null) {
JcrSharedNodeCache.SharedSet sharedSet = sourceNode.sharedSet(); AbstractJcrNode existingShare = sharedSet.getSharedNodeAtOrBelow(destParent); if (existingShare != null) {
while (!destAncestor.isRoot()) { if (destAncestor.isShareable()) { SharedSet sharedSet = destAncestor.sharedSet(); AbstractJcrNode sharedNodeThatCreatesCircularity = sharedSet.getSharedNodeAtOrBelow(srcPath); if (sharedNodeThatCreatesCircularity != null) {
while (!destAncestor.isRoot()) { if (destAncestor.isShareable()) { SharedSet sharedSet = destAncestor.sharedSet(); AbstractJcrNode sharedNodeThatCreatesCircularity = sharedSet.getSharedNodeAtOrBelow(srcPath); if (sharedNodeThatCreatesCircularity != null) {