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 getLastClockLog(String principalId, String jobNumber, String workArea, String task, CalendarEntries calendarEntry);
58
59
60
61
62
63
64
65
66
67
68
69 public ClockLog buildClockLog(Timestamp clockTimestamp, Timestamp originalTimestamp, Assignment assignment, TimesheetDocument timesheetDocument, String clockAction, String ip);
70
71
72
73
74
75
76
77
78
79
80
81
82
83 ClockLog processClockLog(Timestamp clockTimestamp, Assignment assignment, CalendarEntries pe, String ip, java.sql.Date asOfDate, TimesheetDocument td, String clockAction, String principalId);
84
85
86
87
88
89
90 public ClockLog getClockLog(String tkClockLogId);
91
92 ClockLog buildClockLog(Timestamp clockTimestamp, Timestamp originalTimestamp, Assignment assignment, TimesheetDocument timesheetDocument, String clockAction, String ip, String userPrincipalId);
93
94 ClockLog processClockLog(Timestamp clockTimeStamp, Assignment assignment, CalendarEntries pe, String ip, java.sql.Date asOfDate, TimesheetDocument td, String clockAction, String principalId, String userPrincipalId);
95
96
97
98
99
100
101 public List<String> getUnapprovedIPWarning(List<TimeBlock> timeBlocks);
102
103
104
105
106
107
108 public String buildUnapprovedIPWarning(ClockLog cl);
109 }