/** * Begin the request to clone a node with the specified unique identification property into a parent node at a different * location, which is specified via the <code>into(...)</code> method on the returned {@link Clone} object. The identification * property should uniquely identify a single node. * <p> * Like all other methods on the {@link Graph}, the clone request will be performed immediately when the {@link WithUuids UUID * behavior} is specified. * </p> * <p> * The clone operation differs from the copy operation in that it must replicate nodes from one workspace to another (the copy * operations supports replicating nodes within a workspace as well as across workspaces) and that it preserves UUIDs (the * copy operation always generates new UUIDs). * </p> * * @param idProperty the unique identification property of the node that is to be copied. * @return the object that can be used to specify addition nodes to be copied or the location of the node where the node is to * be copied */ public Clone<Graph> clone( Property idProperty ) { return clone(Location.create(idProperty)); }
/** * Begin the request to clone a node with the specified unique identifier into a parent node at a different location, which is * specified via the <code>into(...)</code> method on the returned {@link Clone} object. * <p> * Like all other methods on the {@link Graph}, the clone request will be performed immediately when the {@link WithUuids UUID * behavior} is specified. * </p> * <p> * The clone operation differs from the copy operation in that it must replicate nodes from one workspace to another (the copy * operations supports replicating nodes within a workspace as well as across workspaces) and that it preserves UUIDs (the * copy operation always generates new UUIDs). * </p> * * @param from the UUID of the node that is to be copied. * @return the object that can be used to specify addition nodes to be copied or the location of the node where the node is to * be copied */ public Clone<Graph> clone( UUID from ) { return clone(Location.create(from)); }
/** * Begin the request to clone the specified node into a parent node at a different location, which is specified via the * <code>into(...)</code> method on the returned {@link Clone} object. * <p> * Like all other methods on the {@link Graph}, the clone request will be performed immediately when the {@link WithUuids UUID * behavior} is specified. * </p> * <p> * The clone operation differs from the copy operation in that it must replicate nodes from one workspace to another (the copy * operations supports replicating nodes within a workspace as well as across workspaces) and that it preserves UUIDs (the * copy operation always generates new UUIDs). * </p> * * @param from the node that is to be copied. * @return the object that can be used to specify addition nodes to be copied or the location of the node where the node is to * be copied */ public Clone<Graph> clone( Node from ) { return clone(from.getLocation()); }
/** * Begin the request to clone a node located at the supplied path into a parent node at a different location, which is * specified via the <code>into(...)</code> method on the returned {@link Clone} object. * <p> * Like all other methods on the {@link Graph}, the clone request will be performed immediately when the {@link WithUuids UUID * behavior} is specified. * </p> * <p> * The clone operation differs from the copy operation in that it must replicate nodes from one workspace to another (the copy * operations supports replicating nodes within a workspace as well as across workspaces) and that it preserves UUIDs (the * copy operation always generates new UUIDs). * </p> * * @param from the path to the node that is to be copied. * @return the object that can be used to specify addition nodes to be copied or the location of the node where the node is to * be copied */ public Clone<Graph> clone( Path from ) { return clone(Location.create(from)); }
/** * Begin the request to clone a node with the specified identification properties into a parent node at a different location, * which is specified via the <code>into(...)</code> method on the returned {@link Clone} object. The identification * properties should uniquely identify a single node. * <p> * Like all other methods on the {@link Graph}, the clone request will be performed immediately when the {@link WithUuids UUID * behavior} is specified. * </p> * <p> * The clone operation differs from the copy operation in that it must replicate nodes from one workspace to another (the copy * operations supports replicating nodes within a workspace as well as across workspaces) and that it preserves UUIDs (the * copy operation always generates new UUIDs). * </p> * * @param firstIdProperty the first identification property of the node that is to be copied * @param additionalIdProperties the remaining identification properties of the node that is to be copied * @return the object that can be used to specify addition nodes to be copied or the location of the node where the node is to * be copied */ public Clone<Graph> clone( Property firstIdProperty, Property... additionalIdProperties ) { return clone(Location.create(firstIdProperty, additionalIdProperties)); }
/** * Begin the request to clone a node located at the supplied path into a parent node at a different location, which is * specified via the <code>into(...)</code> method on the returned {@link Clone} object. * <p> * Like all other methods on the {@link Graph}, the clone request will be performed immediately when the {@link WithUuids UUID * behavior} is specified. * </p> * <p> * The clone operation differs from the copy operation in that it must replicate nodes from one workspace to another (the copy * operations supports replicating nodes within a workspace as well as across workspaces) and that it preserves UUIDs (the * copy operation always generates new UUIDs). * </p> * * @param fromPath the path to the node that is to be copied. * @return the object that can be used to specify addition nodes to be copied or the location of the node where the node is to * be copied */ public Clone<Graph> clone( String fromPath ) { return clone(Location.create(createPath(fromPath))); }