1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.tklm.time.workflow.service;
17
18 import java.util.List;
19
20 import org.joda.time.DateTime;
21 import org.kuali.kpme.tklm.time.workflow.TimesheetDocumentHeader;
22 import org.kuali.kpme.tklm.time.workflow.dao.TimesheetDocumentHeaderDao;
23
24 public class TimesheetDocumentHeaderServiceImpl implements TimesheetDocumentHeaderService {
25
26 private TimesheetDocumentHeaderDao documentHeaderDao;
27
28 public void setTimesheetDocumentHeaderDao(TimesheetDocumentHeaderDao documentHeaderDao) {
29 this.documentHeaderDao = documentHeaderDao;
30 }
31
32 @Override
33 public TimesheetDocumentHeader getDocumentHeader(String documentId) {
34 return documentHeaderDao.getTimesheetDocumentHeader(documentId);
35 }
36
37 @Override
38 public void saveOrUpdate(TimesheetDocumentHeader documentHeader) {
39 documentHeaderDao.saveOrUpdate(documentHeader);
40 }
41
42 @Override
43 public TimesheetDocumentHeader getDocumentHeader(String principalId, DateTime payBeginDate, DateTime payEndDate) {
44 return documentHeaderDao.getTimesheetDocumentHeader(principalId, payBeginDate, payEndDate);
45 }
46
47 public TimesheetDocumentHeader getPreviousDocumentHeader(String principalId, DateTime payBeginDate) {
48 return documentHeaderDao.getPreviousDocumentHeader(principalId, payBeginDate);
49 }
50
51 public TimesheetDocumentHeader getNextDocumentHeader(String principalId, DateTime payEndDate) {
52 return documentHeaderDao.getNextDocumentHeader(principalId, payEndDate);
53 }
54
55 @Override
56 public List<TimesheetDocumentHeader> getDocumentHeaders(DateTime payBeginDate, DateTime payEndDate) {
57 return documentHeaderDao.getDocumentHeaders(payBeginDate, payEndDate);
58 }
59
60 @Override
61 public void deleteTimesheetHeader(String documentId) {
62 documentHeaderDao.deleteTimesheetHeader(documentId);
63
64 }
65
66 @Override
67 public List<TimesheetDocumentHeader> getDocumentHeadersForPrincipalId(String principalId) {
68 return documentHeaderDao.getDocumentHeadersForPrincipalId(principalId);
69 }
70
71 public List<TimesheetDocumentHeader> getDocumentHeadersForYear(String principalId, String year) {
72 return documentHeaderDao.getDocumentHeadersForYear(principalId, year);
73 }
74
75 public TimesheetDocumentHeader getDocumentHeaderForDate(String principalId, DateTime asOfDate) {
76 return documentHeaderDao.getDocumentHeaderForDate(principalId, asOfDate);
77 }
78
79 }