001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class UserNotificationEventLocalServiceUtil {
035
040
041
048 public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
049 com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addUserNotificationEvent(userNotificationEvent);
052 }
053
054
060 public static com.liferay.portal.model.UserNotificationEvent createUserNotificationEvent(
061 long userNotificationEventId) {
062 return getService().createUserNotificationEvent(userNotificationEventId);
063 }
064
065
072 public static void deleteUserNotificationEvent(long userNotificationEventId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteUserNotificationEvent(userNotificationEventId);
076 }
077
078
084 public static void deleteUserNotificationEvent(
085 com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
086 throws com.liferay.portal.kernel.exception.SystemException {
087 getService().deleteUserNotificationEvent(userNotificationEvent);
088 }
089
090
097 @SuppressWarnings("rawtypes")
098 public static java.util.List dynamicQuery(
099 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().dynamicQuery(dynamicQuery);
102 }
103
104
117 @SuppressWarnings("rawtypes")
118 public static java.util.List dynamicQuery(
119 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120 int end) throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().dynamicQuery(dynamicQuery, start, end);
122 }
123
124
138 @SuppressWarnings("rawtypes")
139 public static java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException {
144 return getService()
145 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
146 }
147
148
155 public static long dynamicQueryCount(
156 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getService().dynamicQueryCount(dynamicQuery);
159 }
160
161
169 public static com.liferay.portal.model.UserNotificationEvent getUserNotificationEvent(
170 long userNotificationEventId)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException {
173 return getService().getUserNotificationEvent(userNotificationEventId);
174 }
175
176 public static com.liferay.portal.model.PersistedModel getPersistedModel(
177 java.io.Serializable primaryKeyObj)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException {
180 return getService().getPersistedModel(primaryKeyObj);
181 }
182
183
195 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
196 int start, int end)
197 throws com.liferay.portal.kernel.exception.SystemException {
198 return getService().getUserNotificationEvents(start, end);
199 }
200
201
207 public static int getUserNotificationEventsCount()
208 throws com.liferay.portal.kernel.exception.SystemException {
209 return getService().getUserNotificationEventsCount();
210 }
211
212
219 public static com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
220 com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
221 throws com.liferay.portal.kernel.exception.SystemException {
222 return getService().updateUserNotificationEvent(userNotificationEvent);
223 }
224
225
233 public static com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
234 com.liferay.portal.model.UserNotificationEvent userNotificationEvent,
235 boolean merge)
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getService()
238 .updateUserNotificationEvent(userNotificationEvent, merge);
239 }
240
241
246 public static java.lang.String getBeanIdentifier() {
247 return getService().getBeanIdentifier();
248 }
249
250
255 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
256 getService().setBeanIdentifier(beanIdentifier);
257 }
258
259 public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
260 long userId,
261 com.liferay.portal.kernel.notifications.NotificationEvent notificationEvent)
262 throws com.liferay.portal.kernel.exception.PortalException,
263 com.liferay.portal.kernel.exception.SystemException {
264 return getService().addUserNotificationEvent(userId, notificationEvent);
265 }
266
267 public static com.liferay.portal.model.UserNotificationEvent addUserNotificationEvent(
268 long userId, java.lang.String type, long timestamp, long deliverBy,
269 java.lang.String payload, boolean archived,
270 com.liferay.portal.service.ServiceContext serviceContext)
271 throws com.liferay.portal.kernel.exception.PortalException,
272 com.liferay.portal.kernel.exception.SystemException {
273 return getService()
274 .addUserNotificationEvent(userId, type, timestamp,
275 deliverBy, payload, archived, serviceContext);
276 }
277
278 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> addUserNotificationEvents(
279 long userId,
280 java.util.Collection<com.liferay.portal.kernel.notifications.NotificationEvent> notificationEvents)
281 throws com.liferay.portal.kernel.exception.PortalException,
282 com.liferay.portal.kernel.exception.SystemException {
283 return getService().addUserNotificationEvents(userId, notificationEvents);
284 }
285
286 public static void deleteUserNotificationEvent(java.lang.String uuid)
287 throws com.liferay.portal.kernel.exception.SystemException {
288 getService().deleteUserNotificationEvent(uuid);
289 }
290
291 public static void deleteUserNotificationEvents(
292 java.util.Collection<java.lang.String> uuids)
293 throws com.liferay.portal.kernel.exception.SystemException {
294 getService().deleteUserNotificationEvents(uuids);
295 }
296
297 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
298 long userId) throws com.liferay.portal.kernel.exception.SystemException {
299 return getService().getUserNotificationEvents(userId);
300 }
301
302 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
303 long userId, boolean archived)
304 throws com.liferay.portal.kernel.exception.SystemException {
305 return getService().getUserNotificationEvents(userId, archived);
306 }
307
308 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> getUserNotificationEvents(
309 long userId, boolean archived, int start, int end)
310 throws com.liferay.portal.kernel.exception.SystemException {
311 return getService()
312 .getUserNotificationEvents(userId, archived, start, end);
313 }
314
315 public static com.liferay.portal.model.UserNotificationEvent updateUserNotificationEvent(
316 java.lang.String uuid, boolean archive)
317 throws com.liferay.portal.kernel.exception.SystemException {
318 return getService().updateUserNotificationEvent(uuid, archive);
319 }
320
321 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> updateUserNotificationEvents(
322 java.util.Collection<java.lang.String> uuids, boolean archive)
323 throws com.liferay.portal.kernel.exception.SystemException {
324 return getService().updateUserNotificationEvents(uuids, archive);
325 }
326
327 public static UserNotificationEventLocalService getService() {
328 if (_service == null) {
329 _service = (UserNotificationEventLocalService)PortalBeanLocatorUtil.locate(UserNotificationEventLocalService.class.getName());
330
331 ReferenceRegistry.registerReference(UserNotificationEventLocalServiceUtil.class,
332 "_service");
333 MethodCache.remove(UserNotificationEventLocalService.class);
334 }
335
336 return _service;
337 }
338
339 public void setService(UserNotificationEventLocalService service) {
340 MethodCache.remove(UserNotificationEventLocalService.class);
341
342 _service = service;
343
344 ReferenceRegistry.registerReference(UserNotificationEventLocalServiceUtil.class,
345 "_service");
346 MethodCache.remove(UserNotificationEventLocalService.class);
347 }
348
349 private static UserNotificationEventLocalService _service;
350 }