Save a document at the given _id if the docId is null or empty, then this performs a POST to the database and retrieves a new _id. Otherwise, a PUT is called. Either way, a new _id and _rev are retrieved and updated in the Document object
@param doc
@param docId
Writes the document element to the file system. TODO: move it to the document, maybe the document gets not saved if the caller lost the reference to it, before this call
@throws CoreException
Saves the given document provided for the given element.
@param monitor a progress monitor to report progress and request cancelation
@param element the element, or null
@param document the document
@param overwrite indicates whether overwrite should be performedwhile saving the given element if necessary
@exception CoreException if document could not be stored to the given element
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.