src/de/uka/ipd/idaho/goldenGateServer/ims/GoldenGateIMS.java
/**
	 * Update an existing document, or store a new one. In case of an update,
	 * the updating authentication user must have acquired the lock on the
	 * document in question (via one of the checkoutDocument() methods) prior
	 * to the invocation of this method. Otherwise, an IOException will be
	 * thrown. In case of a new document, the lock is automatically granted to
	 * the specified user, and remains with him until he yields it via the
	 * releaseDocument() method. If a lock is not desired for a new document,
	 * use the uploadDocument() method.
	 * @param userName the name of the user doing the update
	 * @param authUserName the user name holding the checkout lock
	 * @param doc the document to store
	 * @param logger a logger for obtaining detailed information on the storage
	 *            process
	 * @return the new version number of the document just updated
	 * @throws IOException
	 */
Update an existing document, or store a new one. In case of an update,
the updating authentication user must have acquired the lock on the
document in question (via one of the checkoutDocument() methods) prior
to the invocation of this method. Otherwise, an IOException will be
thrown. In case of a new document, the lock is automatically granted to
the specified user, and remains with him until he yields it via the
releaseDocument() method. If a lock is not desired for a new document,
use the uploadDocument() method.
Update an existing document or store a new one . In case of an update the updating authentication user must have acquired the lock on the document in question ( via one of the checkoutDocument () methods ) prior to the invocation of this method . Otherwise an IOException will be thrown . In case of a new document the lock is automatically granted to the specified user and remains with him until he yields it via the releaseDocument () method . If a lock is not desired for a new document use the uploadDocument () method .
public int updateDocument(String userName, String authUserName, ImDocument doc, EventLogger logger) throws IOException {
		if (!this.mayUpdateDocument(authUserName, doc.docId))
			throw new IOException("Document checked out by other user, update not possible.");
		return this.doUpdateDocument(userName, authUserName, doc, ((logger == null) ? new DummyEventLogger() : logger));
	}
public int updateDocument ( String userName , String authUserName , ImDocument doc , EventLogger logger ) throws IOException { if ( ! this . mayUpdateDocument ( authUserName , doc . docId ) ) throw new IOException ( "Document checked out by other user, update not possible." ) ; return this . doUpdateDocument ( userName , authUserName , doc , ( ( logger == null ) ? new DummyEventLogger ( ) : logger ) ) ; }
Update an existing document, or store a new one.
Update an existing document or store a new one .
// check if document checked out //	do update