001 /* 002 * Copyright 2011 The Kuali Foundation. 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.kfs.module.endow.document.service; 017 018 import java.sql.Date; 019 import java.util.Collection; 020 021 import org.kuali.kfs.module.endow.businessobject.FeeMethod; 022 023 public interface FeeMethodService { 024 025 /** 026 * Gets a collection of record from END_FEE_MTHD_T table 027 * @return feeMethods 028 */ 029 public Collection<FeeMethod> getFeeMethods(); 030 031 /** 032 * Gets a collection of record from END_FEE_MTHD_T table based on 033 * next processing date (FEE_NXT_PROC_DT) is equal to the current date. 034 * @return feeMethods 035 */ 036 public Collection<FeeMethod> getFeeMethodsByNextProcessingDate(java.util.Date nextProcessingDate); 037 038 /** 039 * Gets a feeMethod by primary key. 040 * 041 * @param code 042 * @return a feeMethod code 043 */ 044 public FeeMethod getByPrimaryKey(String code); 045 046 /** 047 * Gets the feeMethod next process date as a String for use in javascript. 048 * 049 * @param feeMethodCode 050 * @return the fee Method next process date as a String 051 */ 052 public String getFeeMethodNextProcessDateForAjax(String feeMethodCode); 053 054 /** 055 * Gets the feeMethod next process date. 056 * 057 * @param feeMethodCode 058 * @return the fee Method next process date 059 */ 060 public Date getFeeMethodNextProcessDate(String feeMethodCode); 061 062 /** 063 * Checks if the fee method is used on any Kemid. 064 * 065 * @param feeMethodCode 066 * @return true if used, false otherwise 067 */ 068 public boolean isFeeMethodUsedOnAnyKemid(String feeMethodCode); 069 070 /** 071 * Gets FeeMethod records 072 */ 073 }