1
22
23 package com.liferay.portlet.journal.service;
24
25
26
47 public class JournalFeedLocalServiceUtil {
48 public static com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
49 com.liferay.portlet.journal.model.JournalFeed journalFeed)
50 throws com.liferay.portal.SystemException {
51 return getService().addJournalFeed(journalFeed);
52 }
53
54 public static com.liferay.portlet.journal.model.JournalFeed createJournalFeed(
55 long id) {
56 return getService().createJournalFeed(id);
57 }
58
59 public static void deleteJournalFeed(long id)
60 throws com.liferay.portal.PortalException,
61 com.liferay.portal.SystemException {
62 getService().deleteJournalFeed(id);
63 }
64
65 public static void deleteJournalFeed(
66 com.liferay.portlet.journal.model.JournalFeed journalFeed)
67 throws com.liferay.portal.SystemException {
68 getService().deleteJournalFeed(journalFeed);
69 }
70
71 public static java.util.List<Object> dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73 throws com.liferay.portal.SystemException {
74 return getService().dynamicQuery(dynamicQuery);
75 }
76
77 public static java.util.List<Object> dynamicQuery(
78 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79 int end) throws com.liferay.portal.SystemException {
80 return getService().dynamicQuery(dynamicQuery, start, end);
81 }
82
83 public static com.liferay.portlet.journal.model.JournalFeed getJournalFeed(
84 long id)
85 throws com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException {
87 return getService().getJournalFeed(id);
88 }
89
90 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
91 int start, int end) throws com.liferay.portal.SystemException {
92 return getService().getJournalFeeds(start, end);
93 }
94
95 public static int getJournalFeedsCount()
96 throws com.liferay.portal.SystemException {
97 return getService().getJournalFeedsCount();
98 }
99
100 public static com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
101 com.liferay.portlet.journal.model.JournalFeed journalFeed)
102 throws com.liferay.portal.SystemException {
103 return getService().updateJournalFeed(journalFeed);
104 }
105
106 public static com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
107 com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
108 throws com.liferay.portal.SystemException {
109 return getService().updateJournalFeed(journalFeed, merge);
110 }
111
112 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
113 long userId, long groupId, java.lang.String feedId, boolean autoFeedId,
114 java.lang.String name, java.lang.String description,
115 java.lang.String type, java.lang.String structureId,
116 java.lang.String templateId, java.lang.String rendererTemplateId,
117 int delta, java.lang.String orderByCol, java.lang.String orderByType,
118 java.lang.String targetLayoutFriendlyUrl,
119 java.lang.String targetPortletId, java.lang.String contentField,
120 java.lang.String feedType, double feedVersion,
121 com.liferay.portal.service.ServiceContext serviceContext)
122 throws com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException {
124 return getService()
125 .addFeed(userId, groupId, feedId, autoFeedId, name,
126 description, type, structureId, templateId, rendererTemplateId,
127 delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
128 targetPortletId, contentField, feedType, feedVersion, serviceContext);
129 }
130
131 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
132 java.lang.String uuid, long userId, long groupId,
133 java.lang.String feedId, boolean autoFeedId, java.lang.String name,
134 java.lang.String description, java.lang.String type,
135 java.lang.String structureId, java.lang.String templateId,
136 java.lang.String rendererTemplateId, int delta,
137 java.lang.String orderByCol, java.lang.String orderByType,
138 java.lang.String targetLayoutFriendlyUrl,
139 java.lang.String targetPortletId, java.lang.String contentField,
140 java.lang.String feedType, double feedVersion,
141 com.liferay.portal.service.ServiceContext serviceContext)
142 throws com.liferay.portal.PortalException,
143 com.liferay.portal.SystemException {
144 return getService()
145 .addFeed(uuid, userId, groupId, feedId, autoFeedId, name,
146 description, type, structureId, templateId, rendererTemplateId,
147 delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
148 targetPortletId, contentField, feedType, feedVersion, serviceContext);
149 }
150
151 public static void addFeedResources(long feedId,
152 boolean addCommunityPermissions, boolean addGuestPermissions)
153 throws com.liferay.portal.PortalException,
154 com.liferay.portal.SystemException {
155 getService()
156 .addFeedResources(feedId, addCommunityPermissions,
157 addGuestPermissions);
158 }
159
160 public static void addFeedResources(
161 com.liferay.portlet.journal.model.JournalFeed feed,
162 boolean addCommunityPermissions, boolean addGuestPermissions)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException {
165 getService()
166 .addFeedResources(feed, addCommunityPermissions, addGuestPermissions);
167 }
168
169 public static void addFeedResources(long feedId,
170 java.lang.String[] communityPermissions,
171 java.lang.String[] guestPermissions)
172 throws com.liferay.portal.PortalException,
173 com.liferay.portal.SystemException {
174 getService()
175 .addFeedResources(feedId, communityPermissions, guestPermissions);
176 }
177
178 public static void addFeedResources(
179 com.liferay.portlet.journal.model.JournalFeed feed,
180 java.lang.String[] communityPermissions,
181 java.lang.String[] guestPermissions)
182 throws com.liferay.portal.PortalException,
183 com.liferay.portal.SystemException {
184 getService()
185 .addFeedResources(feed, communityPermissions, guestPermissions);
186 }
187
188 public static void deleteFeed(long feedId)
189 throws com.liferay.portal.PortalException,
190 com.liferay.portal.SystemException {
191 getService().deleteFeed(feedId);
192 }
193
194 public static void deleteFeed(long groupId, java.lang.String feedId)
195 throws com.liferay.portal.PortalException,
196 com.liferay.portal.SystemException {
197 getService().deleteFeed(groupId, feedId);
198 }
199
200 public static void deleteFeed(
201 com.liferay.portlet.journal.model.JournalFeed feed)
202 throws com.liferay.portal.PortalException,
203 com.liferay.portal.SystemException {
204 getService().deleteFeed(feed);
205 }
206
207 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
208 long feedId)
209 throws com.liferay.portal.PortalException,
210 com.liferay.portal.SystemException {
211 return getService().getFeed(feedId);
212 }
213
214 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
215 long groupId, java.lang.String feedId)
216 throws com.liferay.portal.PortalException,
217 com.liferay.portal.SystemException {
218 return getService().getFeed(groupId, feedId);
219 }
220
221 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
222 throws com.liferay.portal.SystemException {
223 return getService().getFeeds();
224 }
225
226 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
227 long groupId) throws com.liferay.portal.SystemException {
228 return getService().getFeeds(groupId);
229 }
230
231 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
232 long groupId, int start, int end)
233 throws com.liferay.portal.SystemException {
234 return getService().getFeeds(groupId, start, end);
235 }
236
237 public static int getFeedsCount(long groupId)
238 throws com.liferay.portal.SystemException {
239 return getService().getFeedsCount(groupId);
240 }
241
242 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
243 long companyId, long groupId, java.lang.String keywords, int start,
244 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
245 throws com.liferay.portal.SystemException {
246 return getService().search(companyId, groupId, keywords, start, end, obc);
247 }
248
249 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
250 long companyId, long groupId, java.lang.String feedId,
251 java.lang.String name, java.lang.String description,
252 boolean andOperator, int start, int end,
253 com.liferay.portal.kernel.util.OrderByComparator obc)
254 throws com.liferay.portal.SystemException {
255 return getService()
256 .search(companyId, groupId, feedId, name, description,
257 andOperator, start, end, obc);
258 }
259
260 public static int searchCount(long companyId, long groupId,
261 java.lang.String keywords) throws com.liferay.portal.SystemException {
262 return getService().searchCount(companyId, groupId, keywords);
263 }
264
265 public static int searchCount(long companyId, long groupId,
266 java.lang.String feedId, java.lang.String name,
267 java.lang.String description, boolean andOperator)
268 throws com.liferay.portal.SystemException {
269 return getService()
270 .searchCount(companyId, groupId, feedId, name, description,
271 andOperator);
272 }
273
274 public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
275 long groupId, java.lang.String feedId, java.lang.String name,
276 java.lang.String description, java.lang.String type,
277 java.lang.String structureId, java.lang.String templateId,
278 java.lang.String rendererTemplateId, int delta,
279 java.lang.String orderByCol, java.lang.String orderByType,
280 java.lang.String targetLayoutFriendlyUrl,
281 java.lang.String targetPortletId, java.lang.String contentField,
282 java.lang.String feedType, double feedVersion,
283 com.liferay.portal.service.ServiceContext serviceContext)
284 throws com.liferay.portal.PortalException,
285 com.liferay.portal.SystemException {
286 return getService()
287 .updateFeed(groupId, feedId, name, description, type,
288 structureId, templateId, rendererTemplateId, delta, orderByCol,
289 orderByType, targetLayoutFriendlyUrl, targetPortletId,
290 contentField, feedType, feedVersion, serviceContext);
291 }
292
293 public static JournalFeedLocalService getService() {
294 if (_service == null) {
295 throw new RuntimeException("JournalFeedLocalService is not set");
296 }
297
298 return _service;
299 }
300
301 public void setService(JournalFeedLocalService service) {
302 _service = service;
303 }
304
305 private static JournalFeedLocalService _service;
306 }