1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.mobility.notification.service; |
17 | |
|
18 | |
import java.util.Date; |
19 | |
import java.util.List; |
20 | |
|
21 | |
import org.kuali.mobility.notification.dao.NotificationDao; |
22 | |
import org.kuali.mobility.notification.entity.Notification; |
23 | |
import org.kuali.mobility.notification.entity.UserNotification; |
24 | |
import org.springframework.beans.factory.annotation.Autowired; |
25 | |
import org.springframework.stereotype.Service; |
26 | |
import org.springframework.transaction.annotation.Transactional; |
27 | |
|
28 | |
@Service |
29 | 0 | public class NotificationServiceImpl implements NotificationService { |
30 | |
|
31 | |
@Autowired |
32 | |
private NotificationDao notificationDao; |
33 | |
|
34 | |
@Override |
35 | |
@Transactional |
36 | |
public Notification findNotificationById(Long id) { |
37 | 0 | return notificationDao.findNotificationById(id); |
38 | |
} |
39 | |
|
40 | |
@Override |
41 | |
@Transactional |
42 | |
public List<Notification> findAllNotifications() { |
43 | 0 | return notificationDao.findAllNotifications(); |
44 | |
} |
45 | |
|
46 | |
@Override |
47 | |
@Transactional |
48 | |
public List<Notification> findAllValidNotifications(Date date) { |
49 | 0 | return notificationDao.findAllValidNotifications(date); |
50 | |
} |
51 | |
|
52 | |
@Override |
53 | |
@Transactional |
54 | |
public Long saveNotification(Notification notification) { |
55 | 0 | return notificationDao.saveNotification(notification); |
56 | |
} |
57 | |
|
58 | |
@Override |
59 | |
@Transactional |
60 | |
public void deleteNotificationById(Long id) { |
61 | 0 | notificationDao.deleteNotificationById(id); |
62 | 0 | } |
63 | |
|
64 | |
@Override |
65 | |
@Transactional |
66 | |
public UserNotification findUserNotificationById(Long id) { |
67 | 0 | return notificationDao.findUserNotificationById(id); |
68 | |
} |
69 | |
|
70 | |
@Override |
71 | |
@Transactional |
72 | |
public UserNotification findUserNotificationByNotificationId(Long id) { |
73 | 0 | return notificationDao.findUserNotificationByNotificationId(id); |
74 | |
} |
75 | |
|
76 | |
@Override |
77 | |
@Transactional |
78 | |
public Long saveUserNotification(UserNotification userNotification) { |
79 | 0 | return notificationDao.saveUserNotification(userNotification); |
80 | |
} |
81 | |
|
82 | |
@Override |
83 | |
@Transactional |
84 | |
public void deleteUserNotificationById(Long id) { |
85 | 0 | notificationDao.deleteUserNotificationById(id); |
86 | 0 | } |
87 | |
|
88 | |
@Override |
89 | |
@Transactional |
90 | |
public List<UserNotification> findAllUserNotificationsByDeviceId(String id) { |
91 | 0 | return findAllUserNotificationsByDeviceId(id); |
92 | |
} |
93 | |
|
94 | |
@Override |
95 | |
@Transactional |
96 | |
public List<UserNotification> findAllUserNotificationsByPersonId(Long id) { |
97 | 0 | return findAllUserNotificationsByPersonId(id); |
98 | |
} |
99 | |
|
100 | |
} |