View Javadoc
1   /*
2    * Copyright 2011 The Kuali Foundation.
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.ole.select.batch.service;
17  
18  import org.kuali.ole.select.businessobject.BibInfoBean;
19  
20  import java.util.List;
21  
22  /**
23   * This service interface defines the methods that a RequisitionLoadTransactionsService implementation must provide.
24   * <p/>
25   * Provides methods to load batch files for the requisition(PreOrderRequest) batch job.
26   */
27  public interface RequisitionLoadTransactionsService {
28      /**
29       * Validates and parses the file identified by the given files name. If successful, parsed entries are stored.
30       *
31       * @param fileName Name of file to be uploaded and processed.
32       * @return True if the file load and store was successful, false otherwise.
33       */
34      public boolean loadRequisitionFile(String fileName);
35  
36      /**
37       * Set the values for the Requisition Document and save.
38       *
39       * @param bibInfoBeanList ArrayList
40       */
41      public List saveRequisitionDocument(List<BibInfoBean> bibInfoBeanList) throws Exception;
42  
43  }