001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class UserNotificationEventLocalServiceUtil {
035
040
041
048 public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
049 com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addUserNotificationEvent(userNotificationEvent);
052 }
053
054
060 public static com.liferay.portal.model.UserNotificationEvent createUserNotificationEvent(
061 long userNotificationEventId) {
062 return getService().createUserNotificationEvent(userNotificationEventId);
063 }
064
065
072 public static void deleteUserNotificationEvent(long userNotificationEventId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteUserNotificationEvent(userNotificationEventId);
076 }
077
078
084 public static void deleteUserNotificationEvent(
085 com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
086 throws com.liferay.portal.kernel.exception.SystemException {
087 getService().deleteUserNotificationEvent(userNotificationEvent);
088 }
089
090
097 @SuppressWarnings("rawtypes")
098 public static java.util.List dynamicQuery(
099 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().dynamicQuery(dynamicQuery);
102 }
103
104
117 @SuppressWarnings("rawtypes")
118 public static java.util.List dynamicQuery(
119 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120 int end) throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().dynamicQuery(dynamicQuery, start, end);
122 }
123
124
138 @SuppressWarnings("rawtypes")
139 public static java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException {
144 return getService()
145 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
146 }
147
148
155 public static long dynamicQueryCount(
156 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getService().dynamicQueryCount(dynamicQuery);
159 }
160
161 public static com.liferay.portal.model.UserNotificationEvent fetchUserNotificationEvent(
162 long userNotificationEventId)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().fetchUserNotificationEvent(userNotificationEventId);
165 }
166
167
175 public static com.liferay.portal.model.UserNotificationEvent getUserNotificationEvent(
176 long userNotificationEventId)
177 throws com.liferay.portal.kernel.exception.PortalException,
178 com.liferay.portal.kernel.exception.SystemException {
179 return getService().getUserNotificationEvent(userNotificationEventId);
180 }
181
182 public static com.liferay.portal.model.PersistedModel getPersistedModel(
183 java.io.Serializable primaryKeyObj)
184 throws com.liferay.portal.kernel.exception.PortalException,
185 com.liferay.portal.kernel.exception.SystemException {
186 return getService().getPersistedModel(primaryKeyObj);
187 }
188
189
201 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
202 int start, int end)
203 throws com.liferay.portal.kernel.exception.SystemException {
204 return getService().getUserNotificationEvents(start, end);
205 }
206
207
213 public static int getUserNotificationEventsCount()
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return getService().getUserNotificationEventsCount();
216 }
217
218
225 public static com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
226 com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getService().updateUserNotificationEvent(userNotificationEvent);
229 }
230
231
239 public static com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
240 com.liferay.portal.model.UserNotificationEvent userNotificationEvent,
241 boolean merge)
242 throws com.liferay.portal.kernel.exception.SystemException {
243 return getService()
244 .updateUserNotificationEvent(userNotificationEvent, merge);
245 }
246
247
252 public static java.lang.String getBeanIdentifier() {
253 return getService().getBeanIdentifier();
254 }
255
256
261 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
262 getService().setBeanIdentifier(beanIdentifier);
263 }
264
265 public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
266 long userId,
267 com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
268 throws com.liferay.portal.kernel.exception.PortalException,
269 com.liferay.portal.kernel.exception.SystemException {
270 return getService().addUserNotificationEvent(userId, notificationEvent);
271 }
272
273 public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
274 long userId, java.lang.String type, long timestamp, long deliverBy,
275 java.lang.String payload, boolean archived,
276 com.liferay.portal.service.ServiceContext serviceContext)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException {
279 return getService()
280 .addUserNotificationEvent(userId, type, timestamp,
281 deliverBy, payload, archived, serviceContext);
282 }
283
284 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> addUserNotificationEvents(
285 long userId,
286 java.util.Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
287 throws com.liferay.portal.kernel.exception.PortalException,
288 com.liferay.portal.kernel.exception.SystemException {
289 return getService().addUserNotificationEvents(userId, notificationEvents);
290 }
291
292 public static void deleteUserNotificationEvent(java.lang.String uuid)
293 throws com.liferay.portal.kernel.exception.SystemException {
294 getService().deleteUserNotificationEvent(uuid);
295 }
296
297 public static void deleteUserNotificationEvents(
298 java.util.Collection<java.lang.String> uuids)
299 throws com.liferay.portal.kernel.exception.SystemException {
300 getService().deleteUserNotificationEvents(uuids);
301 }
302
303 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
304 long userId) throws com.liferay.portal.kernel.exception.SystemException {
305 return getService().getUserNotificationEvents(userId);
306 }
307
308 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
309 long userId, boolean archived)
310 throws com.liferay.portal.kernel.exception.SystemException {
311 return getService().getUserNotificationEvents(userId, archived);
312 }
313
314 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
315 long userId, boolean archived, int start, int end)
316 throws com.liferay.portal.kernel.exception.SystemException {
317 return getService()
318 .getUserNotificationEvents(userId, archived, start, end);
319 }
320
321 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
322 long userId, int start, int end)
323 throws com.liferay.portal.kernel.exception.SystemException {
324 return getService().getUserNotificationEvents(userId, start, end);
325 }
326
327 public static int getUserNotificationEventsCount(long userId)
328 throws com.liferay.portal.kernel.exception.SystemException {
329 return getService().getUserNotificationEventsCount(userId);
330 }
331
332 public static int getUserNotificationEventsCount(long userId,
333 boolean archived)
334 throws com.liferay.portal.kernel.exception.SystemException {
335 return getService().getUserNotificationEventsCount(userId, archived);
336 }
337
338 public static com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
339 java.lang.String uuid, boolean archive)
340 throws com.liferay.portal.kernel.exception.SystemException {
341 return getService().updateUserNotificationEvent(uuid, archive);
342 }
343
344 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> updateUserNotificationEvents(
345 java.util.Collection<java.lang.String> uuids, boolean archive)
346 throws com.liferay.portal.kernel.exception.SystemException {
347 return getService().updateUserNotificationEvents(uuids, archive);
348 }
349
350 public static UserNotificationEventLocalService getService() {
351 if (_service == null) {
352 _service = (UserNotificationEventLocalService)PortalBeanLocatorUtil.locate(UserNotificationEventLocalService.class.getName());
353
354 ReferenceRegistry.registerReference(UserNotificationEventLocalServiceUtil.class,
355 "_service");
356 MethodCache.remove(UserNotificationEventLocalService.class);
357 }
358
359 return _service;
360 }
361
362 public void setService(UserNotificationEventLocalService service) {
363 MethodCache.remove(UserNotificationEventLocalService.class);
364
365 _service = service;
366
367 ReferenceRegistry.registerReference(UserNotificationEventLocalServiceUtil.class,
368 "_service");
369 MethodCache.remove(UserNotificationEventLocalService.class);
370 }
371
372 private static UserNotificationEventLocalService _service;
373 }