01: /*
02: * Copyright 2005-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.chart.dao;
17:
18: import java.util.Collection;
19: import java.util.List;
20:
21: import org.kuali.core.bo.user.UniversalUser;
22: import org.kuali.module.chart.bo.Chart;
23:
24: /**
25: * This interface defines what methods of data retrieval should be allowed for {@link org.kuali.module.chart.bo.Chart}
26: */
27: public interface ChartDao {
28: /**
29: * This method retrieves all Chart objects in the system
30: *
31: * @return all Chart objects
32: */
33: public Collection getAll();
34:
35: /**
36: * This method retrieves the University's Chart object
37: *
38: * @return University's chart object
39: */
40: public Chart getUniversityChart();
41:
42: /**
43: * This method retrieves a given Chart based on it's primary key
44: *
45: * @param chartOfAccountsCode
46: * @return Chart object that matches this primary key
47: */
48: public Chart getByPrimaryId(String chartOfAccountsCode);
49:
50: /**
51: * This method retrieves a list of Chart objects that a specific User is responsible for
52: *
53: * @param kualiUser
54: * @return list of Chart objects that this user is responsible for
55: */
56: public List getChartsThatUserIsResponsibleFor(
57: UniversalUser kualiUser);
58: }
|