src/de/uka/ipd/idaho/goldenGateServer/ims/GoldenGateIMS.java
/**
	 * Upload 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. In case a document
	 * already exists with the same ID as the argument document's, 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 document from its underlying data without instantiating it.
This method only works for document data objects retrieved from either
of the getDocumentData() methods. In case a document
already exists with the same ID as the argument document's, 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 document from its underlying data without instantiating it . This method only works for document data objects retrieved from either of the getDocumentData () methods . In case a document already exists with the same ID as the argument document ' s 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 uploadDocumentFromData(String userName, ImsDocumentData docData, EventLogger logger) throws IOException {
		String checkoutUser = this.getCheckoutUser(docData.docId);
		if (checkoutUser != null)
			throw new IOException("Document already exists, upload not possible.");
		return this.finalizeDocumentUpdate(docData, userName, null, ((logger == null) ? new DummyEventLogger() : logger));
	}
public int uploadDocumentFromData ( String userName , ImsDocumentData docData , EventLogger logger ) throws IOException { String checkoutUser = this . getCheckoutUser ( docData . docId ) ; if ( checkoutUser != null ) throw new IOException ( "Document already exists, upload not possible." ) ; return this . finalizeDocumentUpdate ( docData , userName , null , ( ( logger == null ) ? new DummyEventLogger ( ) : logger ) ) ; }
Upload a document from its underlying data without instantiating it.
Upload a document from its underlying data without instantiating it .
// get checkout user (must be null if document is new) //	do update