org.kuali.hr.lm.leaveblock.service
Interface LeaveBlockService

All Known Implementing Classes:
LeaveBlockServiceImpl

public interface LeaveBlockService


Method Summary
 void addLeaveBlocks(org.joda.time.DateTime beginDate, org.joda.time.DateTime endDate, CalendarEntries ce, String selectedEarnCode, BigDecimal hours, String description, Assignment selectedAssignment, String spanningWeeks, String leaveBlockType, String principalId)
           
 void deleteLeaveBlock(String leaveBlockId, String principalId)
          The deletion marks the leave block inactive instead of removing the row from the database.
 void deleteLeaveBlocksForDocumentId(String documentId)
          Delete time blocks for a given document id
 List<LeaveBlock> filterLeaveBlocksForLeaveCalendar(List<LeaveBlock> lbs, List<String> assignmentKeys)
          Filter list of leave blocks with given list of assignmentKeys for Leave Calendar
 List<LeaveBlock> filterLeaveBlocksForTimeCalendar(List<LeaveBlock> lbs, List<String> assignmentKeys)
          Filter list of leave blocks with given list of assignmentKeys for Time Calendar
 List<LeaveBlock> getABELeaveBlocksSinceTime(String principalId, Timestamp lastRanTime)
          gets list of leave blocks created for earn codes with eligible-for-accrual=no since the given timestamp
 List<LeaveBlock> getAccrualGeneratedLeaveBlocks(String principalId, Date beginDate, Date endDate)
          Retrieve list of accrual generated leave blocks for given Date range and User
 Map<String,LeaveBlock> getLastCarryOverBlocks(String principalId, Date asOfDate)
           
 LeaveBlock getLeaveBlock(String leaveBlockId)
           
 List<LeaveBlock> getLeaveBlocks(String principalId, Date beginDate, Date endDate)
           
 List<LeaveBlock> getLeaveBlocks(String principalId, String leaveBlockType, String requestStatus, Date currentDate)
           
 List<LeaveBlock> getLeaveBlocks(String principalId, String leaveBlockType, String requestStatus, Date beginDate, Date endDate)
           
 List<LeaveBlock> getLeaveBlocksForDate(String principalId, Date leaveDate)
          Get the list of leave blocks from the given leaveDate for the principalId
 List<LeaveBlock> getLeaveBlocksForDocumentId(String documentId)
           
 List<LeaveBlock> getLeaveBlocksForLeaveCalendar(String principalId, Date beginDate, Date endDate, List<String> assignmentKeys)
          Get list of leave blocks to display on leave calendar with given dates and principal id the leave blocks created from time calendar should have assignments in the list of assignment keys
 List<LeaveBlock> getLeaveBlocksForTimeCalendar(String principalId, Date beginDate, Date endDate, List<String> assignmentKeys)
          Get list of leave blocks to display on time sheet with given dates and principal id Only get leave blocks with type of leave calendar and time calendar the leave blocks should have assignments in the list of assignment keys
 List<LeaveBlock> getLeaveBlocksSinceCarryOver(String principalId, Map<String,LeaveBlock> carryOverBlocks, org.joda.time.DateTime endDate, boolean includeAllAccrualCategories)
           
 List<LeaveBlock> getLeaveBlocksWithAccrualCategory(String principalId, Date beginDate, Date endDate, String accrualCategory)
           
 List<LeaveBlock> getLeaveBlocksWithType(String principalId, Date beginDate, Date endDate, String leaveBlockType)
           
 List<LeaveBlock> getNotAccrualGeneratedLeaveBlocksForDate(String principalId, Date leaveDate)
          Get the list of not-accrual-generated leave blocks from the given leaveDate for the principalId
 List<LeaveBlock> getSSTOLeaveBlocks(String principalId, String sstoId, Date accruledDate)
          Retrieve list of leave blocks generated with given system scheduled time off id, date and user
 void saveLeaveBlock(LeaveBlock leaveBlock, String principalId)
           
 void saveLeaveBlocks(List<LeaveBlock> leaveBlocks)
           
 void updateLeaveBlock(LeaveBlock leaveBlock, String principalId)
           
 

Method Detail

getLeaveBlock

LeaveBlock getLeaveBlock(String leaveBlockId)

getLeaveBlocksForDocumentId

List<LeaveBlock> getLeaveBlocksForDocumentId(String documentId)

getLeaveBlocks

List<LeaveBlock> getLeaveBlocks(String principalId,
                                Date beginDate,
                                Date endDate)

getLeaveBlocksWithType

List<LeaveBlock> getLeaveBlocksWithType(String principalId,
                                        Date beginDate,
                                        Date endDate,
                                        String leaveBlockType)

getLeaveBlocksWithAccrualCategory

List<LeaveBlock> getLeaveBlocksWithAccrualCategory(String principalId,
                                                   Date beginDate,
                                                   Date endDate,
                                                   String accrualCategory)

getLeaveBlocksSinceCarryOver

List<LeaveBlock> getLeaveBlocksSinceCarryOver(String principalId,
                                              Map<String,LeaveBlock> carryOverBlocks,
                                              org.joda.time.DateTime endDate,
                                              boolean includeAllAccrualCategories)

getLastCarryOverBlocks

Map<String,LeaveBlock> getLastCarryOverBlocks(String principalId,
                                              Date asOfDate)

saveLeaveBlocks

void saveLeaveBlocks(List<LeaveBlock> leaveBlocks)

saveLeaveBlock

void saveLeaveBlock(LeaveBlock leaveBlock,
                    String principalId)

deleteLeaveBlock

void deleteLeaveBlock(String leaveBlockId,
                      String principalId)
The deletion marks the leave block inactive instead of removing the row from the database.

Parameters:
leaveBlockId -
principalId -

addLeaveBlocks

void addLeaveBlocks(org.joda.time.DateTime beginDate,
                    org.joda.time.DateTime endDate,
                    CalendarEntries ce,
                    String selectedEarnCode,
                    BigDecimal hours,
                    String description,
                    Assignment selectedAssignment,
                    String spanningWeeks,
                    String leaveBlockType,
                    String principalId)

updateLeaveBlock

void updateLeaveBlock(LeaveBlock leaveBlock,
                      String principalId)

getLeaveBlocks

List<LeaveBlock> getLeaveBlocks(String principalId,
                                String leaveBlockType,
                                String requestStatus,
                                Date currentDate)
Parameters:
principalId -
leaveBlockType -
requestStatus -
currentDate - currentDate to get the records for the future date, pass null when not required
Returns:
List of LeaveBlocks

getLeaveBlocks

List<LeaveBlock> getLeaveBlocks(String principalId,
                                String leaveBlockType,
                                String requestStatus,
                                Date beginDate,
                                Date endDate)
Parameters:
principalId -
leaveBlockType -
requestStatus -
beginDate -
endDate -
Returns:
List of LeaveBlocks

getLeaveBlocksForDate

List<LeaveBlock> getLeaveBlocksForDate(String principalId,
                                       Date leaveDate)
Get the list of leave blocks from the given leaveDate for the principalId

Parameters:
principalId -
leaveDate -
Returns:
List of LeaveBlocks

getNotAccrualGeneratedLeaveBlocksForDate

List<LeaveBlock> getNotAccrualGeneratedLeaveBlocksForDate(String principalId,
                                                          Date leaveDate)
Get the list of not-accrual-generated leave blocks from the given leaveDate for the principalId

Parameters:
principalId -
leaveDate -
Returns:
List of LeaveBlocks

getLeaveBlocksForTimeCalendar

List<LeaveBlock> getLeaveBlocksForTimeCalendar(String principalId,
                                               Date beginDate,
                                               Date endDate,
                                               List<String> assignmentKeys)
Get list of leave blocks to display on time sheet with given dates and principal id Only get leave blocks with type of leave calendar and time calendar the leave blocks should have assignments in the list of assignment keys

Parameters:
principalId -
beginDate -
endDate -
assignmentKeys -
Returns:
List of leave blocks

getLeaveBlocksForLeaveCalendar

List<LeaveBlock> getLeaveBlocksForLeaveCalendar(String principalId,
                                                Date beginDate,
                                                Date endDate,
                                                List<String> assignmentKeys)
Get list of leave blocks to display on leave calendar with given dates and principal id the leave blocks created from time calendar should have assignments in the list of assignment keys

Parameters:
principalId -
beginDate -
endDate -
assignmentKeys -
Returns:
List of leave blocks

filterLeaveBlocksForTimeCalendar

List<LeaveBlock> filterLeaveBlocksForTimeCalendar(List<LeaveBlock> lbs,
                                                  List<String> assignmentKeys)
Filter list of leave blocks with given list of assignmentKeys for Time Calendar

Parameters:
lbs -
assignmentKeys -
Returns:
List of leave blocks

filterLeaveBlocksForLeaveCalendar

List<LeaveBlock> filterLeaveBlocksForLeaveCalendar(List<LeaveBlock> lbs,
                                                   List<String> assignmentKeys)
Filter list of leave blocks with given list of assignmentKeys for Leave Calendar

Parameters:
lbs -
assignmentKeys -
Returns:
List of leave blocks

deleteLeaveBlocksForDocumentId

void deleteLeaveBlocksForDocumentId(String documentId)
Delete time blocks for a given document id

Parameters:
documentId -

getAccrualGeneratedLeaveBlocks

List<LeaveBlock> getAccrualGeneratedLeaveBlocks(String principalId,
                                                Date beginDate,
                                                Date endDate)
Retrieve list of accrual generated leave blocks for given Date range and User

Parameters:
principalId -
beginDate -
endDate -
Returns:
List of leave blocks

getSSTOLeaveBlocks

List<LeaveBlock> getSSTOLeaveBlocks(String principalId,
                                    String sstoId,
                                    Date accruledDate)
Retrieve list of leave blocks generated with given system scheduled time off id, date and user

Parameters:
principalId -
sstoId -
accruledDate -
Returns:

getABELeaveBlocksSinceTime

List<LeaveBlock> getABELeaveBlocksSinceTime(String principalId,
                                            Timestamp lastRanTime)
gets list of leave blocks created for earn codes with eligible-for-accrual=no since the given timestamp

Parameters:
principalId -
lastRanTime -
Returns:


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