1
22
23 package com.liferay.portlet.journal.service;
24
25
26
53 public class JournalFeedLocalServiceUtil {
54 public static com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
55 com.liferay.portlet.journal.model.JournalFeed journalFeed)
56 throws com.liferay.portal.SystemException {
57 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
58
59 return journalFeedLocalService.addJournalFeed(journalFeed);
60 }
61
62 public static void deleteJournalFeed(long id)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException {
65 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
66
67 journalFeedLocalService.deleteJournalFeed(id);
68 }
69
70 public static void deleteJournalFeed(
71 com.liferay.portlet.journal.model.JournalFeed journalFeed)
72 throws com.liferay.portal.SystemException {
73 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
74
75 journalFeedLocalService.deleteJournalFeed(journalFeed);
76 }
77
78 public static java.util.List<Object> dynamicQuery(
79 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
80 throws com.liferay.portal.SystemException {
81 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
82
83 return journalFeedLocalService.dynamicQuery(dynamicQuery);
84 }
85
86 public static java.util.List<Object> dynamicQuery(
87 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
88 int end) throws com.liferay.portal.SystemException {
89 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
90
91 return journalFeedLocalService.dynamicQuery(dynamicQuery, start, end);
92 }
93
94 public static com.liferay.portlet.journal.model.JournalFeed getJournalFeed(
95 long id)
96 throws com.liferay.portal.PortalException,
97 com.liferay.portal.SystemException {
98 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
99
100 return journalFeedLocalService.getJournalFeed(id);
101 }
102
103 public static com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
104 com.liferay.portlet.journal.model.JournalFeed journalFeed)
105 throws com.liferay.portal.SystemException {
106 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
107
108 return journalFeedLocalService.updateJournalFeed(journalFeed);
109 }
110
111 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
112 long userId, long plid, java.lang.String feedId, boolean autoFeedId,
113 java.lang.String name, java.lang.String description,
114 java.lang.String type, java.lang.String structureId,
115 java.lang.String templateId, java.lang.String rendererTemplateId,
116 int delta, java.lang.String orderByCol, java.lang.String orderByType,
117 java.lang.String targetLayoutFriendlyUrl,
118 java.lang.String targetPortletId, java.lang.String contentField,
119 java.lang.String feedType, double feedVersion,
120 boolean addCommunityPermissions, boolean addGuestPermissions)
121 throws com.liferay.portal.PortalException,
122 com.liferay.portal.SystemException {
123 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
124
125 return journalFeedLocalService.addFeed(userId, plid, feedId,
126 autoFeedId, name, description, type, structureId, templateId,
127 rendererTemplateId, delta, orderByCol, orderByType,
128 targetLayoutFriendlyUrl, targetPortletId, contentField, feedType,
129 feedVersion, addCommunityPermissions, addGuestPermissions);
130 }
131
132 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
133 long userId, long plid, java.lang.String feedId, boolean autoFeedId,
134 java.lang.String name, java.lang.String description,
135 java.lang.String type, java.lang.String structureId,
136 java.lang.String templateId, java.lang.String rendererTemplateId,
137 int delta, 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 java.lang.String[] communityPermissions,
142 java.lang.String[] guestPermissions)
143 throws com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException {
145 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
146
147 return journalFeedLocalService.addFeed(userId, plid, feedId,
148 autoFeedId, name, description, type, structureId, templateId,
149 rendererTemplateId, delta, orderByCol, orderByType,
150 targetLayoutFriendlyUrl, targetPortletId, contentField, feedType,
151 feedVersion, communityPermissions, guestPermissions);
152 }
153
154 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
155 java.lang.String uuid, long userId, long plid, java.lang.String feedId,
156 boolean autoFeedId, java.lang.String name,
157 java.lang.String description, java.lang.String type,
158 java.lang.String structureId, java.lang.String templateId,
159 java.lang.String rendererTemplateId, int delta,
160 java.lang.String orderByCol, java.lang.String orderByType,
161 java.lang.String targetLayoutFriendlyUrl,
162 java.lang.String targetPortletId, java.lang.String contentField,
163 java.lang.String feedType, double feedVersion,
164 boolean addCommunityPermissions, boolean addGuestPermissions)
165 throws com.liferay.portal.PortalException,
166 com.liferay.portal.SystemException {
167 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
168
169 return journalFeedLocalService.addFeed(uuid, userId, plid, feedId,
170 autoFeedId, name, description, type, structureId, templateId,
171 rendererTemplateId, delta, orderByCol, orderByType,
172 targetLayoutFriendlyUrl, targetPortletId, contentField, feedType,
173 feedVersion, addCommunityPermissions, addGuestPermissions);
174 }
175
176 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
177 java.lang.String uuid, long userId, long plid, java.lang.String feedId,
178 boolean autoFeedId, java.lang.String name,
179 java.lang.String description, java.lang.String type,
180 java.lang.String structureId, java.lang.String templateId,
181 java.lang.String rendererTemplateId, int delta,
182 java.lang.String orderByCol, java.lang.String orderByType,
183 java.lang.String targetLayoutFriendlyUrl,
184 java.lang.String targetPortletId, java.lang.String contentField,
185 java.lang.String feedType, double feedVersion,
186 java.lang.String[] communityPermissions,
187 java.lang.String[] guestPermissions)
188 throws com.liferay.portal.PortalException,
189 com.liferay.portal.SystemException {
190 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
191
192 return journalFeedLocalService.addFeed(uuid, userId, plid, feedId,
193 autoFeedId, name, description, type, structureId, templateId,
194 rendererTemplateId, delta, orderByCol, orderByType,
195 targetLayoutFriendlyUrl, targetPortletId, contentField, feedType,
196 feedVersion, communityPermissions, guestPermissions);
197 }
198
199 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
200 java.lang.String uuid, long userId, long plid, java.lang.String feedId,
201 boolean autoFeedId, java.lang.String name,
202 java.lang.String description, java.lang.String type,
203 java.lang.String structureId, java.lang.String templateId,
204 java.lang.String rendererTemplateId, int delta,
205 java.lang.String orderByCol, java.lang.String orderByType,
206 java.lang.String targetLayoutFriendlyUrl,
207 java.lang.String targetPortletId, java.lang.String contentField,
208 java.lang.String feedType, double feedVersion,
209 java.lang.Boolean addCommunityPermissions,
210 java.lang.Boolean addGuestPermissions,
211 java.lang.String[] communityPermissions,
212 java.lang.String[] guestPermissions)
213 throws com.liferay.portal.PortalException,
214 com.liferay.portal.SystemException {
215 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
216
217 return journalFeedLocalService.addFeed(uuid, userId, plid, feedId,
218 autoFeedId, name, description, type, structureId, templateId,
219 rendererTemplateId, delta, orderByCol, orderByType,
220 targetLayoutFriendlyUrl, targetPortletId, contentField, feedType,
221 feedVersion, addCommunityPermissions, addGuestPermissions,
222 communityPermissions, guestPermissions);
223 }
224
225 public static com.liferay.portlet.journal.model.JournalFeed addFeedToGroup(
226 java.lang.String uuid, long userId, long groupId,
227 java.lang.String feedId, boolean autoFeedId, java.lang.String name,
228 java.lang.String description, java.lang.String type,
229 java.lang.String structureId, java.lang.String templateId,
230 java.lang.String rendererTemplateId, int delta,
231 java.lang.String orderByCol, java.lang.String orderByType,
232 java.lang.String targetLayoutFriendlyUrl,
233 java.lang.String targetPortletId, java.lang.String contentField,
234 java.lang.String feedType, double feedVersion,
235 java.lang.Boolean addCommunityPermissions,
236 java.lang.Boolean addGuestPermissions,
237 java.lang.String[] communityPermissions,
238 java.lang.String[] guestPermissions)
239 throws com.liferay.portal.PortalException,
240 com.liferay.portal.SystemException {
241 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
242
243 return journalFeedLocalService.addFeedToGroup(uuid, userId, groupId,
244 feedId, autoFeedId, name, description, type, structureId,
245 templateId, rendererTemplateId, delta, orderByCol, orderByType,
246 targetLayoutFriendlyUrl, targetPortletId, contentField, feedType,
247 feedVersion, addCommunityPermissions, addGuestPermissions,
248 communityPermissions, guestPermissions);
249 }
250
251 public static void addFeedResources(long feedId,
252 boolean addCommunityPermissions, boolean addGuestPermissions)
253 throws com.liferay.portal.PortalException,
254 com.liferay.portal.SystemException {
255 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
256
257 journalFeedLocalService.addFeedResources(feedId,
258 addCommunityPermissions, addGuestPermissions);
259 }
260
261 public static void addFeedResources(
262 com.liferay.portlet.journal.model.JournalFeed feed,
263 boolean addCommunityPermissions, boolean addGuestPermissions)
264 throws com.liferay.portal.PortalException,
265 com.liferay.portal.SystemException {
266 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
267
268 journalFeedLocalService.addFeedResources(feed, addCommunityPermissions,
269 addGuestPermissions);
270 }
271
272 public static void addFeedResources(long feedId,
273 java.lang.String[] communityPermissions,
274 java.lang.String[] guestPermissions)
275 throws com.liferay.portal.PortalException,
276 com.liferay.portal.SystemException {
277 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
278
279 journalFeedLocalService.addFeedResources(feedId, communityPermissions,
280 guestPermissions);
281 }
282
283 public static void addFeedResources(
284 com.liferay.portlet.journal.model.JournalFeed feed,
285 java.lang.String[] communityPermissions,
286 java.lang.String[] guestPermissions)
287 throws com.liferay.portal.PortalException,
288 com.liferay.portal.SystemException {
289 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
290
291 journalFeedLocalService.addFeedResources(feed, communityPermissions,
292 guestPermissions);
293 }
294
295 public static void deleteFeed(long feedId)
296 throws com.liferay.portal.PortalException,
297 com.liferay.portal.SystemException {
298 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
299
300 journalFeedLocalService.deleteFeed(feedId);
301 }
302
303 public static void deleteFeed(long groupId, java.lang.String feedId)
304 throws com.liferay.portal.PortalException,
305 com.liferay.portal.SystemException {
306 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
307
308 journalFeedLocalService.deleteFeed(groupId, feedId);
309 }
310
311 public static void deleteFeed(
312 com.liferay.portlet.journal.model.JournalFeed feed)
313 throws com.liferay.portal.PortalException,
314 com.liferay.portal.SystemException {
315 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
316
317 journalFeedLocalService.deleteFeed(feed);
318 }
319
320 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
321 long feedId)
322 throws com.liferay.portal.PortalException,
323 com.liferay.portal.SystemException {
324 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
325
326 return journalFeedLocalService.getFeed(feedId);
327 }
328
329 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
330 long groupId, java.lang.String feedId)
331 throws com.liferay.portal.PortalException,
332 com.liferay.portal.SystemException {
333 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
334
335 return journalFeedLocalService.getFeed(groupId, feedId);
336 }
337
338 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
339 throws com.liferay.portal.SystemException {
340 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
341
342 return journalFeedLocalService.getFeeds();
343 }
344
345 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
346 long groupId) throws com.liferay.portal.SystemException {
347 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
348
349 return journalFeedLocalService.getFeeds(groupId);
350 }
351
352 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
353 long groupId, int start, int end)
354 throws com.liferay.portal.SystemException {
355 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
356
357 return journalFeedLocalService.getFeeds(groupId, start, end);
358 }
359
360 public static int getFeedsCount(long groupId)
361 throws com.liferay.portal.SystemException {
362 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
363
364 return journalFeedLocalService.getFeedsCount(groupId);
365 }
366
367 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
368 long companyId, long groupId, java.lang.String keywords, int start,
369 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
370 throws com.liferay.portal.SystemException {
371 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
372
373 return journalFeedLocalService.search(companyId, groupId, keywords,
374 start, end, obc);
375 }
376
377 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
378 long companyId, long groupId, java.lang.String feedId,
379 java.lang.String name, java.lang.String description,
380 boolean andOperator, int start, int end,
381 com.liferay.portal.kernel.util.OrderByComparator obc)
382 throws com.liferay.portal.SystemException {
383 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
384
385 return journalFeedLocalService.search(companyId, groupId, feedId, name,
386 description, andOperator, start, end, obc);
387 }
388
389 public static int searchCount(long companyId, long groupId,
390 java.lang.String keywords) throws com.liferay.portal.SystemException {
391 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
392
393 return journalFeedLocalService.searchCount(companyId, groupId, keywords);
394 }
395
396 public static int searchCount(long companyId, long groupId,
397 java.lang.String feedId, java.lang.String name,
398 java.lang.String description, boolean andOperator)
399 throws com.liferay.portal.SystemException {
400 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
401
402 return journalFeedLocalService.searchCount(companyId, groupId, feedId,
403 name, description, andOperator);
404 }
405
406 public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
407 long groupId, java.lang.String feedId, java.lang.String name,
408 java.lang.String description, java.lang.String type,
409 java.lang.String structureId, java.lang.String templateId,
410 java.lang.String rendererTemplateId, int delta,
411 java.lang.String orderByCol, java.lang.String orderByType,
412 java.lang.String targetLayoutFriendlyUrl,
413 java.lang.String targetPortletId, java.lang.String contentField,
414 java.lang.String feedType, double feedVersion)
415 throws com.liferay.portal.PortalException,
416 com.liferay.portal.SystemException {
417 JournalFeedLocalService journalFeedLocalService = JournalFeedLocalServiceFactory.getService();
418
419 return journalFeedLocalService.updateFeed(groupId, feedId, name,
420 description, type, structureId, templateId, rendererTemplateId,
421 delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
422 targetPortletId, contentField, feedType, feedVersion);
423 }
424 }