|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TimeBlockService
Method Summary | |
---|---|
List<TimeBlock> |
buildTimeBlocks(Assignment assignment,
String earnCode,
TimesheetDocument timesheetDocument,
Timestamp beginTimestamp,
Timestamp endTimestamp,
BigDecimal hours,
BigDecimal amount,
Boolean isClockLogCreated,
Boolean isLunchDeleted)
Build a TimeBlock with the given criteria |
List<TimeBlock> |
buildTimeBlocksSpanDates(Assignment assignment,
String earnCode,
TimesheetDocument timesheetDocument,
Timestamp beginTimestamp,
Timestamp endTimestamp,
BigDecimal hours,
BigDecimal amount,
Boolean isClockLogCreated,
Boolean isLunchDeleted,
String spanningWeeks)
Build a List of TimeBlocks over a span of multiple days |
TimeBlock |
createTimeBlock(TimesheetDocument timesheetDocument,
Timestamp beginTime,
Timestamp endTime,
Assignment assignment,
String earnCode,
BigDecimal hours,
BigDecimal amount,
Boolean isClockLogCreated,
Boolean isLunchDeleted)
Create a TimeBlock for the given criteria |
List<TimeBlockHistory> |
createTimeBlockHistories(TimeBlock tb,
String actionHistory)
|
void |
deleteLunchDeduction(String tkTimeHourDetailId)
|
void |
deleteTimeBlock(TimeBlock timeBlock)
Delete a given TimeBlock |
void |
deleteTimeBlocksAssociatedWithDocumentId(String documentId)
|
List<TimeBlock> |
getLatestEndTimestamp()
|
List<TimeBlock> |
getOvernightTimeBlocks(String clockLogEndId)
Get overnight timeblocks by the clock log begin id |
TimeBlock |
getTimeBlock(String timeBlockId)
Fetch a TimeBlock by a given ID |
List<TimeBlock> |
getTimeBlocks()
|
List<TimeBlock> |
getTimeBlocks(String documentId)
Get the List of TimeBlock of a given document id |
List<TimeBlock> |
getTimeBlocksForAssignment(Assignment assign)
Get the List of TimeBlock of a given Assignment |
List<TimeBlock> |
getTimeBlocksForClockLogBeginId(String tkClockLogId)
|
List<TimeBlock> |
getTimeBlocksForClockLogEndId(String tkClockLogId)
|
List<TimeBlock> |
getTimeBlocksWithEarnCode(String earnCode,
Date effDate)
|
Boolean |
isTimeBlockEditable(TimeBlock tb)
|
void |
resetTimeHourDetail(List<TimeBlock> origTimeBlocks)
Reset the TimeHourDetail object associated with the TimeBlock object on a List of TimeBlocks |
void |
saveTimeBlocks(List<TimeBlock> tbList)
Save a list of new TimeBlocks |
void |
saveTimeBlocks(List<TimeBlock> oldTimeBlocks,
List<TimeBlock> newTimeBlocks)
Save a list of new TimeBlocks does a comparison for the old versus the new and only saves changed/new/deleted TimeBlocks |
void |
updateTimeBlock(TimeBlock tb)
|
Method Detail |
---|
TimeBlock getTimeBlock(String timeBlockId)
timeBlockId
-
void deleteTimeBlock(TimeBlock timeBlock)
timeBlock
- List<TimeBlock> buildTimeBlocks(Assignment assignment, String earnCode, TimesheetDocument timesheetDocument, Timestamp beginTimestamp, Timestamp endTimestamp, BigDecimal hours, BigDecimal amount, Boolean isClockLogCreated, Boolean isLunchDeleted)
assignment
- earnCode
- timesheetDocument
- beginTimestamp
- endTimestamp
- hours
- amount
- isClockLogCreated
- isLunchDeleted
-
void saveTimeBlocks(List<TimeBlock> oldTimeBlocks, List<TimeBlock> newTimeBlocks)
oldTimeBlocks
- newTimeBlocks
- void saveTimeBlocks(List<TimeBlock> tbList)
tbList
- void resetTimeHourDetail(List<TimeBlock> origTimeBlocks)
origTimeBlocks
- List<TimeBlock> getTimeBlocks(String documentId)
documentId
-
List<TimeBlock> getTimeBlocksForAssignment(Assignment assign)
assign
-
List<TimeBlock> buildTimeBlocksSpanDates(Assignment assignment, String earnCode, TimesheetDocument timesheetDocument, Timestamp beginTimestamp, Timestamp endTimestamp, BigDecimal hours, BigDecimal amount, Boolean isClockLogCreated, Boolean isLunchDeleted, String spanningWeeks)
assignment
- earnCode
- timesheetDocument
- beginTimestamp
- endTimestamp
- hours
- amount
- isClockLogCreated
- isLunchDeleted
- spanningWeeks
-
TimeBlock createTimeBlock(TimesheetDocument timesheetDocument, Timestamp beginTime, Timestamp endTime, Assignment assignment, String earnCode, BigDecimal hours, BigDecimal amount, Boolean isClockLogCreated, Boolean isLunchDeleted)
timesheetDocument
- beginTime
- endTime
- assignment
- earnCode
- hours
- amount
- isClockLogCreated
- isLunchDeleted
-
void deleteTimeBlocksAssociatedWithDocumentId(String documentId)
Boolean isTimeBlockEditable(TimeBlock tb)
List<TimeBlock> getTimeBlocksForClockLogEndId(String tkClockLogId)
List<TimeBlock> getTimeBlocksForClockLogBeginId(String tkClockLogId)
List<TimeBlock> getTimeBlocks()
List<TimeBlock> getLatestEndTimestamp()
List<TimeBlock> getOvernightTimeBlocks(String clockLogEndId)
clockLogEndId
-
void updateTimeBlock(TimeBlock tb)
List<TimeBlockHistory> createTimeBlockHistories(TimeBlock tb, String actionHistory)
void deleteLunchDeduction(String tkTimeHourDetailId)
List<TimeBlock> getTimeBlocksWithEarnCode(String earnCode, Date effDate)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |