/** * Request to unlock the node with the given UUID. This request is submitted to the repository immediately. * * @param at the UUID of the node that is to be unlocked * @return an object that may be used to start another request */ public Conjunction<Graph> unlock( UUID at ) { return unlock(Location.create(at)); }
/** * Request to unlock the node at the given path. This request is submitted to the repository immediately. * * @param at 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( Path at ) { return unlock(Location.create(at)); }
/** * Request to unlock the specified node. This request is submitted to the repository immediately. * * @param at the node that is to be unlocked * @return an object that may be used to start another request */ public Conjunction<Graph> unlock( Node at ) { return unlock(at.getLocation()); }
/** * Request to unlock the node with the given unique identification property. This request is submitted to the repository * immediately. * * @param idProperty the unique identifying property of the node that is to be unlocked * @return an object that may be used to start another request */ public Conjunction<Graph> unlock( Property idProperty ) { return unlock(Location.create(idProperty)); }
/** * Request to unlock the node with the given identification properties. The identification properties should uniquely identify * a single node. This request is submitted to the repository immediately. * * @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 an object that may be used to start another request */ public Conjunction<Graph> unlock( Property firstIdProperty, Property... additionalIdProperties ) { return unlock(Location.create(firstIdProperty, additionalIdProperties)); }
/** * 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))); }
@Test public void shouldUnlockNode() { graph.unlock(validPath); assertNextRequestIsUnlock(Location.create(validPath)); }