src/de/uka/ipd/idaho/goldenGateServer/ims/GoldenGateIMS.java
/**
	 * Upload a new document. In case a document already exists, an exception
	 * will be thrown. If not, the document will be created, but no lock will
	 * be granted to the uploading user. If a lock is required, use the
	 * updateDocument() method.
	 * @param userName the name of the user doing the update
	 * @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
	 */
Upload a new document. In case a document already exists, an exception
will be thrown. If not, the document will be created, but no lock will
be granted to the uploading user. If a lock is required, use the
updateDocument() method.
Upload a new document . In case a document already exists an exception will be thrown . If not the document will be created but no lock will be granted to the uploading user . If a lock is required use the updateDocument () method .
public int uploadDocument(String userName, ImDocument doc, EventLogger logger) throws IOException {
		String checkoutUser = this.getCheckoutUser(doc.docId);
		if (checkoutUser != null)
			throw new IOException("Document already exists, upload not possible.");
		return this.doUpdateDocument(userName, null, doc, ((logger == null) ? new DummyEventLogger() : logger));
	}
public int uploadDocument ( String userName , ImDocument doc , EventLogger logger ) throws IOException { String checkoutUser = this . getCheckoutUser ( doc . docId ) ; if ( checkoutUser != null ) throw new IOException ( "Document already exists, upload not possible." ) ; return this . doUpdateDocument ( userName , null , doc , ( ( logger == null ) ? new DummyEventLogger ( ) : logger ) ) ; }
Upload a new document.
Upload a new document .
// get checkout user (must be null if document is new) //	do update