01: /*
02: * Copyright 2006-2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.module.kra.budget.service;
17:
18: import java.util.List;
19:
20: import org.kuali.core.util.KualiInteger;
21: import org.kuali.module.cg.bo.Agency;
22: import org.kuali.module.kra.budget.bo.Budget;
23:
24: /**
25: * This interface defines methods that a BudgetModular service must provide
26: */
27: public interface BudgetModularService {
28:
29: /**
30: * Populate the derived Modular Budget values based on the given Budget object.
31: *
32: * @param Budget budget
33: */
34: public void generateModularBudget(Budget budget);
35:
36: /**
37: * Populate the derived Modular Budget values based on the given Budget object and nonpersonnelCategories.
38: *
39: * @param Budget budget
40: * @param List nonpersonnelCategories
41: */
42: public void generateModularBudget(Budget budget,
43: List nonpersonnelCategories);
44:
45: /**
46: * Recalculate certain Modular Budget values based on the given Budget object.
47: *
48: * @param Budget budget
49: * @param List nonpersonnelCategories
50: */
51: public void resetModularBudget(Budget budget);
52:
53: /**
54: * Determine whether the given agency supports modular budgets.
55: *
56: * @param Agency agency
57: * @return boolean
58: */
59: public boolean agencySupportsModular(Agency agency);
60:
61: /**
62: * Determine the maximum total direct cost amount allowed per period for the given agency.
63: *
64: * @param Agency agency
65: * @return boolean
66: */
67: public KualiInteger determineBudgetPeriodMaximumAmount(Agency agency);
68: }
|