src/de/uka/ipd/idaho/goldenGateServer/ims/GoldenGateIMS.java
/**
	 * Update a document from its underlying data without instantiating it.
	 * This method only works for document data objects retrieved from either
	 * of the <code>getDocumentData()</code> methods. If the document does not
	 * exist, it is created; if the argument checkout user is null, it is
	 * released afterward, otherwise the argument checkout user retains the
	 * lock. If the document does exist and the argument checkout user is null
	 * or does not match the current checkout user, the update fails.
	 * @param userName the name of the user doing the update
	 * @param authUserName the user name holding the checkout lock
	 * @param docData the document data object 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 a document from its underlying data without instantiating it.
This method only works for document data objects retrieved from either
of the getDocumentData() methods. If the document does not
exist, it is created; if the argument checkout user is null, it is
released afterward, otherwise the argument checkout user retains the
lock. If the document does exist and the argument checkout user is null
or does not match the current checkout user, the update fails.
Update a document from its underlying data without instantiating it . This method only works for document data objects retrieved from either of the getDocumentData () methods . If the document does not exist it is created ; if the argument checkout user is null it is released afterward otherwise the argument checkout user retains the lock . If the document does exist and the argument checkout user is null or does not match the current checkout user the update fails .
public int updateDocumentFromData(String userName, String authUserName, ImsDocumentData docData, EventLogger logger) throws IOException {
		if (!this.mayUpdateDocument(authUserName, docData.docId))
			throw new IOException("Document checked out by other user, update not possible.");
		return this.finalizeDocumentUpdate(docData, userName, authUserName, ((logger == null) ? new DummyEventLogger() : logger));
	}
public int updateDocumentFromData ( String userName , String authUserName , ImsDocumentData docData , EventLogger logger ) throws IOException { if ( ! this . mayUpdateDocument ( authUserName , docData . docId ) ) throw new IOException ( "Document checked out by other user, update not possible." ) ; return this . finalizeDocumentUpdate ( docData , userName , authUserName , ( ( logger == null ) ? new DummyEventLogger ( ) : logger ) ) ; }
Update a document from its underlying data without instantiating it.
Update a document from its underlying data without instantiating it .
// check if document checked out //	do update