src/de/uka/ipd/idaho/goldenGateServer/ims/GoldenGateIMS.java
/**
	 * Check out a document from IMS. The document will be protected from
	 * editing by other users until it is released through the releaseDocument()
	 * method.
	 * @param userName the user checking out the document
	 * @param documentId the ID of the document to check out
	 * @param version the version to load
	 * @return the document with the specified ID
	 * @throws IOException
	 */
Check out a document from IMS. The document will be protected from
editing by other users until it is released through the releaseDocument()
method.
Check out a document from IMS . The document will be protected from editing by other users until it is released through the releaseDocument () method .
public ImDocument checkoutDocument(String userName, String documentId, int version) throws IOException {
		ImDocumentData docData = this.checkoutDocumentAsData(userName, documentId, version);
		if (docData == null)
			throw new IOException("Invalid document ID '" + documentId + "'");
		try {
			return ImDocumentIO.loadDocument(docData, new ProgressMonitor() {
				public void setStep(String step) {
					logInfo(step);
				}
				public void setInfo(String info) {
					logDebug(info);
				}
				public void setBaseProgress(int baseProgress) {}
				public void setMaxProgress(int maxProgress) {}
				public void setProgress(int progress) {}
			});
		}
		catch (IOException ioe) {
			this.logError("GoldenGateIMS: " + ioe.getClass().getName() + " (" + ioe.getMessage() + ") while loading document " + documentId + ".");
			this.logError(ioe);
			this.setCheckoutUser(documentId, "", -1);
			throw ioe;
		}
	}
public ImDocument checkoutDocument ( String userName , String documentId , int version ) throws IOException { ImDocumentData docData = this . checkoutDocumentAsData ( userName , documentId , version ) ; if ( docData == null ) throw new IOException ( "Invalid document ID '" + documentId + "'" ) ; try { return ImDocumentIO . loadDocument ( docData , new ProgressMonitor ( ) { public void setStep ( String step ) { logInfo ( step ) ; } public void setInfo ( String info ) { logDebug ( info ) ; } public void setBaseProgress ( int baseProgress ) { } public void setMaxProgress ( int maxProgress ) { } public void setProgress ( int progress ) { } } ) ; } catch ( IOException ioe ) { this . logError ( "GoldenGateIMS: " + ioe . getClass ( ) . getName ( ) + " (" + ioe . getMessage ( ) + ") while loading document " + documentId + "." ) ; this . logError ( ioe ) ; this . setCheckoutUser ( documentId , "" , - 1 ) ; throw ioe ; } }
Check out a document from IMS.
Check out a document from IMS .
//	get document data //	load document on top of local cache folder