|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.hr.lm.leaveblock.service.LeaveBlockServiceImpl
public class LeaveBlockServiceImpl
| Constructor Summary | |
|---|---|
LeaveBlockServiceImpl()
|
|
| 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)
|
LeaveBlock |
buildLeaveBlock(org.joda.time.DateTime leaveDate,
String docId,
String principalId,
String selectedEarnCode,
BigDecimal hours,
String description,
String accrualCategory,
Assignment selectedAssignment,
String requestStatus,
String leaveBlockType,
Timestamp beginTimeStamp,
Timestamp endTimestamp)
|
static List<org.joda.time.Interval> |
createDaySpan(org.joda.time.DateTime beginDateTime,
org.joda.time.DateTime endDateTime,
org.joda.time.DateTimeZone zone)
|
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)
|
LeaveBlockDao |
getLeaveBlockDao()
|
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> carryOver,
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 |
setLeaveBlockDao(LeaveBlockDao leaveBlockDao)
|
void |
updateLeaveBlock(LeaveBlock leaveBlock,
String principalId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LeaveBlockServiceImpl()
| Method Detail |
|---|
public LeaveBlock getLeaveBlock(String leaveBlockId)
getLeaveBlock in interface LeaveBlockServicepublic LeaveBlockDao getLeaveBlockDao()
public void setLeaveBlockDao(LeaveBlockDao leaveBlockDao)
public List<LeaveBlock> getLeaveBlocksForDocumentId(String documentId)
getLeaveBlocksForDocumentId in interface LeaveBlockService
public List<LeaveBlock> getLeaveBlocks(String principalId,
Date beginDate,
Date endDate)
getLeaveBlocks in interface LeaveBlockService
public List<LeaveBlock> getLeaveBlocksWithAccrualCategory(String principalId,
Date beginDate,
Date endDate,
String accrualCategory)
getLeaveBlocksWithAccrualCategory in interface LeaveBlockService
public List<LeaveBlock> getLeaveBlocksWithType(String principalId,
Date beginDate,
Date endDate,
String leaveBlockType)
getLeaveBlocksWithType in interface LeaveBlockService
public List<LeaveBlock> getLeaveBlocksSinceCarryOver(String principalId,
Map<String,LeaveBlock> carryOver,
org.joda.time.DateTime endDate,
boolean includeAllAccrualCategories)
getLeaveBlocksSinceCarryOver in interface LeaveBlockService
public Map<String,LeaveBlock> getLastCarryOverBlocks(String principalId,
Date asOfDate)
getLastCarryOverBlocks in interface LeaveBlockServicepublic void saveLeaveBlocks(List<LeaveBlock> leaveBlocks)
saveLeaveBlocks in interface LeaveBlockService
public void deleteLeaveBlock(String leaveBlockId,
String principalId)
LeaveBlockService
deleteLeaveBlock in interface LeaveBlockService
public void saveLeaveBlock(LeaveBlock leaveBlock,
String principalId)
saveLeaveBlock in interface LeaveBlockService
public 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)
addLeaveBlocks in interface LeaveBlockService
public LeaveBlock buildLeaveBlock(org.joda.time.DateTime leaveDate,
String docId,
String principalId,
String selectedEarnCode,
BigDecimal hours,
String description,
String accrualCategory,
Assignment selectedAssignment,
String requestStatus,
String leaveBlockType,
Timestamp beginTimeStamp,
Timestamp endTimestamp)
public void updateLeaveBlock(LeaveBlock leaveBlock,
String principalId)
updateLeaveBlock in interface LeaveBlockService
public static List<org.joda.time.Interval> createDaySpan(org.joda.time.DateTime beginDateTime,
org.joda.time.DateTime endDateTime,
org.joda.time.DateTimeZone zone)
public List<LeaveBlock> getLeaveBlocks(String principalId,
String leaveBlockType,
String requestStatus,
Date currentDate)
getLeaveBlocks in interface LeaveBlockServicecurrentDate - currentDate to get the records for the future date, pass null when not required
public List<LeaveBlock> getLeaveBlocks(String principalId,
String leaveBlockType,
String requestStatus,
Date beginDate,
Date endDate)
getLeaveBlocks in interface LeaveBlockService
public List<LeaveBlock> getLeaveBlocksForDate(String principalId,
Date leaveDate)
LeaveBlockService
getLeaveBlocksForDate in interface LeaveBlockService
public List<LeaveBlock> getNotAccrualGeneratedLeaveBlocksForDate(String principalId,
Date leaveDate)
LeaveBlockService
getNotAccrualGeneratedLeaveBlocksForDate in interface LeaveBlockService
public List<LeaveBlock> getLeaveBlocksForTimeCalendar(String principalId,
Date beginDate,
Date endDate,
List<String> assignmentKeys)
LeaveBlockService
getLeaveBlocksForTimeCalendar in interface LeaveBlockService
public List<LeaveBlock> getLeaveBlocksForLeaveCalendar(String principalId,
Date beginDate,
Date endDate,
List<String> assignmentKeys)
LeaveBlockService
getLeaveBlocksForLeaveCalendar in interface LeaveBlockService
public List<LeaveBlock> filterLeaveBlocksForTimeCalendar(List<LeaveBlock> lbs,
List<String> assignmentKeys)
LeaveBlockService
filterLeaveBlocksForTimeCalendar in interface LeaveBlockService
public List<LeaveBlock> filterLeaveBlocksForLeaveCalendar(List<LeaveBlock> lbs,
List<String> assignmentKeys)
LeaveBlockService
filterLeaveBlocksForLeaveCalendar in interface LeaveBlockServicepublic void deleteLeaveBlocksForDocumentId(String documentId)
LeaveBlockService
deleteLeaveBlocksForDocumentId in interface LeaveBlockService
public List<LeaveBlock> getAccrualGeneratedLeaveBlocks(String principalId,
Date beginDate,
Date endDate)
LeaveBlockService
getAccrualGeneratedLeaveBlocks in interface LeaveBlockService
public List<LeaveBlock> getSSTOLeaveBlocks(String principalId,
String sstoId,
Date accruledDate)
LeaveBlockService
getSSTOLeaveBlocks in interface LeaveBlockService
public List<LeaveBlock> getABELeaveBlocksSinceTime(String principalId,
Timestamp lastRanTime)
LeaveBlockService
getABELeaveBlocksSinceTime in interface LeaveBlockService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||