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
049
056 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
057 public com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
058 com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061
067 public com.liferay.portal.model.UserNotificationEvent createUserNotificationEvent(
068 long userNotificationEventId);
069
070
078 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
079 public com.liferay.portal.model.UserNotificationEvent deleteUserNotificationEvent(
080 long userNotificationEventId)
081 throws com.liferay.portal.kernel.exception.PortalException,
082 com.liferay.portal.kernel.exception.SystemException;
083
084
091 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
092 public com.liferay.portal.model.UserNotificationEvent deleteUserNotificationEvent(
093 com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
097
098
105 @SuppressWarnings("rawtypes")
106 public java.util.List dynamicQuery(
107 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
108 throws com.liferay.portal.kernel.exception.SystemException;
109
110
123 @SuppressWarnings("rawtypes")
124 public java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException;
127
128
142 @SuppressWarnings("rawtypes")
143 public java.util.List dynamicQuery(
144 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
145 int end,
146 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149
156 public long dynamicQueryCount(
157 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158 throws com.liferay.portal.kernel.exception.SystemException;
159
160
168 public long dynamicQueryCount(
169 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
170 com.liferay.portal.kernel.dao.orm.Projection projection)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public com.liferay.portal.model.UserNotificationEvent fetchUserNotificationEvent(
175 long userNotificationEventId)
176 throws com.liferay.portal.kernel.exception.SystemException;
177
178
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public com.liferay.portal.model.UserNotificationEvent fetchUserNotificationEventByUuidAndCompanyId(
188 java.lang.String uuid, long companyId)
189 throws com.liferay.portal.kernel.exception.SystemException;
190
191
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public com.liferay.portal.model.UserNotificationEvent getUserNotificationEvent(
201 long userNotificationEventId)
202 throws com.liferay.portal.kernel.exception.PortalException,
203 com.liferay.portal.kernel.exception.SystemException;
204
205 @Override
206 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207 public com.liferay.portal.model.PersistedModel getPersistedModel(
208 java.io.Serializable primaryKeyObj)
209 throws com.liferay.portal.kernel.exception.PortalException,
210 com.liferay.portal.kernel.exception.SystemException;
211
212
221 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222 public com.liferay.portal.model.UserNotificationEvent getUserNotificationEventByUuidAndCompanyId(
223 java.lang.String uuid, long companyId)
224 throws com.liferay.portal.kernel.exception.PortalException,
225 com.liferay.portal.kernel.exception.SystemException;
226
227
239 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
240 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
241 int start, int end)
242 throws com.liferay.portal.kernel.exception.SystemException;
243
244
250 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251 public int getUserNotificationEventsCount()
252 throws com.liferay.portal.kernel.exception.SystemException;
253
254
261 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
262 public com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
263 com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
264 throws com.liferay.portal.kernel.exception.SystemException;
265
266
271 public java.lang.String getBeanIdentifier();
272
273
278 public void setBeanIdentifier(java.lang.String beanIdentifier);
279
280 public com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
281 long userId,
282 com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
283 throws com.liferay.portal.kernel.exception.PortalException,
284 com.liferay.portal.kernel.exception.SystemException;
285
286 public com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
287 long userId, java.lang.String type, long timestamp, long deliverBy,
288 java.lang.String payload, boolean archived,
289 com.liferay.portal.service.ServiceContext serviceContext)
290 throws com.liferay.portal.kernel.exception.PortalException,
291 com.liferay.portal.kernel.exception.SystemException;
292
293 public java.util.List<com.liferay.portal.model.UserNotificationEvent> addUserNotificationEvents(
294 long userId,
295 java.util.Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
296 throws com.liferay.portal.kernel.exception.PortalException,
297 com.liferay.portal.kernel.exception.SystemException;
298
299 public void deleteUserNotificationEvent(java.lang.String uuid,
300 long companyId)
301 throws com.liferay.portal.kernel.exception.SystemException;
302
303 public void deleteUserNotificationEvents(
304 java.util.Collection<java.lang.String> uuids, long companyId)
305 throws com.liferay.portal.kernel.exception.SystemException;
306
307 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
309 long userId, boolean archived)
310 throws com.liferay.portal.kernel.exception.SystemException;
311
312 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getArchivedUserNotificationEvents(
314 long userId, boolean archived, int start, int end)
315 throws com.liferay.portal.kernel.exception.SystemException;
316
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public int getArchivedUserNotificationEventsCount(long userId,
319 boolean archived)
320 throws com.liferay.portal.kernel.exception.SystemException;
321
322 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
323 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
324 long userId, boolean delivered)
325 throws com.liferay.portal.kernel.exception.SystemException;
326
327 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getDeliveredUserNotificationEvents(
329 long userId, boolean delivered, int start, int end)
330 throws com.liferay.portal.kernel.exception.SystemException;
331
332 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333 public int getDeliveredUserNotificationEventsCount(long userId,
334 boolean delivered)
335 throws com.liferay.portal.kernel.exception.SystemException;
336
337 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
338 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
339 long userId) throws com.liferay.portal.kernel.exception.SystemException;
340
341
345 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
346 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
347 long userId, boolean archived)
348 throws com.liferay.portal.kernel.exception.SystemException;
349
350
354 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
355 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
356 long userId, boolean archived, int start, int end)
357 throws com.liferay.portal.kernel.exception.SystemException;
358
359 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
360 public java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
361 long userId, int start, int end)
362 throws com.liferay.portal.kernel.exception.SystemException;
363
364 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
365 public int getUserNotificationEventsCount(long userId)
366 throws com.liferay.portal.kernel.exception.SystemException;
367
368
372 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
373 public int getUserNotificationEventsCount(long userId, boolean archived)
374 throws com.liferay.portal.kernel.exception.SystemException;
375
376 public com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
377 java.lang.String uuid, long companyId, boolean archive)
378 throws com.liferay.portal.kernel.exception.SystemException;
379
380 public java.util.List<com.liferay.portal.model.UserNotificationEvent> updateUserNotificationEvents(
381 java.util.Collection<java.lang.String> uuids, long companyId,
382 boolean archive)
383 throws com.liferay.portal.kernel.exception.SystemException;
384 }