001/* 002 * Copyright 2006 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 */ 016package org.kuali.ole.gl.batch.service; 017 018import org.kuali.ole.gl.businessobject.Transaction; 019import org.kuali.ole.sys.service.ReportWriterService; 020 021/** 022 * An interface with a predicate that tells if a transaction with the given fields would be an ICR transaction or not 023 */ 024public interface IndirectCostRecoveryService { 025 /** 026 * This will determine if this transaction is an ICR eligible transaction 027 * 028 * @param transaction the transaction which is being determined to be ICR or not 029 * @param objectType the object type of the transaction 030 * @param account the account of the transaction 031 * @param objectCode the object code of the transaction 032 * @return true if the transaction is an ICR transaction and therefore should have an expenditure transaction created for it; false if otherwise 033 */ 034 public abstract boolean isIcrTransaction(Transaction transaction, ReportWriterService reportWriterService); 035}