protected void exporting( Node node ) throws RepositoryException { if (node instanceof AbstractJcrNode) { AbstractJcrNode jcrNode = (AbstractJcrNode)node; if (jcrNode.isShareable()) { shareableNodes.add(jcrNode.key()); } } }
protected void exporting( Node node ) throws RepositoryException { if (node instanceof AbstractJcrNode) { AbstractJcrNode jcrNode = (AbstractJcrNode)node; if (jcrNode.isShareable()) { shareableNodes.add(jcrNode.key()); } } }
@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; }
continue; boolean isShareable = changedNode.isShareable(); if (isShareable /* && changedNodeOutsideBranch.hasOnlyChangesToAdditionalParents() */) {
continue; boolean isShareable = changedNode.isShareable(); if (isShareable /* && changedNodeOutsideBranch.hasOnlyChangesToAdditionalParents() */) {
@Override public void removeSharedSet() throws VersionException, LockException, ConstraintViolationException, RepositoryException { if (isShareable()) {
@Override public void removeSharedSet() throws VersionException, LockException, ConstraintViolationException, RepositoryException { if (isShareable()) {
private void removeHistories( AbstractJcrNode node, SessionCache systemSession ) throws RepositoryException { JcrVersionHistoryNode versionHistory = null; if (node.isNodeType(JcrMixLexicon.VERSIONABLE)) { if (node.isShareable()) { throw new UnsupportedRepositoryOperationException(JcrI18n.nodeIsShareable.text(node.getPath()));
private void removeHistories( AbstractJcrNode node, SessionCache systemSession ) throws RepositoryException { JcrVersionHistoryNode versionHistory = null; if (node.isNodeType(JcrMixLexicon.VERSIONABLE)) { if (node.isShareable()) { throw new UnsupportedRepositoryOperationException(JcrI18n.nodeIsShareable.text(node.getPath()));
if (node.isShareable()) return false;
if (node.isShareable()) return false;
if (JcrMixLexicon.SHAREABLE.equals(removedMixinName) && isShareable()) {
if (JcrMixLexicon.SHAREABLE.equals(removedMixinName) && isShareable()) {
if (sameWorkspace && sourceNode.isShareable()) {
if (sameWorkspace && sourceNode.isShareable()) {
if (destAncestor.isShareable()) { SharedSet sharedSet = destAncestor.sharedSet(); AbstractJcrNode sharedNodeThatCreatesCircularity = sharedSet.getSharedNodeAtOrBelow(srcPath);
if (destAncestor.isShareable()) { SharedSet sharedSet = destAncestor.sharedSet(); AbstractJcrNode sharedNodeThatCreatesCircularity = sharedSet.getSharedNodeAtOrBelow(srcPath);