View Javadoc
1   /**
2    * Copyright 2004-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
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.kpme.core.department.dao;
17  
18  import java.util.List;
19  
20  import org.joda.time.LocalDate;
21  import org.kuali.kpme.core.api.department.Department;
22  import org.kuali.kpme.core.department.DepartmentBo;
23  
24  public interface DepartmentDao {
25  	public void saveOrUpdate(DepartmentBo dept);
26  	public DepartmentBo getDepartment(String department, String groupKeyCode, LocalDate asOfDate);
27      public List<DepartmentBo> getDepartments(LocalDate asOfDate);
28      public DepartmentBo getDepartment(String hrDeptId);
29      public int getDepartmentCount(String department, String groupKeyCode);
30      public List<DepartmentBo> getDepartments(String groupKeyCode, String department, LocalDate asOfDate);
31      //public List<DepartmentBo> getDepartments(String department, String groupKeyCode);
32      public List<DepartmentBo> getDepartmentsWithGroupKeys(List<String> groupKeyCodes, LocalDate asOfDate);
33  
34      List<DepartmentBo> getDepartmentsWithDepartmentAndGroupKeys(String department, List<String> groupKeyCodes, LocalDate asOfDate);
35      // This is not used anywhere
36      //List<DepartmentBo> getDepartments(String department, String location, String descr, String active, String showHistory, String payrollApproval);
37  }