protected JcrSharedNode( SharedSet sharedSet, NodeKey parentKey ) { super(sharedSet.session(), sharedSet.key()); this.parentKey = parentKey; this.sharedSet = sharedSet; assert this.parentKey != null; assert this.sharedSet != null; }
@Override protected Segment segment() throws RepositoryException { AbstractJcrNode parent = parent(); CachedNode node = parent.node(); SessionCache cache = session.cache(); ChildReference childRef = node.getChildReferences(cache).getChild(sharedSet.key()); return childRef.getSegment(); } }
@Override Path path() throws ItemNotFoundException, InvalidItemStateException { AbstractJcrNode parent = parent(); CachedNode node = parent.node(); SessionCache cache = session.cache(); ChildReference childRef = node.getChildReferences(cache).getChild(sharedSet.key()); Path parentPath = parent.path(); return session().pathFactory().create(parentPath, childRef.getSegment()); }
@Override Path path() throws ItemNotFoundException, InvalidItemStateException { AbstractJcrNode parent = parent(); CachedNode node = parent.node(); SessionCache cache = session.cache(); ChildReference childRef = node.getChildReferences(cache).getChild(sharedSet.key()); Path parentPath = parent.path(); return session().pathFactory().create(parentPath, childRef.getSegment()); }
protected JcrSharedNode( SharedSet sharedSet, NodeKey parentKey ) { super(sharedSet.session(), sharedSet.key()); this.parentKey = parentKey; this.sharedSet = sharedSet; assert this.parentKey != null; assert this.sharedSet != null; }
@Override protected Segment segment() throws RepositoryException { AbstractJcrNode parent = parent(); CachedNode node = parent.node(); SessionCache cache = session.cache(); ChildReference childRef = node.getChildReferences(cache).getChild(sharedSet.key()); return childRef.getSegment(); } }