src/de/uka/ipd/idaho/goldenGateServer/ims/GoldenGateIMS.java
/**
	 * Release a document. The lock on the document is released, so other users
	 * can check it out again.
	 * @param userName the name of the user holding the lock of the document to
	 *            release
	 * @param docId the ID of the document to release
	 */
Release a document. The lock on the document is released, so other users
can check it out again.
@param userName the name of the user holding the lock of the document to
release
@param docId the ID of the document to release
Release a document . The lock on the document is released so other users can check it out again . @param userName the name of the user holding the lock of the document to release @param docId the ID of the document to release
public void releaseDocument(String userName, String docId) {
		String checkoutUser = this.getCheckoutUser(docId);
		if (checkoutUser == null)
			return;
		if (this.uaa.isAdmin(userName) || checkoutUser.equals(userName)) { 
			this.setCheckoutUser(docId, "", -1);
			GoldenGateServerEventService.notify(new ImsDocumentEvent(userName, docId, ImsDocumentEvent.RELEASE_TYPE, GoldenGateIMS.class.getName(), System.currentTimeMillis()));
		}
	}
public void releaseDocument ( String userName , String docId ) { String checkoutUser = this . getCheckoutUser ( docId ) ; if ( checkoutUser == null ) return ; if ( this . uaa . isAdmin ( userName ) || checkoutUser . equals ( userName ) ) { this . setCheckoutUser ( docId , "" , - 1 ) ; GoldenGateServerEventService . notify ( new ImsDocumentEvent ( userName , docId , ImsDocumentEvent . RELEASE_TYPE , GoldenGateIMS . class . getName ( ) , System . currentTimeMillis ( ) ) ) ; } }
Release a document.
Release a document .
//	check if document exists //	release document if possible // admin user, or user holding the lock