1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.clocklog.service;
17
18 import java.sql.Timestamp;
19 import java.util.List;
20
21 import org.kuali.hr.time.assignment.Assignment;
22 import org.kuali.hr.time.calendar.CalendarEntries;
23 import org.kuali.hr.time.clocklog.ClockLog;
24 import org.kuali.hr.time.timeblock.TimeBlock;
25 import org.kuali.hr.time.timesheet.TimesheetDocument;
26
27 public interface ClockLogService {
28
29
30
31
32 public void saveClockLog(ClockLog clockLog);
33
34
35
36
37
38 public ClockLog getLastClockLog(String principalId);
39
40
41
42
43
44
45
46 public ClockLog getLastClockLog(String principalId, String clockAction);
47
48
49
50
51
52
53
54
55
56
57 public ClockLog buildClockLog(Timestamp clockTimestamp, Timestamp originalTimestamp, Assignment assignment, TimesheetDocument timesheetDocument, String clockAction, String ip);
58
59
60
61
62
63
64 public List<ClockLog> getOpenClockLogs(CalendarEntries payCalendarEntry);
65
66
67
68
69
70
71
72
73
74
75
76
77
78 ClockLog processClockLog(Timestamp clockTimestamp, Assignment assignment, CalendarEntries pe, String ip, java.sql.Date asOfDate, TimesheetDocument td, String clockAction, String principalId);
79
80
81
82
83
84
85 public ClockLog getClockLog(String tkClockLogId);
86
87 ClockLog buildClockLog(Timestamp clockTimestamp, Timestamp originalTimestamp, Assignment assignment, TimesheetDocument timesheetDocument, String clockAction, String ip, String userPrincipalId);
88
89 ClockLog processClockLog(Timestamp clockTimeStamp, Assignment assignment, CalendarEntries pe, String ip, java.sql.Date asOfDate, TimesheetDocument td, String clockAction, String principalId, String userPrincipalId);
90
91
92
93
94
95
96 public List<String> getUnapprovedIPWarning(List<TimeBlock> timeBlocks);
97
98
99
100
101
102
103 public String buildUnapprovedIPWarning(ClockLog cl);
104 }