@Override public NodeKey extractFrom( ChildReference ref ) { return ref.getKey(); } });
@Override public NodeKey extractFrom( ChildReference ref ) { return ref.getKey(); } });
@Override public boolean isRenamed( ChildReference ref ) { Map<NodeKey, Name> renames = this.newNames.get(); return renames != null && renames.containsKey(ref.getKey()); }
public ChildReference remove( NodeKey key ) { for (ChildReference ref : this.inserted) { if (ref.getKey().equals(key) && remove(ref)) return ref; } return null; }
public ChildReference remove( NodeKey key ) { for (ChildReference ref : this.inserted) { if (ref.getKey().equals(key) && remove(ref)) return ref; } return null; }
@Override public ChildReference next() { ChildReference ref = original.next(); return ref.with(context.consume(ref.getName(), ref.getKey())); }
@Override public ChildReference next() { ChildReference ref = original.next(); return ref.with(context.consume(ref.getName(), ref.getKey())); }
public NodeKey indexesKey() { if (indexesKey == null) { // This is idempotent, so no need to lock CachedNode systemNode = systemNode(); ChildReference nodeTypesRef = systemNode.getChildReferences(system).getChild(ModeShapeLexicon.INDEXES); indexesKey = nodeTypesRef.getKey(); } return indexesKey; }
public NodeKey nodeTypesKey() { if (nodeTypesKey == null) { // This is idempotent, so no need to lock CachedNode systemNode = systemNode(); ChildReference nodeTypesRef = systemNode.getChildReferences(system).getChild(JcrLexicon.NODE_TYPES); nodeTypesKey = nodeTypesRef.getKey(); } return nodeTypesKey; }
public NodeKey nodeTypesKey() { if (nodeTypesKey == null) { // This is idempotent, so no need to lock CachedNode systemNode = systemNode(); ChildReference nodeTypesRef = systemNode.getChildReferences(system).getChild(JcrLexicon.NODE_TYPES); nodeTypesKey = nodeTypesRef.getKey(); } return nodeTypesKey; }
public NodeKey namespacesKey() { if (namespacesKey == null) { // This is idempotent, so no need to lock CachedNode systemNode = systemNode(); ChildReference namespacesRef = systemNode.getChildReferences(system).getChild(ModeShapeLexicon.NAMESPACES); namespacesKey = namespacesRef.getKey(); } return namespacesKey; }
public NodeKey locksKey() { if (locksKey == null) { // This is idempotent, so no need to lock CachedNode systemNode = systemNode(); ChildReference locksRef = systemNode.getChildReferences(system).getChild(ModeShapeLexicon.LOCKS); locksKey = locksRef.getKey(); } return locksKey; }
public NodeKey namespacesKey() { if (namespacesKey == null) { // This is idempotent, so no need to lock CachedNode systemNode = systemNode(); ChildReference namespacesRef = systemNode.getChildReferences(system).getChild(ModeShapeLexicon.NAMESPACES); namespacesKey = namespacesRef.getKey(); } return namespacesKey; }
public NodeKey locksKey() { if (locksKey == null) { // This is idempotent, so no need to lock CachedNode systemNode = systemNode(); ChildReference locksRef = systemNode.getChildReferences(system).getChild(ModeShapeLexicon.LOCKS); locksKey = locksRef.getKey(); } return locksKey; }
public NodeKey versionStorageKey() { if (versionStorageKey == null) { // This is idempotent, so no need to lock CachedNode systemNode = systemNode(); ChildReference locksRef = systemNode.getChildReferences(system).getChild(JcrLexicon.VERSION_STORAGE); versionStorageKey = locksRef.getKey(); } return versionStorageKey; }
public NodeKey systemKey() { if (systemKey == null) { // This is idempotent, so no need to lock CachedNode rootNode = system.getNode(system.getRootKey()); ChildReference systemRef = rootNode.getChildReferences(system).getChild(JcrLexicon.SYSTEM); systemKey = systemRef.getKey(); } return systemKey; }
public NodeKey systemKey() { if (systemKey == null) { // This is idempotent, so no need to lock CachedNode rootNode = system.getNode(system.getRootKey()); ChildReference systemRef = rootNode.getChildReferences(system).getChild(JcrLexicon.SYSTEM); systemKey = systemRef.getKey(); } return systemKey; }
private CachedNode getSystemNode( SessionCache systemSession ) { CachedNode systemRoot = systemSession.getNode(systemSession.getRootKey()); ChildReference systemNodeRef = systemRoot.getChildReferences(systemSession).getChild(JcrLexicon.SYSTEM); assert systemNodeRef != null; return systemSession.getNode(systemNodeRef.getKey()); }
protected AbstractJcrNode getNodeIfExists( Name childName ) throws RepositoryException { // It's just a name, so look for a child ... ChildReference ref = node().getChildReferences(sessionCache()).getChild(childName); return ref != null ? session().node(ref.getKey(), null, key()) : null; }
AbstractJcrNode getNode( Name childName ) throws PathNotFoundException, RepositoryException { // It's just a name, so look for a child ... ChildReference ref = node().getChildReferences(sessionCache()).getChild(childName); if (ref == null) { String msg = JcrI18n.childNotFoundUnderNode.text(readable(childName), location(), session.workspaceName()); throw new PathNotFoundException(msg); } return session().node(ref.getKey(), null, key()); }