View Javadoc
1   package org.kuali.ole.select.controller;
2   
3   import org.kuali.ole.select.document.OLEPurchaseOrderBatchDocument;
4   import org.kuali.ole.select.document.service.impl.OLEPurchaseOrderBatchServiceImpl;
5   import org.kuali.rice.krad.UserSession;
6   import org.kuali.rice.krad.util.GlobalVariables;
7   
8   import java.io.File;
9   import java.util.concurrent.Callable;
10  
11  /**
12   * Created by pvsubrah on 6/15/15.
13   */
14  public class POBACallable implements Callable<Object> {
15      private final OLEPurchaseOrderBatchDocument olePurchaseOrderBatchDocument;
16      private final UserSession userSession;
17      private final File file;
18  
19      public POBACallable(OLEPurchaseOrderBatchDocument olePurchaseOrderBatchDocument, UserSession session, File file) {
20          this.olePurchaseOrderBatchDocument = olePurchaseOrderBatchDocument;
21          this.userSession = session;
22          this.file = file;
23      }
24  
25      @Override
26      public Object call() throws Exception {
27          new OLEPurchaseOrderBatchServiceImpl().readFile(olePurchaseOrderBatchDocument, userSession, file);
28          return null;
29      }
30  }