org.kuali.hr.time.workarea.service
Interface WorkAreaService

All Known Implementing Classes:
WorkAreaServiceImpl

public interface WorkAreaService


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
 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 populateWorkAreaTasks(WorkArea workArea)
          A helper method to populate the tasks for the given WorkArea.
 void saveOrUpdate(WorkArea workArea)
          Save or Update given work area
 

Method Detail

getWorkArea

@Cacheable(value="KPME/WorkArea",
           key="\'workArea=\' + #p0 + \'|\' + \'asOfDate=\' + #p1")
WorkArea getWorkArea(Long workArea,
                               Date asOfDate)
Fetch WorkArea as of a particular date

Parameters:
workArea -
asOfDate -
Returns:

getWorkAreas

@Cacheable(value="KPME/WorkArea",
           key="\'department=\' + #p0 + \'|\' + \'asOfDate=\' + #p1")
List<WorkArea> getWorkAreas(String department,
                                      Date asOfDate)
Fetch a List of WorkArea objects for a given department as of the indicated date.

Parameters:
department - The department we want to use.
asOfDate - An effective date.
Returns:
A List that matches the provided params.

saveOrUpdate

@CacheEvict(value="KPME/WorkArea",
            allEntries=true)
void saveOrUpdate(WorkArea workArea)
Save or Update given work area

Parameters:
workArea -

populateWorkAreaTasks

void populateWorkAreaTasks(WorkArea workArea)
A helper method to populate the tasks 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.

Parameters:
workArea - The WorkArea for which we need roles populated.

populateWorkAreaRoles

void populateWorkAreaRoles(WorkArea workArea)
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.

Parameters:
workArea - The WorkArea for which we need roles populated.

getWorkArea

@Cacheable(value="KPME/WorkArea",
           key="\'tkWorkAreaId=\' + #p0")
WorkArea getWorkArea(String tkWorkAreaId)

getNextWorkAreaKey

Long getNextWorkAreaKey()

getWorkAreas

List<WorkArea> getWorkAreas(String dept,
                            String workArea,
                            String workAreaDescr,
                            Date fromEffdt,
                            Date toEffdt,
                            String active,
                            String showHistory)

getWorkAreaCount

int getWorkAreaCount(String dept,
                     Long workArea)
Fetch the count of the work areas with the given department and workarea

Parameters:
dept -
workArea -
Returns:
count count of the work areas with the given department and workarea


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