1
14
15 package com.liferay.portlet.journal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class JournalFeedServiceUtil {
40 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
41 long groupId, java.lang.String feedId, boolean autoFeedId,
42 java.lang.String name, java.lang.String description,
43 java.lang.String type, java.lang.String structureId,
44 java.lang.String templateId, java.lang.String rendererTemplateId,
45 int delta, java.lang.String orderByCol, java.lang.String orderByType,
46 java.lang.String targetLayoutFriendlyUrl,
47 java.lang.String targetPortletId, java.lang.String contentField,
48 java.lang.String feedType, double feedVersion,
49 com.liferay.portal.service.ServiceContext serviceContext)
50 throws com.liferay.portal.kernel.exception.PortalException,
51 com.liferay.portal.kernel.exception.SystemException {
52 return getService()
53 .addFeed(groupId, feedId, autoFeedId, name, description,
54 type, structureId, templateId, rendererTemplateId, delta,
55 orderByCol, orderByType, targetLayoutFriendlyUrl, targetPortletId,
56 contentField, feedType, feedVersion, serviceContext);
57 }
58
59 public static void deleteFeed(long groupId, long feedId)
60 throws com.liferay.portal.kernel.exception.PortalException,
61 com.liferay.portal.kernel.exception.SystemException {
62 getService().deleteFeed(groupId, feedId);
63 }
64
65 public static void deleteFeed(long groupId, java.lang.String feedId)
66 throws com.liferay.portal.kernel.exception.PortalException,
67 com.liferay.portal.kernel.exception.SystemException {
68 getService().deleteFeed(groupId, feedId);
69 }
70
71 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
72 long groupId, long feedId)
73 throws com.liferay.portal.kernel.exception.PortalException,
74 com.liferay.portal.kernel.exception.SystemException {
75 return getService().getFeed(groupId, feedId);
76 }
77
78 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
79 long groupId, java.lang.String feedId)
80 throws com.liferay.portal.kernel.exception.PortalException,
81 com.liferay.portal.kernel.exception.SystemException {
82 return getService().getFeed(groupId, feedId);
83 }
84
85 public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
86 long groupId, java.lang.String feedId, java.lang.String name,
87 java.lang.String description, java.lang.String type,
88 java.lang.String structureId, java.lang.String templateId,
89 java.lang.String rendererTemplateId, int delta,
90 java.lang.String orderByCol, java.lang.String orderByType,
91 java.lang.String targetLayoutFriendlyUrl,
92 java.lang.String targetPortletId, java.lang.String contentField,
93 java.lang.String feedType, double feedVersion,
94 com.liferay.portal.service.ServiceContext serviceContext)
95 throws com.liferay.portal.kernel.exception.PortalException,
96 com.liferay.portal.kernel.exception.SystemException {
97 return getService()
98 .updateFeed(groupId, feedId, name, description, type,
99 structureId, templateId, rendererTemplateId, delta, orderByCol,
100 orderByType, targetLayoutFriendlyUrl, targetPortletId,
101 contentField, feedType, feedVersion, serviceContext);
102 }
103
104 public static JournalFeedService getService() {
105 if (_service == null) {
106 _service = (JournalFeedService)PortalBeanLocatorUtil.locate(JournalFeedService.class.getName());
107 }
108
109 return _service;
110 }
111
112 public void setService(JournalFeedService service) {
113 _service = service;
114 }
115
116 private static JournalFeedService _service;
117 }