1 /* 2 * Copyright 2006 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.fp.batch.service; 17 18 import org.kuali.ole.sys.batch.InitiateDirectory; 19 import org.kuali.ole.sys.service.ReportWriterService; 20 21 /** 22 * 23 * This service interface defines the methods that a ProcurementCardLoadTransactionsService implementation must provide. 24 * 25 * Provides methods to load batch files for the procurement card batch job. 26 */ 27 public interface ProcurementCardLoadTransactionsService extends InitiateDirectory{ 28 29 /** 30 * Validates and parses the file identified by the given files name. If successful, parsed entries are stored. 31 * 32 * @param fileNaem Name of file to be uploaded and processed. 33 * @param reportWriterService report writing service. 34 * @return True if the file load and store was successful, false otherwise. 35 */ 36 public boolean loadProcurementCardFile(String fileName, ReportWriterService reportWriterService); 37 38 /** 39 * Clears out the temporary transaction table. 40 */ 41 public void cleanTransactionsTable(); 42 }