public Node getNode( String pathStr ) { Path path = createPath(pathStr); checkIsAbsolute(path); return nodes.get(path); }
/** * Begin the request to create a node located at the supplied path. * <p> * Like all other methods on the {@link Graph}, the request will be performed when the no-argument {@link Create#and()} method * is called. * </p> * * @param atPath the path to the node that is to be created. * @return the object that can be used to specify addition properties for the new node to be copied or the location of the * node where the node is to be created */ public Create<Graph> create( String atPath ) { return create(createPath(atPath)); }
/** * Request to read the node at the supplied path. * * @param path the path of the node that is to be read * @return the node that is read from the repository */ public Node getNodeAt( String path ) { return getNodeAt(Location.create(createPath(path))); }
/** * Request to read the node at the supplied path. * <p> * Like all other methods on the {@link Batch}, the request will be performed when the {@link #execute()} method is * called. * </p> * * @param path the path of the node that is to be read * @return the interface that can either execute the batched requests or continue to add additional requests to the batch */ public BatchConjunction read( String path ) { return read(Location.create(createPath(path))); }
/** * Request to lock the node at the given path. This request is submitted to the repository immediately. * * @param atPath the path of the node that is to be locked * @return an object that allows the scope of the lock to be defined */ public LockScope<LockTimeout<Conjunction<Graph>>> lock( String atPath ) { return lock(Location.create(createPath(atPath))); }
/** * Request to delete the node at the given path. This request is submitted to the repository immediately. * * @param atPath the path of the node that is to be deleted * @return an object that may be used to start another request */ public Conjunction<Graph> delete( String atPath ) { return delete(Location.create(createPath(atPath))); }
/** * {@inheritDoc} * * @see org.modeshape.graph.Graph.To#to(java.lang.String) */ public java.util.Map<String, Serializable> to( String desiredPath ) { return to(Location.create(createPath(desiredPath))); } };
/** * Request to lock the node at the given path. This request is submitted to the repository immediately. * * @param atPath the path of the node that is to be locked * @return an object that allows the scope of the lock to be defined */ public LockScope<LockTimeout<BatchConjunction>> lock( String atPath ) { return lock(Location.create(createPath(atPath))); }
/** * Request to unlock the node at the given path. This request is submitted to the repository immediately. * * @param atPath the path of the node that is to be unlocked * @return an object that may be used to start another request */ public Conjunction<Graph> unlock( String atPath ) { return unlock(Location.create(createPath(atPath))); }
public boolean includes( String pathStr ) { Path path = createPath(pathStr); path = getAbsolutePath(path); return includes(path); }
/** * Request to unlock the node at the given path. This request is submitted to the repository immediately. * * @param atPath the path of the node that is to be unlocked * @return the interface that can either execute the batched requests or continue to add additional requests to the batch */ public BatchConjunction unlock( String atPath ) { return unlock(Location.create(createPath(atPath))); }
public Conjunction<Graph> into( String path ) throws IOException, SAXException { return into(Location.create(createPath(path))); }
/** * Request to delete the node at the given path. * <p> * Like all other methods on the {@link Batch}, the request will be performed when the {@link #execute()} method is * called. * </p> * * @param atPath the path of the node that is to be deleted * @return an object that may be used to start another request */ public BatchConjunction delete( String atPath ) { return delete(Location.create(createPath(atPath))); }
public Conjunction<Graph> on( String path ) { return on(Location.create(createPath(path))); }
public Map<Name, Property> on( String path ) { return on(Location.create(createPath(path))); }
public BatchConjunction on( String path ) { return on(Location.create(createPath(path))); }
public SetValuesTo<BatchConjunction> on( String path ) { return on(Location.create(createPath(path))); }
public BatchConjunction on( String path ) { return on(Location.create(createPath(path))); }
public Map<Location, Property> on( String first, String... additional ) { CheckArg.isNotNull(first, "first"); final List<ReadPropertyRequest> requests = new LinkedList<ReadPropertyRequest>(); String workspace = getCurrentWorkspaceName(); requests.add(new ReadPropertyRequest(Location.create(createPath(first)), workspace, name)); for (String path : additional) { requests.add(new ReadPropertyRequest(Location.create(createPath(path)), workspace, name)); } return execute(requests); }
public SubgraphNode getNode( String pathStr ) { CheckArg.isNotEmpty(pathStr, "path"); Path path = createPath(pathStr); path = getAbsolutePath(path); return getNode(path); }