org.kuali.hr.time.department.service
Interface DepartmentService

All Known Implementing Classes:
DepartmentServiceImpl

public interface DepartmentService


Method Summary
 Department getDepartment(String hrDeptId)
          Fetch department by id
 Department getDepartment(String department, Date asOfDate)
          Get Department as of a particular date passed in
 List<Department> getDepartmentByLocation(String location)
          Fetch department by location
 int getDepartmentCount(String department)
          get count of department with given department
 List<Department> getDepartments(String chart, Date asOfDate)
          Fetches a list of Department objects as of the specified date all of which belong to the indicated chart.
 List<Department> getDepartments(String department, String location, String descr, String active, String showHistory)
           
 void populateDepartmentRoles(Department department)
          A helper method to populate the roles for the given department.
 

Method Detail

getDepartment

@Cacheable(value="KPME/Department",
           key="\'department=\' + #p0 + \'|\' + \'asOfDate=\' + #p1")
Department getDepartment(String department,
                                   Date asOfDate)
Get Department as of a particular date passed in

Parameters:
department -
asOfDate -
Returns:

getDepartments

@Cacheable(value="KPME/Department",
           key="\'chart=\' + #p0 + \'|\' + \'asOfDate=\' + #p1")
List<Department> getDepartments(String chart,
                                          Date asOfDate)
Fetches a list of Department objects as of the specified date all of which belong to the indicated chart.

Parameters:
chart - The search criteria
asOfDate - Effective date
Returns:
A List object.

populateDepartmentRoles

void populateDepartmentRoles(Department department)
A helper method to populate the roles for the given department. This method will be called automatically when calls to getDepartment() are made. Functionality is exposed here to allow the Kuali Lookup / Maint pages to completely populate Department objects.

Parameters:
department - The department for which we need roles populated.

getDepartment

@Cacheable(value="KPME/Department",
           key="\'hrDeptId=\' + #p0")
Department getDepartment(String hrDeptId)
Fetch department by id

Parameters:
hrDeptId -
Returns:

getDepartmentByLocation

@Cacheable(value="KPME/Department",
           key="\'location=\' + #p0")
List<Department> getDepartmentByLocation(String location)
Fetch department by location

Parameters:
location -
Returns:

getDepartmentCount

int getDepartmentCount(String department)
get count of department with given department

Parameters:
department -
Returns:
int

getDepartments

List<Department> getDepartments(String department,
                                String location,
                                String descr,
                                String active,
                                String showHistory)


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.