org.kuali.hr.time.workarea.service
Class WorkAreaServiceImpl

java.lang.Object
  extended by org.kuali.hr.time.workarea.service.WorkAreaServiceImpl
All Implemented Interfaces:
WorkAreaService

public class WorkAreaServiceImpl
extends Object
implements WorkAreaService


Constructor Summary
WorkAreaServiceImpl()
           
 
Method Summary
 Long getNextWorkAreaKey()
           
 WorkArea getWorkArea(Long workArea, Date asOfDate)
          Fetch WorkArea as of a particular date
 WorkArea getWorkArea(String tkWorkAreaId)
           
 int getWorkAreaCount(String dept, Long workArea)
          Fetch the count of the work areas with the given department and workarea
 WorkAreaDao getWorkAreaDao()
           
 List<WorkArea> getWorkAreas(String department, Date asOfDate)
          Fetch a List of WorkArea objects for a given department as of the indicated date.
 List<WorkArea> getWorkAreas(String dept, String workArea, String workAreaDescr, Date fromEffdt, Date toEffdt, String active, String showHistory)
           
 void populateWorkAreaRoles(WorkArea workArea)
          A helper method to populate the roles for the given WorkArea.
 void saveOrUpdate(WorkArea workArea)
          Save or Update given work area
 void setWorkAreaDao(WorkAreaDao workAreaDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkAreaServiceImpl

public WorkAreaServiceImpl()
Method Detail

getWorkAreas

public List<WorkArea> getWorkAreas(String department,
                                   Date asOfDate)
Description copied from interface: WorkAreaService
Fetch a List of WorkArea objects for a given department as of the indicated date.

Specified by:
getWorkAreas in interface WorkAreaService
Parameters:
department - The department we want to use.
asOfDate - An effective date.
Returns:
A List that matches the provided params.

getWorkArea

public WorkArea getWorkArea(Long workArea,
                            Date asOfDate)
Description copied from interface: WorkAreaService
Fetch WorkArea as of a particular date

Specified by:
getWorkArea in interface WorkAreaService
Returns:

saveOrUpdate

public void saveOrUpdate(WorkArea workArea)
Description copied from interface: WorkAreaService
Save or Update given work area

Specified by:
saveOrUpdate in interface WorkAreaService

getWorkAreaDao

public WorkAreaDao getWorkAreaDao()

setWorkAreaDao

public void setWorkAreaDao(WorkAreaDao workAreaDao)

populateWorkAreaRoles

public void populateWorkAreaRoles(WorkArea workArea)
Description copied from interface: WorkAreaService
A helper method to populate the roles for the given WorkArea. This method will be called automatically when calls to getWorkArea() are made. Functionality is exposed here to allow the Kuali Lookup / Maint pages to completely populate WorkArea objects.

Specified by:
populateWorkAreaRoles in interface WorkAreaService
Parameters:
workArea - The WorkArea for which we need roles populated.

getWorkArea

public WorkArea getWorkArea(String tkWorkAreaId)
Specified by:
getWorkArea in interface WorkAreaService

getNextWorkAreaKey

public Long getNextWorkAreaKey()
Specified by:
getNextWorkAreaKey in interface WorkAreaService

getWorkAreas

public List<WorkArea> getWorkAreas(String dept,
                                   String workArea,
                                   String workAreaDescr,
                                   Date fromEffdt,
                                   Date toEffdt,
                                   String active,
                                   String showHistory)
Specified by:
getWorkAreas in interface WorkAreaService

getWorkAreaCount

public int getWorkAreaCount(String dept,
                            Long workArea)
Description copied from interface: WorkAreaService
Fetch the count of the work areas with the given department and workarea

Specified by:
getWorkAreaCount in interface WorkAreaService
Returns:
count count of the work areas with the given department and workarea


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