org.kuali.hr.time.dept.lunch.service
Class DepartmentLunchRuleServiceImpl

java.lang.Object
  extended by org.kuali.hr.time.dept.lunch.service.DepartmentLunchRuleServiceImpl
All Implemented Interfaces:
DepartmentLunchRuleService

public class DepartmentLunchRuleServiceImpl
extends Object
implements DepartmentLunchRuleService


Field Summary
 DepartmentLunchRuleDao deptLunchRuleDao
           
 
Constructor Summary
DepartmentLunchRuleServiceImpl()
           
 
Method Summary
 void applyDepartmentLunchRule(List<TimeBlock> timeblocks)
          If the hours is greater or equal than the shift hours, deduct the hour from the deduction_mins field
 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)
           
 DepartmentLunchRuleDao getDeptLunchRuleDao()
           
 void setDeptLunchRuleDao(DepartmentLunchRuleDao deptLunchRuleDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deptLunchRuleDao

public DepartmentLunchRuleDao deptLunchRuleDao
Constructor Detail

DepartmentLunchRuleServiceImpl

public DepartmentLunchRuleServiceImpl()
Method Detail

getDepartmentLunchRule

public DeptLunchRule getDepartmentLunchRule(String dept,
                                            Long workArea,
                                            String principalId,
                                            Long jobNumber,
                                            Date asOfDate)
Description copied from interface: DepartmentLunchRuleService
Fetch department lunch rule based on criteria passed in

Specified by:
getDepartmentLunchRule in interface DepartmentLunchRuleService
Returns:

getDepartmentLunchRuleNoWildCards

public DeptLunchRule getDepartmentLunchRuleNoWildCards(String dept,
                                                       Long workArea,
                                                       String principalId,
                                                       Long jobNumber,
                                                       Date asOfDate)
Description copied from interface: DepartmentLunchRuleService
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.

Specified by:
getDepartmentLunchRuleNoWildCards in interface DepartmentLunchRuleService
Returns:

applyDepartmentLunchRule

public void applyDepartmentLunchRule(List<TimeBlock> timeblocks)
If the hours is greater or equal than the shift hours, deduct the hour from the deduction_mins field

Specified by:
applyDepartmentLunchRule in interface DepartmentLunchRuleService

getDeptLunchRuleDao

public DepartmentLunchRuleDao getDeptLunchRuleDao()

setDeptLunchRuleDao

public void setDeptLunchRuleDao(DepartmentLunchRuleDao deptLunchRuleDao)

getDepartmentLunchRule

public DeptLunchRule getDepartmentLunchRule(String tkDeptLunchRuleId)
Description copied from interface: DepartmentLunchRuleService
Fetch department lunch rule by id

Specified by:
getDepartmentLunchRule in interface DepartmentLunchRuleService
Returns:

getDepartmentLunchRules

public List<DeptLunchRule> getDepartmentLunchRules(String dept,
                                                   String workArea,
                                                   String principalId,
                                                   String jobNumber,
                                                   Date fromEffdt,
                                                   Date toEffdt,
                                                   String active,
                                                   String showHistory)
Specified by:
getDepartmentLunchRules in interface DepartmentLunchRuleService


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