001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class UserNotificationEventLocalServiceUtil {
034
039
040
047 public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
048 com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addUserNotificationEvent(userNotificationEvent);
051 }
052
053
059 public static com.liferay.portal.model.UserNotificationEvent createUserNotificationEvent(
060 long userNotificationEventId) {
061 return getService().createUserNotificationEvent(userNotificationEventId);
062 }
063
064
072 public static com.liferay.portal.model.UserNotificationEvent deleteUserNotificationEvent(
073 long userNotificationEventId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteUserNotificationEvent(userNotificationEventId);
077 }
078
079
086 public static com.liferay.portal.model.UserNotificationEvent deleteUserNotificationEvent(
087 com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteUserNotificationEvent(userNotificationEvent);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static 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 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portal.model.UserNotificationEvent fetchUserNotificationEvent(
168 long userNotificationEventId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchUserNotificationEvent(userNotificationEventId);
171 }
172
173
181 public static com.liferay.portal.model.UserNotificationEvent getUserNotificationEvent(
182 long userNotificationEventId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getUserNotificationEvent(userNotificationEventId);
186 }
187
188 public static com.liferay.portal.model.PersistedModel getPersistedModel(
189 java.io.Serializable primaryKeyObj)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService().getPersistedModel(primaryKeyObj);
193 }
194
195
207 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
208 int start, int end)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getService().getUserNotificationEvents(start, end);
211 }
212
213
219 public static int getUserNotificationEventsCount()
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getService().getUserNotificationEventsCount();
222 }
223
224
231 public static com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
232 com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
233 throws com.liferay.portal.kernel.exception.SystemException {
234 return getService().updateUserNotificationEvent(userNotificationEvent);
235 }
236
237
242 public static java.lang.String getBeanIdentifier() {
243 return getService().getBeanIdentifier();
244 }
245
246
251 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
252 getService().setBeanIdentifier(beanIdentifier);
253 }
254
255 public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
256 long userId,
257 com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException {
260 return getService().addUserNotificationEvent(userId, notificationEvent);
261 }
262
263 public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
264 long userId, java.lang.String type, long timestamp, long deliverBy,
265 java.lang.String payload, boolean archived,
266 com.liferay.portal.service.ServiceContext serviceContext)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException {
269 return getService()
270 .addUserNotificationEvent(userId, type, timestamp,
271 deliverBy, payload, archived, serviceContext);
272 }
273
274 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> addUserNotificationEvents(
275 long userId,
276 java.util.Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException {
279 return getService().addUserNotificationEvents(userId, notificationEvents);
280 }
281
282 public static void deleteUserNotificationEvent(java.lang.String uuid,
283 long companyId)
284 throws com.liferay.portal.kernel.exception.SystemException {
285 getService().deleteUserNotificationEvent(uuid, companyId);
286 }
287
288 public static void deleteUserNotificationEvents(
289 java.util.Collection<java.lang.String> uuids, long companyId)
290 throws com.liferay.portal.kernel.exception.SystemException {
291 getService().deleteUserNotificationEvents(uuids, companyId);
292 }
293
294 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
295 long userId) throws com.liferay.portal.kernel.exception.SystemException {
296 return getService().getUserNotificationEvents(userId);
297 }
298
299 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
300 long userId, boolean archived)
301 throws com.liferay.portal.kernel.exception.SystemException {
302 return getService().getUserNotificationEvents(userId, archived);
303 }
304
305 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
306 long userId, boolean archived, int start, int end)
307 throws com.liferay.portal.kernel.exception.SystemException {
308 return getService()
309 .getUserNotificationEvents(userId, archived, start, end);
310 }
311
312 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
313 long userId, int start, int end)
314 throws com.liferay.portal.kernel.exception.SystemException {
315 return getService().getUserNotificationEvents(userId, start, end);
316 }
317
318 public static int getUserNotificationEventsCount(long userId)
319 throws com.liferay.portal.kernel.exception.SystemException {
320 return getService().getUserNotificationEventsCount(userId);
321 }
322
323 public static int getUserNotificationEventsCount(long userId,
324 boolean archived)
325 throws com.liferay.portal.kernel.exception.SystemException {
326 return getService().getUserNotificationEventsCount(userId, archived);
327 }
328
329 public static com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
330 java.lang.String uuid, long companyId, boolean archive)
331 throws com.liferay.portal.kernel.exception.SystemException {
332 return getService().updateUserNotificationEvent(uuid, companyId, archive);
333 }
334
335 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> updateUserNotificationEvents(
336 java.util.Collection<java.lang.String> uuids, long companyId,
337 boolean archive)
338 throws com.liferay.portal.kernel.exception.SystemException {
339 return getService()
340 .updateUserNotificationEvents(uuids, companyId, archive);
341 }
342
343 public static UserNotificationEventLocalService getService() {
344 if (_service == null) {
345 _service = (UserNotificationEventLocalService)PortalBeanLocatorUtil.locate(UserNotificationEventLocalService.class.getName());
346
347 ReferenceRegistry.registerReference(UserNotificationEventLocalServiceUtil.class,
348 "_service");
349 }
350
351 return _service;
352 }
353
354
357 public void setService(UserNotificationEventLocalService service) {
358 }
359
360 private static UserNotificationEventLocalService _service;
361 }