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.LocaleUtil;
020
021 import com.liferay.portlet.journal.service.JournalArticleServiceUtil;
022
023 import java.rmi.RemoteException;
024
025
068 public class JournalArticleServiceSoap {
069 public static com.liferay.portlet.journal.model.JournalArticleSoap copyArticle(
070 long groupId, java.lang.String oldArticleId,
071 java.lang.String newArticleId, boolean autoArticleId, double version)
072 throws RemoteException {
073 try {
074 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.copyArticle(groupId,
075 oldArticleId, newArticleId, autoArticleId, version);
076
077 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
078 }
079 catch (Exception e) {
080 _log.error(e, e);
081
082 throw new RemoteException(e.getMessage());
083 }
084 }
085
086 public static void deleteArticle(long groupId, java.lang.String articleId,
087 double version, java.lang.String articleURL,
088 com.liferay.portal.service.ServiceContext serviceContext)
089 throws RemoteException {
090 try {
091 JournalArticleServiceUtil.deleteArticle(groupId, articleId,
092 version, articleURL, serviceContext);
093 }
094 catch (Exception e) {
095 _log.error(e, e);
096
097 throw new RemoteException(e.getMessage());
098 }
099 }
100
101 public static void deleteArticle(long groupId, java.lang.String articleId,
102 java.lang.String articleURL,
103 com.liferay.portal.service.ServiceContext serviceContext)
104 throws RemoteException {
105 try {
106 JournalArticleServiceUtil.deleteArticle(groupId, articleId,
107 articleURL, serviceContext);
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 expireArticle(
117 long groupId, java.lang.String articleId, double version,
118 java.lang.String articleURL,
119 com.liferay.portal.service.ServiceContext serviceContext)
120 throws RemoteException {
121 try {
122 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.expireArticle(groupId,
123 articleId, version, articleURL, serviceContext);
124
125 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
126 }
127 catch (Exception e) {
128 _log.error(e, e);
129
130 throw new RemoteException(e.getMessage());
131 }
132 }
133
134 public static void expireArticle(long groupId, java.lang.String articleId,
135 java.lang.String articleURL,
136 com.liferay.portal.service.ServiceContext serviceContext)
137 throws RemoteException {
138 try {
139 JournalArticleServiceUtil.expireArticle(groupId, articleId,
140 articleURL, serviceContext);
141 }
142 catch (Exception e) {
143 _log.error(e, e);
144
145 throw new RemoteException(e.getMessage());
146 }
147 }
148
149 public static com.liferay.portlet.journal.model.JournalArticleSoap getArticle(
150 long id) throws RemoteException {
151 try {
152 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticle(id);
153
154 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
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 getArticle(
164 long groupId, java.lang.String articleId) throws RemoteException {
165 try {
166 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticle(groupId,
167 articleId);
168
169 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
170 }
171 catch (Exception e) {
172 _log.error(e, e);
173
174 throw new RemoteException(e.getMessage());
175 }
176 }
177
178 public static com.liferay.portlet.journal.model.JournalArticleSoap getArticle(
179 long groupId, java.lang.String articleId, double version)
180 throws RemoteException {
181 try {
182 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticle(groupId,
183 articleId, version);
184
185 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
186 }
187 catch (Exception e) {
188 _log.error(e, e);
189
190 throw new RemoteException(e.getMessage());
191 }
192 }
193
194 public static com.liferay.portlet.journal.model.JournalArticleSoap getArticle(
195 long groupId, java.lang.String className, long classPK)
196 throws RemoteException {
197 try {
198 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticle(groupId,
199 className, classPK);
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 getArticleByUrlTitle(
211 long groupId, java.lang.String urlTitle) throws RemoteException {
212 try {
213 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticleByUrlTitle(groupId,
214 urlTitle);
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[] getArticlesByLayoutUuid(
226 long groupId, java.lang.String layoutUuid) throws RemoteException {
227 try {
228 java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
229 JournalArticleServiceUtil.getArticlesByLayoutUuid(groupId,
230 layoutUuid);
231
232 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(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 getLatestArticle(
242 long resourcePrimKey) throws RemoteException {
243 try {
244 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getLatestArticle(resourcePrimKey);
245
246 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
247 }
248 catch (Exception e) {
249 _log.error(e, e);
250
251 throw new RemoteException(e.getMessage());
252 }
253 }
254
255 public static com.liferay.portlet.journal.model.JournalArticleSoap getLatestArticle(
256 long groupId, java.lang.String articleId, int status)
257 throws RemoteException {
258 try {
259 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getLatestArticle(groupId,
260 articleId, status);
261
262 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
263 }
264 catch (Exception e) {
265 _log.error(e, e);
266
267 throw new RemoteException(e.getMessage());
268 }
269 }
270
271 public static com.liferay.portlet.journal.model.JournalArticleSoap getLatestArticle(
272 long groupId, java.lang.String className, long classPK)
273 throws RemoteException {
274 try {
275 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getLatestArticle(groupId,
276 className, classPK);
277
278 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
279 }
280 catch (Exception e) {
281 _log.error(e, e);
282
283 throw new RemoteException(e.getMessage());
284 }
285 }
286
287 public static void removeArticleLocale(long companyId,
288 java.lang.String languageId) throws RemoteException {
289 try {
290 JournalArticleServiceUtil.removeArticleLocale(companyId, languageId);
291 }
292 catch (Exception e) {
293 _log.error(e, e);
294
295 throw new RemoteException(e.getMessage());
296 }
297 }
298
299 public static com.liferay.portlet.journal.model.JournalArticleSoap removeArticleLocale(
300 long groupId, java.lang.String articleId, double version,
301 java.lang.String languageId) throws RemoteException {
302 try {
303 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.removeArticleLocale(groupId,
304 articleId, version, languageId);
305
306 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
307 }
308 catch (Exception e) {
309 _log.error(e, e);
310
311 throw new RemoteException(e.getMessage());
312 }
313 }
314
315 public static com.liferay.portlet.journal.model.JournalArticleSoap[] search(
316 long companyId, long groupId, long classNameId,
317 java.lang.String keywords, java.lang.Double version,
318 java.lang.String type, java.lang.String structureId,
319 java.lang.String templateId, java.util.Date displayDateGT,
320 java.util.Date displayDateLT, int status, java.util.Date reviewDate,
321 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
322 throws RemoteException {
323 try {
324 java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
325 JournalArticleServiceUtil.search(companyId, groupId,
326 classNameId, keywords, version, type, structureId,
327 templateId, displayDateGT, displayDateLT, status,
328 reviewDate, start, end, obc);
329
330 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
331 }
332 catch (Exception e) {
333 _log.error(e, e);
334
335 throw new RemoteException(e.getMessage());
336 }
337 }
338
339 public static com.liferay.portlet.journal.model.JournalArticleSoap[] search(
340 long companyId, long groupId, long classNameId,
341 java.lang.String articleId, java.lang.Double version,
342 java.lang.String title, java.lang.String description,
343 java.lang.String content, java.lang.String type,
344 java.lang.String structureId, java.lang.String templateId,
345 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
346 java.util.Date reviewDate, boolean andOperator, int start, int end,
347 com.liferay.portal.kernel.util.OrderByComparator obc)
348 throws RemoteException {
349 try {
350 java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
351 JournalArticleServiceUtil.search(companyId, groupId,
352 classNameId, articleId, version, title, description,
353 content, type, structureId, templateId, displayDateGT,
354 displayDateLT, status, reviewDate, andOperator, start, end,
355 obc);
356
357 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(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[] search(
367 long companyId, long groupId, long classNameId,
368 java.lang.String articleId, java.lang.Double version,
369 java.lang.String title, java.lang.String description,
370 java.lang.String content, java.lang.String type,
371 java.lang.String[] structureIds, java.lang.String[] templateIds,
372 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
373 java.util.Date reviewDate, boolean andOperator, int start, int end,
374 com.liferay.portal.kernel.util.OrderByComparator obc)
375 throws RemoteException {
376 try {
377 java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
378 JournalArticleServiceUtil.search(companyId, groupId,
379 classNameId, articleId, version, title, description,
380 content, type, structureIds, templateIds, displayDateGT,
381 displayDateLT, status, reviewDate, andOperator, start, end,
382 obc);
383
384 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
385 }
386 catch (Exception e) {
387 _log.error(e, e);
388
389 throw new RemoteException(e.getMessage());
390 }
391 }
392
393 public static int searchCount(long companyId, long groupId,
394 long classNameId, java.lang.String keywords, java.lang.Double version,
395 java.lang.String type, java.lang.String structureId,
396 java.lang.String templateId, java.util.Date displayDateGT,
397 java.util.Date displayDateLT, int status, java.util.Date reviewDate)
398 throws RemoteException {
399 try {
400 int returnValue = JournalArticleServiceUtil.searchCount(companyId,
401 groupId, classNameId, keywords, version, type, structureId,
402 templateId, displayDateGT, displayDateLT, status, reviewDate);
403
404 return returnValue;
405 }
406 catch (Exception e) {
407 _log.error(e, e);
408
409 throw new RemoteException(e.getMessage());
410 }
411 }
412
413 public static int searchCount(long companyId, long groupId,
414 long classNameId, java.lang.String articleId, java.lang.Double version,
415 java.lang.String title, java.lang.String description,
416 java.lang.String content, java.lang.String type,
417 java.lang.String structureId, java.lang.String templateId,
418 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
419 java.util.Date reviewDate, boolean andOperator)
420 throws RemoteException {
421 try {
422 int returnValue = JournalArticleServiceUtil.searchCount(companyId,
423 groupId, classNameId, articleId, version, title,
424 description, content, type, structureId, templateId,
425 displayDateGT, displayDateLT, status, reviewDate,
426 andOperator);
427
428 return returnValue;
429 }
430 catch (Exception e) {
431 _log.error(e, e);
432
433 throw new RemoteException(e.getMessage());
434 }
435 }
436
437 public static int searchCount(long companyId, long groupId,
438 long classNameId, java.lang.String articleId, java.lang.Double version,
439 java.lang.String title, java.lang.String description,
440 java.lang.String content, java.lang.String type,
441 java.lang.String[] structureIds, java.lang.String[] templateIds,
442 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
443 java.util.Date reviewDate, boolean andOperator)
444 throws RemoteException {
445 try {
446 int returnValue = JournalArticleServiceUtil.searchCount(companyId,
447 groupId, classNameId, articleId, version, title,
448 description, content, type, structureIds, templateIds,
449 displayDateGT, displayDateLT, status, reviewDate,
450 andOperator);
451
452 return returnValue;
453 }
454 catch (Exception e) {
455 _log.error(e, e);
456
457 throw new RemoteException(e.getMessage());
458 }
459 }
460
461 public static void subscribe(long groupId) throws RemoteException {
462 try {
463 JournalArticleServiceUtil.subscribe(groupId);
464 }
465 catch (Exception e) {
466 _log.error(e, e);
467
468 throw new RemoteException(e.getMessage());
469 }
470 }
471
472 public static void unsubscribe(long groupId) throws RemoteException {
473 try {
474 JournalArticleServiceUtil.unsubscribe(groupId);
475 }
476 catch (Exception e) {
477 _log.error(e, e);
478
479 throw new RemoteException(e.getMessage());
480 }
481 }
482
483 public static com.liferay.portlet.journal.model.JournalArticleSoap updateArticle(
484 long groupId, java.lang.String articleId, double version,
485 java.lang.String content,
486 com.liferay.portal.service.ServiceContext serviceContext)
487 throws RemoteException {
488 try {
489 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateArticle(groupId,
490 articleId, version, content, serviceContext);
491
492 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
493 }
494 catch (Exception e) {
495 _log.error(e, e);
496
497 throw new RemoteException(e.getMessage());
498 }
499 }
500
501 public static com.liferay.portlet.journal.model.JournalArticleSoap updateArticleTranslation(
502 long groupId, java.lang.String articleId, double version,
503 String locale, java.lang.String title, java.lang.String description,
504 java.lang.String content) throws RemoteException {
505 try {
506 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateArticleTranslation(groupId,
507 articleId, version, LocaleUtil.fromLanguageId(locale),
508 title, description, content);
509
510 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
511 }
512 catch (Exception e) {
513 _log.error(e, e);
514
515 throw new RemoteException(e.getMessage());
516 }
517 }
518
519 public static com.liferay.portlet.journal.model.JournalArticleSoap updateContent(
520 long groupId, java.lang.String articleId, double version,
521 java.lang.String content) throws RemoteException {
522 try {
523 com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateContent(groupId,
524 articleId, version, content);
525
526 return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
527 }
528 catch (Exception e) {
529 _log.error(e, e);
530
531 throw new RemoteException(e.getMessage());
532 }
533 }
534
535 private static Log _log = LogFactoryUtil.getLog(JournalArticleServiceSoap.class);
536 }