|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
LeaveBlock getLeaveBlock(String leaveBlockId)
List<LeaveBlock> getLeaveBlocksForDocumentId(String documentId)
List<LeaveBlock> getLeaveBlocks(String principalId, Date beginDate, Date endDate)
List<LeaveBlock> getLeaveBlocksWithType(String principalId, Date beginDate, Date endDate, String leaveBlockType)
List<LeaveBlock> getLeaveBlocksWithAccrualCategory(String principalId, Date beginDate, Date endDate, String accrualCategory)
List<LeaveBlock> getLeaveBlocksSinceCarryOver(String principalId, Map<String,LeaveBlock> carryOverBlocks, org.joda.time.DateTime endDate, boolean includeAllAccrualCategories)
Map<String,LeaveBlock> getLastCarryOverBlocks(String principalId, Date asOfDate)
void saveLeaveBlocks(List<LeaveBlock> leaveBlocks)
void saveLeaveBlock(LeaveBlock leaveBlock, String principalId)
void deleteLeaveBlock(String leaveBlockId, String principalId)
leaveBlockId
- principalId
- 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 updateLeaveBlock(LeaveBlock leaveBlock, String principalId)
List<LeaveBlock> getLeaveBlocks(String principalId, String leaveBlockType, String requestStatus, Date currentDate)
principalId
- leaveBlockType
- requestStatus
- currentDate
- currentDate to get the records for the future date, pass null when not required
List<LeaveBlock> getLeaveBlocks(String principalId, String leaveBlockType, String requestStatus, Date beginDate, Date endDate)
principalId
- leaveBlockType
- requestStatus
- beginDate
- endDate
-
List<LeaveBlock> getLeaveBlocksForDate(String principalId, Date leaveDate)
principalId
- leaveDate
-
List<LeaveBlock> getNotAccrualGeneratedLeaveBlocksForDate(String principalId, Date leaveDate)
principalId
- leaveDate
-
List<LeaveBlock> getLeaveBlocksForTimeCalendar(String principalId, Date beginDate, Date endDate, List<String> assignmentKeys)
principalId
- beginDate
- endDate
- assignmentKeys
-
List<LeaveBlock> getLeaveBlocksForLeaveCalendar(String principalId, Date beginDate, Date endDate, List<String> assignmentKeys)
principalId
- beginDate
- endDate
- assignmentKeys
-
List<LeaveBlock> filterLeaveBlocksForTimeCalendar(List<LeaveBlock> lbs, List<String> assignmentKeys)
lbs
- assignmentKeys
-
List<LeaveBlock> filterLeaveBlocksForLeaveCalendar(List<LeaveBlock> lbs, List<String> assignmentKeys)
lbs
- assignmentKeys
-
void deleteLeaveBlocksForDocumentId(String documentId)
documentId
- List<LeaveBlock> getAccrualGeneratedLeaveBlocks(String principalId, Date beginDate, Date endDate)
principalId
- beginDate
- endDate
-
List<LeaveBlock> getSSTOLeaveBlocks(String principalId, String sstoId, Date accruledDate)
principalId
- sstoId
- accruledDate
-
List<LeaveBlock> getABELeaveBlocksSinceTime(String principalId, Timestamp lastRanTime)
principalId
- lastRanTime
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |