001
014
015 package com.liferay.portlet.journal.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 JournalFeedLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
049 com.liferay.portlet.journal.model.JournalFeed journalFeed)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addJournalFeed(journalFeed);
052 }
053
054
060 public static com.liferay.portlet.journal.model.JournalFeed createJournalFeed(
061 long id) {
062 return getService().createJournalFeed(id);
063 }
064
065
072 public static void deleteJournalFeed(long id)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteJournalFeed(id);
076 }
077
078
084 public static void deleteJournalFeed(
085 com.liferay.portlet.journal.model.JournalFeed journalFeed)
086 throws com.liferay.portal.kernel.exception.SystemException {
087 getService().deleteJournalFeed(journalFeed);
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 public static com.liferay.portlet.journal.model.JournalFeed fetchJournalFeed(
162 long id) throws com.liferay.portal.kernel.exception.SystemException {
163 return getService().fetchJournalFeed(id);
164 }
165
166
174 public static com.liferay.portlet.journal.model.JournalFeed getJournalFeed(
175 long id)
176 throws com.liferay.portal.kernel.exception.PortalException,
177 com.liferay.portal.kernel.exception.SystemException {
178 return getService().getJournalFeed(id);
179 }
180
181 public static com.liferay.portal.model.PersistedModel getPersistedModel(
182 java.io.Serializable primaryKeyObj)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getPersistedModel(primaryKeyObj);
186 }
187
188
197 public static com.liferay.portlet.journal.model.JournalFeed getJournalFeedByUuidAndGroupId(
198 java.lang.String uuid, long groupId)
199 throws com.liferay.portal.kernel.exception.PortalException,
200 com.liferay.portal.kernel.exception.SystemException {
201 return getService().getJournalFeedByUuidAndGroupId(uuid, groupId);
202 }
203
204
216 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
217 int start, int end)
218 throws com.liferay.portal.kernel.exception.SystemException {
219 return getService().getJournalFeeds(start, end);
220 }
221
222
228 public static int getJournalFeedsCount()
229 throws com.liferay.portal.kernel.exception.SystemException {
230 return getService().getJournalFeedsCount();
231 }
232
233
240 public static com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
241 com.liferay.portlet.journal.model.JournalFeed journalFeed)
242 throws com.liferay.portal.kernel.exception.SystemException {
243 return getService().updateJournalFeed(journalFeed);
244 }
245
246
254 public static com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
255 com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
256 throws com.liferay.portal.kernel.exception.SystemException {
257 return getService().updateJournalFeed(journalFeed, merge);
258 }
259
260
265 public static java.lang.String getBeanIdentifier() {
266 return getService().getBeanIdentifier();
267 }
268
269
274 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
275 getService().setBeanIdentifier(beanIdentifier);
276 }
277
278 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
279 long userId, long groupId, java.lang.String feedId, boolean autoFeedId,
280 java.lang.String name, java.lang.String description,
281 java.lang.String type, java.lang.String structureId,
282 java.lang.String templateId, java.lang.String rendererTemplateId,
283 int delta, java.lang.String orderByCol, java.lang.String orderByType,
284 java.lang.String targetLayoutFriendlyUrl,
285 java.lang.String targetPortletId, java.lang.String contentField,
286 java.lang.String feedType, double feedVersion,
287 com.liferay.portal.service.ServiceContext serviceContext)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException {
290 return getService()
291 .addFeed(userId, groupId, feedId, autoFeedId, name,
292 description, type, structureId, templateId, rendererTemplateId,
293 delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
294 targetPortletId, contentField, feedType, feedVersion, serviceContext);
295 }
296
297 public static void addFeedResources(
298 com.liferay.portlet.journal.model.JournalFeed feed,
299 boolean addGroupPermissions, boolean addGuestPermissions)
300 throws com.liferay.portal.kernel.exception.PortalException,
301 com.liferay.portal.kernel.exception.SystemException {
302 getService()
303 .addFeedResources(feed, addGroupPermissions, addGuestPermissions);
304 }
305
306 public static void addFeedResources(
307 com.liferay.portlet.journal.model.JournalFeed feed,
308 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException {
311 getService().addFeedResources(feed, groupPermissions, guestPermissions);
312 }
313
314 public static void addFeedResources(long feedId,
315 boolean addGroupPermissions, boolean addGuestPermissions)
316 throws com.liferay.portal.kernel.exception.PortalException,
317 com.liferay.portal.kernel.exception.SystemException {
318 getService()
319 .addFeedResources(feedId, addGroupPermissions, addGuestPermissions);
320 }
321
322 public static void addFeedResources(long feedId,
323 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
324 throws com.liferay.portal.kernel.exception.PortalException,
325 com.liferay.portal.kernel.exception.SystemException {
326 getService().addFeedResources(feedId, groupPermissions, guestPermissions);
327 }
328
329 public static void deleteFeed(
330 com.liferay.portlet.journal.model.JournalFeed feed)
331 throws com.liferay.portal.kernel.exception.PortalException,
332 com.liferay.portal.kernel.exception.SystemException {
333 getService().deleteFeed(feed);
334 }
335
336 public static void deleteFeed(long feedId)
337 throws com.liferay.portal.kernel.exception.PortalException,
338 com.liferay.portal.kernel.exception.SystemException {
339 getService().deleteFeed(feedId);
340 }
341
342 public static void deleteFeed(long groupId, java.lang.String feedId)
343 throws com.liferay.portal.kernel.exception.PortalException,
344 com.liferay.portal.kernel.exception.SystemException {
345 getService().deleteFeed(groupId, feedId);
346 }
347
348 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
349 long feedId)
350 throws com.liferay.portal.kernel.exception.PortalException,
351 com.liferay.portal.kernel.exception.SystemException {
352 return getService().getFeed(feedId);
353 }
354
355 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
356 long groupId, java.lang.String feedId)
357 throws com.liferay.portal.kernel.exception.PortalException,
358 com.liferay.portal.kernel.exception.SystemException {
359 return getService().getFeed(groupId, feedId);
360 }
361
362 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
363 throws com.liferay.portal.kernel.exception.SystemException {
364 return getService().getFeeds();
365 }
366
367 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
368 long groupId)
369 throws com.liferay.portal.kernel.exception.SystemException {
370 return getService().getFeeds(groupId);
371 }
372
373 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
374 long groupId, int start, int end)
375 throws com.liferay.portal.kernel.exception.SystemException {
376 return getService().getFeeds(groupId, start, end);
377 }
378
379 public static int getFeedsCount(long groupId)
380 throws com.liferay.portal.kernel.exception.SystemException {
381 return getService().getFeedsCount(groupId);
382 }
383
384 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
385 long companyId, long groupId, java.lang.String keywords, int start,
386 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
387 throws com.liferay.portal.kernel.exception.SystemException {
388 return getService().search(companyId, groupId, keywords, start, end, obc);
389 }
390
391 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
392 long companyId, long groupId, java.lang.String feedId,
393 java.lang.String name, java.lang.String description,
394 boolean andOperator, int start, int end,
395 com.liferay.portal.kernel.util.OrderByComparator obc)
396 throws com.liferay.portal.kernel.exception.SystemException {
397 return getService()
398 .search(companyId, groupId, feedId, name, description,
399 andOperator, start, end, obc);
400 }
401
402 public static int searchCount(long companyId, long groupId,
403 java.lang.String keywords)
404 throws com.liferay.portal.kernel.exception.SystemException {
405 return getService().searchCount(companyId, groupId, keywords);
406 }
407
408 public static int searchCount(long companyId, long groupId,
409 java.lang.String feedId, java.lang.String name,
410 java.lang.String description, boolean andOperator)
411 throws com.liferay.portal.kernel.exception.SystemException {
412 return getService()
413 .searchCount(companyId, groupId, feedId, name, description,
414 andOperator);
415 }
416
417 public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
418 long groupId, java.lang.String feedId, java.lang.String name,
419 java.lang.String description, java.lang.String type,
420 java.lang.String structureId, java.lang.String templateId,
421 java.lang.String rendererTemplateId, int delta,
422 java.lang.String orderByCol, java.lang.String orderByType,
423 java.lang.String targetLayoutFriendlyUrl,
424 java.lang.String targetPortletId, java.lang.String contentField,
425 java.lang.String feedType, double feedVersion,
426 com.liferay.portal.service.ServiceContext serviceContext)
427 throws com.liferay.portal.kernel.exception.PortalException,
428 com.liferay.portal.kernel.exception.SystemException {
429 return getService()
430 .updateFeed(groupId, feedId, name, description, type,
431 structureId, templateId, rendererTemplateId, delta, orderByCol,
432 orderByType, targetLayoutFriendlyUrl, targetPortletId,
433 contentField, feedType, feedVersion, serviceContext);
434 }
435
436 public static JournalFeedLocalService getService() {
437 if (_service == null) {
438 _service = (JournalFeedLocalService)PortalBeanLocatorUtil.locate(JournalFeedLocalService.class.getName());
439
440 ReferenceRegistry.registerReference(JournalFeedLocalServiceUtil.class,
441 "_service");
442 MethodCache.remove(JournalFeedLocalService.class);
443 }
444
445 return _service;
446 }
447
448 public void setService(JournalFeedLocalService service) {
449 MethodCache.remove(JournalFeedLocalService.class);
450
451 _service = service;
452
453 ReferenceRegistry.registerReference(JournalFeedLocalServiceUtil.class,
454 "_service");
455 MethodCache.remove(JournalFeedLocalService.class);
456 }
457
458 private static JournalFeedLocalService _service;
459 }