001
014
015 package com.liferay.portal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class UserNotificationEventLocalServiceUtil {
038
043 public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
044 long userId, boolean actionRequired,
045 com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
046 throws com.liferay.portal.kernel.exception.PortalException {
047 return getService()
048 .addUserNotificationEvent(userId, actionRequired,
049 notificationEvent);
050 }
051
052 public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
053 long userId,
054 com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
055 throws com.liferay.portal.kernel.exception.PortalException {
056 return getService().addUserNotificationEvent(userId, notificationEvent);
057 }
058
059
063 @Deprecated
064 public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
065 long userId, java.lang.String type, long timestamp, long deliverBy,
066 java.lang.String payload, boolean archived,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws com.liferay.portal.kernel.exception.PortalException {
069 return getService()
070 .addUserNotificationEvent(userId, type, timestamp,
071 deliverBy, payload, archived, serviceContext);
072 }
073
074 public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
075 long userId, java.lang.String type, long timestamp, int deliveryType,
076 long deliverBy, java.lang.String payload, boolean actionRequired,
077 boolean archived,
078 com.liferay.portal.service.ServiceContext serviceContext)
079 throws com.liferay.portal.kernel.exception.PortalException {
080 return getService()
081 .addUserNotificationEvent(userId, type, timestamp,
082 deliveryType, deliverBy, payload, actionRequired, archived,
083 serviceContext);
084 }
085
086 public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
087 long userId, java.lang.String type, long timestamp, int deliveryType,
088 long deliverBy, java.lang.String payload, boolean archived,
089 com.liferay.portal.service.ServiceContext serviceContext)
090 throws com.liferay.portal.kernel.exception.PortalException {
091 return getService()
092 .addUserNotificationEvent(userId, type, timestamp,
093 deliveryType, deliverBy, payload, archived, serviceContext);
094 }
095
096
102 public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
103 com.liferay.portal.model.UserNotificationEvent userNotificationEvent) {
104 return getService().addUserNotificationEvent(userNotificationEvent);
105 }
106
107 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> addUserNotificationEvents(
108 long userId,
109 java.util.Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
110 throws com.liferay.portal.kernel.exception.PortalException {
111 return getService().addUserNotificationEvents(userId, notificationEvents);
112 }
113
114
120 public static com.liferay.portal.model.UserNotificationEvent createUserNotificationEvent(
121 long userNotificationEventId) {
122 return getService().createUserNotificationEvent(userNotificationEventId);
123 }
124
125
128 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
129 com.liferay.portal.model.PersistedModel persistedModel)
130 throws com.liferay.portal.kernel.exception.PortalException {
131 return getService().deletePersistedModel(persistedModel);
132 }
133
134
140 public static com.liferay.portal.model.UserNotificationEvent deleteUserNotificationEvent(
141 com.liferay.portal.model.UserNotificationEvent userNotificationEvent) {
142 return getService().deleteUserNotificationEvent(userNotificationEvent);
143 }
144
145
152 public static com.liferay.portal.model.UserNotificationEvent deleteUserNotificationEvent(
153 long userNotificationEventId)
154 throws com.liferay.portal.kernel.exception.PortalException {
155 return getService().deleteUserNotificationEvent(userNotificationEventId);
156 }
157
158 public static void deleteUserNotificationEvent(java.lang.String uuid,
159 long companyId) {
160 getService().deleteUserNotificationEvent(uuid, companyId);
161 }
162
163 public static void deleteUserNotificationEvents(
164 java.util.Collection<java.lang.String> uuids, long companyId) {
165 getService().deleteUserNotificationEvents(uuids, companyId);
166 }
167
168 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
169 return getService().dynamicQuery();
170 }
171
172
178 public static <T> java.util.List<T> dynamicQuery(
179 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
180 return getService().dynamicQuery(dynamicQuery);
181 }
182
183
195 public static <T> java.util.List<T> dynamicQuery(
196 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
197 int end) {
198 return getService().dynamicQuery(dynamicQuery, start, end);
199 }
200
201
214 public static <T> java.util.List<T> dynamicQuery(
215 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
216 int end,
217 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
218 return getService()
219 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
220 }
221
222
228 public static long dynamicQueryCount(
229 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
230 return getService().dynamicQueryCount(dynamicQuery);
231 }
232
233
240 public static long dynamicQueryCount(
241 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
242 com.liferay.portal.kernel.dao.orm.Projection projection) {
243 return getService().dynamicQueryCount(dynamicQuery, projection);
244 }
245
246 public static com.liferay.portal.model.UserNotificationEvent fetchUserNotificationEvent(
247 long userNotificationEventId) {
248 return getService().fetchUserNotificationEvent(userNotificationEventId);
249 }
250
251
258 public static com.liferay.portal.model.UserNotificationEvent fetchUserNotificationEventByUuidAndCompanyId(
259 java.lang.String uuid, long companyId) {
260 return getService()
261 .fetchUserNotificationEventByUuidAndCompanyId(uuid, companyId);
262 }
263
264 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
265 return getService().getActionableDynamicQuery();
266 }
267
268 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
269 long userId, boolean actionRequired, boolean archived) {
270 return getService()
271 .getArchivedUserNotificationEvents(userId, actionRequired,
272 archived);
273 }
274
275 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
276 long userId, boolean actionRequired, boolean archived, int start,
277 int end) {
278 return getService()
279 .getArchivedUserNotificationEvents(userId, actionRequired,
280 archived, start, end);
281 }
282
283 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
284 long userId, boolean archived) {
285 return getService().getArchivedUserNotificationEvents(userId, archived);
286 }
287
288 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
289 long userId, boolean archived, int start, int end) {
290 return getService()
291 .getArchivedUserNotificationEvents(userId, archived, start,
292 end);
293 }
294
295 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
296 long userId, int deliveryType, boolean actionRequired, boolean archived) {
297 return getService()
298 .getArchivedUserNotificationEvents(userId, deliveryType,
299 actionRequired, archived);
300 }
301
302 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
303 long userId, int deliveryType, boolean actionRequired,
304 boolean archived, int start, int end) {
305 return getService()
306 .getArchivedUserNotificationEvents(userId, deliveryType,
307 actionRequired, archived, start, end);
308 }
309
310 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
311 long userId, int deliveryType, boolean archived) {
312 return getService()
313 .getArchivedUserNotificationEvents(userId, deliveryType,
314 archived);
315 }
316
317 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
318 long userId, int deliveryType, boolean archived, int start, int end) {
319 return getService()
320 .getArchivedUserNotificationEvents(userId, deliveryType,
321 archived, start, end);
322 }
323
324 public static int getArchivedUserNotificationEventsCount(long userId,
325 boolean actionRequired, boolean archived) {
326 return getService()
327 .getArchivedUserNotificationEventsCount(userId,
328 actionRequired, archived);
329 }
330
331 public static int getArchivedUserNotificationEventsCount(long userId,
332 boolean archived) {
333 return getService()
334 .getArchivedUserNotificationEventsCount(userId, archived);
335 }
336
337 public static int getArchivedUserNotificationEventsCount(long userId,
338 int deliveryType, boolean actionRequired, boolean archived) {
339 return getService()
340 .getArchivedUserNotificationEventsCount(userId,
341 deliveryType, actionRequired, archived);
342 }
343
344 public static int getArchivedUserNotificationEventsCount(long userId,
345 int deliveryType, boolean archived) {
346 return getService()
347 .getArchivedUserNotificationEventsCount(userId,
348 deliveryType, archived);
349 }
350
351 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
352 long userId, boolean delivered) {
353 return getService().getDeliveredUserNotificationEvents(userId, delivered);
354 }
355
356 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
357 long userId, boolean delivered, boolean actionRequired) {
358 return getService()
359 .getDeliveredUserNotificationEvents(userId, delivered,
360 actionRequired);
361 }
362
363 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
364 long userId, boolean delivered, boolean actionRequired, int start,
365 int end) {
366 return getService()
367 .getDeliveredUserNotificationEvents(userId, delivered,
368 actionRequired, start, end);
369 }
370
371 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
372 long userId, boolean delivered, int start, int end) {
373 return getService()
374 .getDeliveredUserNotificationEvents(userId, delivered,
375 start, end);
376 }
377
378 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
379 long userId, int deliveryType, boolean delivered) {
380 return getService()
381 .getDeliveredUserNotificationEvents(userId, deliveryType,
382 delivered);
383 }
384
385 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
386 long userId, int deliveryType, boolean delivered, boolean actionRequired) {
387 return getService()
388 .getDeliveredUserNotificationEvents(userId, deliveryType,
389 delivered, actionRequired);
390 }
391
392 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
393 long userId, int deliveryType, boolean delivered,
394 boolean actionRequired, int start, int end) {
395 return getService()
396 .getDeliveredUserNotificationEvents(userId, deliveryType,
397 delivered, actionRequired, start, end);
398 }
399
400 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
401 long userId, int deliveryType, boolean delivered, int start, int end) {
402 return getService()
403 .getDeliveredUserNotificationEvents(userId, deliveryType,
404 delivered, start, end);
405 }
406
407 public static int getDeliveredUserNotificationEventsCount(long userId,
408 boolean delivered) {
409 return getService()
410 .getDeliveredUserNotificationEventsCount(userId, delivered);
411 }
412
413 public static int getDeliveredUserNotificationEventsCount(long userId,
414 boolean delivered, boolean actionRequired) {
415 return getService()
416 .getDeliveredUserNotificationEventsCount(userId, delivered,
417 actionRequired);
418 }
419
420 public static int getDeliveredUserNotificationEventsCount(long userId,
421 int deliveryType, boolean delivered) {
422 return getService()
423 .getDeliveredUserNotificationEventsCount(userId,
424 deliveryType, delivered);
425 }
426
427 public static int getDeliveredUserNotificationEventsCount(long userId,
428 int deliveryType, boolean delivered, boolean actionRequired) {
429 return getService()
430 .getDeliveredUserNotificationEventsCount(userId,
431 deliveryType, delivered, actionRequired);
432 }
433
434 public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
435 return getService().getIndexableActionableDynamicQuery();
436 }
437
438
443 public static java.lang.String getOSGiServiceIdentifier() {
444 return getService().getOSGiServiceIdentifier();
445 }
446
447 public static com.liferay.portal.model.PersistedModel getPersistedModel(
448 java.io.Serializable primaryKeyObj)
449 throws com.liferay.portal.kernel.exception.PortalException {
450 return getService().getPersistedModel(primaryKeyObj);
451 }
452
453 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getTypeNotificationEvents(
454 java.lang.String type) {
455 return getService().getTypeNotificationEvents(type);
456 }
457
458
465 public static com.liferay.portal.model.UserNotificationEvent getUserNotificationEvent(
466 long userNotificationEventId)
467 throws com.liferay.portal.kernel.exception.PortalException {
468 return getService().getUserNotificationEvent(userNotificationEventId);
469 }
470
471
479 public static com.liferay.portal.model.UserNotificationEvent getUserNotificationEventByUuidAndCompanyId(
480 java.lang.String uuid, long companyId)
481 throws com.liferay.portal.kernel.exception.PortalException {
482 return getService()
483 .getUserNotificationEventByUuidAndCompanyId(uuid, companyId);
484 }
485
486
497 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
498 int start, int end) {
499 return getService().getUserNotificationEvents(start, end);
500 }
501
502 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
503 long userId) {
504 return getService().getUserNotificationEvents(userId);
505 }
506
507
511 @Deprecated
512 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
513 long userId, boolean archived) {
514 return getService().getUserNotificationEvents(userId, archived);
515 }
516
517
521 @Deprecated
522 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
523 long userId, boolean archived, int start, int end) {
524 return getService()
525 .getUserNotificationEvents(userId, archived, start, end);
526 }
527
528 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
529 long userId, int deliveryType) {
530 return getService().getUserNotificationEvents(userId, deliveryType);
531 }
532
533 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
534 long userId, int deliveryType, int start, int end) {
535 return getService()
536 .getUserNotificationEvents(userId, deliveryType, start, end);
537 }
538
539 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
540 long userId, int start, int end) {
541 return getService().getUserNotificationEvents(userId, start, end);
542 }
543
544
549 public static int getUserNotificationEventsCount() {
550 return getService().getUserNotificationEventsCount();
551 }
552
553 public static int getUserNotificationEventsCount(long userId) {
554 return getService().getUserNotificationEventsCount(userId);
555 }
556
557
561 @Deprecated
562 public static int getUserNotificationEventsCount(long userId,
563 boolean archived) {
564 return getService().getUserNotificationEventsCount(userId, archived);
565 }
566
567 public static int getUserNotificationEventsCount(long userId,
568 int deliveryType) {
569 return getService().getUserNotificationEventsCount(userId, deliveryType);
570 }
571
572 public static int getUserNotificationEventsCount(long userId,
573 java.lang.String type, int deliveryType, boolean archived) {
574 return getService()
575 .getUserNotificationEventsCount(userId, type, deliveryType,
576 archived);
577 }
578
579 public static com.liferay.portal.model.UserNotificationEvent sendUserNotificationEvents(
580 long userId, java.lang.String portletId, int deliveryType,
581 boolean actionRequired,
582 com.liferay.portal.kernel.json.JSONObject notificationEventJSONObject)
583 throws com.liferay.portal.kernel.exception.PortalException {
584 return getService()
585 .sendUserNotificationEvents(userId, portletId, deliveryType,
586 actionRequired, notificationEventJSONObject);
587 }
588
589 public static com.liferay.portal.model.UserNotificationEvent sendUserNotificationEvents(
590 long userId, java.lang.String portletId, int deliveryType,
591 com.liferay.portal.kernel.json.JSONObject notificationEventJSONObject)
592 throws com.liferay.portal.kernel.exception.PortalException {
593 return getService()
594 .sendUserNotificationEvents(userId, portletId, deliveryType,
595 notificationEventJSONObject);
596 }
597
598
604 public static com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
605 com.liferay.portal.model.UserNotificationEvent userNotificationEvent) {
606 return getService().updateUserNotificationEvent(userNotificationEvent);
607 }
608
609 public static com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
610 java.lang.String uuid, long companyId, boolean archive) {
611 return getService().updateUserNotificationEvent(uuid, companyId, archive);
612 }
613
614 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> updateUserNotificationEvents(
615 java.util.Collection<java.lang.String> uuids, long companyId,
616 boolean archive) {
617 return getService()
618 .updateUserNotificationEvents(uuids, companyId, archive);
619 }
620
621 public static UserNotificationEventLocalService getService() {
622 if (_service == null) {
623 _service = (UserNotificationEventLocalService)PortalBeanLocatorUtil.locate(UserNotificationEventLocalService.class.getName());
624
625 ReferenceRegistry.registerReference(UserNotificationEventLocalServiceUtil.class,
626 "_service");
627 }
628
629 return _service;
630 }
631
632 private static UserNotificationEventLocalService _service;
633 }