AbstractJcrNode existingShare = sharedSet.getSharedNodeAtOrBelow(destParent); if (existingShare != null) { String msg = JcrI18n.shareAlreadyExistsWithinParent.text(destAbsPath, existingShare.getPath());
AbstractJcrNode existingShare = sharedSet.getSharedNodeAtOrBelow(destParent); if (existingShare != null) { String msg = JcrI18n.shareAlreadyExistsWithinParent.text(destAbsPath, existingShare.getPath());
if (destAncestor.isShareable()) { SharedSet sharedSet = destAncestor.sharedSet(); AbstractJcrNode sharedNodeThatCreatesCircularity = sharedSet.getSharedNodeAtOrBelow(srcPath); if (sharedNodeThatCreatesCircularity != null) { Path badPath = sharedNodeThatCreatesCircularity.path();
if (destAncestor.isShareable()) { SharedSet sharedSet = destAncestor.sharedSet(); AbstractJcrNode sharedNodeThatCreatesCircularity = sharedSet.getSharedNodeAtOrBelow(srcPath); if (sharedNodeThatCreatesCircularity != null) { Path badPath = sharedNodeThatCreatesCircularity.path();
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; }