public class TimeBlockServiceImpl extends Object implements TimeBlockService
Constructor and Description |
---|
TimeBlockServiceImpl() |
Modifier and Type | Method and Description |
---|---|
List<TimeBlock> |
applyHolidayPremiumEarnCode(String principalId,
List<Assignment> timeAssignments,
List<TimeBlock> timeBlockList) |
List<TimeBlock> |
buildTimeBlocks(String principalId,
CalendarEntry calendarEntry,
Assignment assignment,
String earnCode,
String documentId,
org.joda.time.DateTime beginDateTime,
org.joda.time.DateTime endDateTime,
BigDecimal hours,
BigDecimal amount,
Boolean getClockLogCreated,
Boolean getLunchDeleted,
String userPrincipalId,
String clockLogBeginId,
String clockLogEndId)
Build a TimeBlock with the given criteria
|
List<TimeBlock> |
buildTimeBlocksSpanDates(String principalId,
CalendarEntry calendarEntry,
Assignment assignment,
String earnCode,
String documentId,
org.joda.time.DateTime beginDateTime,
org.joda.time.DateTime endDateTime,
BigDecimal hours,
BigDecimal amount,
Boolean getClockLogCreated,
Boolean getLunchDeleted,
String userPrincipalId,
String clockLogBeginId,
String clockLogEndId)
Build a List of TimeBlocks over a span of multiple days
|
TimeBlock |
createTimeBlock(String principalId,
String documentId,
org.joda.time.DateTime beginDateTime,
org.joda.time.DateTime endDateTime,
Assignment assignment,
String earnCode,
BigDecimal hours,
BigDecimal amount,
Boolean clockLogCreated,
Boolean lunchDeleted,
String userPrincipalId)
Create a TimeBlock for the given criteria
|
protected TimeBlock |
createTimeBlock(String principalId,
String documentId,
org.joda.time.DateTime beginDateTime,
org.joda.time.DateTime endDateTime,
Assignment assignment,
String earnCode,
BigDecimal hours,
BigDecimal amount,
Boolean clockLogCreated,
Boolean lunchDeleted,
String userPrincipalId,
String clockLogBeginId,
String clockLogEndId) |
protected List<TimeBlockHistory> |
createTimeBlockHistories(TimeBlockBo tb,
String actionHistory) |
void |
deleteLunchDeduction(String tkTimeHourDetailId) |
void |
deleteTimeBlock(TimeBlock timeBlock)
Delete a given TimeBlock
|
void |
deleteTimeBlocksAssociatedWithDocumentId(String documentId) |
List<TimeBlock> |
getIntersectingTimeBlocks(String principalId,
org.joda.time.DateTime startTime,
org.joda.time.DateTime endTime) |
List<TimeBlock> |
getLatestEndTimestampForEarnCode(String earnCode) |
List<TimeBlock> |
getOvernightTimeBlocks(String clockLogEndId)
Get overnight timeblocks by the clock log begin id
|
TimeBlock |
getTimeBlock(String tkTimeBlockId)
Fetch a TimeBlock by a given ID
|
protected TimeBlockBo |
getTimeBlockBo(String tkTimeBlockId) |
Boolean |
getTimeBlockEditable(TimeBlock timeBlock) |
List<TimeBlock> |
getTimeBlocks(String documentId)
Get the List of TimeBlock of a given document id
|
List<TimeBlock> |
getTimeBlocksForClockLogBeginId(String tkClockLogId) |
List<TimeBlock> |
getTimeBlocksForClockLogEndId(String tkClockLogId) |
boolean |
isOvernightTimeBlock(String clockLogEndId) |
List<TimeBlock> |
resetTimeHourDetail(List<TimeBlock> origTimeBlocks)
Reset the TimeHourDetail object associated with the TimeBlock object on a List of TimeBlocks
|
List<TimeBlock> |
saveOrUpdateTimeBlocks(List<TimeBlock> oldTimeBlocks,
List<TimeBlock> newTimeBlocks,
String userPrincipalId)
Save a list of new TimeBlocks
does a comparison for the old versus the new and only saves changed/new/deleted TimeBlocks
|
List<TimeBlock> |
saveTimeBlocks(List<TimeBlock> tbList)
Save a list of new TimeBlocks
|
void |
setTimeBlockDao(TimeBlockDao timeBlockDao) |
TimeBlock |
updateTimeBlock(TimeBlock tb) |
public TimeBlockServiceImpl()
public void setTimeBlockDao(TimeBlockDao timeBlockDao)
public List<TimeBlock> buildTimeBlocksSpanDates(String principalId, CalendarEntry calendarEntry, Assignment assignment, String earnCode, String documentId, org.joda.time.DateTime beginDateTime, org.joda.time.DateTime endDateTime, BigDecimal hours, BigDecimal amount, Boolean getClockLogCreated, Boolean getLunchDeleted, String userPrincipalId, String clockLogBeginId, String clockLogEndId)
TimeBlockService
buildTimeBlocksSpanDates
in interface TimeBlockService
public List<TimeBlock> buildTimeBlocks(String principalId, CalendarEntry calendarEntry, Assignment assignment, String earnCode, String documentId, org.joda.time.DateTime beginDateTime, org.joda.time.DateTime endDateTime, BigDecimal hours, BigDecimal amount, Boolean getClockLogCreated, Boolean getLunchDeleted, String userPrincipalId, String clockLogBeginId, String clockLogEndId)
TimeBlockService
buildTimeBlocks
in interface TimeBlockService
public List<TimeBlock> saveOrUpdateTimeBlocks(List<TimeBlock> oldTimeBlocks, List<TimeBlock> newTimeBlocks, String userPrincipalId)
TimeBlockService
saveOrUpdateTimeBlocks
in interface TimeBlockService
public List<TimeBlock> saveTimeBlocks(List<TimeBlock> tbList)
TimeBlockService
saveTimeBlocks
in interface TimeBlockService
public TimeBlock updateTimeBlock(TimeBlock tb)
updateTimeBlock
in interface TimeBlockService
public TimeBlock createTimeBlock(String principalId, String documentId, org.joda.time.DateTime beginDateTime, org.joda.time.DateTime endDateTime, Assignment assignment, String earnCode, BigDecimal hours, BigDecimal amount, Boolean clockLogCreated, Boolean lunchDeleted, String userPrincipalId)
TimeBlockService
createTimeBlock
in interface TimeBlockService
protected TimeBlock createTimeBlock(String principalId, String documentId, org.joda.time.DateTime beginDateTime, org.joda.time.DateTime endDateTime, Assignment assignment, String earnCode, BigDecimal hours, BigDecimal amount, Boolean clockLogCreated, Boolean lunchDeleted, String userPrincipalId, String clockLogBeginId, String clockLogEndId)
public TimeBlock getTimeBlock(String tkTimeBlockId)
TimeBlockService
getTimeBlock
in interface TimeBlockService
protected TimeBlockBo getTimeBlockBo(String tkTimeBlockId)
public void deleteTimeBlock(TimeBlock timeBlock)
TimeBlockService
deleteTimeBlock
in interface TimeBlockService
public List<TimeBlock> resetTimeHourDetail(List<TimeBlock> origTimeBlocks)
TimeBlockService
resetTimeHourDetail
in interface TimeBlockService
protected List<TimeBlockHistory> createTimeBlockHistories(TimeBlockBo tb, String actionHistory)
public List<TimeBlock> getTimeBlocks(String documentId)
TimeBlockService
getTimeBlocks
in interface TimeBlockService
public void deleteTimeBlocksAssociatedWithDocumentId(String documentId)
deleteTimeBlocksAssociatedWithDocumentId
in interface TimeBlockService
public Boolean getTimeBlockEditable(TimeBlock timeBlock)
getTimeBlockEditable
in interface TimeBlockService
public List<TimeBlock> getTimeBlocksForClockLogEndId(String tkClockLogId)
getTimeBlocksForClockLogEndId
in interface TimeBlockService
public List<TimeBlock> getTimeBlocksForClockLogBeginId(String tkClockLogId)
getTimeBlocksForClockLogBeginId
in interface TimeBlockService
public List<TimeBlock> getLatestEndTimestampForEarnCode(String earnCode)
getLatestEndTimestampForEarnCode
in interface TimeBlockService
public List<TimeBlock> getOvernightTimeBlocks(String clockLogEndId)
TimeBlockService
getOvernightTimeBlocks
in interface TimeBlockService
public boolean isOvernightTimeBlock(String clockLogEndId)
isOvernightTimeBlock
in interface TimeBlockService
public void deleteLunchDeduction(String tkTimeHourDetailId)
deleteLunchDeduction
in interface TimeBlockService
public List<TimeBlock> applyHolidayPremiumEarnCode(String principalId, List<Assignment> timeAssignments, List<TimeBlock> timeBlockList)
applyHolidayPremiumEarnCode
in interface TimeBlockService
public List<TimeBlock> getIntersectingTimeBlocks(String principalId, org.joda.time.DateTime startTime, org.joda.time.DateTime endTime)
getIntersectingTimeBlocks
in interface TimeBlockService
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.