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 ClockLog 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
70
71 ClockLog processClockLog(Timestamp clockTimestamp, Assignment assignment, CalendarEntries pe, String ip, java.sql.Date asOfDate, TimesheetDocument td, String clockAction, boolean runRules, String principalId);
72
73
74
75
76
77
78 public ClockLog getClockLog(String tkClockLogId);
79
80 ClockLog processClockLog(Timestamp clockTimeStamp, Assignment assignment, CalendarEntries pe, String ip, java.sql.Date asOfDate, TimesheetDocument td, String clockAction, boolean runRules, String principalId, String userPrincipalId);
81
82 public void deleteClockLogsForDocumentId(String documentId);
83
84
85
86
87
88
89 public List<String> getUnapprovedIPWarning(List<TimeBlock> timeBlocks);
90
91
92
93
94
95
96 public String buildUnapprovedIPWarning(ClockLog cl);
97 }