1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.timesheet.service;
17
18 import java.util.Date;
19 import java.util.List;
20
21 import org.kuali.hr.time.calendar.CalendarEntries;
22 import org.kuali.hr.time.timeblock.TimeBlock;
23 import org.kuali.hr.time.timesheet.TimesheetDocument;
24 import org.kuali.rice.kew.api.exception.WorkflowException;
25
26 public interface TimesheetService {
27
28
29
30
31
32
33
34 public TimesheetDocument openTimesheetDocument(String principalId, CalendarEntries payCalendarDates) throws WorkflowException;
35
36
37
38
39
40 public void routeTimesheet(String principalId, TimesheetDocument timesheetDocument);
41
42 public void approveTimesheet(String principalId, TimesheetDocument timesheetDocument);
43
44 public void disapproveTimesheet(String principalId, TimesheetDocument timesheetDocument);
45
46
47
48
49
50
51
52
53
54 public TimesheetDocument getTimesheetDocument(String documentId);
55
56
57
58
59 public boolean isSynchronousUser();
60
61
62
63
64
65
66 public List<TimeBlock> getPrevDocumentTimeBlocks(String principalId, Date payBeginDate);
67
68
69
70
71
72
73
74 public void loadHolidaysOnTimesheet(TimesheetDocument timesheetDocument, String principalId, Date beginDate, Date endDate);
75
76
77
78
79 public void deleteTimesheet(String documentId);
80
81 public void resetTimeBlock(List<TimeBlock> timeBlock);
82
83 void approveTimesheet(String principalId, TimesheetDocument timesheetDocument, String action);
84
85 void routeTimesheet(String principalId, TimesheetDocument timesheetDocument, String action);
86 public boolean isReadyToApprove(TimesheetDocument document);
87 }