1
19
20 package com.liferay.portlet.announcements.service;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Propagation;
25 import com.liferay.portal.kernel.annotation.Transactional;
26
27
51 @Transactional(rollbackFor = {
52 PortalException.class, SystemException.class})
53 public interface AnnouncementsDeliveryLocalService {
54 public com.liferay.portlet.announcements.model.AnnouncementsDelivery addAnnouncementsDelivery(
55 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery)
56 throws com.liferay.portal.SystemException;
57
58 public com.liferay.portlet.announcements.model.AnnouncementsDelivery createAnnouncementsDelivery(
59 long deliveryId);
60
61 public void deleteAnnouncementsDelivery(long deliveryId)
62 throws com.liferay.portal.SystemException,
63 com.liferay.portal.PortalException;
64
65 public void deleteAnnouncementsDelivery(
66 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery)
67 throws com.liferay.portal.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portlet.announcements.model.AnnouncementsDelivery getAnnouncementsDelivery(
79 long deliveryId)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portal.PortalException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> getAnnouncementsDeliveries(
85 int start, int end) throws com.liferay.portal.SystemException;
86
87 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88 public int getAnnouncementsDeliveriesCount()
89 throws com.liferay.portal.SystemException;
90
91 public com.liferay.portlet.announcements.model.AnnouncementsDelivery updateAnnouncementsDelivery(
92 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery)
93 throws com.liferay.portal.SystemException;
94
95 public void deleteDeliveries(long userId)
96 throws com.liferay.portal.SystemException;
97
98 public void deleteDelivery(long deliveryId)
99 throws com.liferay.portal.PortalException,
100 com.liferay.portal.SystemException;
101
102 public void deleteDelivery(long userId, java.lang.String type)
103 throws com.liferay.portal.SystemException;
104
105 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
106 public com.liferay.portlet.announcements.model.AnnouncementsDelivery getDelivery(
107 long deliveryId)
108 throws com.liferay.portal.PortalException,
109 com.liferay.portal.SystemException;
110
111 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> getUserDeliveries(
112 long userId)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException;
115
116 public com.liferay.portlet.announcements.model.AnnouncementsDelivery getUserDelivery(
117 long userId, java.lang.String type)
118 throws com.liferay.portal.PortalException,
119 com.liferay.portal.SystemException;
120
121 public com.liferay.portlet.announcements.model.AnnouncementsDelivery updateDelivery(
122 long userId, java.lang.String type, boolean email, boolean sms,
123 boolean website)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException;
126 }