1
14
15 package com.liferay.portlet.announcements.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class AnnouncementsDeliveryLocalServiceUtil {
42 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery addAnnouncementsDelivery(
43 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery)
44 throws com.liferay.portal.SystemException {
45 return getService().addAnnouncementsDelivery(announcementsDelivery);
46 }
47
48 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery createAnnouncementsDelivery(
49 long deliveryId) {
50 return getService().createAnnouncementsDelivery(deliveryId);
51 }
52
53 public static void deleteAnnouncementsDelivery(long deliveryId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deleteAnnouncementsDelivery(deliveryId);
57 }
58
59 public static void deleteAnnouncementsDelivery(
60 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery)
61 throws com.liferay.portal.SystemException {
62 getService().deleteAnnouncementsDelivery(announcementsDelivery);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery getAnnouncementsDelivery(
96 long deliveryId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getAnnouncementsDelivery(deliveryId);
100 }
101
102 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> getAnnouncementsDeliveries(
103 int start, int end) throws com.liferay.portal.SystemException {
104 return getService().getAnnouncementsDeliveries(start, end);
105 }
106
107 public static int getAnnouncementsDeliveriesCount()
108 throws com.liferay.portal.SystemException {
109 return getService().getAnnouncementsDeliveriesCount();
110 }
111
112 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery updateAnnouncementsDelivery(
113 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery)
114 throws com.liferay.portal.SystemException {
115 return getService().updateAnnouncementsDelivery(announcementsDelivery);
116 }
117
118 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery updateAnnouncementsDelivery(
119 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery,
120 boolean merge) throws com.liferay.portal.SystemException {
121 return getService()
122 .updateAnnouncementsDelivery(announcementsDelivery, merge);
123 }
124
125 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery addUserDelivery(
126 long userId, java.lang.String type)
127 throws com.liferay.portal.PortalException,
128 com.liferay.portal.SystemException {
129 return getService().addUserDelivery(userId, type);
130 }
131
132 public static void deleteDeliveries(long userId)
133 throws com.liferay.portal.SystemException {
134 getService().deleteDeliveries(userId);
135 }
136
137 public static void deleteDelivery(long deliveryId)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException {
140 getService().deleteDelivery(deliveryId);
141 }
142
143 public static void deleteDelivery(long userId, java.lang.String type)
144 throws com.liferay.portal.SystemException {
145 getService().deleteDelivery(userId, type);
146 }
147
148 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery getDelivery(
149 long deliveryId)
150 throws com.liferay.portal.PortalException,
151 com.liferay.portal.SystemException {
152 return getService().getDelivery(deliveryId);
153 }
154
155 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> getUserDeliveries(
156 long userId)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException {
159 return getService().getUserDeliveries(userId);
160 }
161
162 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery getUserDelivery(
163 long userId, java.lang.String type)
164 throws com.liferay.portal.PortalException,
165 com.liferay.portal.SystemException {
166 return getService().getUserDelivery(userId, type);
167 }
168
169 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery updateDelivery(
170 long userId, java.lang.String type, boolean email, boolean sms,
171 boolean website)
172 throws com.liferay.portal.PortalException,
173 com.liferay.portal.SystemException {
174 return getService().updateDelivery(userId, type, email, sms, website);
175 }
176
177 public static AnnouncementsDeliveryLocalService getService() {
178 if (_service == null) {
179 _service = (AnnouncementsDeliveryLocalService)PortalBeanLocatorUtil.locate(AnnouncementsDeliveryLocalService.class.getName());
180
181 ReferenceRegistry.registerReference(AnnouncementsDeliveryLocalServiceUtil.class,
182 "_service");
183 MethodCache.remove(AnnouncementsDeliveryLocalService.class);
184 }
185
186 return _service;
187 }
188
189 public void setService(AnnouncementsDeliveryLocalService service) {
190 MethodCache.remove(AnnouncementsDeliveryLocalService.class);
191
192 _service = service;
193
194 ReferenceRegistry.registerReference(AnnouncementsDeliveryLocalServiceUtil.class,
195 "_service");
196 MethodCache.remove(AnnouncementsDeliveryLocalService.class);
197 }
198
199 private static AnnouncementsDeliveryLocalService _service;
200 }