org.kuali.hr.time.department.service
Class DepartmentServiceImpl

java.lang.Object
  extended by org.kuali.hr.time.department.service.DepartmentServiceImpl
All Implemented Interfaces:
DepartmentService

public class DepartmentServiceImpl
extends Object
implements DepartmentService


Constructor Summary
DepartmentServiceImpl()
           
 
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)
           
 void populateDepartmentRoles(Department department)
          A helper method to populate the roles for the given department.
 void setDepartmentDao(DepartmentDao departmentDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DepartmentServiceImpl

public DepartmentServiceImpl()
Method Detail

getDepartments

public List<Department> getDepartments(String chart,
                                       Date asOfDate)
Description copied from interface: DepartmentService
Fetches a list of Department objects as of the specified date all of which belong to the indicated chart.

Specified by:
getDepartments in interface DepartmentService
Parameters:
chart - The search criteria
asOfDate - Effective date
Returns:
A List object.

getDepartment

public Department getDepartment(String department,
                                Date asOfDate)
Description copied from interface: DepartmentService
Get Department as of a particular date passed in

Specified by:
getDepartment in interface DepartmentService
Returns:

setDepartmentDao

public void setDepartmentDao(DepartmentDao departmentDao)

populateDepartmentRoles

public void populateDepartmentRoles(Department department)
Description copied from interface: DepartmentService
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.

Specified by:
populateDepartmentRoles in interface DepartmentService
Parameters:
department - The department for which we need roles populated.

getDepartment

public Department getDepartment(String hrDeptId)
Description copied from interface: DepartmentService
Fetch department by id

Specified by:
getDepartment in interface DepartmentService
Returns:

getDepartmentByLocation

public List<Department> getDepartmentByLocation(String location)
Description copied from interface: DepartmentService
Fetch department by location

Specified by:
getDepartmentByLocation in interface DepartmentService
Returns:

getDepartmentCount

public int getDepartmentCount(String department)
Description copied from interface: DepartmentService
get count of department with given department

Specified by:
getDepartmentCount in interface DepartmentService
Returns:
int

getDepartments

public List<Department> getDepartments(String department,
                                       String location,
                                       String descr,
                                       String active)
Specified by:
getDepartments in interface DepartmentService


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