1 /* 2 * Copyright 2008 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.pdp.service; 17 18 import java.util.List; 19 20 import org.kuali.ole.pdp.businessobject.PaymentFileLoad; 21 import org.kuali.rice.krad.util.MessageMap; 22 23 /** 24 * Defines validation methods on a payment file. 25 */ 26 public interface PaymentFileValidationService { 27 28 /** 29 * Performs validations that stop the loading of a payment file. 30 * 31 * @param paymentFile parsed payment file object 32 * @param errorMap map of errors encountered 33 */ 34 public void doHardEdits(PaymentFileLoad paymentFile, MessageMap errorMap); 35 36 /** 37 * Performs warning checks and setting of default values. 38 * 39 * @param paymentFile parsed payment file object 40 * @return <code>List</code> of warning messages 41 */ 42 public List<String> doSoftEdits(PaymentFileLoad paymentFile); 43 }