The checkout methods perform checkouts of versionable nodes.
checkout ()
checkout() this method performs a checkout of the
node.
Returns
Returns the resulting working copy node.
Example
var workingCopy; var node = companyhome.childByNamePath("TEST_FILE_1.TXT"); node.ensureVersioningEnabled(true, true); if (node.isVersioned){ workingCopy = node.checkout(); workingCopy.content = "Add some content."; workingCopy.checkin("Added some content."); }
checkout(destination)
checkout(destination) this method performs a check out of the node
to the specified destination.
Parameters
- destination
- Destination for the checked out document working copy node.
Returns
Returns the resulting working copy node.