001
014
015 package com.liferay.portlet.journal.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019 import com.liferay.portal.kernel.util.LocalizationUtil;
020
021 import com.liferay.portlet.journal.service.JournalArticleServiceUtil;
022
023 import java.rmi.RemoteException;
024
025 import java.util.Locale;
026 import java.util.Map;
027
028
071 public class JournalArticleServiceSoap {
072 public static com.liferay.portlet.journal.model.JournalArticleSoap addArticle(
073 long groupId, long classNameId, long classPK,
074 java.lang.String articleId, boolean autoArticleId,
075 java.lang.String[] titleMapLanguageIds,
076 java.lang.String[] titleMapValues,
077 java.lang.String[] descriptionMapLanguageIds,
078 java.lang.String[] descriptionMapValues, java.lang.String content,
079 java.lang.String type, java.lang.String structureId,
080 java.lang.String templateId, java.lang.String layoutUuid,
081 int displayDateMonth, int displayDateDay, int displayDateYear,
082 int displayDateHour, int displayDateMinute, int expirationDateMonth,
083 int expirationDateDay, int expirationDateYear, int expirationDateHour,
084 int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
085 int reviewDateDay, int reviewDateYear, int reviewDateHour,
086 int reviewDateMinute, boolean neverReview, boolean indexable,
087 java.lang.String articleURL,
088 com.liferay.portal.service.ServiceContext serviceContext)
089 throws RemoteException {
090 try {
091 Map<Locale, String> titleMap = LocalizationUtil.getLocalizationMap(titleMapLanguageIds,
092 titleMapValues);
093 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
094 descriptionMapValues);
095
096 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.addArticle(groupId,
097 classNameId, classPK, articleId, autoArticleId, titleMap,
098 descriptionMap, content, type, structureId, templateId,
099 layoutUuid, displayDateMonth, displayDateDay,
100 displayDateYear, displayDateHour, displayDateMinute,
101 expirationDateMonth, expirationDateDay, expirationDateYear,
102 expirationDateHour, expirationDateMinute, neverExpire,
103 reviewDateMonth, reviewDateDay, reviewDateYear,
104 reviewDateHour, reviewDateMinute, neverReview, indexable,
105 articleURL, serviceContext);
106
107 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
108 }
109 catch (Exception e) {
110 _log.error(e, e);
111
112 throw new RemoteException(e.getMessage());
113 }
114 }
115
116 public static com.liferay.portlet.journal.model.JournalArticleSoap copyArticle(
117 long groupId, java.lang.String oldArticleId,
118 java.lang.String newArticleId, boolean autoArticleId, double version)
119 throws RemoteException {
120 try {
121 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.copyArticle(groupId,
122 oldArticleId, newArticleId, autoArticleId, version);
123
124 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
125 }
126 catch (Exception e) {
127 _log.error(e, e);
128
129 throw new RemoteException(e.getMessage());
130 }
131 }
132
133 public static void deleteArticle(long groupId, java.lang.String articleId,
134 double version, java.lang.String articleURL,
135 com.liferay.portal.service.ServiceContext serviceContext)
136 throws RemoteException {
137 try {
138 JournalArticleServiceUtil.deleteArticle(groupId, articleId,
139 version, articleURL, serviceContext);
140 }
141 catch (Exception e) {
142 _log.error(e, e);
143
144 throw new RemoteException(e.getMessage());
145 }
146 }
147
148 public static void deleteArticle(long groupId, java.lang.String articleId,
149 java.lang.String articleURL,
150 com.liferay.portal.service.ServiceContext serviceContext)
151 throws RemoteException {
152 try {
153 JournalArticleServiceUtil.deleteArticle(groupId, articleId,
154 articleURL, serviceContext);
155 }
156 catch (Exception e) {
157 _log.error(e, e);
158
159 throw new RemoteException(e.getMessage());
160 }
161 }
162
163 public static com.liferay.portlet.journal.model.JournalArticleSoap expireArticle(
164 long groupId, java.lang.String articleId, double version,
165 java.lang.String articleURL,
166 com.liferay.portal.service.ServiceContext serviceContext)
167 throws RemoteException {
168 try {
169 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.expireArticle(groupId,
170 articleId, version, articleURL, serviceContext);
171
172 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
173 }
174 catch (Exception e) {
175 _log.error(e, e);
176
177 throw new RemoteException(e.getMessage());
178 }
179 }
180
181 public static void expireArticle(long groupId, java.lang.String articleId,
182 java.lang.String articleURL,
183 com.liferay.portal.service.ServiceContext serviceContext)
184 throws RemoteException {
185 try {
186 JournalArticleServiceUtil.expireArticle(groupId, articleId,
187 articleURL, serviceContext);
188 }
189 catch (Exception e) {
190 _log.error(e, e);
191
192 throw new RemoteException(e.getMessage());
193 }
194 }
195
196 public static com.liferay.portlet.journal.model.JournalArticleSoap getArticle(
197 long id) throws RemoteException {
198 try {
199 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticle(id);
200
201 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
202 }
203 catch (Exception e) {
204 _log.error(e, e);
205
206 throw new RemoteException(e.getMessage());
207 }
208 }
209
210 public static com.liferay.portlet.journal.model.JournalArticleSoap getArticle(
211 long groupId, java.lang.String articleId) throws RemoteException {
212 try {
213 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticle(groupId,
214 articleId);
215
216 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
217 }
218 catch (Exception e) {
219 _log.error(e, e);
220
221 throw new RemoteException(e.getMessage());
222 }
223 }
224
225 public static com.liferay.portlet.journal.model.JournalArticleSoap getArticle(
226 long groupId, java.lang.String articleId, double version)
227 throws RemoteException {
228 try {
229 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticle(groupId,
230 articleId, version);
231
232 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
233 }
234 catch (Exception e) {
235 _log.error(e, e);
236
237 throw new RemoteException(e.getMessage());
238 }
239 }
240
241 public static com.liferay.portlet.journal.model.JournalArticleSoap getArticle(
242 long groupId, java.lang.String className, long classPK)
243 throws RemoteException {
244 try {
245 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticle(groupId,
246 className, classPK);
247
248 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
249 }
250 catch (Exception e) {
251 _log.error(e, e);
252
253 throw new RemoteException(e.getMessage());
254 }
255 }
256
257 public static com.liferay.portlet.journal.model.JournalArticleSoap getArticleByUrlTitle(
258 long groupId, java.lang.String urlTitle) throws RemoteException {
259 try {
260 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticleByUrlTitle(groupId,
261 urlTitle);
262
263 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
264 }
265 catch (Exception e) {
266 _log.error(e, e);
267
268 throw new RemoteException(e.getMessage());
269 }
270 }
271
272 public static com.liferay.portlet.journal.model.JournalArticleSoap[] getArticlesByArticleId(
273 long groupId, java.lang.String articleId, int start, int end,
274 com.liferay.portal.kernel.util.OrderByComparator obc)
275 throws RemoteException {
276 try {
277 java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
278 JournalArticleServiceUtil.getArticlesByArticleId(groupId,
279 articleId, start, end, obc);
280
281 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
282 }
283 catch (Exception e) {
284 _log.error(e, e);
285
286 throw new RemoteException(e.getMessage());
287 }
288 }
289
290 public static com.liferay.portlet.journal.model.JournalArticleSoap[] getArticlesByLayoutUuid(
291 long groupId, java.lang.String layoutUuid) throws RemoteException {
292 try {
293 java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
294 JournalArticleServiceUtil.getArticlesByLayoutUuid(groupId,
295 layoutUuid);
296
297 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
298 }
299 catch (Exception e) {
300 _log.error(e, e);
301
302 throw new RemoteException(e.getMessage());
303 }
304 }
305
306 public static int getArticlesCountByArticleId(long groupId,
307 java.lang.String articleId) throws RemoteException {
308 try {
309 int returnValue = JournalArticleServiceUtil.getArticlesCountByArticleId(groupId,
310 articleId);
311
312 return returnValue;
313 }
314 catch (Exception e) {
315 _log.error(e, e);
316
317 throw new RemoteException(e.getMessage());
318 }
319 }
320
321 public static com.liferay.portlet.journal.model.JournalArticleSoap getDisplayArticleByUrlTitle(
322 long groupId, java.lang.String urlTitle) throws RemoteException {
323 try {
324 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getDisplayArticleByUrlTitle(groupId,
325 urlTitle);
326
327 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
328 }
329 catch (Exception e) {
330 _log.error(e, e);
331
332 throw new RemoteException(e.getMessage());
333 }
334 }
335
336 public static com.liferay.portlet.journal.model.JournalArticleSoap getLatestArticle(
337 long resourcePrimKey) throws RemoteException {
338 try {
339 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getLatestArticle(resourcePrimKey);
340
341 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
342 }
343 catch (Exception e) {
344 _log.error(e, e);
345
346 throw new RemoteException(e.getMessage());
347 }
348 }
349
350 public static com.liferay.portlet.journal.model.JournalArticleSoap getLatestArticle(
351 long groupId, java.lang.String articleId, int status)
352 throws RemoteException {
353 try {
354 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getLatestArticle(groupId,
355 articleId, status);
356
357 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
358 }
359 catch (Exception e) {
360 _log.error(e, e);
361
362 throw new RemoteException(e.getMessage());
363 }
364 }
365
366 public static com.liferay.portlet.journal.model.JournalArticleSoap getLatestArticle(
367 long groupId, java.lang.String className, long classPK)
368 throws RemoteException {
369 try {
370 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getLatestArticle(groupId,
371 className, classPK);
372
373 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
374 }
375 catch (Exception e) {
376 _log.error(e, e);
377
378 throw new RemoteException(e.getMessage());
379 }
380 }
381
382 public static void removeArticleLocale(long companyId,
383 java.lang.String languageId) throws RemoteException {
384 try {
385 JournalArticleServiceUtil.removeArticleLocale(companyId, languageId);
386 }
387 catch (Exception e) {
388 _log.error(e, e);
389
390 throw new RemoteException(e.getMessage());
391 }
392 }
393
394 public static com.liferay.portlet.journal.model.JournalArticleSoap removeArticleLocale(
395 long groupId, java.lang.String articleId, double version,
396 java.lang.String languageId) throws RemoteException {
397 try {
398 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.removeArticleLocale(groupId,
399 articleId, version, languageId);
400
401 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
402 }
403 catch (Exception e) {
404 _log.error(e, e);
405
406 throw new RemoteException(e.getMessage());
407 }
408 }
409
410 public static com.liferay.portlet.journal.model.JournalArticleSoap[] search(
411 long companyId, long groupId, long classNameId,
412 java.lang.String keywords, java.lang.Double version,
413 java.lang.String type, java.lang.String structureId,
414 java.lang.String templateId, java.util.Date displayDateGT,
415 java.util.Date displayDateLT, int status, java.util.Date reviewDate,
416 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
417 throws RemoteException {
418 try {
419 java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
420 JournalArticleServiceUtil.search(companyId, groupId,
421 classNameId, keywords, version, type, structureId,
422 templateId, displayDateGT, displayDateLT, status,
423 reviewDate, start, end, obc);
424
425 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
426 }
427 catch (Exception e) {
428 _log.error(e, e);
429
430 throw new RemoteException(e.getMessage());
431 }
432 }
433
434 public static com.liferay.portlet.journal.model.JournalArticleSoap[] search(
435 long companyId, long groupId, long classNameId,
436 java.lang.String articleId, java.lang.Double version,
437 java.lang.String title, java.lang.String description,
438 java.lang.String content, java.lang.String type,
439 java.lang.String structureId, java.lang.String templateId,
440 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
441 java.util.Date reviewDate, boolean andOperator, int start, int end,
442 com.liferay.portal.kernel.util.OrderByComparator obc)
443 throws RemoteException {
444 try {
445 java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
446 JournalArticleServiceUtil.search(companyId, groupId,
447 classNameId, articleId, version, title, description,
448 content, type, structureId, templateId, displayDateGT,
449 displayDateLT, status, reviewDate, andOperator, start, end,
450 obc);
451
452 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
453 }
454 catch (Exception e) {
455 _log.error(e, e);
456
457 throw new RemoteException(e.getMessage());
458 }
459 }
460
461 public static com.liferay.portlet.journal.model.JournalArticleSoap[] search(
462 long companyId, long groupId, long classNameId,
463 java.lang.String articleId, java.lang.Double version,
464 java.lang.String title, java.lang.String description,
465 java.lang.String content, java.lang.String type,
466 java.lang.String[] structureIds, java.lang.String[] templateIds,
467 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
468 java.util.Date reviewDate, boolean andOperator, int start, int end,
469 com.liferay.portal.kernel.util.OrderByComparator obc)
470 throws RemoteException {
471 try {
472 java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
473 JournalArticleServiceUtil.search(companyId, groupId,
474 classNameId, articleId, version, title, description,
475 content, type, structureIds, templateIds, displayDateGT,
476 displayDateLT, status, reviewDate, andOperator, start, end,
477 obc);
478
479 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
480 }
481 catch (Exception e) {
482 _log.error(e, e);
483
484 throw new RemoteException(e.getMessage());
485 }
486 }
487
488 public static int searchCount(long companyId, long groupId,
489 long classNameId, java.lang.String keywords, java.lang.Double version,
490 java.lang.String type, java.lang.String structureId,
491 java.lang.String templateId, java.util.Date displayDateGT,
492 java.util.Date displayDateLT, int status, java.util.Date reviewDate)
493 throws RemoteException {
494 try {
495 int returnValue = JournalArticleServiceUtil.searchCount(companyId,
496 groupId, classNameId, keywords, version, type, structureId,
497 templateId, displayDateGT, displayDateLT, status, reviewDate);
498
499 return returnValue;
500 }
501 catch (Exception e) {
502 _log.error(e, e);
503
504 throw new RemoteException(e.getMessage());
505 }
506 }
507
508 public static int searchCount(long companyId, long groupId,
509 long classNameId, java.lang.String articleId, java.lang.Double version,
510 java.lang.String title, java.lang.String description,
511 java.lang.String content, java.lang.String type,
512 java.lang.String structureId, java.lang.String templateId,
513 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
514 java.util.Date reviewDate, boolean andOperator)
515 throws RemoteException {
516 try {
517 int returnValue = JournalArticleServiceUtil.searchCount(companyId,
518 groupId, classNameId, articleId, version, title,
519 description, content, type, structureId, templateId,
520 displayDateGT, displayDateLT, status, reviewDate,
521 andOperator);
522
523 return returnValue;
524 }
525 catch (Exception e) {
526 _log.error(e, e);
527
528 throw new RemoteException(e.getMessage());
529 }
530 }
531
532 public static int searchCount(long companyId, long groupId,
533 long classNameId, java.lang.String articleId, java.lang.Double version,
534 java.lang.String title, java.lang.String description,
535 java.lang.String content, java.lang.String type,
536 java.lang.String[] structureIds, java.lang.String[] templateIds,
537 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
538 java.util.Date reviewDate, boolean andOperator)
539 throws RemoteException {
540 try {
541 int returnValue = JournalArticleServiceUtil.searchCount(companyId,
542 groupId, classNameId, articleId, version, title,
543 description, content, type, structureIds, templateIds,
544 displayDateGT, displayDateLT, status, reviewDate,
545 andOperator);
546
547 return returnValue;
548 }
549 catch (Exception e) {
550 _log.error(e, e);
551
552 throw new RemoteException(e.getMessage());
553 }
554 }
555
556 public static void subscribe(long groupId) throws RemoteException {
557 try {
558 JournalArticleServiceUtil.subscribe(groupId);
559 }
560 catch (Exception e) {
561 _log.error(e, e);
562
563 throw new RemoteException(e.getMessage());
564 }
565 }
566
567 public static void unsubscribe(long groupId) throws RemoteException {
568 try {
569 JournalArticleServiceUtil.unsubscribe(groupId);
570 }
571 catch (Exception e) {
572 _log.error(e, e);
573
574 throw new RemoteException(e.getMessage());
575 }
576 }
577
578 public static com.liferay.portlet.journal.model.JournalArticleSoap updateArticle(
579 long userId, long groupId, java.lang.String articleId, double version,
580 java.lang.String[] titleMapLanguageIds,
581 java.lang.String[] titleMapValues,
582 java.lang.String[] descriptionMapLanguageIds,
583 java.lang.String[] descriptionMapValues, java.lang.String content,
584 java.lang.String layoutUuid,
585 com.liferay.portal.service.ServiceContext serviceContext)
586 throws RemoteException {
587 try {
588 Map<Locale, String> titleMap = LocalizationUtil.getLocalizationMap(titleMapLanguageIds,
589 titleMapValues);
590 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
591 descriptionMapValues);
592
593 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateArticle(userId,
594 groupId, articleId, version, titleMap, descriptionMap,
595 content, layoutUuid, serviceContext);
596
597 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
598 }
599 catch (Exception e) {
600 _log.error(e, e);
601
602 throw new RemoteException(e.getMessage());
603 }
604 }
605
606 public static com.liferay.portlet.journal.model.JournalArticleSoap updateArticle(
607 long groupId, java.lang.String articleId, double version,
608 java.lang.String content,
609 com.liferay.portal.service.ServiceContext serviceContext)
610 throws RemoteException {
611 try {
612 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateArticle(groupId,
613 articleId, version, content, serviceContext);
614
615 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
616 }
617 catch (Exception e) {
618 _log.error(e, e);
619
620 throw new RemoteException(e.getMessage());
621 }
622 }
623
624 public static com.liferay.portlet.journal.model.JournalArticleSoap updateContent(
625 long groupId, java.lang.String articleId, double version,
626 java.lang.String content) throws RemoteException {
627 try {
628 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateContent(groupId,
629 articleId, version, content);
630
631 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
632 }
633 catch (Exception e) {
634 _log.error(e, e);
635
636 throw new RemoteException(e.getMessage());
637 }
638 }
639
640 public static com.liferay.portlet.journal.model.JournalArticleSoap updateStatus(
641 long groupId, java.lang.String articleId, double version, int status,
642 java.lang.String articleURL,
643 com.liferay.portal.service.ServiceContext serviceContext)
644 throws RemoteException {
645 try {
646 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateStatus(groupId,
647 articleId, version, status, articleURL, serviceContext);
648
649 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
650 }
651 catch (Exception e) {
652 _log.error(e, e);
653
654 throw new RemoteException(e.getMessage());
655 }
656 }
657
658 private static Log _log = LogFactoryUtil.getLog(JournalArticleServiceSoap.class);
659 }