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.module.kra.budget.bo.BudgetNonpersonnel;
21:
22: /**
23: * This interface defines methods that a service must provide
24: */
25: public interface BudgetNonpersonnelService {
26: /**
27: * Refreshes the NonpersonnelObjectCode reference objects in the nonpersonnelItems list passed in.
28: *
29: * @param nonpersonnelItems of items to have NonpersonnelObjectCode refreshed.
30: */
31: public void refreshNonpersonnelObjectCode(List nonpersonnelItems);
32:
33: /**
34: * Finds a BudgetNonpersonnel with a certain sequence number in a provided list of nonpersonnelItems. If the item isn't found,
35: * null is returned.
36: *
37: * @param budgetNonpersonnelSequenceNumber sequence number of item to be found
38: * @param nonpersonnelItems Budget.nonpersonnelItem to look for the item in
39: * @return item found or null if it is not found
40: */
41: public BudgetNonpersonnel findBudgetNonpersonnel(
42: Integer budgetNonpersonnelSequenceNumber,
43: List nonpersonnelItems);
44:
45: /**
46: * Returns all nonpersonnel categories
47: *
48: * @throws Exception
49: */
50: public List getAllNonpersonnelCategories();
51: }
|