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 addFeed(
107 long userId, long plid, java.lang.String feedId, boolean autoFeedId,
108 java.lang.String name, java.lang.String description,
109 java.lang.String type, java.lang.String structureId,
110 java.lang.String templateId, java.lang.String rendererTemplateId,
111 int delta, java.lang.String orderByCol, java.lang.String orderByType,
112 java.lang.String targetLayoutFriendlyUrl,
113 java.lang.String targetPortletId, java.lang.String contentField,
114 java.lang.String feedType, double feedVersion,
115 boolean addCommunityPermissions, boolean addGuestPermissions)
116 throws com.liferay.portal.PortalException,
117 com.liferay.portal.SystemException {
118 return getService()
119 .addFeed(userId, plid, feedId, autoFeedId, name,
120 description, type, structureId, templateId, rendererTemplateId,
121 delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
122 targetPortletId, contentField, feedType, feedVersion,
123 addCommunityPermissions, addGuestPermissions);
124 }
125
126 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
127 long userId, long plid, java.lang.String feedId, boolean autoFeedId,
128 java.lang.String name, java.lang.String description,
129 java.lang.String type, java.lang.String structureId,
130 java.lang.String templateId, java.lang.String rendererTemplateId,
131 int delta, java.lang.String orderByCol, java.lang.String orderByType,
132 java.lang.String targetLayoutFriendlyUrl,
133 java.lang.String targetPortletId, java.lang.String contentField,
134 java.lang.String feedType, double feedVersion,
135 java.lang.String[] communityPermissions,
136 java.lang.String[] guestPermissions)
137 throws com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException {
139 return getService()
140 .addFeed(userId, plid, feedId, autoFeedId, name,
141 description, type, structureId, templateId, rendererTemplateId,
142 delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
143 targetPortletId, contentField, feedType, feedVersion,
144 communityPermissions, guestPermissions);
145 }
146
147 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
148 java.lang.String uuid, long userId, long plid, java.lang.String feedId,
149 boolean autoFeedId, java.lang.String name,
150 java.lang.String description, java.lang.String type,
151 java.lang.String structureId, java.lang.String templateId,
152 java.lang.String rendererTemplateId, int delta,
153 java.lang.String orderByCol, java.lang.String orderByType,
154 java.lang.String targetLayoutFriendlyUrl,
155 java.lang.String targetPortletId, java.lang.String contentField,
156 java.lang.String feedType, double feedVersion,
157 boolean addCommunityPermissions, boolean addGuestPermissions)
158 throws com.liferay.portal.PortalException,
159 com.liferay.portal.SystemException {
160 return getService()
161 .addFeed(uuid, userId, plid, feedId, autoFeedId, name,
162 description, type, structureId, templateId, rendererTemplateId,
163 delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
164 targetPortletId, contentField, feedType, feedVersion,
165 addCommunityPermissions, addGuestPermissions);
166 }
167
168 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
169 java.lang.String uuid, long userId, long plid, java.lang.String feedId,
170 boolean autoFeedId, java.lang.String name,
171 java.lang.String description, java.lang.String type,
172 java.lang.String structureId, java.lang.String templateId,
173 java.lang.String rendererTemplateId, int delta,
174 java.lang.String orderByCol, java.lang.String orderByType,
175 java.lang.String targetLayoutFriendlyUrl,
176 java.lang.String targetPortletId, java.lang.String contentField,
177 java.lang.String feedType, double feedVersion,
178 java.lang.String[] communityPermissions,
179 java.lang.String[] guestPermissions)
180 throws com.liferay.portal.PortalException,
181 com.liferay.portal.SystemException {
182 return getService()
183 .addFeed(uuid, userId, plid, feedId, autoFeedId, name,
184 description, type, structureId, templateId, rendererTemplateId,
185 delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
186 targetPortletId, contentField, feedType, feedVersion,
187 communityPermissions, guestPermissions);
188 }
189
190 public static com.liferay.portlet.journal.model.JournalFeed addFeed(
191 java.lang.String uuid, long userId, long plid, java.lang.String feedId,
192 boolean autoFeedId, java.lang.String name,
193 java.lang.String description, java.lang.String type,
194 java.lang.String structureId, java.lang.String templateId,
195 java.lang.String rendererTemplateId, int delta,
196 java.lang.String orderByCol, java.lang.String orderByType,
197 java.lang.String targetLayoutFriendlyUrl,
198 java.lang.String targetPortletId, java.lang.String contentField,
199 java.lang.String feedType, double feedVersion,
200 java.lang.Boolean addCommunityPermissions,
201 java.lang.Boolean addGuestPermissions,
202 java.lang.String[] communityPermissions,
203 java.lang.String[] guestPermissions)
204 throws com.liferay.portal.PortalException,
205 com.liferay.portal.SystemException {
206 return getService()
207 .addFeed(uuid, userId, plid, feedId, autoFeedId, name,
208 description, type, structureId, templateId, rendererTemplateId,
209 delta, orderByCol, orderByType, targetLayoutFriendlyUrl,
210 targetPortletId, contentField, feedType, feedVersion,
211 addCommunityPermissions, addGuestPermissions, communityPermissions,
212 guestPermissions);
213 }
214
215 public static com.liferay.portlet.journal.model.JournalFeed addFeedToGroup(
216 java.lang.String uuid, long userId, long groupId,
217 java.lang.String feedId, boolean autoFeedId, java.lang.String name,
218 java.lang.String description, java.lang.String type,
219 java.lang.String structureId, java.lang.String templateId,
220 java.lang.String rendererTemplateId, int delta,
221 java.lang.String orderByCol, java.lang.String orderByType,
222 java.lang.String targetLayoutFriendlyUrl,
223 java.lang.String targetPortletId, java.lang.String contentField,
224 java.lang.String feedType, double feedVersion,
225 java.lang.Boolean addCommunityPermissions,
226 java.lang.Boolean addGuestPermissions,
227 java.lang.String[] communityPermissions,
228 java.lang.String[] guestPermissions)
229 throws com.liferay.portal.PortalException,
230 com.liferay.portal.SystemException {
231 return getService()
232 .addFeedToGroup(uuid, userId, groupId, feedId, autoFeedId,
233 name, description, type, structureId, templateId,
234 rendererTemplateId, delta, orderByCol, orderByType,
235 targetLayoutFriendlyUrl, targetPortletId, contentField, feedType,
236 feedVersion, addCommunityPermissions, addGuestPermissions,
237 communityPermissions, guestPermissions);
238 }
239
240 public static void addFeedResources(long feedId,
241 boolean addCommunityPermissions, boolean addGuestPermissions)
242 throws com.liferay.portal.PortalException,
243 com.liferay.portal.SystemException {
244 getService()
245 .addFeedResources(feedId, addCommunityPermissions,
246 addGuestPermissions);
247 }
248
249 public static void addFeedResources(
250 com.liferay.portlet.journal.model.JournalFeed feed,
251 boolean addCommunityPermissions, boolean addGuestPermissions)
252 throws com.liferay.portal.PortalException,
253 com.liferay.portal.SystemException {
254 getService()
255 .addFeedResources(feed, addCommunityPermissions, addGuestPermissions);
256 }
257
258 public static void addFeedResources(long feedId,
259 java.lang.String[] communityPermissions,
260 java.lang.String[] guestPermissions)
261 throws com.liferay.portal.PortalException,
262 com.liferay.portal.SystemException {
263 getService()
264 .addFeedResources(feedId, communityPermissions, guestPermissions);
265 }
266
267 public static void addFeedResources(
268 com.liferay.portlet.journal.model.JournalFeed feed,
269 java.lang.String[] communityPermissions,
270 java.lang.String[] guestPermissions)
271 throws com.liferay.portal.PortalException,
272 com.liferay.portal.SystemException {
273 getService()
274 .addFeedResources(feed, communityPermissions, guestPermissions);
275 }
276
277 public static void deleteFeed(long feedId)
278 throws com.liferay.portal.PortalException,
279 com.liferay.portal.SystemException {
280 getService().deleteFeed(feedId);
281 }
282
283 public static void deleteFeed(long groupId, java.lang.String feedId)
284 throws com.liferay.portal.PortalException,
285 com.liferay.portal.SystemException {
286 getService().deleteFeed(groupId, feedId);
287 }
288
289 public static void deleteFeed(
290 com.liferay.portlet.journal.model.JournalFeed feed)
291 throws com.liferay.portal.PortalException,
292 com.liferay.portal.SystemException {
293 getService().deleteFeed(feed);
294 }
295
296 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
297 long feedId)
298 throws com.liferay.portal.PortalException,
299 com.liferay.portal.SystemException {
300 return getService().getFeed(feedId);
301 }
302
303 public static com.liferay.portlet.journal.model.JournalFeed getFeed(
304 long groupId, java.lang.String feedId)
305 throws com.liferay.portal.PortalException,
306 com.liferay.portal.SystemException {
307 return getService().getFeed(groupId, feedId);
308 }
309
310 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
311 throws com.liferay.portal.SystemException {
312 return getService().getFeeds();
313 }
314
315 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
316 long groupId) throws com.liferay.portal.SystemException {
317 return getService().getFeeds(groupId);
318 }
319
320 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
321 long groupId, int start, int end)
322 throws com.liferay.portal.SystemException {
323 return getService().getFeeds(groupId, start, end);
324 }
325
326 public static int getFeedsCount(long groupId)
327 throws com.liferay.portal.SystemException {
328 return getService().getFeedsCount(groupId);
329 }
330
331 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
332 long companyId, long groupId, java.lang.String keywords, int start,
333 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
334 throws com.liferay.portal.SystemException {
335 return getService().search(companyId, groupId, keywords, start, end, obc);
336 }
337
338 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
339 long companyId, long groupId, java.lang.String feedId,
340 java.lang.String name, java.lang.String description,
341 boolean andOperator, int start, int end,
342 com.liferay.portal.kernel.util.OrderByComparator obc)
343 throws com.liferay.portal.SystemException {
344 return getService()
345 .search(companyId, groupId, feedId, name, description,
346 andOperator, start, end, obc);
347 }
348
349 public static int searchCount(long companyId, long groupId,
350 java.lang.String keywords) throws com.liferay.portal.SystemException {
351 return getService().searchCount(companyId, groupId, keywords);
352 }
353
354 public static int searchCount(long companyId, long groupId,
355 java.lang.String feedId, java.lang.String name,
356 java.lang.String description, boolean andOperator)
357 throws com.liferay.portal.SystemException {
358 return getService()
359 .searchCount(companyId, groupId, feedId, name, description,
360 andOperator);
361 }
362
363 public static com.liferay.portlet.journal.model.JournalFeed updateFeed(
364 long groupId, java.lang.String feedId, java.lang.String name,
365 java.lang.String description, java.lang.String type,
366 java.lang.String structureId, java.lang.String templateId,
367 java.lang.String rendererTemplateId, int delta,
368 java.lang.String orderByCol, java.lang.String orderByType,
369 java.lang.String targetLayoutFriendlyUrl,
370 java.lang.String targetPortletId, java.lang.String contentField,
371 java.lang.String feedType, double feedVersion)
372 throws com.liferay.portal.PortalException,
373 com.liferay.portal.SystemException {
374 return getService()
375 .updateFeed(groupId, feedId, name, description, type,
376 structureId, templateId, rendererTemplateId, delta, orderByCol,
377 orderByType, targetLayoutFriendlyUrl, targetPortletId,
378 contentField, feedType, feedVersion);
379 }
380
381 public static JournalFeedLocalService getService() {
382 if (_service == null) {
383 throw new RuntimeException("JournalFeedLocalService is not set");
384 }
385
386 return _service;
387 }
388
389 public void setService(JournalFeedLocalService service) {
390 _service = service;
391 }
392
393 private static JournalFeedLocalService _service;
394 }