public class ShiftDifferentialRuleServiceImpl extends Object implements ShiftDifferentialRuleService
Constructor and Description |
---|
ShiftDifferentialRuleServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addPremiumTimeHourDetail(TimeBlock.Builder block,
BigDecimal hours,
String earnCode) |
protected void |
addToMap(Map<String,Set<String>> map,
String docId,
String timeBlockId) |
protected boolean |
computeAndApplyPremium(TimeBlock.Builder timeBlock,
List<ShiftBlock> shiftBlocks,
ShiftCalendarInterval shiftCalendarInterval) |
List<ShiftDifferentialRule> |
getShiftDifferentalRules(String location,
String hrSalGroup,
String payGrade,
String pyCalendarGroup,
org.joda.time.LocalDate asOfDate)
Fetch a given ShiftDifferentialRule based on criteria passed in
|
ShiftDifferentialRule |
getShiftDifferentialRule(String tkShiftDifferentialRuleId)
Fetch a ShiftDifferentialRule object for a given id
|
List<ShiftDifferentialRule> |
getShiftDifferentialRules(String userPrincipalId,
String location,
String hrSalGroup,
String payGrade,
org.joda.time.LocalDate fromEffdt,
org.joda.time.LocalDate toEffdt,
String active,
String showHist) |
protected TimeBlock |
getTimeBlockKey(TimeBlock.Builder tb) |
List<TimeBlock> |
getTimeblocksOverlappingTimesheetShift(TimesheetDocument timesheetDocument) |
protected List<TimeBlock> |
getTimeBlocksWithIds(List<List<TimeBlock>> timeBlocks,
Set<String> timeBlockIds) |
protected boolean |
isPreviousTimesheet(TimeBlock.Builder timeBlock,
TimesheetDocument timesheetDocument) |
protected List<List<TimeBlock>> |
processShift(TimesheetDocument timesheetDocument,
List<List<TimeBlock>> blockDays,
boolean allowPriorPayPeriodChange) |
void |
processShiftDifferentialRules(TimesheetDocument timesheetDocument,
TkTimeBlockAggregate aggregate)
Process a given TkTimeBlockAggregate with appropriate shift differential rules
|
List<List<TimeBlock>> |
processShiftDifferentialRulesForTimeBlocks(TimesheetDocument timesheetDocument,
List<TimeBlock> timeBlocks,
List<LeaveBlock> leaveBlocks,
boolean modifyPrevious) |
void |
saveOrUpdate(List<ShiftDifferentialRule> shiftDifferentialRules)
Save or Update List of ShiftDifferentialRule objects
|
void |
saveOrUpdate(ShiftDifferentialRule shiftDifferentialRule)
Save or Update a ShiftDifferentialRule object
|
protected void |
sendFYIForPreviousTimeSheets(Map<String,Set<String>> previousDocIdChanges,
List<List<TimeBlock>> shiftedBlockDays) |
protected void |
sendShiftFYI(String docId) |
void |
setShiftDifferentialRuleDao(ShiftDifferentialRuleDao shiftDifferentialRuleDao) |
public ShiftDifferentialRuleServiceImpl()
public List<TimeBlock> getTimeblocksOverlappingTimesheetShift(TimesheetDocument timesheetDocument)
getTimeblocksOverlappingTimesheetShift
in interface ShiftDifferentialRuleService
public void processShiftDifferentialRules(TimesheetDocument timesheetDocument, TkTimeBlockAggregate aggregate)
ShiftDifferentialRuleService
processShiftDifferentialRules
in interface ShiftDifferentialRuleService
public List<List<TimeBlock>> processShiftDifferentialRulesForTimeBlocks(TimesheetDocument timesheetDocument, List<TimeBlock> timeBlocks, List<LeaveBlock> leaveBlocks, boolean modifyPrevious)
protected List<List<TimeBlock>> processShift(TimesheetDocument timesheetDocument, List<List<TimeBlock>> blockDays, boolean allowPriorPayPeriodChange)
protected TimeBlock getTimeBlockKey(TimeBlock.Builder tb)
protected boolean isPreviousTimesheet(TimeBlock.Builder timeBlock, TimesheetDocument timesheetDocument)
protected boolean computeAndApplyPremium(TimeBlock.Builder timeBlock, List<ShiftBlock> shiftBlocks, ShiftCalendarInterval shiftCalendarInterval)
public List<ShiftDifferentialRule> getShiftDifferentialRules(String userPrincipalId, String location, String hrSalGroup, String payGrade, org.joda.time.LocalDate fromEffdt, org.joda.time.LocalDate toEffdt, String active, String showHist)
getShiftDifferentialRules
in interface ShiftDifferentialRuleService
protected void addPremiumTimeHourDetail(TimeBlock.Builder block, BigDecimal hours, String earnCode)
public void setShiftDifferentialRuleDao(ShiftDifferentialRuleDao shiftDifferentialRuleDao)
public ShiftDifferentialRule getShiftDifferentialRule(String tkShiftDifferentialRuleId)
ShiftDifferentialRuleService
getShiftDifferentialRule
in interface ShiftDifferentialRuleService
public List<ShiftDifferentialRule> getShiftDifferentalRules(String location, String hrSalGroup, String payGrade, String pyCalendarGroup, org.joda.time.LocalDate asOfDate)
ShiftDifferentialRuleService
getShiftDifferentalRules
in interface ShiftDifferentialRuleService
public void saveOrUpdate(List<ShiftDifferentialRule> shiftDifferentialRules)
ShiftDifferentialRuleService
saveOrUpdate
in interface ShiftDifferentialRuleService
public void saveOrUpdate(ShiftDifferentialRule shiftDifferentialRule)
ShiftDifferentialRuleService
saveOrUpdate
in interface ShiftDifferentialRuleService
protected void sendFYIForPreviousTimeSheets(Map<String,Set<String>> previousDocIdChanges, List<List<TimeBlock>> shiftedBlockDays)
protected List<TimeBlock> getTimeBlocksWithIds(List<List<TimeBlock>> timeBlocks, Set<String> timeBlockIds)
protected void sendShiftFYI(String docId)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.