* @return List of all the required files. Null if the current thread has been cancelled.
* @throws RemoteException Thrown if the web service call fails.
* @throws ServiceException Thrown if the web service call fails.
*/
public RequiredFiles downloadFiles(int entityId, String guid, ServerCallback callback) throws ServiceException, RemoteException {
CheckoutInterchangeData checkout = getCheckoutInterchangeData(callback);
if (checkout == null) {
// The callback should already have been notified.
return null;
}
if( Thread.currentThread().isInterrupted() ) {
callback.cancelled();
return null;
}
RequiredFiles retval = checkout.downloadRequiredFiles(user, password, entityId, guid);
if( Thread.currentThread().isInterrupted() ) {
callback.cancelled();
return null;
}
return retval;