1
22
23 package com.liferay.portlet.journal.service;
24
25
26
53 public class JournalArticleLocalServiceUtil {
54 public static com.liferay.portlet.journal.model.JournalArticle addJournalArticle(
55 com.liferay.portlet.journal.model.JournalArticle journalArticle)
56 throws com.liferay.portal.SystemException {
57 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
58
59 return journalArticleLocalService.addJournalArticle(journalArticle);
60 }
61
62 public static void deleteJournalArticle(long id)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException {
65 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
66
67 journalArticleLocalService.deleteJournalArticle(id);
68 }
69
70 public static void deleteJournalArticle(
71 com.liferay.portlet.journal.model.JournalArticle journalArticle)
72 throws com.liferay.portal.PortalException,
73 com.liferay.portal.SystemException {
74 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
75
76 journalArticleLocalService.deleteJournalArticle(journalArticle);
77 }
78
79 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> dynamicQuery(
80 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
81 throws com.liferay.portal.SystemException {
82 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
83
84 return journalArticleLocalService.dynamicQuery(queryInitializer);
85 }
86
87 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> dynamicQuery(
88 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
89 int begin, int end) throws com.liferay.portal.SystemException {
90 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
91
92 return journalArticleLocalService.dynamicQuery(queryInitializer, begin,
93 end);
94 }
95
96 public static com.liferay.portlet.journal.model.JournalArticle updateJournalArticle(
97 com.liferay.portlet.journal.model.JournalArticle journalArticle)
98 throws com.liferay.portal.SystemException {
99 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
100
101 return journalArticleLocalService.updateJournalArticle(journalArticle);
102 }
103
104 public static com.liferay.portlet.journal.model.JournalArticle addArticle(
105 long userId, java.lang.String articleId, boolean autoArticleId,
106 long plid, java.lang.String title, java.lang.String description,
107 java.lang.String content, java.lang.String type,
108 java.lang.String structureId, java.lang.String templateId,
109 int displayDateMonth, int displayDateDay, int displayDateYear,
110 int displayDateHour, int displayDateMinute, int expirationDateMonth,
111 int expirationDateDay, int expirationDateYear, int expirationDateHour,
112 int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
113 int reviewDateDay, int reviewDateYear, int reviewDateHour,
114 int reviewDateMinute, boolean neverReview, boolean indexable,
115 boolean smallImage, java.lang.String smallImageURL,
116 java.io.File smallFile, java.util.Map<String, byte[]> images,
117 java.lang.String articleURL, javax.portlet.PortletPreferences prefs,
118 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
119 boolean addGuestPermissions)
120 throws com.liferay.portal.PortalException,
121 com.liferay.portal.SystemException {
122 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
123
124 return journalArticleLocalService.addArticle(userId, articleId,
125 autoArticleId, plid, title, description, content, type,
126 structureId, templateId, displayDateMonth, displayDateDay,
127 displayDateYear, displayDateHour, displayDateMinute,
128 expirationDateMonth, expirationDateDay, expirationDateYear,
129 expirationDateHour, expirationDateMinute, neverExpire,
130 reviewDateMonth, reviewDateDay, reviewDateYear, reviewDateHour,
131 reviewDateMinute, neverReview, indexable, smallImage,
132 smallImageURL, smallFile, images, articleURL, prefs, tagsEntries,
133 addCommunityPermissions, addGuestPermissions);
134 }
135
136 public static com.liferay.portlet.journal.model.JournalArticle addArticle(
137 long userId, java.lang.String articleId, boolean autoArticleId,
138 long plid, double version, java.lang.String title,
139 java.lang.String description, java.lang.String content,
140 java.lang.String type, java.lang.String structureId,
141 java.lang.String templateId, int displayDateMonth, int displayDateDay,
142 int displayDateYear, int displayDateHour, int displayDateMinute,
143 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
144 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
145 int reviewDateMonth, int reviewDateDay, int reviewDateYear,
146 int reviewDateHour, int reviewDateMinute, boolean neverReview,
147 boolean indexable, boolean smallImage, java.lang.String smallImageURL,
148 java.io.File smallFile, java.util.Map<String, byte[]> images,
149 java.lang.String articleURL, javax.portlet.PortletPreferences prefs,
150 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
151 boolean addGuestPermissions)
152 throws com.liferay.portal.PortalException,
153 com.liferay.portal.SystemException {
154 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
155
156 return journalArticleLocalService.addArticle(userId, articleId,
157 autoArticleId, plid, version, title, description, content, type,
158 structureId, templateId, displayDateMonth, displayDateDay,
159 displayDateYear, displayDateHour, displayDateMinute,
160 expirationDateMonth, expirationDateDay, expirationDateYear,
161 expirationDateHour, expirationDateMinute, neverExpire,
162 reviewDateMonth, reviewDateDay, reviewDateYear, reviewDateHour,
163 reviewDateMinute, neverReview, indexable, smallImage,
164 smallImageURL, smallFile, images, articleURL, prefs, tagsEntries,
165 addCommunityPermissions, addGuestPermissions);
166 }
167
168 public static com.liferay.portlet.journal.model.JournalArticle addArticle(
169 java.lang.String uuid, long userId, java.lang.String articleId,
170 boolean autoArticleId, long plid, double version,
171 java.lang.String title, java.lang.String description,
172 java.lang.String content, java.lang.String type,
173 java.lang.String structureId, java.lang.String templateId,
174 int displayDateMonth, int displayDateDay, int displayDateYear,
175 int displayDateHour, int displayDateMinute, int expirationDateMonth,
176 int expirationDateDay, int expirationDateYear, int expirationDateHour,
177 int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
178 int reviewDateDay, int reviewDateYear, int reviewDateHour,
179 int reviewDateMinute, boolean neverReview, boolean indexable,
180 boolean smallImage, java.lang.String smallImageURL,
181 java.io.File smallFile, java.util.Map<String, byte[]> images,
182 java.lang.String articleURL, javax.portlet.PortletPreferences prefs,
183 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
184 boolean addGuestPermissions)
185 throws com.liferay.portal.PortalException,
186 com.liferay.portal.SystemException {
187 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
188
189 return journalArticleLocalService.addArticle(uuid, userId, articleId,
190 autoArticleId, plid, version, title, description, content, type,
191 structureId, templateId, displayDateMonth, displayDateDay,
192 displayDateYear, displayDateHour, displayDateMinute,
193 expirationDateMonth, expirationDateDay, expirationDateYear,
194 expirationDateHour, expirationDateMinute, neverExpire,
195 reviewDateMonth, reviewDateDay, reviewDateYear, reviewDateHour,
196 reviewDateMinute, neverReview, indexable, smallImage,
197 smallImageURL, smallFile, images, articleURL, prefs, tagsEntries,
198 addCommunityPermissions, addGuestPermissions);
199 }
200
201 public static com.liferay.portlet.journal.model.JournalArticle addArticle(
202 long userId, java.lang.String articleId, boolean autoArticleId,
203 long plid, java.lang.String title, java.lang.String description,
204 java.lang.String content, java.lang.String type,
205 java.lang.String structureId, java.lang.String templateId,
206 int displayDateMonth, int displayDateDay, int displayDateYear,
207 int displayDateHour, int displayDateMinute, int expirationDateMonth,
208 int expirationDateDay, int expirationDateYear, int expirationDateHour,
209 int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
210 int reviewDateDay, int reviewDateYear, int reviewDateHour,
211 int reviewDateMinute, boolean neverReview, boolean indexable,
212 boolean smallImage, java.lang.String smallImageURL,
213 java.io.File smallFile, java.util.Map<String, byte[]> images,
214 java.lang.String articleURL, javax.portlet.PortletPreferences prefs,
215 java.lang.String[] tagsEntries,
216 java.lang.String[] communityPermissions,
217 java.lang.String[] guestPermissions)
218 throws com.liferay.portal.PortalException,
219 com.liferay.portal.SystemException {
220 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
221
222 return journalArticleLocalService.addArticle(userId, articleId,
223 autoArticleId, plid, title, description, content, type,
224 structureId, templateId, displayDateMonth, displayDateDay,
225 displayDateYear, displayDateHour, displayDateMinute,
226 expirationDateMonth, expirationDateDay, expirationDateYear,
227 expirationDateHour, expirationDateMinute, neverExpire,
228 reviewDateMonth, reviewDateDay, reviewDateYear, reviewDateHour,
229 reviewDateMinute, neverReview, indexable, smallImage,
230 smallImageURL, smallFile, images, articleURL, prefs, tagsEntries,
231 communityPermissions, guestPermissions);
232 }
233
234 public static com.liferay.portlet.journal.model.JournalArticle addArticle(
235 java.lang.String uuid, long userId, java.lang.String articleId,
236 boolean autoArticleId, long plid, double version,
237 java.lang.String title, java.lang.String description,
238 java.lang.String content, java.lang.String type,
239 java.lang.String structureId, java.lang.String templateId,
240 int displayDateMonth, int displayDateDay, int displayDateYear,
241 int displayDateHour, int displayDateMinute, int expirationDateMonth,
242 int expirationDateDay, int expirationDateYear, int expirationDateHour,
243 int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
244 int reviewDateDay, int reviewDateYear, int reviewDateHour,
245 int reviewDateMinute, boolean neverReview, boolean indexable,
246 boolean smallImage, java.lang.String smallImageURL,
247 java.io.File smallFile, java.util.Map<String, byte[]> images,
248 java.lang.String articleURL, javax.portlet.PortletPreferences prefs,
249 java.lang.String[] tagsEntries,
250 java.lang.Boolean addCommunityPermissions,
251 java.lang.Boolean addGuestPermissions,
252 java.lang.String[] communityPermissions,
253 java.lang.String[] guestPermissions)
254 throws com.liferay.portal.PortalException,
255 com.liferay.portal.SystemException {
256 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
257
258 return journalArticleLocalService.addArticle(uuid, userId, articleId,
259 autoArticleId, plid, version, title, description, content, type,
260 structureId, templateId, displayDateMonth, displayDateDay,
261 displayDateYear, displayDateHour, displayDateMinute,
262 expirationDateMonth, expirationDateDay, expirationDateYear,
263 expirationDateHour, expirationDateMinute, neverExpire,
264 reviewDateMonth, reviewDateDay, reviewDateYear, reviewDateHour,
265 reviewDateMinute, neverReview, indexable, smallImage,
266 smallImageURL, smallFile, images, articleURL, prefs, tagsEntries,
267 addCommunityPermissions, addGuestPermissions, communityPermissions,
268 guestPermissions);
269 }
270
271 public static com.liferay.portlet.journal.model.JournalArticle addArticleToGroup(
272 java.lang.String uuid, long userId, java.lang.String articleId,
273 boolean autoArticleId, long groupId, double version,
274 java.lang.String title, java.lang.String description,
275 java.lang.String content, java.lang.String type,
276 java.lang.String structureId, java.lang.String templateId,
277 int displayDateMonth, int displayDateDay, int displayDateYear,
278 int displayDateHour, int displayDateMinute, int expirationDateMonth,
279 int expirationDateDay, int expirationDateYear, int expirationDateHour,
280 int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
281 int reviewDateDay, int reviewDateYear, int reviewDateHour,
282 int reviewDateMinute, boolean neverReview, boolean indexable,
283 boolean smallImage, java.lang.String smallImageURL,
284 java.io.File smallFile, java.util.Map<String, byte[]> images,
285 java.lang.String articleURL, javax.portlet.PortletPreferences prefs,
286 java.lang.String[] tagsEntries,
287 java.lang.Boolean addCommunityPermissions,
288 java.lang.Boolean addGuestPermissions,
289 java.lang.String[] communityPermissions,
290 java.lang.String[] guestPermissions)
291 throws com.liferay.portal.PortalException,
292 com.liferay.portal.SystemException {
293 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
294
295 return journalArticleLocalService.addArticleToGroup(uuid, userId,
296 articleId, autoArticleId, groupId, version, title, description,
297 content, type, structureId, templateId, displayDateMonth,
298 displayDateDay, displayDateYear, displayDateHour,
299 displayDateMinute, expirationDateMonth, expirationDateDay,
300 expirationDateYear, expirationDateHour, expirationDateMinute,
301 neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
302 reviewDateHour, reviewDateMinute, neverReview, indexable,
303 smallImage, smallImageURL, smallFile, images, articleURL, prefs,
304 tagsEntries, addCommunityPermissions, addGuestPermissions,
305 communityPermissions, guestPermissions);
306 }
307
308 public static void addArticleResources(long groupId,
309 java.lang.String articleId, boolean addCommunityPermissions,
310 boolean addGuestPermissions)
311 throws com.liferay.portal.PortalException,
312 com.liferay.portal.SystemException {
313 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
314
315 journalArticleLocalService.addArticleResources(groupId, articleId,
316 addCommunityPermissions, addGuestPermissions);
317 }
318
319 public static void addArticleResources(
320 com.liferay.portlet.journal.model.JournalArticle article,
321 boolean addCommunityPermissions, boolean addGuestPermissions)
322 throws com.liferay.portal.PortalException,
323 com.liferay.portal.SystemException {
324 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
325
326 journalArticleLocalService.addArticleResources(article,
327 addCommunityPermissions, addGuestPermissions);
328 }
329
330 public static void addArticleResources(long groupId,
331 java.lang.String articleId, java.lang.String[] communityPermissions,
332 java.lang.String[] guestPermissions)
333 throws com.liferay.portal.PortalException,
334 com.liferay.portal.SystemException {
335 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
336
337 journalArticleLocalService.addArticleResources(groupId, articleId,
338 communityPermissions, guestPermissions);
339 }
340
341 public static void addArticleResources(
342 com.liferay.portlet.journal.model.JournalArticle article,
343 java.lang.String[] communityPermissions,
344 java.lang.String[] guestPermissions)
345 throws com.liferay.portal.PortalException,
346 com.liferay.portal.SystemException {
347 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
348
349 journalArticleLocalService.addArticleResources(article,
350 communityPermissions, guestPermissions);
351 }
352
353 public static com.liferay.portlet.journal.model.JournalArticle approveArticle(
354 long userId, long groupId, java.lang.String articleId, double version,
355 java.lang.String articleURL, javax.portlet.PortletPreferences prefs)
356 throws com.liferay.portal.PortalException,
357 com.liferay.portal.SystemException {
358 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
359
360 return journalArticleLocalService.approveArticle(userId, groupId,
361 articleId, version, articleURL, prefs);
362 }
363
364 public static com.liferay.portlet.journal.model.JournalArticle checkArticleResourcePrimKey(
365 long groupId, java.lang.String articleId, double version)
366 throws com.liferay.portal.PortalException,
367 com.liferay.portal.SystemException {
368 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
369
370 return journalArticleLocalService.checkArticleResourcePrimKey(groupId,
371 articleId, version);
372 }
373
374 public static void checkArticles()
375 throws com.liferay.portal.PortalException,
376 com.liferay.portal.SystemException {
377 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
378
379 journalArticleLocalService.checkArticles();
380 }
381
382 public static void checkNewLine(long groupId, java.lang.String articleId,
383 double version)
384 throws com.liferay.portal.PortalException,
385 com.liferay.portal.SystemException {
386 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
387
388 journalArticleLocalService.checkNewLine(groupId, articleId, version);
389 }
390
391 public static void checkStructure(long groupId, java.lang.String articleId,
392 double version)
393 throws com.liferay.portal.PortalException,
394 com.liferay.portal.SystemException {
395 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
396
397 journalArticleLocalService.checkStructure(groupId, articleId, version);
398 }
399
400 public static void deleteArticle(long groupId, java.lang.String articleId,
401 double version, java.lang.String articleURL,
402 javax.portlet.PortletPreferences prefs)
403 throws com.liferay.portal.PortalException,
404 com.liferay.portal.SystemException {
405 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
406
407 journalArticleLocalService.deleteArticle(groupId, articleId, version,
408 articleURL, prefs);
409 }
410
411 public static void deleteArticle(
412 com.liferay.portlet.journal.model.JournalArticle article,
413 java.lang.String articleURL, javax.portlet.PortletPreferences prefs)
414 throws com.liferay.portal.PortalException,
415 com.liferay.portal.SystemException {
416 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
417
418 journalArticleLocalService.deleteArticle(article, articleURL, prefs);
419 }
420
421 public static void deleteArticles(long groupId)
422 throws com.liferay.portal.PortalException,
423 com.liferay.portal.SystemException {
424 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
425
426 journalArticleLocalService.deleteArticles(groupId);
427 }
428
429 public static void expireArticle(long groupId, java.lang.String articleId,
430 double version, java.lang.String articleURL,
431 javax.portlet.PortletPreferences prefs)
432 throws com.liferay.portal.PortalException,
433 com.liferay.portal.SystemException {
434 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
435
436 journalArticleLocalService.expireArticle(groupId, articleId, version,
437 articleURL, prefs);
438 }
439
440 public static void expireArticle(
441 com.liferay.portlet.journal.model.JournalArticle article,
442 java.lang.String articleURL, javax.portlet.PortletPreferences prefs)
443 throws com.liferay.portal.PortalException,
444 com.liferay.portal.SystemException {
445 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
446
447 journalArticleLocalService.expireArticle(article, articleURL, prefs);
448 }
449
450 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
451 long id)
452 throws com.liferay.portal.PortalException,
453 com.liferay.portal.SystemException {
454 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
455
456 return journalArticleLocalService.getArticle(id);
457 }
458
459 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
460 long groupId, java.lang.String articleId)
461 throws com.liferay.portal.PortalException,
462 com.liferay.portal.SystemException {
463 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
464
465 return journalArticleLocalService.getArticle(groupId, articleId);
466 }
467
468 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
469 long groupId, java.lang.String articleId, double version)
470 throws com.liferay.portal.PortalException,
471 com.liferay.portal.SystemException {
472 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
473
474 return journalArticleLocalService.getArticle(groupId, articleId, version);
475 }
476
477 public static java.lang.String getArticleContent(long groupId,
478 java.lang.String articleId, java.lang.String languageId,
479 com.liferay.portal.theme.ThemeDisplay themeDisplay)
480 throws com.liferay.portal.PortalException,
481 com.liferay.portal.SystemException {
482 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
483
484 return journalArticleLocalService.getArticleContent(groupId, articleId,
485 languageId, themeDisplay);
486 }
487
488 public static java.lang.String getArticleContent(long groupId,
489 java.lang.String articleId, java.lang.String templateId,
490 java.lang.String languageId,
491 com.liferay.portal.theme.ThemeDisplay themeDisplay)
492 throws com.liferay.portal.PortalException,
493 com.liferay.portal.SystemException {
494 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
495
496 return journalArticleLocalService.getArticleContent(groupId, articleId,
497 templateId, languageId, themeDisplay);
498 }
499
500 public static java.lang.String getArticleContent(long groupId,
501 java.lang.String articleId, double version,
502 java.lang.String languageId,
503 com.liferay.portal.theme.ThemeDisplay themeDisplay)
504 throws com.liferay.portal.PortalException,
505 com.liferay.portal.SystemException {
506 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
507
508 return journalArticleLocalService.getArticleContent(groupId, articleId,
509 version, languageId, themeDisplay);
510 }
511
512 public static java.lang.String getArticleContent(long groupId,
513 java.lang.String articleId, double version,
514 java.lang.String templateId, java.lang.String languageId,
515 com.liferay.portal.theme.ThemeDisplay themeDisplay)
516 throws com.liferay.portal.PortalException,
517 com.liferay.portal.SystemException {
518 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
519
520 return journalArticleLocalService.getArticleContent(groupId, articleId,
521 version, templateId, languageId, themeDisplay);
522 }
523
524 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
525 long groupId, java.lang.String articleId, java.lang.String languageId,
526 com.liferay.portal.theme.ThemeDisplay themeDisplay)
527 throws com.liferay.portal.PortalException,
528 com.liferay.portal.SystemException {
529 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
530
531 return journalArticleLocalService.getArticleDisplay(groupId, articleId,
532 languageId, themeDisplay);
533 }
534
535 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
536 long groupId, java.lang.String articleId, java.lang.String languageId,
537 int page, java.lang.String xmlRequest,
538 com.liferay.portal.theme.ThemeDisplay themeDisplay)
539 throws com.liferay.portal.PortalException,
540 com.liferay.portal.SystemException {
541 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
542
543 return journalArticleLocalService.getArticleDisplay(groupId, articleId,
544 languageId, page, xmlRequest, themeDisplay);
545 }
546
547 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
548 long groupId, java.lang.String articleId, java.lang.String templateId,
549 java.lang.String languageId,
550 com.liferay.portal.theme.ThemeDisplay themeDisplay)
551 throws com.liferay.portal.PortalException,
552 com.liferay.portal.SystemException {
553 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
554
555 return journalArticleLocalService.getArticleDisplay(groupId, articleId,
556 templateId, languageId, themeDisplay);
557 }
558
559 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
560 long groupId, java.lang.String articleId, java.lang.String templateId,
561 java.lang.String languageId, int page, java.lang.String xmlRequest,
562 com.liferay.portal.theme.ThemeDisplay themeDisplay)
563 throws com.liferay.portal.PortalException,
564 com.liferay.portal.SystemException {
565 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
566
567 return journalArticleLocalService.getArticleDisplay(groupId, articleId,
568 templateId, languageId, page, xmlRequest, themeDisplay);
569 }
570
571 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
572 long groupId, java.lang.String articleId, double version,
573 java.lang.String templateId, java.lang.String languageId,
574 com.liferay.portal.theme.ThemeDisplay themeDisplay)
575 throws com.liferay.portal.PortalException,
576 com.liferay.portal.SystemException {
577 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
578
579 return journalArticleLocalService.getArticleDisplay(groupId, articleId,
580 version, templateId, languageId, themeDisplay);
581 }
582
583 public static com.liferay.portlet.journal.model.JournalArticleDisplay getArticleDisplay(
584 long groupId, java.lang.String articleId, double version,
585 java.lang.String templateId, java.lang.String languageId, int page,
586 java.lang.String xmlRequest,
587 com.liferay.portal.theme.ThemeDisplay themeDisplay)
588 throws com.liferay.portal.PortalException,
589 com.liferay.portal.SystemException {
590 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
591
592 return journalArticleLocalService.getArticleDisplay(groupId, articleId,
593 version, templateId, languageId, page, xmlRequest, themeDisplay);
594 }
595
596 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles()
597 throws com.liferay.portal.SystemException {
598 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
599
600 return journalArticleLocalService.getArticles();
601 }
602
603 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
604 long groupId) throws com.liferay.portal.SystemException {
605 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
606
607 return journalArticleLocalService.getArticles(groupId);
608 }
609
610 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
611 long groupId, int begin, int end)
612 throws com.liferay.portal.SystemException {
613 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
614
615 return journalArticleLocalService.getArticles(groupId, begin, end);
616 }
617
618 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
619 long groupId, int begin, int end,
620 com.liferay.portal.kernel.util.OrderByComparator obc)
621 throws com.liferay.portal.SystemException {
622 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
623
624 return journalArticleLocalService.getArticles(groupId, begin, end, obc);
625 }
626
627 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
628 long groupId, java.lang.String articleId)
629 throws com.liferay.portal.SystemException {
630 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
631
632 return journalArticleLocalService.getArticles(groupId, articleId);
633 }
634
635 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesBySmallImageId(
636 long smallImageId) throws com.liferay.portal.SystemException {
637 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
638
639 return journalArticleLocalService.getArticlesBySmallImageId(smallImageId);
640 }
641
642 public static int getArticlesCount(long groupId)
643 throws com.liferay.portal.SystemException {
644 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
645
646 return journalArticleLocalService.getArticlesCount(groupId);
647 }
648
649 public static com.liferay.portlet.journal.model.JournalArticle getDisplayArticle(
650 long groupId, java.lang.String articleId)
651 throws com.liferay.portal.PortalException,
652 com.liferay.portal.SystemException {
653 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
654
655 return journalArticleLocalService.getDisplayArticle(groupId, articleId);
656 }
657
658 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
659 long groupId, java.lang.String articleId)
660 throws com.liferay.portal.PortalException,
661 com.liferay.portal.SystemException {
662 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
663
664 return journalArticleLocalService.getLatestArticle(groupId, articleId);
665 }
666
667 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
668 long groupId, java.lang.String articleId, java.lang.Boolean approved)
669 throws com.liferay.portal.PortalException,
670 com.liferay.portal.SystemException {
671 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
672
673 return journalArticleLocalService.getLatestArticle(groupId, articleId,
674 approved);
675 }
676
677 public static double getLatestVersion(long groupId,
678 java.lang.String articleId)
679 throws com.liferay.portal.PortalException,
680 com.liferay.portal.SystemException {
681 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
682
683 return journalArticleLocalService.getLatestVersion(groupId, articleId);
684 }
685
686 public static double getLatestVersion(long groupId,
687 java.lang.String articleId, java.lang.Boolean approved)
688 throws com.liferay.portal.PortalException,
689 com.liferay.portal.SystemException {
690 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
691
692 return journalArticleLocalService.getLatestVersion(groupId, articleId,
693 approved);
694 }
695
696 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
697 long groupId, java.lang.String structureId)
698 throws com.liferay.portal.SystemException {
699 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
700
701 return journalArticleLocalService.getStructureArticles(groupId,
702 structureId);
703 }
704
705 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getStructureArticles(
706 long groupId, java.lang.String structureId, int begin, int end,
707 com.liferay.portal.kernel.util.OrderByComparator obc)
708 throws com.liferay.portal.SystemException {
709 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
710
711 return journalArticleLocalService.getStructureArticles(groupId,
712 structureId, begin, end, obc);
713 }
714
715 public static int getStructureArticlesCount(long groupId,
716 java.lang.String structureId) throws com.liferay.portal.SystemException {
717 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
718
719 return journalArticleLocalService.getStructureArticlesCount(groupId,
720 structureId);
721 }
722
723 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
724 long groupId, java.lang.String templateId)
725 throws com.liferay.portal.SystemException {
726 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
727
728 return journalArticleLocalService.getTemplateArticles(groupId,
729 templateId);
730 }
731
732 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getTemplateArticles(
733 long groupId, java.lang.String templateId, int begin, int end,
734 com.liferay.portal.kernel.util.OrderByComparator obc)
735 throws com.liferay.portal.SystemException {
736 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
737
738 return journalArticleLocalService.getTemplateArticles(groupId,
739 templateId, begin, end, obc);
740 }
741
742 public static int getTemplateArticlesCount(long groupId,
743 java.lang.String templateId) throws com.liferay.portal.SystemException {
744 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
745
746 return journalArticleLocalService.getTemplateArticlesCount(groupId,
747 templateId);
748 }
749
750 public static boolean hasArticle(long groupId, java.lang.String articleId)
751 throws com.liferay.portal.SystemException {
752 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
753
754 return journalArticleLocalService.hasArticle(groupId, articleId);
755 }
756
757 public static boolean isLatestVersion(long groupId,
758 java.lang.String articleId, double version)
759 throws com.liferay.portal.PortalException,
760 com.liferay.portal.SystemException {
761 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
762
763 return journalArticleLocalService.isLatestVersion(groupId, articleId,
764 version);
765 }
766
767 public static boolean isLatestVersion(long groupId,
768 java.lang.String articleId, double version, java.lang.Boolean active)
769 throws com.liferay.portal.PortalException,
770 com.liferay.portal.SystemException {
771 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
772
773 return journalArticleLocalService.isLatestVersion(groupId, articleId,
774 version, active);
775 }
776
777 public static void reIndex(java.lang.String[] ids)
778 throws com.liferay.portal.SystemException {
779 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
780
781 journalArticleLocalService.reIndex(ids);
782 }
783
784 public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
785 long groupId, java.lang.String articleId, double version,
786 java.lang.String languageId)
787 throws com.liferay.portal.PortalException,
788 com.liferay.portal.SystemException {
789 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
790
791 return journalArticleLocalService.removeArticleLocale(groupId,
792 articleId, version, languageId);
793 }
794
795 public static com.liferay.portal.kernel.search.Hits search(long companyId,
796 long groupId, java.lang.String keywords)
797 throws com.liferay.portal.SystemException {
798 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
799
800 return journalArticleLocalService.search(companyId, groupId, keywords);
801 }
802
803 public static com.liferay.portal.kernel.search.Hits search(long companyId,
804 long groupId, java.lang.String keywords, java.lang.String sortField)
805 throws com.liferay.portal.SystemException {
806 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
807
808 return journalArticleLocalService.search(companyId, groupId, keywords,
809 sortField);
810 }
811
812 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
813 long companyId, long groupId, java.lang.String keywords,
814 java.lang.Double version, java.lang.String type,
815 java.lang.String structureId, java.lang.String templateId,
816 java.util.Date displayDateGT, java.util.Date displayDateLT,
817 java.lang.Boolean approved, java.lang.Boolean expired,
818 java.util.Date reviewDate, int begin, int end,
819 com.liferay.portal.kernel.util.OrderByComparator obc)
820 throws com.liferay.portal.SystemException {
821 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
822
823 return journalArticleLocalService.search(companyId, groupId, keywords,
824 version, type, structureId, templateId, displayDateGT,
825 displayDateLT, approved, expired, reviewDate, begin, end, obc);
826 }
827
828 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
829 long companyId, long groupId, java.lang.String articleId,
830 java.lang.Double version, java.lang.String title,
831 java.lang.String description, java.lang.String content,
832 java.lang.String type, java.lang.String structureId,
833 java.lang.String templateId, java.util.Date displayDateGT,
834 java.util.Date displayDateLT, java.lang.Boolean approved,
835 java.lang.Boolean expired, java.util.Date reviewDate,
836 boolean andOperator, int begin, int end,
837 com.liferay.portal.kernel.util.OrderByComparator obc)
838 throws com.liferay.portal.SystemException {
839 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
840
841 return journalArticleLocalService.search(companyId, groupId, articleId,
842 version, title, description, content, type, structureId,
843 templateId, displayDateGT, displayDateLT, approved, expired,
844 reviewDate, andOperator, begin, end, obc);
845 }
846
847 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
848 long companyId, long groupId, java.lang.String articleId,
849 java.lang.Double version, java.lang.String title,
850 java.lang.String description, java.lang.String content,
851 java.lang.String type, java.lang.String[] structureIds,
852 java.lang.String[] templateIds, java.util.Date displayDateGT,
853 java.util.Date displayDateLT, java.lang.Boolean approved,
854 java.lang.Boolean expired, java.util.Date reviewDate,
855 boolean andOperator, int begin, int end,
856 com.liferay.portal.kernel.util.OrderByComparator obc)
857 throws com.liferay.portal.SystemException {
858 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
859
860 return journalArticleLocalService.search(companyId, groupId, articleId,
861 version, title, description, content, type, structureIds,
862 templateIds, displayDateGT, displayDateLT, approved, expired,
863 reviewDate, andOperator, begin, end, obc);
864 }
865
866 public static int searchCount(long companyId, long groupId,
867 java.lang.String keywords, java.lang.Double version,
868 java.lang.String type, java.lang.String structureId,
869 java.lang.String templateId, java.util.Date displayDateGT,
870 java.util.Date displayDateLT, java.lang.Boolean approved,
871 java.lang.Boolean expired, java.util.Date reviewDate)
872 throws com.liferay.portal.SystemException {
873 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
874
875 return journalArticleLocalService.searchCount(companyId, groupId,
876 keywords, version, type, structureId, templateId, displayDateGT,
877 displayDateLT, approved, expired, reviewDate);
878 }
879
880 public static int searchCount(long companyId, long groupId,
881 java.lang.String articleId, java.lang.Double version,
882 java.lang.String title, java.lang.String description,
883 java.lang.String content, java.lang.String type,
884 java.lang.String structureId, java.lang.String templateId,
885 java.util.Date displayDateGT, java.util.Date displayDateLT,
886 java.lang.Boolean approved, java.lang.Boolean expired,
887 java.util.Date reviewDate, boolean andOperator)
888 throws com.liferay.portal.SystemException {
889 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
890
891 return journalArticleLocalService.searchCount(companyId, groupId,
892 articleId, version, title, description, content, type, structureId,
893 templateId, displayDateGT, displayDateLT, approved, expired,
894 reviewDate, andOperator);
895 }
896
897 public static int searchCount(long companyId, long groupId,
898 java.lang.String articleId, java.lang.Double version,
899 java.lang.String title, java.lang.String description,
900 java.lang.String content, java.lang.String type,
901 java.lang.String[] structureIds, java.lang.String[] templateIds,
902 java.util.Date displayDateGT, java.util.Date displayDateLT,
903 java.lang.Boolean approved, java.lang.Boolean expired,
904 java.util.Date reviewDate, boolean andOperator)
905 throws com.liferay.portal.SystemException {
906 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
907
908 return journalArticleLocalService.searchCount(companyId, groupId,
909 articleId, version, title, description, content, type,
910 structureIds, templateIds, displayDateGT, displayDateLT, approved,
911 expired, reviewDate, andOperator);
912 }
913
914 public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
915 long userId, long groupId, java.lang.String articleId, double version,
916 boolean incrementVersion, java.lang.String title,
917 java.lang.String description, java.lang.String content,
918 java.lang.String type, java.lang.String structureId,
919 java.lang.String templateId, int displayDateMonth, int displayDateDay,
920 int displayDateYear, int displayDateHour, int displayDateMinute,
921 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
922 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
923 int reviewDateMonth, int reviewDateDay, int reviewDateYear,
924 int reviewDateHour, int reviewDateMinute, boolean neverReview,
925 boolean indexable, boolean smallImage, java.lang.String smallImageURL,
926 java.io.File smallFile, java.util.Map<String, byte[]> images,
927 java.lang.String articleURL, javax.portlet.PortletPreferences prefs,
928 java.lang.String[] tagsEntries)
929 throws com.liferay.portal.PortalException,
930 com.liferay.portal.SystemException {
931 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
932
933 return journalArticleLocalService.updateArticle(userId, groupId,
934 articleId, version, incrementVersion, title, description, content,
935 type, structureId, templateId, displayDateMonth, displayDateDay,
936 displayDateYear, displayDateHour, displayDateMinute,
937 expirationDateMonth, expirationDateDay, expirationDateYear,
938 expirationDateHour, expirationDateMinute, neverExpire,
939 reviewDateMonth, reviewDateDay, reviewDateYear, reviewDateHour,
940 reviewDateMinute, neverReview, indexable, smallImage,
941 smallImageURL, smallFile, images, articleURL, prefs, tagsEntries);
942 }
943
944 public static com.liferay.portlet.journal.model.JournalArticle updateContent(
945 long groupId, java.lang.String articleId, double version,
946 java.lang.String content)
947 throws com.liferay.portal.PortalException,
948 com.liferay.portal.SystemException {
949 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
950
951 return journalArticleLocalService.updateContent(groupId, articleId,
952 version, content);
953 }
954
955 public static void updateTagsAsset(long userId,
956 com.liferay.portlet.journal.model.JournalArticle article,
957 java.lang.String[] tagsEntries)
958 throws com.liferay.portal.PortalException,
959 com.liferay.portal.SystemException {
960 JournalArticleLocalService journalArticleLocalService = JournalArticleLocalServiceFactory.getService();
961
962 journalArticleLocalService.updateTagsAsset(userId, article, tagsEntries);
963 }
964 }