001
014
015 package com.liferay.portal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.search.IndexableType;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025
026
038 @ProviderType
039 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
040 PortalException.class, SystemException.class})
041 public interface UserNotificationEventLocalService extends BaseLocalService,
042 PersistedModelLocalService {
043
048 public com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
049 long userId, boolean actionRequired,
050 com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
051 throws PortalException;
052
053 public com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
054 long userId,
055 com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
056 throws PortalException;
057
058
062 @java.lang.Deprecated
063 public com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
064 long userId, java.lang.String type, long timestamp, long deliverBy,
065 java.lang.String payload, boolean archived,
066 com.liferay.portal.service.ServiceContext serviceContext)
067 throws PortalException;
068
069 public com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
070 long userId, java.lang.String type, long timestamp, int deliveryType,
071 long deliverBy, java.lang.String payload, boolean actionRequired,
072 boolean archived,
073 com.liferay.portal.service.ServiceContext serviceContext)
074 throws PortalException;
075
076 public com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
077 long userId, java.lang.String type, long timestamp, int deliveryType,
078 long deliverBy, java.lang.String payload, boolean archived,
079 com.liferay.portal.service.ServiceContext serviceContext)
080 throws PortalException;
081
082
088 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
089 public com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
090 com.liferay.portal.model.UserNotificationEvent userNotificationEvent);
091
092 public java.util.List<com.liferay.portal.model.UserNotificationEvent> addUserNotificationEvents(
093 long userId,
094 java.util.Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
095 throws PortalException;
096
097
103 public com.liferay.portal.model.UserNotificationEvent createUserNotificationEvent(
104 long userNotificationEventId);
105
106
109 @Override
110 public com.liferay.portal.model.PersistedModel deletePersistedModel(
111 com.liferay.portal.model.PersistedModel persistedModel)
112 throws PortalException;
113
114
120 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
121 public com.liferay.portal.model.UserNotificationEvent deleteUserNotificationEvent(
122 com.liferay.portal.model.UserNotificationEvent userNotificationEvent);
123
124
131 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
132 public com.liferay.portal.model.UserNotificationEvent deleteUserNotificationEvent(
133 long userNotificationEventId) throws PortalException;
134
135 public void deleteUserNotificationEvent(java.lang.String uuid,
136 long companyId);
137
138 public void deleteUserNotificationEvents(
139 java.util.Collection<java.lang.String> uuids, long companyId);
140
141 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
142
143
149 public <T> java.util.List<T> dynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
151
152
164 public <T> java.util.List<T> dynamicQuery(
165 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
166 int end);
167
168
181 public <T> java.util.List<T> dynamicQuery(
182 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
183 int end,
184 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
185
186
192 public long dynamicQueryCount(
193 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
194
195
202 public long dynamicQueryCount(
203 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
204 com.liferay.portal.kernel.dao.orm.Projection projection);
205
206 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207 public com.liferay.portal.model.UserNotificationEvent fetchUserNotificationEvent(
208 long userNotificationEventId);
209
210
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public com.liferay.portal.model.UserNotificationEvent fetchUserNotificationEventByUuidAndCompanyId(
219 java.lang.String uuid, long companyId);
220
221 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
223
224 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
226 long userId, boolean actionRequired, boolean archived);
227
228 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
230 long userId, boolean actionRequired, boolean archived, int start,
231 int end);
232
233 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
235 long userId, boolean archived);
236
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
239 long userId, boolean archived, int start, int end);
240
241 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
243 long userId, int deliveryType, boolean actionRequired, boolean archived);
244
245 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
247 long userId, int deliveryType, boolean actionRequired,
248 boolean archived, int start, int end);
249
250 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
252 long userId, int deliveryType, boolean archived);
253
254 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
256 long userId, int deliveryType, boolean archived, int start, int end);
257
258 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259 public int getArchivedUserNotificationEventsCount(long userId,
260 boolean actionRequired, boolean archived);
261
262 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263 public int getArchivedUserNotificationEventsCount(long userId,
264 boolean archived);
265
266 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267 public int getArchivedUserNotificationEventsCount(long userId,
268 int deliveryType, boolean actionRequired, boolean archived);
269
270 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271 public int getArchivedUserNotificationEventsCount(long userId,
272 int deliveryType, boolean archived);
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
276 long userId, boolean delivered);
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
280 long userId, boolean delivered, boolean actionRequired);
281
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
284 long userId, boolean delivered, boolean actionRequired, int start,
285 int end);
286
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
289 long userId, boolean delivered, int start, int end);
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
293 long userId, int deliveryType, boolean delivered);
294
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
297 long userId, int deliveryType, boolean delivered, boolean actionRequired);
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
301 long userId, int deliveryType, boolean delivered,
302 boolean actionRequired, int start, int end);
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
306 long userId, int deliveryType, boolean delivered, int start, int end);
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public int getDeliveredUserNotificationEventsCount(long userId,
310 boolean delivered);
311
312 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313 public int getDeliveredUserNotificationEventsCount(long userId,
314 boolean delivered, boolean actionRequired);
315
316 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
317 public int getDeliveredUserNotificationEventsCount(long userId,
318 int deliveryType, boolean delivered);
319
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public int getDeliveredUserNotificationEventsCount(long userId,
322 int deliveryType, boolean delivered, boolean actionRequired);
323
324 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery();
326
327
332 public java.lang.String getOSGiServiceIdentifier();
333
334 @Override
335 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
336 public com.liferay.portal.model.PersistedModel getPersistedModel(
337 java.io.Serializable primaryKeyObj) throws PortalException;
338
339 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
340 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getTypeNotificationEvents(
341 java.lang.String type);
342
343
350 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
351 public com.liferay.portal.model.UserNotificationEvent getUserNotificationEvent(
352 long userNotificationEventId) throws PortalException;
353
354
362 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
363 public com.liferay.portal.model.UserNotificationEvent getUserNotificationEventByUuidAndCompanyId(
364 java.lang.String uuid, long companyId) throws PortalException;
365
366
377 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
379 int start, int end);
380
381 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
382 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
383 long userId);
384
385
389 @java.lang.Deprecated
390 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
391 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
392 long userId, boolean archived);
393
394
398 @java.lang.Deprecated
399 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
400 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
401 long userId, boolean archived, int start, int end);
402
403 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
404 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
405 long userId, int deliveryType);
406
407 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
408 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
409 long userId, int deliveryType, int start, int end);
410
411 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
412 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
413 long userId, int start, int end);
414
415
420 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
421 public int getUserNotificationEventsCount();
422
423 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
424 public int getUserNotificationEventsCount(long userId);
425
426
430 @java.lang.Deprecated
431 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
432 public int getUserNotificationEventsCount(long userId, boolean archived);
433
434 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
435 public int getUserNotificationEventsCount(long userId, int deliveryType);
436
437 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
438 public int getUserNotificationEventsCount(long userId,
439 java.lang.String type, int deliveryType, boolean archived);
440
441 public com.liferay.portal.model.UserNotificationEvent sendUserNotificationEvents(
442 long userId, java.lang.String portletId, int deliveryType,
443 boolean actionRequired,
444 com.liferay.portal.kernel.json.JSONObject notificationEventJSONObject)
445 throws PortalException;
446
447 public com.liferay.portal.model.UserNotificationEvent sendUserNotificationEvents(
448 long userId, java.lang.String portletId, int deliveryType,
449 com.liferay.portal.kernel.json.JSONObject notificationEventJSONObject)
450 throws PortalException;
451
452
458 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
459 public com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
460 com.liferay.portal.model.UserNotificationEvent userNotificationEvent);
461
462 public com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
463 java.lang.String uuid, long companyId, boolean archive);
464
465 public java.util.List<com.liferay.portal.model.UserNotificationEvent> updateUserNotificationEvents(
466 java.util.Collection<java.lang.String> uuids, long companyId,
467 boolean archive);
468 }