org.kuali.hr.lm.leavepayout.service
Class LeavePayoutServiceImpl
java.lang.Object
org.kuali.hr.lm.leavepayout.service.LeavePayoutServiceImpl
- All Implemented Interfaces:
- LeavePayoutService
public class LeavePayoutServiceImpl
- extends Object
- implements LeavePayoutService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LeavePayoutServiceImpl
public LeavePayoutServiceImpl()
getAllLeavePayoutsForPrincipalId
public List<LeavePayout> getAllLeavePayoutsForPrincipalId(String principalId)
- Specified by:
getAllLeavePayoutsForPrincipalId in interface LeavePayoutService
getAllLeavePayoutsForPrincipalIdAsOfDate
public List<LeavePayout> getAllLeavePayoutsForPrincipalIdAsOfDate(String principalId,
Date effectiveDate)
- Specified by:
getAllLeavePayoutsForPrincipalIdAsOfDate in interface LeavePayoutService
getAllLeavePayoutsByEffectiveDate
public List<LeavePayout> getAllLeavePayoutsByEffectiveDate(Date effectiveDate)
- Specified by:
getAllLeavePayoutsByEffectiveDate in interface LeavePayoutService
getLeavePayoutById
public LeavePayout getLeavePayoutById(String lmLeavePayoutId)
- Specified by:
getLeavePayoutById in interface LeavePayoutService
getLeavePayoutDao
public LeavePayoutDao getLeavePayoutDao()
setLeavePayoutDao
public void setLeavePayoutDao(LeavePayoutDao leavePayoutDao)
initializePayout
public LeavePayout initializePayout(String principalId,
String accrualCategoryRule,
BigDecimal accruedBalance,
Date effectiveDate)
- Description copied from interface:
LeavePayoutService
- A service that instantiates and returns LeavePayout objects that follow the given accrual category rule.
- Specified by:
initializePayout in interface LeavePayoutService
- Parameters:
principalId - The principal this transfer pertains to.accrualCategoryRule - The accrual category rule that contains the max balance information.
- Returns:
- A LeavePayout object conforming to @param accrualCategoryRule, if one exists. Null otherwise.
The transfer amount will be the minimum of:
1.) the accrual category rule's maximum transfer amount, adjusted for the employees FTE.
2.) the number of time units exceeding the maximum balance
payout
public LeavePayout payout(LeavePayout leavePayout)
- Description copied from interface:
LeavePayoutService
- Consumes a LeavePayout object, creating up to three leave blocks.
- Specified by:
payout in interface LeavePayoutService
- Returns:
- The same LeavePayout object, but with associated leave block ids.
submitToWorkflow
public void submitToWorkflow(LeavePayout leavePayout)
throws org.kuali.rice.kew.api.exception.WorkflowException
- Description copied from interface:
LeavePayoutService
- Helper Services
- Specified by:
submitToWorkflow in interface LeavePayoutService
- Throws:
org.kuali.rice.kew.api.exception.WorkflowException
getLeavePayouts
public List<LeavePayout> getLeavePayouts(String viewPrincipal,
Date beginPeriodDate,
Date endPeriodDate)
- Specified by:
getLeavePayouts in interface LeavePayoutService
saveOrUpdate
public void saveOrUpdate(LeavePayout payout)
- Specified by:
saveOrUpdate in interface LeavePayoutService
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.