org.kuali.hr.lm.leave.approval.service
Class LeaveApprovalServiceImpl

java.lang.Object
  extended by org.kuali.hr.lm.leave.approval.service.LeaveApprovalServiceImpl
All Implemented Interfaces:
LeaveApprovalService

public class LeaveApprovalServiceImpl
extends Object
implements LeaveApprovalService


Field Summary
static int DAYS_WINDOW_DELTA
           
 
Constructor Summary
LeaveApprovalServiceImpl()
           
 
Method Summary
 Map<Date,Map<String,BigDecimal>> getAccrualCategoryLeaveHours(List<LeaveBlock> leaveBlocks, List<Date> leaveSummaryDates)
           
 List<CalendarEntries> getAllLeavePayCalendarEntriesForApprover(String principalId, Date currentDate)
           
 Map<Date,Map<String,BigDecimal>> getEarnCodeLeaveHours(List<LeaveBlock> leaveBlocks, List<Date> leaveSummaryDates)
           
 List<Map<String,Object>> getLeaveApprovalDetailSections(LeaveCalendarDocumentHeader lcdh)
           
 List<ApprovalLeaveSummaryRow> getLeaveApprovalSummaryRows(List<TKPerson> persons, CalendarEntries payCalendarEntries, List<Date> leaveSummaryDates)
           
 Map<String,LeaveCalendarDocumentHeader> getLeaveDocumentHeaderMap(List<TKPerson> persons, Date payBeginDate, Date payEndDate)
           
 List<String> getLeavePrincipalIdsWithSearchCriteria(List<String> workAreaList, String calendarGroup, Date effdt, Date beginDate, Date endDate)
          Method to get a lit of principal ids based on work area list, calendarGroup and dates
 List<org.kuali.rice.kew.api.note.Note> getNotesForDocument(String documentNumber)
          Used to determine if there are notes on a document
 Map<String,LeaveCalendarDocumentHeader> getPrincipalDocumehtHeader(List<TKPerson> persons, Date payBeginDate, Date payEndDate)
          Method to create a map that contains the principal's id and corresponding leave calendar document header.
 List<String> getUniqueLeavePayGroupsForPrincipalIds(List<String> principalIds)
           
 boolean isActiveAssignmentFoundOnJobFlsaStatus(String principalId, String flsaStatus, boolean chkForLeaveEligible)
           
 void removeNonLeaveEmployees(List<String> principalIds)
           
 void setPrincipalHRAttributesDao(PrincipalHRAttributesDao principalHRAttributesDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DAYS_WINDOW_DELTA

public static final int DAYS_WINDOW_DELTA
See Also:
Constant Field Values
Constructor Detail

LeaveApprovalServiceImpl

public LeaveApprovalServiceImpl()
Method Detail

setPrincipalHRAttributesDao

public void setPrincipalHRAttributesDao(PrincipalHRAttributesDao principalHRAttributesDao)

getLeaveApprovalSummaryRows

public List<ApprovalLeaveSummaryRow> getLeaveApprovalSummaryRows(List<TKPerson> persons,
                                                                 CalendarEntries payCalendarEntries,
                                                                 List<Date> leaveSummaryDates)
Specified by:
getLeaveApprovalSummaryRows in interface LeaveApprovalService

getEarnCodeLeaveHours

public Map<Date,Map<String,BigDecimal>> getEarnCodeLeaveHours(List<LeaveBlock> leaveBlocks,
                                                              List<Date> leaveSummaryDates)
Specified by:
getEarnCodeLeaveHours in interface LeaveApprovalService

getLeaveDocumentHeaderMap

public Map<String,LeaveCalendarDocumentHeader> getLeaveDocumentHeaderMap(List<TKPerson> persons,
                                                                         Date payBeginDate,
                                                                         Date payEndDate)

getLeaveApprovalDetailSections

public List<Map<String,Object>> getLeaveApprovalDetailSections(LeaveCalendarDocumentHeader lcdh)
Specified by:
getLeaveApprovalDetailSections in interface LeaveApprovalService

getNotesForDocument

public List<org.kuali.rice.kew.api.note.Note> getNotesForDocument(String documentNumber)
Description copied from interface: LeaveApprovalService
Used to determine if there are notes on a document

Specified by:
getNotesForDocument in interface LeaveApprovalService
Returns:
list of note objects

getAccrualCategoryLeaveHours

public Map<Date,Map<String,BigDecimal>> getAccrualCategoryLeaveHours(List<LeaveBlock> leaveBlocks,
                                                                     List<Date> leaveSummaryDates)
Specified by:
getAccrualCategoryLeaveHours in interface LeaveApprovalService

getUniqueLeavePayGroupsForPrincipalIds

public List<String> getUniqueLeavePayGroupsForPrincipalIds(List<String> principalIds)
Specified by:
getUniqueLeavePayGroupsForPrincipalIds in interface LeaveApprovalService

getAllLeavePayCalendarEntriesForApprover

public List<CalendarEntries> getAllLeavePayCalendarEntriesForApprover(String principalId,
                                                                      Date currentDate)
Specified by:
getAllLeavePayCalendarEntriesForApprover in interface LeaveApprovalService

removeNonLeaveEmployees

public void removeNonLeaveEmployees(List<String> principalIds)
Specified by:
removeNonLeaveEmployees in interface LeaveApprovalService

getLeavePrincipalIdsWithSearchCriteria

public List<String> getLeavePrincipalIdsWithSearchCriteria(List<String> workAreaList,
                                                           String calendarGroup,
                                                           Date effdt,
                                                           Date beginDate,
                                                           Date endDate)
Description copied from interface: LeaveApprovalService
Method to get a lit of principal ids based on work area list, calendarGroup and dates

Specified by:
getLeavePrincipalIdsWithSearchCriteria in interface LeaveApprovalService
Returns:

getPrincipalDocumehtHeader

public Map<String,LeaveCalendarDocumentHeader> getPrincipalDocumehtHeader(List<TKPerson> persons,
                                                                          Date payBeginDate,
                                                                          Date payEndDate)
Description copied from interface: LeaveApprovalService
Method to create a map that contains the principal's id and corresponding leave calendar document header.

Specified by:
getPrincipalDocumehtHeader in interface LeaveApprovalService
Returns:
A PrincipalId to LeaveCalendarDocumentHeader mapping.

isActiveAssignmentFoundOnJobFlsaStatus

public boolean isActiveAssignmentFoundOnJobFlsaStatus(String principalId,
                                                      String flsaStatus,
                                                      boolean chkForLeaveEligible)
Specified by:
isActiveAssignmentFoundOnJobFlsaStatus in interface LeaveApprovalService
Returns:


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