001
014
015 package com.liferay.portlet.journal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class JournalFeedLocalServiceUtil {
038
043
044
051 public static com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
052 com.liferay.portlet.journal.model.JournalFeed journalFeed)
053 throws com.liferay.portal.kernel.exception.SystemException {
054 return getService().addJournalFeed(journalFeed);
055 }
056
057
063 public static com.liferay.portlet.journal.model.JournalFeed createJournalFeed(
064 long id) {
065 return getService().createJournalFeed(id);
066 }
067
068
076 public static com.liferay.portlet.journal.model.JournalFeed deleteJournalFeed(
077 long id)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().deleteJournalFeed(id);
081 }
082
083
090 public static com.liferay.portlet.journal.model.JournalFeed deleteJournalFeed(
091 com.liferay.portlet.journal.model.JournalFeed journalFeed)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().deleteJournalFeed(journalFeed);
094 }
095
096 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097 return getService().dynamicQuery();
098 }
099
100
107 @SuppressWarnings("rawtypes")
108 public static java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().dynamicQuery(dynamicQuery);
112 }
113
114
127 @SuppressWarnings("rawtypes")
128 public static java.util.List dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end) throws com.liferay.portal.kernel.exception.SystemException {
131 return getService().dynamicQuery(dynamicQuery, start, end);
132 }
133
134
148 @SuppressWarnings("rawtypes")
149 public static java.util.List dynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151 int end,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService()
155 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156 }
157
158
165 public static long dynamicQueryCount(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService().dynamicQueryCount(dynamicQuery);
169 }
170
171
179 public static long dynamicQueryCount(
180 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181 com.liferay.portal.kernel.dao.orm.Projection projection)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService().dynamicQueryCount(dynamicQuery, projection);
184 }
185
186 public static com.liferay.portlet.journal.model.JournalFeed fetchJournalFeed(
187 long id) throws com.liferay.portal.kernel.exception.SystemException {
188 return getService().fetchJournalFeed(id);
189 }
190
191
199 public static com.liferay.portlet.journal.model.JournalFeed fetchJournalFeedByUuidAndCompanyId(
200 java.lang.String uuid, long companyId)
201 throws com.liferay.portal.kernel.exception.SystemException {
202 return getService().fetchJournalFeedByUuidAndCompanyId(uuid, companyId);
203 }
204
205
213 public static com.liferay.portlet.journal.model.JournalFeed fetchJournalFeedByUuidAndGroupId(
214 java.lang.String uuid, long groupId)
215 throws com.liferay.portal.kernel.exception.SystemException {
216 return getService().fetchJournalFeedByUuidAndGroupId(uuid, groupId);
217 }
218
219
227 public static com.liferay.portlet.journal.model.JournalFeed getJournalFeed(
228 long id)
229 throws com.liferay.portal.kernel.exception.PortalException,
230 com.liferay.portal.kernel.exception.SystemException {
231 return getService().getJournalFeed(id);
232 }
233
234 public static com.liferay.portal.model.PersistedModel getPersistedModel(
235 java.io.Serializable primaryKeyObj)
236 throws com.liferay.portal.kernel.exception.PortalException,
237 com.liferay.portal.kernel.exception.SystemException {
238 return getService().getPersistedModel(primaryKeyObj);
239 }
240
241
250 public static com.liferay.portlet.journal.model.JournalFeed getJournalFeedByUuidAndCompanyId(
251 java.lang.String uuid, long companyId)
252 throws com.liferay.portal.kernel.exception.PortalException,
253 com.liferay.portal.kernel.exception.SystemException {
254 return getService().getJournalFeedByUuidAndCompanyId(uuid, companyId);
255 }
256
257
266 public static com.liferay.portlet.journal.model.JournalFeed getJournalFeedByUuidAndGroupId(
267 java.lang.String uuid, long groupId)
268 throws com.liferay.portal.kernel.exception.PortalException,
269 com.liferay.portal.kernel.exception.SystemException {
270 return getService().getJournalFeedByUuidAndGroupId(uuid, groupId);
271 }
272
273
285 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
286 int start, int end)
287 throws com.liferay.portal.kernel.exception.SystemException {
288 return getService().getJournalFeeds(start, end);
289 }
290
291
297 public static int getJournalFeedsCount()
298 throws com.liferay.portal.kernel.exception.SystemException {
299 return getService().getJournalFeedsCount();
300 }
301
302
309 public static com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
310 com.liferay.portlet.journal.model.JournalFeed journalFeed)
311 throws com.liferay.portal.kernel.exception.SystemException {
312 return getService().updateJournalFeed(journalFeed);
313 }
314
315
320 public static java.lang.String getBeanIdentifier() {
321 return getService().getBeanIdentifier();
322 }
323
324
329 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
330 getService().setBeanIdentifier(beanIdentifier);
331 }
332
333 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
334 long userId, long groupId, java.lang.String feedId, boolean autoFeedId,
335 java.lang.String name, java.lang.String description,
336 java.lang.String type, java.lang.String structureId,
337 java.lang.String templateId, java.lang.String rendererTemplateId,
338 int delta, java.lang.String orderByCol, java.lang.String orderByType,
339 java.lang.String targetLayoutFriendlyUrl,
340 java.lang.String targetPortletId, java.lang.String contentField,
341 java.lang.String feedFormat, double feedVersion,
342 com.liferay.portal.service.ServiceContext serviceContext)
343 throws com.liferay.portal.kernel.exception.PortalException,
344 com.liferay.portal.kernel.exception.SystemException {
345 return getService()
346 .addFeed(userId, groupId, feedId, autoFeedId, name,
347 description, type, structureId, templateId, rendererTemplateId,
348 delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
349 targetPortletId, contentField, feedFormat, feedVersion,
350 serviceContext);
351 }
352
353 public static void addFeedResources(
354 com.liferay.portlet.journal.model.JournalFeed feed,
355 boolean addGroupPermissions, boolean addGuestPermissions)
356 throws com.liferay.portal.kernel.exception.PortalException,
357 com.liferay.portal.kernel.exception.SystemException {
358 getService()
359 .addFeedResources(feed, addGroupPermissions, addGuestPermissions);
360 }
361
362 public static void addFeedResources(
363 com.liferay.portlet.journal.model.JournalFeed feed,
364 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
365 throws com.liferay.portal.kernel.exception.PortalException,
366 com.liferay.portal.kernel.exception.SystemException {
367 getService().addFeedResources(feed, groupPermissions, guestPermissions);
368 }
369
370 public static void addFeedResources(long feedId,
371 boolean addGroupPermissions, boolean addGuestPermissions)
372 throws com.liferay.portal.kernel.exception.PortalException,
373 com.liferay.portal.kernel.exception.SystemException {
374 getService()
375 .addFeedResources(feedId, addGroupPermissions, addGuestPermissions);
376 }
377
378 public static void addFeedResources(long feedId,
379 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
380 throws com.liferay.portal.kernel.exception.PortalException,
381 com.liferay.portal.kernel.exception.SystemException {
382 getService().addFeedResources(feedId, groupPermissions, guestPermissions);
383 }
384
385 public static void deleteFeed(
386 com.liferay.portlet.journal.model.JournalFeed feed)
387 throws com.liferay.portal.kernel.exception.PortalException,
388 com.liferay.portal.kernel.exception.SystemException {
389 getService().deleteFeed(feed);
390 }
391
392 public static void deleteFeed(long feedId)
393 throws com.liferay.portal.kernel.exception.PortalException,
394 com.liferay.portal.kernel.exception.SystemException {
395 getService().deleteFeed(feedId);
396 }
397
398 public static void deleteFeed(long groupId, java.lang.String feedId)
399 throws com.liferay.portal.kernel.exception.PortalException,
400 com.liferay.portal.kernel.exception.SystemException {
401 getService().deleteFeed(groupId, feedId);
402 }
403
404 public static com.liferay.portlet.journal.model.JournalFeed fetchFeed(
405 long groupId, java.lang.String feedId)
406 throws com.liferay.portal.kernel.exception.SystemException {
407 return getService().fetchFeed(groupId, feedId);
408 }
409
410 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
411 long feedId)
412 throws com.liferay.portal.kernel.exception.PortalException,
413 com.liferay.portal.kernel.exception.SystemException {
414 return getService().getFeed(feedId);
415 }
416
417 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
418 long groupId, java.lang.String feedId)
419 throws com.liferay.portal.kernel.exception.PortalException,
420 com.liferay.portal.kernel.exception.SystemException {
421 return getService().getFeed(groupId, feedId);
422 }
423
424 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
425 throws com.liferay.portal.kernel.exception.SystemException {
426 return getService().getFeeds();
427 }
428
429 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
430 long groupId)
431 throws com.liferay.portal.kernel.exception.SystemException {
432 return getService().getFeeds(groupId);
433 }
434
435 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
436 long groupId, int start, int end)
437 throws com.liferay.portal.kernel.exception.SystemException {
438 return getService().getFeeds(groupId, start, end);
439 }
440
441 public static int getFeedsCount(long groupId)
442 throws com.liferay.portal.kernel.exception.SystemException {
443 return getService().getFeedsCount(groupId);
444 }
445
446 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
447 long companyId, long groupId, java.lang.String keywords, int start,
448 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
449 throws com.liferay.portal.kernel.exception.SystemException {
450 return getService().search(companyId, groupId, keywords, start, end, obc);
451 }
452
453 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
454 long companyId, long groupId, java.lang.String feedId,
455 java.lang.String name, java.lang.String description,
456 boolean andOperator, int start, int end,
457 com.liferay.portal.kernel.util.OrderByComparator obc)
458 throws com.liferay.portal.kernel.exception.SystemException {
459 return getService()
460 .search(companyId, groupId, feedId, name, description,
461 andOperator, start, end, obc);
462 }
463
464 public static int searchCount(long companyId, long groupId,
465 java.lang.String keywords)
466 throws com.liferay.portal.kernel.exception.SystemException {
467 return getService().searchCount(companyId, groupId, keywords);
468 }
469
470 public static int searchCount(long companyId, long groupId,
471 java.lang.String feedId, java.lang.String name,
472 java.lang.String description, boolean andOperator)
473 throws com.liferay.portal.kernel.exception.SystemException {
474 return getService()
475 .searchCount(companyId, groupId, feedId, name, description,
476 andOperator);
477 }
478
479 public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
480 long groupId, java.lang.String feedId, java.lang.String name,
481 java.lang.String description, java.lang.String type,
482 java.lang.String structureId, java.lang.String templateId,
483 java.lang.String rendererTemplateId, int delta,
484 java.lang.String orderByCol, java.lang.String orderByType,
485 java.lang.String targetLayoutFriendlyUrl,
486 java.lang.String targetPortletId, java.lang.String contentField,
487 java.lang.String feedFormat, double feedVersion,
488 com.liferay.portal.service.ServiceContext serviceContext)
489 throws com.liferay.portal.kernel.exception.PortalException,
490 com.liferay.portal.kernel.exception.SystemException {
491 return getService()
492 .updateFeed(groupId, feedId, name, description, type,
493 structureId, templateId, rendererTemplateId, delta, orderByCol,
494 orderByType, targetLayoutFriendlyUrl, targetPortletId,
495 contentField, feedFormat, feedVersion, serviceContext);
496 }
497
498 public static JournalFeedLocalService getService() {
499 if (_service == null) {
500 _service = (JournalFeedLocalService)PortalBeanLocatorUtil.locate(JournalFeedLocalService.class.getName());
501
502 ReferenceRegistry.registerReference(JournalFeedLocalServiceUtil.class,
503 "_service");
504 }
505
506 return _service;
507 }
508
509
512 public void setService(JournalFeedLocalService service) {
513 }
514
515 private static JournalFeedLocalService _service;
516 }