1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.tklm.leave.timeoff.service;
17
18 import java.math.BigDecimal;
19 import java.util.List;
20
21 import org.joda.time.LocalDate;
22 import org.kuali.kpme.core.assignment.Assignment;
23 import org.kuali.kpme.core.job.Job;
24 import org.kuali.kpme.tklm.leave.timeoff.SystemScheduledTimeOff;
25 import org.kuali.kpme.tklm.time.timesheet.TimesheetDocument;
26 import org.springframework.cache.annotation.Cacheable;
27
28 public interface SystemScheduledTimeOffService {
29
30
31
32
33
34
35 @Cacheable(value= SystemScheduledTimeOff.CACHE_NAME, key="'lmSystemScheduledTimeOffId=' + #p0")
36 public SystemScheduledTimeOff getSystemScheduledTimeOff(String lmSystemScheduledTimeOffId);
37
38 public List<SystemScheduledTimeOff> getSystemScheduledTimeOffForPayPeriod(
39 String leavePlan, LocalDate startDate, LocalDate endDate);
40
41 public SystemScheduledTimeOff getSystemScheduledTimeOffByDate(String leavePlan, LocalDate startDate);
42
43 Assignment getAssignmentToApplyHolidays(
44 TimesheetDocument timesheetDocument, LocalDate payEndDate);
45
46
47
48
49
50
51
52 public BigDecimal calculateSysSchTimeOffHours(Job job, BigDecimal sstoHours);
53
54 List<SystemScheduledTimeOff> getSystemScheduledTimeOffs(String userPrincipalId, LocalDate fromEffdt, LocalDate toEffdt, String earnCode, LocalDate fromAccruedDate, LocalDate toAccruedDate,
55 LocalDate fromSchTimeOffDate, LocalDate toSchTimeOffDate, String active, String showHist);
56
57
58
59
60
61
62
63
64
65 public List<SystemScheduledTimeOff> getSystemScheduledTimeOffsForLeavePlan(LocalDate fromAccruedDate,LocalDate toAccruedDate, String leavePlan);
66
67
68
69
70
71
72
73 public String getSSTODescriptionForDate(String leavePlan, LocalDate localDate);
74 }