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
044
051 public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
052 com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
053 throws com.liferay.portal.kernel.exception.SystemException {
054 return getService().addUserNotificationEvent(userNotificationEvent);
055 }
056
057
063 public static com.liferay.portal.model.UserNotificationEvent createUserNotificationEvent(
064 long userNotificationEventId) {
065 return getService().createUserNotificationEvent(userNotificationEventId);
066 }
067
068
076 public static com.liferay.portal.model.UserNotificationEvent deleteUserNotificationEvent(
077 long userNotificationEventId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().deleteUserNotificationEvent(userNotificationEventId);
081 }
082
083
090 public static com.liferay.portal.model.UserNotificationEvent deleteUserNotificationEvent(
091 com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().deleteUserNotificationEvent(userNotificationEvent);
094 }
095
096 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097 return getService().dynamicQuery();
098 }
099
100
107 @SuppressWarnings("rawtypes")
108 public static java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().dynamicQuery(dynamicQuery);
112 }
113
114
127 @SuppressWarnings("rawtypes")
128 public static java.util.List dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end) throws com.liferay.portal.kernel.exception.SystemException {
131 return getService().dynamicQuery(dynamicQuery, start, end);
132 }
133
134
148 @SuppressWarnings("rawtypes")
149 public static java.util.List dynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151 int end,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService()
155 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156 }
157
158
165 public static long dynamicQueryCount(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService().dynamicQueryCount(dynamicQuery);
169 }
170
171
179 public static long dynamicQueryCount(
180 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181 com.liferay.portal.kernel.dao.orm.Projection projection)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService().dynamicQueryCount(dynamicQuery, projection);
184 }
185
186 public static com.liferay.portal.model.UserNotificationEvent fetchUserNotificationEvent(
187 long userNotificationEventId)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getService().fetchUserNotificationEvent(userNotificationEventId);
190 }
191
192
200 public static com.liferay.portal.model.UserNotificationEvent fetchUserNotificationEventByUuidAndCompanyId(
201 java.lang.String uuid, long companyId)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getService()
204 .fetchUserNotificationEventByUuidAndCompanyId(uuid, companyId);
205 }
206
207
215 public static com.liferay.portal.model.UserNotificationEvent getUserNotificationEvent(
216 long userNotificationEventId)
217 throws com.liferay.portal.kernel.exception.PortalException,
218 com.liferay.portal.kernel.exception.SystemException {
219 return getService().getUserNotificationEvent(userNotificationEventId);
220 }
221
222 public static com.liferay.portal.model.PersistedModel getPersistedModel(
223 java.io.Serializable primaryKeyObj)
224 throws com.liferay.portal.kernel.exception.PortalException,
225 com.liferay.portal.kernel.exception.SystemException {
226 return getService().getPersistedModel(primaryKeyObj);
227 }
228
229
238 public static com.liferay.portal.model.UserNotificationEvent getUserNotificationEventByUuidAndCompanyId(
239 java.lang.String uuid, long companyId)
240 throws com.liferay.portal.kernel.exception.PortalException,
241 com.liferay.portal.kernel.exception.SystemException {
242 return getService()
243 .getUserNotificationEventByUuidAndCompanyId(uuid, companyId);
244 }
245
246
258 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
259 int start, int end)
260 throws com.liferay.portal.kernel.exception.SystemException {
261 return getService().getUserNotificationEvents(start, end);
262 }
263
264
270 public static int getUserNotificationEventsCount()
271 throws com.liferay.portal.kernel.exception.SystemException {
272 return getService().getUserNotificationEventsCount();
273 }
274
275
282 public static com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
283 com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
284 throws com.liferay.portal.kernel.exception.SystemException {
285 return getService().updateUserNotificationEvent(userNotificationEvent);
286 }
287
288
293 public static java.lang.String getBeanIdentifier() {
294 return getService().getBeanIdentifier();
295 }
296
297
302 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
303 getService().setBeanIdentifier(beanIdentifier);
304 }
305
306 public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
307 long userId,
308 com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException {
311 return getService().addUserNotificationEvent(userId, notificationEvent);
312 }
313
314 public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
315 long userId, java.lang.String type, long timestamp, long deliverBy,
316 java.lang.String payload, boolean archived,
317 com.liferay.portal.service.ServiceContext serviceContext)
318 throws com.liferay.portal.kernel.exception.PortalException,
319 com.liferay.portal.kernel.exception.SystemException {
320 return getService()
321 .addUserNotificationEvent(userId, type, timestamp,
322 deliverBy, payload, archived, serviceContext);
323 }
324
325 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> addUserNotificationEvents(
326 long userId,
327 java.util.Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException {
330 return getService().addUserNotificationEvents(userId, notificationEvents);
331 }
332
333 public static void deleteUserNotificationEvent(java.lang.String uuid,
334 long companyId)
335 throws com.liferay.portal.kernel.exception.SystemException {
336 getService().deleteUserNotificationEvent(uuid, companyId);
337 }
338
339 public static void deleteUserNotificationEvents(
340 java.util.Collection<java.lang.String> uuids, long companyId)
341 throws com.liferay.portal.kernel.exception.SystemException {
342 getService().deleteUserNotificationEvents(uuids, companyId);
343 }
344
345 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
346 long userId, boolean archived)
347 throws com.liferay.portal.kernel.exception.SystemException {
348 return getService().getArchivedUserNotificationEvents(userId, archived);
349 }
350
351 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
352 long userId, boolean archived, int start, int end)
353 throws com.liferay.portal.kernel.exception.SystemException {
354 return getService()
355 .getArchivedUserNotificationEvents(userId, archived, start,
356 end);
357 }
358
359 public static int getArchivedUserNotificationEventsCount(long userId,
360 boolean archived)
361 throws com.liferay.portal.kernel.exception.SystemException {
362 return getService()
363 .getArchivedUserNotificationEventsCount(userId, archived);
364 }
365
366 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
367 long userId, boolean delivered)
368 throws com.liferay.portal.kernel.exception.SystemException {
369 return getService().getDeliveredUserNotificationEvents(userId, delivered);
370 }
371
372 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
373 long userId, boolean delivered, int start, int end)
374 throws com.liferay.portal.kernel.exception.SystemException {
375 return getService()
376 .getDeliveredUserNotificationEvents(userId, delivered,
377 start, end);
378 }
379
380 public static int getDeliveredUserNotificationEventsCount(long userId,
381 boolean delivered)
382 throws com.liferay.portal.kernel.exception.SystemException {
383 return getService()
384 .getDeliveredUserNotificationEventsCount(userId, delivered);
385 }
386
387 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
388 long userId) throws com.liferay.portal.kernel.exception.SystemException {
389 return getService().getUserNotificationEvents(userId);
390 }
391
392
396 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
397 long userId, boolean archived)
398 throws com.liferay.portal.kernel.exception.SystemException {
399 return getService().getUserNotificationEvents(userId, archived);
400 }
401
402
406 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
407 long userId, boolean archived, int start, int end)
408 throws com.liferay.portal.kernel.exception.SystemException {
409 return getService()
410 .getUserNotificationEvents(userId, archived, start, end);
411 }
412
413 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
414 long userId, int start, int end)
415 throws com.liferay.portal.kernel.exception.SystemException {
416 return getService().getUserNotificationEvents(userId, start, end);
417 }
418
419 public static int getUserNotificationEventsCount(long userId)
420 throws com.liferay.portal.kernel.exception.SystemException {
421 return getService().getUserNotificationEventsCount(userId);
422 }
423
424
428 public static int getUserNotificationEventsCount(long userId,
429 boolean archived)
430 throws com.liferay.portal.kernel.exception.SystemException {
431 return getService().getUserNotificationEventsCount(userId, archived);
432 }
433
434 public static com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
435 java.lang.String uuid, long companyId, boolean archive)
436 throws com.liferay.portal.kernel.exception.SystemException {
437 return getService().updateUserNotificationEvent(uuid, companyId, archive);
438 }
439
440 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> updateUserNotificationEvents(
441 java.util.Collection<java.lang.String> uuids, long companyId,
442 boolean archive)
443 throws com.liferay.portal.kernel.exception.SystemException {
444 return getService()
445 .updateUserNotificationEvents(uuids, companyId, archive);
446 }
447
448 public static UserNotificationEventLocalService getService() {
449 if (_service == null) {
450 _service = (UserNotificationEventLocalService)PortalBeanLocatorUtil.locate(UserNotificationEventLocalService.class.getName());
451
452 ReferenceRegistry.registerReference(UserNotificationEventLocalServiceUtil.class,
453 "_service");
454 }
455
456 return _service;
457 }
458
459
462 public void setService(UserNotificationEventLocalService service) {
463 }
464
465 private static UserNotificationEventLocalService _service;
466 }