org.kuali.hr.time.dept.lunch.service
Interface DepartmentLunchRuleService

All Known Implementing Classes:
DepartmentLunchRuleServiceImpl

public interface DepartmentLunchRuleService


Method Summary
 void applyDepartmentLunchRule(List<TimeBlock> timeblocks)
          Apply department lunch rule to the list of timeblocks
 DeptLunchRule getDepartmentLunchRule(String tkDeptLunchRuleId)
          Fetch department lunch rule by id
 DeptLunchRule getDepartmentLunchRule(String dept, Long workArea, String principalId, Long jobNumber, Date asOfDate)
          Fetch department lunch rule based on criteria passed in
 DeptLunchRule getDepartmentLunchRuleNoWildCards(String dept, Long workArea, String principalId, Long jobNumber, Date asOfDate)
          Fetch department lunch rule based on criteria passed in, using literals for wildcards.
 List<DeptLunchRule> getDepartmentLunchRules(String dept, String workArea, String principalId, String jobNumber, Date fromEffdt, Date toEffdt, String active, String showHistory)
           
 

Method Detail

getDepartmentLunchRule

@Cacheable(value="KPME/DeptLunchRule",
           key="\'dept=\' + #p0+ \'|\' + \'workArea=\' + #p1+ \'|\' + \'principalId=\' + #p2+ \'|\' + \'jobNumber=\' + #p3+ \'|\' + \'asOfDate=\' + #p4")
DeptLunchRule getDepartmentLunchRule(String dept,
                                               Long workArea,
                                               String principalId,
                                               Long jobNumber,
                                               Date asOfDate)
Fetch department lunch rule based on criteria passed in

Parameters:
dept -
workArea -
principalId -
jobNumber -
asOfDate -
Returns:

getDepartmentLunchRuleNoWildCards

@Cacheable(value="KPME/DeptLunchRule",
           key="\'{getEarnCodesForLeaveAndTime}\'+ \'dept=\' + #p0+ \'|\' + \'workArea=\' + #p1+ \'|\' + \'principalId=\' + #p2+ \'|\' + \'jobNumber=\' + #p3+ \'|\' + \'asOfDate=\' + #p4")
DeptLunchRule getDepartmentLunchRuleNoWildCards(String dept,
                                                          Long workArea,
                                                          String principalId,
                                                          Long jobNumber,
                                                          Date asOfDate)
Fetch department lunch rule based on criteria passed in, using literals for wildcards. Will not go through logic to determine best match, but will match exactly on what is passed in.

Parameters:
dept -
workArea -
principalId -
jobNumber -
asOfDate -
Returns:

applyDepartmentLunchRule

void applyDepartmentLunchRule(List<TimeBlock> timeblocks)
Apply department lunch rule to the list of timeblocks

Parameters:
timeblocks -

getDepartmentLunchRule

@Cacheable(value="KPME/DeptLunchRule",
           key="\'tkDeptLunchRuleId=\' + #p0")
DeptLunchRule getDepartmentLunchRule(String tkDeptLunchRuleId)
Fetch department lunch rule by id

Parameters:
tkDeptLunchRuleId -
Returns:

getDepartmentLunchRules

List<DeptLunchRule> getDepartmentLunchRules(String dept,
                                            String workArea,
                                            String principalId,
                                            String jobNumber,
                                            Date fromEffdt,
                                            Date toEffdt,
                                            String active,
                                            String showHistory)


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