org.kuali.kpme.tklm.leave.approval.service
Class LeaveApprovalServiceImpl

java.lang.Object
  extended by org.kuali.kpme.tklm.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)
           
 Map<Date,Map<String,BigDecimal>> getEarnCodeLeaveHours(List<LeaveBlock> leaveBlocks, List<Date> leaveSummaryDates)
           
 List<Map<String,Object>> getLeaveApprovalDetailSections(LeaveCalendarDocumentHeader lcdh)
           
 List<Map<String,Object>> getLeaveApprovalDetailSections(String principalId, LeaveCalendarDocumentHeader lcdh, org.joda.time.DateTime beginDate, org.joda.time.DateTime endDate, List<Date> leaveSummaryDates, String week, Map<String,Boolean> enableWeekDetails)
           
 List<ApprovalLeaveSummaryRow> getLeaveApprovalSummaryRows(List<String> principalIds, CalendarEntry payCalendarEntry, List<Date> leaveSummaryDates, String docIdSearchTerm)
           
 List<String> getLeavePrincipalIdsWithSearchCriteria(List<String> workAreaList, String calendarGroup, org.joda.time.LocalDate effdt, org.joda.time.LocalDate beginDate, org.joda.time.LocalDate 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> getPrincipalDocumentHeader(List<String> principalIds, org.joda.time.DateTime payBeginDate, org.joda.time.DateTime payEndDate)
          Method to create a map that contains the principal's id and corresponding leave calendar document header.
 boolean isActiveAssignmentFoundOnJobFlsaStatus(String principalId, String flsaStatus, boolean chkForLeaveEligible)
           
 void removeNonLeaveEmployees(List<String> principalIds)
           
 
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

getLeaveApprovalSummaryRows

public List<ApprovalLeaveSummaryRow> getLeaveApprovalSummaryRows(List<String> principalIds,
                                                                 CalendarEntry payCalendarEntry,
                                                                 List<Date> leaveSummaryDates,
                                                                 String docIdSearchTerm)
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

getLeaveApprovalDetailSections

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

getLeaveApprovalDetailSections

public List<Map<String,Object>> getLeaveApprovalDetailSections(String principalId,
                                                               LeaveCalendarDocumentHeader lcdh,
                                                               org.joda.time.DateTime beginDate,
                                                               org.joda.time.DateTime endDate,
                                                               List<Date> leaveSummaryDates,
                                                               String week,
                                                               Map<String,Boolean> enableWeekDetails)

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

removeNonLeaveEmployees

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

getLeavePrincipalIdsWithSearchCriteria

public List<String> getLeavePrincipalIdsWithSearchCriteria(List<String> workAreaList,
                                                           String calendarGroup,
                                                           org.joda.time.LocalDate effdt,
                                                           org.joda.time.LocalDate beginDate,
                                                           org.joda.time.LocalDate 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:

getPrincipalDocumentHeader

public Map<String,LeaveCalendarDocumentHeader> getPrincipalDocumentHeader(List<String> principalIds,
                                                                          org.joda.time.DateTime payBeginDate,
                                                                          org.joda.time.DateTime 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:
getPrincipalDocumentHeader 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.