001
014
015 package com.liferay.portal.kernel.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.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
044 return getService().getActionableDynamicQuery();
045 }
046
047 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
048 return getService().dynamicQuery();
049 }
050
051 public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
052 return getService().getIndexableActionableDynamicQuery();
053 }
054
055
058 public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
059 com.liferay.portal.kernel.model.PersistedModel persistedModel)
060 throws com.liferay.portal.kernel.exception.PortalException {
061 return getService().deletePersistedModel(persistedModel);
062 }
063
064 public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
065 java.io.Serializable primaryKeyObj)
066 throws com.liferay.portal.kernel.exception.PortalException {
067 return getService().getPersistedModel(primaryKeyObj);
068 }
069
070
076 public static com.liferay.portal.kernel.model.UserNotificationEvent addUserNotificationEvent(
077 com.liferay.portal.kernel.model.UserNotificationEvent userNotificationEvent) {
078 return getService().addUserNotificationEvent(userNotificationEvent);
079 }
080
081 public static com.liferay.portal.kernel.model.UserNotificationEvent addUserNotificationEvent(
082 long userId, boolean actionRequired,
083 com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
084 throws com.liferay.portal.kernel.exception.PortalException {
085 return getService()
086 .addUserNotificationEvent(userId, actionRequired,
087 notificationEvent);
088 }
089
090 public static com.liferay.portal.kernel.model.UserNotificationEvent addUserNotificationEvent(
091 long userId,
092 com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
093 throws com.liferay.portal.kernel.exception.PortalException {
094 return getService().addUserNotificationEvent(userId, notificationEvent);
095 }
096
097 public static com.liferay.portal.kernel.model.UserNotificationEvent addUserNotificationEvent(
098 long userId, java.lang.String type, long timestamp, int deliveryType,
099 long deliverBy, java.lang.String payload, boolean actionRequired,
100 boolean archived, ServiceContext serviceContext)
101 throws com.liferay.portal.kernel.exception.PortalException {
102 return getService()
103 .addUserNotificationEvent(userId, type, timestamp,
104 deliveryType, deliverBy, payload, actionRequired, archived,
105 serviceContext);
106 }
107
108 public static com.liferay.portal.kernel.model.UserNotificationEvent addUserNotificationEvent(
109 long userId, java.lang.String type, long timestamp, int deliveryType,
110 long deliverBy, java.lang.String payload, boolean archived,
111 ServiceContext serviceContext)
112 throws com.liferay.portal.kernel.exception.PortalException {
113 return getService()
114 .addUserNotificationEvent(userId, type, timestamp,
115 deliveryType, deliverBy, payload, archived, serviceContext);
116 }
117
118
122 @Deprecated
123 public static com.liferay.portal.kernel.model.UserNotificationEvent addUserNotificationEvent(
124 long userId, java.lang.String type, long timestamp, long deliverBy,
125 java.lang.String payload, boolean archived,
126 ServiceContext serviceContext)
127 throws com.liferay.portal.kernel.exception.PortalException {
128 return getService()
129 .addUserNotificationEvent(userId, type, timestamp,
130 deliverBy, payload, archived, serviceContext);
131 }
132
133
139 public static com.liferay.portal.kernel.model.UserNotificationEvent createUserNotificationEvent(
140 long userNotificationEventId) {
141 return getService().createUserNotificationEvent(userNotificationEventId);
142 }
143
144
150 public static com.liferay.portal.kernel.model.UserNotificationEvent deleteUserNotificationEvent(
151 com.liferay.portal.kernel.model.UserNotificationEvent userNotificationEvent) {
152 return getService().deleteUserNotificationEvent(userNotificationEvent);
153 }
154
155
162 public static com.liferay.portal.kernel.model.UserNotificationEvent deleteUserNotificationEvent(
163 long userNotificationEventId)
164 throws com.liferay.portal.kernel.exception.PortalException {
165 return getService().deleteUserNotificationEvent(userNotificationEventId);
166 }
167
168 public static com.liferay.portal.kernel.model.UserNotificationEvent fetchUserNotificationEvent(
169 long userNotificationEventId) {
170 return getService().fetchUserNotificationEvent(userNotificationEventId);
171 }
172
173
180 public static com.liferay.portal.kernel.model.UserNotificationEvent fetchUserNotificationEventByUuidAndCompanyId(
181 java.lang.String uuid, long companyId) {
182 return getService()
183 .fetchUserNotificationEventByUuidAndCompanyId(uuid, companyId);
184 }
185
186
193 public static com.liferay.portal.kernel.model.UserNotificationEvent getUserNotificationEvent(
194 long userNotificationEventId)
195 throws com.liferay.portal.kernel.exception.PortalException {
196 return getService().getUserNotificationEvent(userNotificationEventId);
197 }
198
199
207 public static com.liferay.portal.kernel.model.UserNotificationEvent getUserNotificationEventByUuidAndCompanyId(
208 java.lang.String uuid, long companyId)
209 throws com.liferay.portal.kernel.exception.PortalException {
210 return getService()
211 .getUserNotificationEventByUuidAndCompanyId(uuid, companyId);
212 }
213
214 public static com.liferay.portal.kernel.model.UserNotificationEvent sendUserNotificationEvents(
215 long userId, java.lang.String portletId, int deliveryType,
216 boolean actionRequired,
217 com.liferay.portal.kernel.json.JSONObject notificationEventJSONObject)
218 throws com.liferay.portal.kernel.exception.PortalException {
219 return getService()
220 .sendUserNotificationEvents(userId, portletId, deliveryType,
221 actionRequired, notificationEventJSONObject);
222 }
223
224 public static com.liferay.portal.kernel.model.UserNotificationEvent sendUserNotificationEvents(
225 long userId, java.lang.String portletId, int deliveryType,
226 com.liferay.portal.kernel.json.JSONObject notificationEventJSONObject)
227 throws com.liferay.portal.kernel.exception.PortalException {
228 return getService()
229 .sendUserNotificationEvents(userId, portletId, deliveryType,
230 notificationEventJSONObject);
231 }
232
233
239 public static com.liferay.portal.kernel.model.UserNotificationEvent updateUserNotificationEvent(
240 com.liferay.portal.kernel.model.UserNotificationEvent userNotificationEvent) {
241 return getService().updateUserNotificationEvent(userNotificationEvent);
242 }
243
244 public static com.liferay.portal.kernel.model.UserNotificationEvent updateUserNotificationEvent(
245 java.lang.String uuid, long companyId, boolean archive) {
246 return getService().updateUserNotificationEvent(uuid, companyId, archive);
247 }
248
249 public static int getArchivedUserNotificationEventsCount(long userId,
250 boolean actionRequired, boolean archived) {
251 return getService()
252 .getArchivedUserNotificationEventsCount(userId,
253 actionRequired, archived);
254 }
255
256 public static int getArchivedUserNotificationEventsCount(long userId,
257 boolean archived) {
258 return getService()
259 .getArchivedUserNotificationEventsCount(userId, archived);
260 }
261
262 public static int getArchivedUserNotificationEventsCount(long userId,
263 int deliveryType, boolean actionRequired, boolean archived) {
264 return getService()
265 .getArchivedUserNotificationEventsCount(userId,
266 deliveryType, actionRequired, archived);
267 }
268
269 public static int getArchivedUserNotificationEventsCount(long userId,
270 int deliveryType, boolean archived) {
271 return getService()
272 .getArchivedUserNotificationEventsCount(userId,
273 deliveryType, archived);
274 }
275
276 public static int getDeliveredUserNotificationEventsCount(long userId,
277 boolean delivered) {
278 return getService()
279 .getDeliveredUserNotificationEventsCount(userId, delivered);
280 }
281
282 public static int getDeliveredUserNotificationEventsCount(long userId,
283 boolean delivered, boolean actionRequired) {
284 return getService()
285 .getDeliveredUserNotificationEventsCount(userId, delivered,
286 actionRequired);
287 }
288
289 public static int getDeliveredUserNotificationEventsCount(long userId,
290 int deliveryType, boolean delivered) {
291 return getService()
292 .getDeliveredUserNotificationEventsCount(userId,
293 deliveryType, delivered);
294 }
295
296 public static int getDeliveredUserNotificationEventsCount(long userId,
297 int deliveryType, boolean delivered, boolean actionRequired) {
298 return getService()
299 .getDeliveredUserNotificationEventsCount(userId,
300 deliveryType, delivered, actionRequired);
301 }
302
303
308 public static int getUserNotificationEventsCount() {
309 return getService().getUserNotificationEventsCount();
310 }
311
312 public static int getUserNotificationEventsCount(long userId) {
313 return getService().getUserNotificationEventsCount(userId);
314 }
315
316 public static int getUserNotificationEventsCount(long userId,
317 int deliveryType) {
318 return getService().getUserNotificationEventsCount(userId, deliveryType);
319 }
320
321 public static int getUserNotificationEventsCount(long userId,
322 java.lang.String type, int deliveryType, boolean archived) {
323 return getService()
324 .getUserNotificationEventsCount(userId, type, deliveryType,
325 archived);
326 }
327
328
333 public static java.lang.String getOSGiServiceIdentifier() {
334 return getService().getOSGiServiceIdentifier();
335 }
336
337 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> addUserNotificationEvents(
338 long userId,
339 java.util.Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
340 throws com.liferay.portal.kernel.exception.PortalException {
341 return getService().addUserNotificationEvents(userId, notificationEvents);
342 }
343
344
350 public static <T> java.util.List<T> dynamicQuery(
351 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
352 return getService().dynamicQuery(dynamicQuery);
353 }
354
355
367 public static <T> java.util.List<T> dynamicQuery(
368 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
369 int end) {
370 return getService().dynamicQuery(dynamicQuery, start, end);
371 }
372
373
386 public static <T> java.util.List<T> dynamicQuery(
387 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
388 int end,
389 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
390 return getService()
391 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
392 }
393
394 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getArchivedUserNotificationEvents(
395 long userId, boolean actionRequired, boolean archived) {
396 return getService()
397 .getArchivedUserNotificationEvents(userId, actionRequired,
398 archived);
399 }
400
401 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getArchivedUserNotificationEvents(
402 long userId, boolean actionRequired, boolean archived, int start,
403 int end) {
404 return getService()
405 .getArchivedUserNotificationEvents(userId, actionRequired,
406 archived, start, end);
407 }
408
409 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getArchivedUserNotificationEvents(
410 long userId, boolean archived) {
411 return getService().getArchivedUserNotificationEvents(userId, archived);
412 }
413
414 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getArchivedUserNotificationEvents(
415 long userId, boolean archived, int start, int end) {
416 return getService()
417 .getArchivedUserNotificationEvents(userId, archived, start,
418 end);
419 }
420
421 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getArchivedUserNotificationEvents(
422 long userId, int deliveryType, boolean actionRequired, boolean archived) {
423 return getService()
424 .getArchivedUserNotificationEvents(userId, deliveryType,
425 actionRequired, archived);
426 }
427
428 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getArchivedUserNotificationEvents(
429 long userId, int deliveryType, boolean actionRequired,
430 boolean archived, int start, int end) {
431 return getService()
432 .getArchivedUserNotificationEvents(userId, deliveryType,
433 actionRequired, archived, start, end);
434 }
435
436 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getArchivedUserNotificationEvents(
437 long userId, int deliveryType, boolean archived) {
438 return getService()
439 .getArchivedUserNotificationEvents(userId, deliveryType,
440 archived);
441 }
442
443 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getArchivedUserNotificationEvents(
444 long userId, int deliveryType, boolean archived, int start, int end) {
445 return getService()
446 .getArchivedUserNotificationEvents(userId, deliveryType,
447 archived, start, end);
448 }
449
450 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
451 long userId, boolean delivered) {
452 return getService().getDeliveredUserNotificationEvents(userId, delivered);
453 }
454
455 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
456 long userId, boolean delivered, boolean actionRequired) {
457 return getService()
458 .getDeliveredUserNotificationEvents(userId, delivered,
459 actionRequired);
460 }
461
462 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
463 long userId, boolean delivered, boolean actionRequired, int start,
464 int end) {
465 return getService()
466 .getDeliveredUserNotificationEvents(userId, delivered,
467 actionRequired, start, end);
468 }
469
470 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
471 long userId, boolean delivered, int start, int end) {
472 return getService()
473 .getDeliveredUserNotificationEvents(userId, delivered,
474 start, end);
475 }
476
477 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
478 long userId, int deliveryType, boolean delivered) {
479 return getService()
480 .getDeliveredUserNotificationEvents(userId, deliveryType,
481 delivered);
482 }
483
484 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
485 long userId, int deliveryType, boolean delivered, boolean actionRequired) {
486 return getService()
487 .getDeliveredUserNotificationEvents(userId, deliveryType,
488 delivered, actionRequired);
489 }
490
491 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
492 long userId, int deliveryType, boolean delivered,
493 boolean actionRequired, int start, int end) {
494 return getService()
495 .getDeliveredUserNotificationEvents(userId, deliveryType,
496 delivered, actionRequired, start, end);
497 }
498
499 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
500 long userId, int deliveryType, boolean delivered, int start, int end) {
501 return getService()
502 .getDeliveredUserNotificationEvents(userId, deliveryType,
503 delivered, start, end);
504 }
505
506 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getTypeNotificationEvents(
507 java.lang.String type) {
508 return getService().getTypeNotificationEvents(type);
509 }
510
511
522 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getUserNotificationEvents(
523 int start, int end) {
524 return getService().getUserNotificationEvents(start, end);
525 }
526
527 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getUserNotificationEvents(
528 long userId) {
529 return getService().getUserNotificationEvents(userId);
530 }
531
532 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getUserNotificationEvents(
533 long userId, int deliveryType) {
534 return getService().getUserNotificationEvents(userId, deliveryType);
535 }
536
537 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getUserNotificationEvents(
538 long userId, int deliveryType, int start, int end) {
539 return getService()
540 .getUserNotificationEvents(userId, deliveryType, start, end);
541 }
542
543 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> getUserNotificationEvents(
544 long userId, int start, int end) {
545 return getService().getUserNotificationEvents(userId, start, end);
546 }
547
548 public static java.util.List<com.liferay.portal.kernel.model.UserNotificationEvent> updateUserNotificationEvents(
549 java.util.Collection<java.lang.String> uuids, long companyId,
550 boolean archive) {
551 return getService()
552 .updateUserNotificationEvents(uuids, companyId, archive);
553 }
554
555
561 public static long dynamicQueryCount(
562 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
563 return getService().dynamicQueryCount(dynamicQuery);
564 }
565
566
573 public static long dynamicQueryCount(
574 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
575 com.liferay.portal.kernel.dao.orm.Projection projection) {
576 return getService().dynamicQueryCount(dynamicQuery, projection);
577 }
578
579 public static void deleteUserNotificationEvent(java.lang.String uuid,
580 long companyId) {
581 getService().deleteUserNotificationEvent(uuid, companyId);
582 }
583
584 public static void deleteUserNotificationEvents(
585 java.util.Collection<java.lang.String> uuids, long companyId) {
586 getService().deleteUserNotificationEvents(uuids, companyId);
587 }
588
589 public static UserNotificationEventLocalService getService() {
590 if (_service == null) {
591 _service = (UserNotificationEventLocalService)PortalBeanLocatorUtil.locate(UserNotificationEventLocalService.class.getName());
592
593 ReferenceRegistry.registerReference(UserNotificationEventLocalServiceUtil.class,
594 "_service");
595 }
596
597 return _service;
598 }
599
600 private static UserNotificationEventLocalService _service;
601 }