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