1
14
15 package com.liferay.portal.service.http;
16
17 import com.liferay.portal.kernel.log.Log;
18 import com.liferay.portal.kernel.log.LogFactoryUtil;
19 import com.liferay.portal.kernel.util.MethodHandler;
20 import com.liferay.portal.kernel.util.MethodKey;
21 import com.liferay.portal.security.auth.HttpPrincipal;
22 import com.liferay.portal.service.LayoutServiceUtil;
23
24
61 public class LayoutServiceHttp {
62 public static com.liferay.portal.model.Layout addLayout(
63 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
64 long parentLayoutId,
65 java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
66 java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
67 java.lang.String description, java.lang.String type, boolean hidden,
68 java.lang.String friendlyURL)
69 throws com.liferay.portal.PortalException,
70 com.liferay.portal.SystemException {
71 try {
72 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
73 "addLayout", _addLayoutParameterTypes0);
74
75 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
76 privateLayout, parentLayoutId, localeNamesMap,
77 localeTitlesMap, description, type, hidden, friendlyURL);
78
79 Object returnObj = null;
80
81 try {
82 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
83 }
84 catch (Exception e) {
85 if (e instanceof com.liferay.portal.PortalException) {
86 throw (com.liferay.portal.PortalException)e;
87 }
88
89 if (e instanceof com.liferay.portal.SystemException) {
90 throw (com.liferay.portal.SystemException)e;
91 }
92
93 throw new com.liferay.portal.SystemException(e);
94 }
95
96 return (com.liferay.portal.model.Layout)returnObj;
97 }
98 catch (com.liferay.portal.SystemException se) {
99 _log.error(se, se);
100
101 throw se;
102 }
103 }
104
105 public static com.liferay.portal.model.Layout addLayout(
106 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
107 long parentLayoutId, java.lang.String name, java.lang.String title,
108 java.lang.String description, java.lang.String type, boolean hidden,
109 java.lang.String friendlyURL)
110 throws com.liferay.portal.PortalException,
111 com.liferay.portal.SystemException {
112 try {
113 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
114 "addLayout", _addLayoutParameterTypes1);
115
116 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
117 privateLayout, parentLayoutId, name, title, description,
118 type, hidden, friendlyURL);
119
120 Object returnObj = null;
121
122 try {
123 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
124 }
125 catch (Exception e) {
126 if (e instanceof com.liferay.portal.PortalException) {
127 throw (com.liferay.portal.PortalException)e;
128 }
129
130 if (e instanceof com.liferay.portal.SystemException) {
131 throw (com.liferay.portal.SystemException)e;
132 }
133
134 throw new com.liferay.portal.SystemException(e);
135 }
136
137 return (com.liferay.portal.model.Layout)returnObj;
138 }
139 catch (com.liferay.portal.SystemException se) {
140 _log.error(se, se);
141
142 throw se;
143 }
144 }
145
146 public static void deleteLayout(HttpPrincipal httpPrincipal, long plid)
147 throws com.liferay.portal.PortalException,
148 com.liferay.portal.SystemException {
149 try {
150 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
151 "deleteLayout", _deleteLayoutParameterTypes2);
152
153 MethodHandler methodHandler = new MethodHandler(methodKey, plid);
154
155 try {
156 TunnelUtil.invoke(httpPrincipal, methodHandler);
157 }
158 catch (Exception e) {
159 if (e instanceof com.liferay.portal.PortalException) {
160 throw (com.liferay.portal.PortalException)e;
161 }
162
163 if (e instanceof com.liferay.portal.SystemException) {
164 throw (com.liferay.portal.SystemException)e;
165 }
166
167 throw new com.liferay.portal.SystemException(e);
168 }
169 }
170 catch (com.liferay.portal.SystemException se) {
171 _log.error(se, se);
172
173 throw se;
174 }
175 }
176
177 public static void deleteLayout(HttpPrincipal httpPrincipal, long groupId,
178 boolean privateLayout, long layoutId)
179 throws com.liferay.portal.PortalException,
180 com.liferay.portal.SystemException {
181 try {
182 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
183 "deleteLayout", _deleteLayoutParameterTypes3);
184
185 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
186 privateLayout, layoutId);
187
188 try {
189 TunnelUtil.invoke(httpPrincipal, methodHandler);
190 }
191 catch (Exception e) {
192 if (e instanceof com.liferay.portal.PortalException) {
193 throw (com.liferay.portal.PortalException)e;
194 }
195
196 if (e instanceof com.liferay.portal.SystemException) {
197 throw (com.liferay.portal.SystemException)e;
198 }
199
200 throw new com.liferay.portal.SystemException(e);
201 }
202 }
203 catch (com.liferay.portal.SystemException se) {
204 _log.error(se, se);
205
206 throw se;
207 }
208 }
209
210 public static byte[] exportLayouts(HttpPrincipal httpPrincipal,
211 long groupId, boolean privateLayout, long[] layoutIds,
212 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
213 java.util.Date startDate, java.util.Date endDate)
214 throws com.liferay.portal.PortalException,
215 com.liferay.portal.SystemException {
216 try {
217 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
218 "exportLayouts", _exportLayoutsParameterTypes4);
219
220 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
221 privateLayout, layoutIds, parameterMap, startDate, endDate);
222
223 Object returnObj = null;
224
225 try {
226 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
227 }
228 catch (Exception e) {
229 if (e instanceof com.liferay.portal.PortalException) {
230 throw (com.liferay.portal.PortalException)e;
231 }
232
233 if (e instanceof com.liferay.portal.SystemException) {
234 throw (com.liferay.portal.SystemException)e;
235 }
236
237 throw new com.liferay.portal.SystemException(e);
238 }
239
240 return (byte[])returnObj;
241 }
242 catch (com.liferay.portal.SystemException se) {
243 _log.error(se, se);
244
245 throw se;
246 }
247 }
248
249 public static byte[] exportLayouts(HttpPrincipal httpPrincipal,
250 long groupId, boolean privateLayout,
251 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
252 java.util.Date startDate, java.util.Date endDate)
253 throws com.liferay.portal.PortalException,
254 com.liferay.portal.SystemException {
255 try {
256 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
257 "exportLayouts", _exportLayoutsParameterTypes5);
258
259 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
260 privateLayout, parameterMap, startDate, endDate);
261
262 Object returnObj = null;
263
264 try {
265 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
266 }
267 catch (Exception e) {
268 if (e instanceof com.liferay.portal.PortalException) {
269 throw (com.liferay.portal.PortalException)e;
270 }
271
272 if (e instanceof com.liferay.portal.SystemException) {
273 throw (com.liferay.portal.SystemException)e;
274 }
275
276 throw new com.liferay.portal.SystemException(e);
277 }
278
279 return (byte[])returnObj;
280 }
281 catch (com.liferay.portal.SystemException se) {
282 _log.error(se, se);
283
284 throw se;
285 }
286 }
287
288 public static java.io.File exportLayoutsAsFile(
289 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
290 long[] layoutIds,
291 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
292 java.util.Date startDate, java.util.Date endDate)
293 throws com.liferay.portal.PortalException,
294 com.liferay.portal.SystemException {
295 try {
296 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
297 "exportLayoutsAsFile", _exportLayoutsAsFileParameterTypes6);
298
299 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
300 privateLayout, layoutIds, parameterMap, startDate, endDate);
301
302 Object returnObj = null;
303
304 try {
305 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
306 }
307 catch (Exception e) {
308 if (e instanceof com.liferay.portal.PortalException) {
309 throw (com.liferay.portal.PortalException)e;
310 }
311
312 if (e instanceof com.liferay.portal.SystemException) {
313 throw (com.liferay.portal.SystemException)e;
314 }
315
316 throw new com.liferay.portal.SystemException(e);
317 }
318
319 return (java.io.File)returnObj;
320 }
321 catch (com.liferay.portal.SystemException se) {
322 _log.error(se, se);
323
324 throw se;
325 }
326 }
327
328 public static byte[] exportPortletInfo(HttpPrincipal httpPrincipal,
329 long plid, long groupId, java.lang.String portletId,
330 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
331 java.util.Date startDate, java.util.Date endDate)
332 throws com.liferay.portal.PortalException,
333 com.liferay.portal.SystemException {
334 try {
335 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
336 "exportPortletInfo", _exportPortletInfoParameterTypes7);
337
338 MethodHandler methodHandler = new MethodHandler(methodKey, plid,
339 groupId, portletId, parameterMap, startDate, endDate);
340
341 Object returnObj = null;
342
343 try {
344 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
345 }
346 catch (Exception e) {
347 if (e instanceof com.liferay.portal.PortalException) {
348 throw (com.liferay.portal.PortalException)e;
349 }
350
351 if (e instanceof com.liferay.portal.SystemException) {
352 throw (com.liferay.portal.SystemException)e;
353 }
354
355 throw new com.liferay.portal.SystemException(e);
356 }
357
358 return (byte[])returnObj;
359 }
360 catch (com.liferay.portal.SystemException se) {
361 _log.error(se, se);
362
363 throw se;
364 }
365 }
366
367 public static java.io.File exportPortletInfoAsFile(
368 HttpPrincipal httpPrincipal, long plid, long groupId,
369 java.lang.String portletId,
370 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
371 java.util.Date startDate, java.util.Date endDate)
372 throws com.liferay.portal.PortalException,
373 com.liferay.portal.SystemException {
374 try {
375 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
376 "exportPortletInfoAsFile",
377 _exportPortletInfoAsFileParameterTypes8);
378
379 MethodHandler methodHandler = new MethodHandler(methodKey, plid,
380 groupId, portletId, parameterMap, startDate, endDate);
381
382 Object returnObj = null;
383
384 try {
385 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
386 }
387 catch (Exception e) {
388 if (e instanceof com.liferay.portal.PortalException) {
389 throw (com.liferay.portal.PortalException)e;
390 }
391
392 if (e instanceof com.liferay.portal.SystemException) {
393 throw (com.liferay.portal.SystemException)e;
394 }
395
396 throw new com.liferay.portal.SystemException(e);
397 }
398
399 return (java.io.File)returnObj;
400 }
401 catch (com.liferay.portal.SystemException se) {
402 _log.error(se, se);
403
404 throw se;
405 }
406 }
407
408 public static java.lang.String getLayoutName(HttpPrincipal httpPrincipal,
409 long groupId, boolean privateLayout, long layoutId,
410 java.lang.String languageId)
411 throws com.liferay.portal.PortalException,
412 com.liferay.portal.SystemException {
413 try {
414 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
415 "getLayoutName", _getLayoutNameParameterTypes9);
416
417 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
418 privateLayout, layoutId, languageId);
419
420 Object returnObj = null;
421
422 try {
423 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
424 }
425 catch (Exception e) {
426 if (e instanceof com.liferay.portal.PortalException) {
427 throw (com.liferay.portal.PortalException)e;
428 }
429
430 if (e instanceof com.liferay.portal.SystemException) {
431 throw (com.liferay.portal.SystemException)e;
432 }
433
434 throw new com.liferay.portal.SystemException(e);
435 }
436
437 return (java.lang.String)returnObj;
438 }
439 catch (com.liferay.portal.SystemException se) {
440 _log.error(se, se);
441
442 throw se;
443 }
444 }
445
446 public static com.liferay.portal.model.LayoutReference[] getLayoutReferences(
447 HttpPrincipal httpPrincipal, long companyId,
448 java.lang.String portletId, java.lang.String preferencesKey,
449 java.lang.String preferencesValue)
450 throws com.liferay.portal.SystemException {
451 try {
452 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
453 "getLayoutReferences", _getLayoutReferencesParameterTypes10);
454
455 MethodHandler methodHandler = new MethodHandler(methodKey,
456 companyId, portletId, preferencesKey, preferencesValue);
457
458 Object returnObj = null;
459
460 try {
461 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
462 }
463 catch (Exception e) {
464 if (e instanceof com.liferay.portal.SystemException) {
465 throw (com.liferay.portal.SystemException)e;
466 }
467
468 throw new com.liferay.portal.SystemException(e);
469 }
470
471 return (com.liferay.portal.model.LayoutReference[])returnObj;
472 }
473 catch (com.liferay.portal.SystemException se) {
474 _log.error(se, se);
475
476 throw se;
477 }
478 }
479
480 public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
481 boolean privateLayout,
482 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
483 byte[] bytes)
484 throws com.liferay.portal.PortalException,
485 com.liferay.portal.SystemException {
486 try {
487 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
488 "importLayouts", _importLayoutsParameterTypes11);
489
490 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
491 privateLayout, parameterMap, bytes);
492
493 try {
494 TunnelUtil.invoke(httpPrincipal, methodHandler);
495 }
496 catch (Exception e) {
497 if (e instanceof com.liferay.portal.PortalException) {
498 throw (com.liferay.portal.PortalException)e;
499 }
500
501 if (e instanceof com.liferay.portal.SystemException) {
502 throw (com.liferay.portal.SystemException)e;
503 }
504
505 throw new com.liferay.portal.SystemException(e);
506 }
507 }
508 catch (com.liferay.portal.SystemException se) {
509 _log.error(se, se);
510
511 throw se;
512 }
513 }
514
515 public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
516 boolean privateLayout,
517 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
518 java.io.File file)
519 throws com.liferay.portal.PortalException,
520 com.liferay.portal.SystemException {
521 try {
522 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
523 "importLayouts", _importLayoutsParameterTypes12);
524
525 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
526 privateLayout, parameterMap, file);
527
528 try {
529 TunnelUtil.invoke(httpPrincipal, methodHandler);
530 }
531 catch (Exception e) {
532 if (e instanceof com.liferay.portal.PortalException) {
533 throw (com.liferay.portal.PortalException)e;
534 }
535
536 if (e instanceof com.liferay.portal.SystemException) {
537 throw (com.liferay.portal.SystemException)e;
538 }
539
540 throw new com.liferay.portal.SystemException(e);
541 }
542 }
543 catch (com.liferay.portal.SystemException se) {
544 _log.error(se, se);
545
546 throw se;
547 }
548 }
549
550 public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
551 boolean privateLayout,
552 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
553 java.io.InputStream is)
554 throws com.liferay.portal.PortalException,
555 com.liferay.portal.SystemException {
556 try {
557 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
558 "importLayouts", _importLayoutsParameterTypes13);
559
560 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
561 privateLayout, parameterMap, is);
562
563 try {
564 TunnelUtil.invoke(httpPrincipal, methodHandler);
565 }
566 catch (Exception e) {
567 if (e instanceof com.liferay.portal.PortalException) {
568 throw (com.liferay.portal.PortalException)e;
569 }
570
571 if (e instanceof com.liferay.portal.SystemException) {
572 throw (com.liferay.portal.SystemException)e;
573 }
574
575 throw new com.liferay.portal.SystemException(e);
576 }
577 }
578 catch (com.liferay.portal.SystemException se) {
579 _log.error(se, se);
580
581 throw se;
582 }
583 }
584
585 public static void importPortletInfo(HttpPrincipal httpPrincipal,
586 long plid, long groupId, java.lang.String portletId,
587 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
588 java.io.File file)
589 throws com.liferay.portal.PortalException,
590 com.liferay.portal.SystemException {
591 try {
592 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
593 "importPortletInfo", _importPortletInfoParameterTypes14);
594
595 MethodHandler methodHandler = new MethodHandler(methodKey, plid,
596 groupId, portletId, parameterMap, file);
597
598 try {
599 TunnelUtil.invoke(httpPrincipal, methodHandler);
600 }
601 catch (Exception e) {
602 if (e instanceof com.liferay.portal.PortalException) {
603 throw (com.liferay.portal.PortalException)e;
604 }
605
606 if (e instanceof com.liferay.portal.SystemException) {
607 throw (com.liferay.portal.SystemException)e;
608 }
609
610 throw new com.liferay.portal.SystemException(e);
611 }
612 }
613 catch (com.liferay.portal.SystemException se) {
614 _log.error(se, se);
615
616 throw se;
617 }
618 }
619
620 public static void importPortletInfo(HttpPrincipal httpPrincipal,
621 long plid, long groupId, java.lang.String portletId,
622 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
623 java.io.InputStream is)
624 throws com.liferay.portal.PortalException,
625 com.liferay.portal.SystemException {
626 try {
627 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
628 "importPortletInfo", _importPortletInfoParameterTypes15);
629
630 MethodHandler methodHandler = new MethodHandler(methodKey, plid,
631 groupId, portletId, parameterMap, is);
632
633 try {
634 TunnelUtil.invoke(httpPrincipal, methodHandler);
635 }
636 catch (Exception e) {
637 if (e instanceof com.liferay.portal.PortalException) {
638 throw (com.liferay.portal.PortalException)e;
639 }
640
641 if (e instanceof com.liferay.portal.SystemException) {
642 throw (com.liferay.portal.SystemException)e;
643 }
644
645 throw new com.liferay.portal.SystemException(e);
646 }
647 }
648 catch (com.liferay.portal.SystemException se) {
649 _log.error(se, se);
650
651 throw se;
652 }
653 }
654
655 public static void schedulePublishToLive(HttpPrincipal httpPrincipal,
656 long sourceGroupId, long targetGroupId, boolean privateLayout,
657 java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
658 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
659 java.lang.String scope, java.util.Date startDate,
660 java.util.Date endDate, java.lang.String groupName,
661 java.lang.String cronText, java.util.Date schedulerStartDate,
662 java.util.Date schedulerEndDate, java.lang.String description)
663 throws com.liferay.portal.PortalException,
664 com.liferay.portal.SystemException {
665 try {
666 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
667 "schedulePublishToLive",
668 _schedulePublishToLiveParameterTypes16);
669
670 MethodHandler methodHandler = new MethodHandler(methodKey,
671 sourceGroupId, targetGroupId, privateLayout, layoutIdMap,
672 parameterMap, scope, startDate, endDate, groupName,
673 cronText, schedulerStartDate, schedulerEndDate, description);
674
675 try {
676 TunnelUtil.invoke(httpPrincipal, methodHandler);
677 }
678 catch (Exception e) {
679 if (e instanceof com.liferay.portal.PortalException) {
680 throw (com.liferay.portal.PortalException)e;
681 }
682
683 if (e instanceof com.liferay.portal.SystemException) {
684 throw (com.liferay.portal.SystemException)e;
685 }
686
687 throw new com.liferay.portal.SystemException(e);
688 }
689 }
690 catch (com.liferay.portal.SystemException se) {
691 _log.error(se, se);
692
693 throw se;
694 }
695 }
696
697 public static void schedulePublishToRemote(HttpPrincipal httpPrincipal,
698 long sourceGroupId, boolean privateLayout,
699 java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
700 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
701 java.lang.String remoteAddress, int remotePort,
702 boolean secureConnection, long remoteGroupId,
703 boolean remotePrivateLayout, java.util.Date startDate,
704 java.util.Date endDate, java.lang.String groupName,
705 java.lang.String cronText, java.util.Date schedulerStartDate,
706 java.util.Date schedulerEndDate, java.lang.String description)
707 throws com.liferay.portal.PortalException,
708 com.liferay.portal.SystemException {
709 try {
710 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
711 "schedulePublishToRemote",
712 _schedulePublishToRemoteParameterTypes17);
713
714 MethodHandler methodHandler = new MethodHandler(methodKey,
715 sourceGroupId, privateLayout, layoutIdMap, parameterMap,
716 remoteAddress, remotePort, secureConnection, remoteGroupId,
717 remotePrivateLayout, startDate, endDate, groupName,
718 cronText, schedulerStartDate, schedulerEndDate, description);
719
720 try {
721 TunnelUtil.invoke(httpPrincipal, methodHandler);
722 }
723 catch (Exception e) {
724 if (e instanceof com.liferay.portal.PortalException) {
725 throw (com.liferay.portal.PortalException)e;
726 }
727
728 if (e instanceof com.liferay.portal.SystemException) {
729 throw (com.liferay.portal.SystemException)e;
730 }
731
732 throw new com.liferay.portal.SystemException(e);
733 }
734 }
735 catch (com.liferay.portal.SystemException se) {
736 _log.error(se, se);
737
738 throw se;
739 }
740 }
741
742 public static void setLayouts(HttpPrincipal httpPrincipal, long groupId,
743 boolean privateLayout, long parentLayoutId, long[] layoutIds)
744 throws com.liferay.portal.PortalException,
745 com.liferay.portal.SystemException {
746 try {
747 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
748 "setLayouts", _setLayoutsParameterTypes18);
749
750 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
751 privateLayout, parentLayoutId, layoutIds);
752
753 try {
754 TunnelUtil.invoke(httpPrincipal, methodHandler);
755 }
756 catch (Exception e) {
757 if (e instanceof com.liferay.portal.PortalException) {
758 throw (com.liferay.portal.PortalException)e;
759 }
760
761 if (e instanceof com.liferay.portal.SystemException) {
762 throw (com.liferay.portal.SystemException)e;
763 }
764
765 throw new com.liferay.portal.SystemException(e);
766 }
767 }
768 catch (com.liferay.portal.SystemException se) {
769 _log.error(se, se);
770
771 throw se;
772 }
773 }
774
775 public static void unschedulePublishToLive(HttpPrincipal httpPrincipal,
776 long groupId, java.lang.String jobName, java.lang.String groupName)
777 throws com.liferay.portal.PortalException,
778 com.liferay.portal.SystemException {
779 try {
780 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
781 "unschedulePublishToLive",
782 _unschedulePublishToLiveParameterTypes19);
783
784 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
785 jobName, groupName);
786
787 try {
788 TunnelUtil.invoke(httpPrincipal, methodHandler);
789 }
790 catch (Exception e) {
791 if (e instanceof com.liferay.portal.PortalException) {
792 throw (com.liferay.portal.PortalException)e;
793 }
794
795 if (e instanceof com.liferay.portal.SystemException) {
796 throw (com.liferay.portal.SystemException)e;
797 }
798
799 throw new com.liferay.portal.SystemException(e);
800 }
801 }
802 catch (com.liferay.portal.SystemException se) {
803 _log.error(se, se);
804
805 throw se;
806 }
807 }
808
809 public static void unschedulePublishToRemote(HttpPrincipal httpPrincipal,
810 long groupId, java.lang.String jobName, java.lang.String groupName)
811 throws com.liferay.portal.PortalException,
812 com.liferay.portal.SystemException {
813 try {
814 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
815 "unschedulePublishToRemote",
816 _unschedulePublishToRemoteParameterTypes20);
817
818 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
819 jobName, groupName);
820
821 try {
822 TunnelUtil.invoke(httpPrincipal, methodHandler);
823 }
824 catch (Exception e) {
825 if (e instanceof com.liferay.portal.PortalException) {
826 throw (com.liferay.portal.PortalException)e;
827 }
828
829 if (e instanceof com.liferay.portal.SystemException) {
830 throw (com.liferay.portal.SystemException)e;
831 }
832
833 throw new com.liferay.portal.SystemException(e);
834 }
835 }
836 catch (com.liferay.portal.SystemException se) {
837 _log.error(se, se);
838
839 throw se;
840 }
841 }
842
843 public static com.liferay.portal.model.Layout updateLayout(
844 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
845 long layoutId, long parentLayoutId,
846 java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
847 java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
848 java.lang.String description, java.lang.String type, boolean hidden,
849 java.lang.String friendlyURL)
850 throws com.liferay.portal.PortalException,
851 com.liferay.portal.SystemException {
852 try {
853 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
854 "updateLayout", _updateLayoutParameterTypes21);
855
856 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
857 privateLayout, layoutId, parentLayoutId, localeNamesMap,
858 localeTitlesMap, description, type, hidden, friendlyURL);
859
860 Object returnObj = null;
861
862 try {
863 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
864 }
865 catch (Exception e) {
866 if (e instanceof com.liferay.portal.PortalException) {
867 throw (com.liferay.portal.PortalException)e;
868 }
869
870 if (e instanceof com.liferay.portal.SystemException) {
871 throw (com.liferay.portal.SystemException)e;
872 }
873
874 throw new com.liferay.portal.SystemException(e);
875 }
876
877 return (com.liferay.portal.model.Layout)returnObj;
878 }
879 catch (com.liferay.portal.SystemException se) {
880 _log.error(se, se);
881
882 throw se;
883 }
884 }
885
886 public static com.liferay.portal.model.Layout updateLayout(
887 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
888 long layoutId, long parentLayoutId,
889 java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
890 java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
891 java.lang.String description, java.lang.String type, boolean hidden,
892 java.lang.String friendlyURL, java.lang.Boolean iconImage,
893 byte[] iconBytes)
894 throws com.liferay.portal.PortalException,
895 com.liferay.portal.SystemException {
896 try {
897 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
898 "updateLayout", _updateLayoutParameterTypes22);
899
900 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
901 privateLayout, layoutId, parentLayoutId, localeNamesMap,
902 localeTitlesMap, description, type, hidden, friendlyURL,
903 iconImage, iconBytes);
904
905 Object returnObj = null;
906
907 try {
908 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
909 }
910 catch (Exception e) {
911 if (e instanceof com.liferay.portal.PortalException) {
912 throw (com.liferay.portal.PortalException)e;
913 }
914
915 if (e instanceof com.liferay.portal.SystemException) {
916 throw (com.liferay.portal.SystemException)e;
917 }
918
919 throw new com.liferay.portal.SystemException(e);
920 }
921
922 return (com.liferay.portal.model.Layout)returnObj;
923 }
924 catch (com.liferay.portal.SystemException se) {
925 _log.error(se, se);
926
927 throw se;
928 }
929 }
930
931 public static com.liferay.portal.model.Layout updateLayout(
932 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
933 long layoutId, java.lang.String typeSettings)
934 throws com.liferay.portal.PortalException,
935 com.liferay.portal.SystemException {
936 try {
937 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
938 "updateLayout", _updateLayoutParameterTypes23);
939
940 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
941 privateLayout, layoutId, typeSettings);
942
943 Object returnObj = null;
944
945 try {
946 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
947 }
948 catch (Exception e) {
949 if (e instanceof com.liferay.portal.PortalException) {
950 throw (com.liferay.portal.PortalException)e;
951 }
952
953 if (e instanceof com.liferay.portal.SystemException) {
954 throw (com.liferay.portal.SystemException)e;
955 }
956
957 throw new com.liferay.portal.SystemException(e);
958 }
959
960 return (com.liferay.portal.model.Layout)returnObj;
961 }
962 catch (com.liferay.portal.SystemException se) {
963 _log.error(se, se);
964
965 throw se;
966 }
967 }
968
969 public static com.liferay.portal.model.Layout updateLookAndFeel(
970 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
971 long layoutId, java.lang.String themeId,
972 java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
973 throws com.liferay.portal.PortalException,
974 com.liferay.portal.SystemException {
975 try {
976 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
977 "updateLookAndFeel", _updateLookAndFeelParameterTypes24);
978
979 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
980 privateLayout, layoutId, themeId, colorSchemeId, css,
981 wapTheme);
982
983 Object returnObj = null;
984
985 try {
986 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
987 }
988 catch (Exception e) {
989 if (e instanceof com.liferay.portal.PortalException) {
990 throw (com.liferay.portal.PortalException)e;
991 }
992
993 if (e instanceof com.liferay.portal.SystemException) {
994 throw (com.liferay.portal.SystemException)e;
995 }
996
997 throw new com.liferay.portal.SystemException(e);
998 }
999
1000 return (com.liferay.portal.model.Layout)returnObj;
1001 }
1002 catch (com.liferay.portal.SystemException se) {
1003 _log.error(se, se);
1004
1005 throw se;
1006 }
1007 }
1008
1009 public static com.liferay.portal.model.Layout updateName(
1010 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1011 long layoutId, java.lang.String name, java.lang.String languageId)
1012 throws com.liferay.portal.PortalException,
1013 com.liferay.portal.SystemException {
1014 try {
1015 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
1016 "updateName", _updateNameParameterTypes25);
1017
1018 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1019 privateLayout, layoutId, name, languageId);
1020
1021 Object returnObj = null;
1022
1023 try {
1024 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1025 }
1026 catch (Exception e) {
1027 if (e instanceof com.liferay.portal.PortalException) {
1028 throw (com.liferay.portal.PortalException)e;
1029 }
1030
1031 if (e instanceof com.liferay.portal.SystemException) {
1032 throw (com.liferay.portal.SystemException)e;
1033 }
1034
1035 throw new com.liferay.portal.SystemException(e);
1036 }
1037
1038 return (com.liferay.portal.model.Layout)returnObj;
1039 }
1040 catch (com.liferay.portal.SystemException se) {
1041 _log.error(se, se);
1042
1043 throw se;
1044 }
1045 }
1046
1047 public static com.liferay.portal.model.Layout updateName(
1048 HttpPrincipal httpPrincipal, long plid, java.lang.String name,
1049 java.lang.String languageId)
1050 throws com.liferay.portal.PortalException,
1051 com.liferay.portal.SystemException {
1052 try {
1053 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
1054 "updateName", _updateNameParameterTypes26);
1055
1056 MethodHandler methodHandler = new MethodHandler(methodKey, plid,
1057 name, languageId);
1058
1059 Object returnObj = null;
1060
1061 try {
1062 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1063 }
1064 catch (Exception e) {
1065 if (e instanceof com.liferay.portal.PortalException) {
1066 throw (com.liferay.portal.PortalException)e;
1067 }
1068
1069 if (e instanceof com.liferay.portal.SystemException) {
1070 throw (com.liferay.portal.SystemException)e;
1071 }
1072
1073 throw new com.liferay.portal.SystemException(e);
1074 }
1075
1076 return (com.liferay.portal.model.Layout)returnObj;
1077 }
1078 catch (com.liferay.portal.SystemException se) {
1079 _log.error(se, se);
1080
1081 throw se;
1082 }
1083 }
1084
1085 public static com.liferay.portal.model.Layout updateParentLayoutId(
1086 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1087 long layoutId, long parentLayoutId)
1088 throws com.liferay.portal.PortalException,
1089 com.liferay.portal.SystemException {
1090 try {
1091 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
1092 "updateParentLayoutId",
1093 _updateParentLayoutIdParameterTypes27);
1094
1095 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1096 privateLayout, layoutId, parentLayoutId);
1097
1098 Object returnObj = null;
1099
1100 try {
1101 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1102 }
1103 catch (Exception e) {
1104 if (e instanceof com.liferay.portal.PortalException) {
1105 throw (com.liferay.portal.PortalException)e;
1106 }
1107
1108 if (e instanceof com.liferay.portal.SystemException) {
1109 throw (com.liferay.portal.SystemException)e;
1110 }
1111
1112 throw new com.liferay.portal.SystemException(e);
1113 }
1114
1115 return (com.liferay.portal.model.Layout)returnObj;
1116 }
1117 catch (com.liferay.portal.SystemException se) {
1118 _log.error(se, se);
1119
1120 throw se;
1121 }
1122 }
1123
1124 public static com.liferay.portal.model.Layout updateParentLayoutId(
1125 HttpPrincipal httpPrincipal, long plid, long parentPlid)
1126 throws com.liferay.portal.PortalException,
1127 com.liferay.portal.SystemException {
1128 try {
1129 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
1130 "updateParentLayoutId",
1131 _updateParentLayoutIdParameterTypes28);
1132
1133 MethodHandler methodHandler = new MethodHandler(methodKey, plid,
1134 parentPlid);
1135
1136 Object returnObj = null;
1137
1138 try {
1139 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1140 }
1141 catch (Exception e) {
1142 if (e instanceof com.liferay.portal.PortalException) {
1143 throw (com.liferay.portal.PortalException)e;
1144 }
1145
1146 if (e instanceof com.liferay.portal.SystemException) {
1147 throw (com.liferay.portal.SystemException)e;
1148 }
1149
1150 throw new com.liferay.portal.SystemException(e);
1151 }
1152
1153 return (com.liferay.portal.model.Layout)returnObj;
1154 }
1155 catch (com.liferay.portal.SystemException se) {
1156 _log.error(se, se);
1157
1158 throw se;
1159 }
1160 }
1161
1162 public static com.liferay.portal.model.Layout updatePriority(
1163 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1164 long layoutId, int priority)
1165 throws com.liferay.portal.PortalException,
1166 com.liferay.portal.SystemException {
1167 try {
1168 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
1169 "updatePriority", _updatePriorityParameterTypes29);
1170
1171 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1172 privateLayout, layoutId, priority);
1173
1174 Object returnObj = null;
1175
1176 try {
1177 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1178 }
1179 catch (Exception e) {
1180 if (e instanceof com.liferay.portal.PortalException) {
1181 throw (com.liferay.portal.PortalException)e;
1182 }
1183
1184 if (e instanceof com.liferay.portal.SystemException) {
1185 throw (com.liferay.portal.SystemException)e;
1186 }
1187
1188 throw new com.liferay.portal.SystemException(e);
1189 }
1190
1191 return (com.liferay.portal.model.Layout)returnObj;
1192 }
1193 catch (com.liferay.portal.SystemException se) {
1194 _log.error(se, se);
1195
1196 throw se;
1197 }
1198 }
1199
1200 public static com.liferay.portal.model.Layout updatePriority(
1201 HttpPrincipal httpPrincipal, long plid, int priority)
1202 throws com.liferay.portal.PortalException,
1203 com.liferay.portal.SystemException {
1204 try {
1205 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
1206 "updatePriority", _updatePriorityParameterTypes30);
1207
1208 MethodHandler methodHandler = new MethodHandler(methodKey, plid,
1209 priority);
1210
1211 Object returnObj = null;
1212
1213 try {
1214 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1215 }
1216 catch (Exception e) {
1217 if (e instanceof com.liferay.portal.PortalException) {
1218 throw (com.liferay.portal.PortalException)e;
1219 }
1220
1221 if (e instanceof com.liferay.portal.SystemException) {
1222 throw (com.liferay.portal.SystemException)e;
1223 }
1224
1225 throw new com.liferay.portal.SystemException(e);
1226 }
1227
1228 return (com.liferay.portal.model.Layout)returnObj;
1229 }
1230 catch (com.liferay.portal.SystemException se) {
1231 _log.error(se, se);
1232
1233 throw se;
1234 }
1235 }
1236
1237 private static Log _log = LogFactoryUtil.getLog(LayoutServiceHttp.class);
1238 private static final Class<?>[] _addLayoutParameterTypes0 = new Class[] {
1239 long.class, boolean.class, long.class, java.util.Map.class,
1240 java.util.Map.class, java.lang.String.class, java.lang.String.class,
1241 boolean.class, java.lang.String.class
1242 };
1243 private static final Class<?>[] _addLayoutParameterTypes1 = new Class[] {
1244 long.class, boolean.class, long.class, java.lang.String.class,
1245 java.lang.String.class, java.lang.String.class,
1246 java.lang.String.class, boolean.class, java.lang.String.class
1247 };
1248 private static final Class<?>[] _deleteLayoutParameterTypes2 = new Class[] {
1249 long.class
1250 };
1251 private static final Class<?>[] _deleteLayoutParameterTypes3 = new Class[] {
1252 long.class, boolean.class, long.class
1253 };
1254 private static final Class<?>[] _exportLayoutsParameterTypes4 = new Class[] {
1255 long.class, boolean.class, long[].class, java.util.Map.class,
1256 java.util.Date.class, java.util.Date.class
1257 };
1258 private static final Class<?>[] _exportLayoutsParameterTypes5 = new Class[] {
1259 long.class, boolean.class, java.util.Map.class, java.util.Date.class,
1260 java.util.Date.class
1261 };
1262 private static final Class<?>[] _exportLayoutsAsFileParameterTypes6 = new Class[] {
1263 long.class, boolean.class, long[].class, java.util.Map.class,
1264 java.util.Date.class, java.util.Date.class
1265 };
1266 private static final Class<?>[] _exportPortletInfoParameterTypes7 = new Class[] {
1267 long.class, long.class, java.lang.String.class, java.util.Map.class,
1268 java.util.Date.class, java.util.Date.class
1269 };
1270 private static final Class<?>[] _exportPortletInfoAsFileParameterTypes8 = new Class[] {
1271 long.class, long.class, java.lang.String.class, java.util.Map.class,
1272 java.util.Date.class, java.util.Date.class
1273 };
1274 private static final Class<?>[] _getLayoutNameParameterTypes9 = new Class[] {
1275 long.class, boolean.class, long.class, java.lang.String.class
1276 };
1277 private static final Class<?>[] _getLayoutReferencesParameterTypes10 = new Class[] {
1278 long.class, java.lang.String.class, java.lang.String.class,
1279 java.lang.String.class
1280 };
1281 private static final Class<?>[] _importLayoutsParameterTypes11 = new Class[] {
1282 long.class, boolean.class, java.util.Map.class, byte[].class
1283 };
1284 private static final Class<?>[] _importLayoutsParameterTypes12 = new Class[] {
1285 long.class, boolean.class, java.util.Map.class, java.io.File.class
1286 };
1287 private static final Class<?>[] _importLayoutsParameterTypes13 = new Class[] {
1288 long.class, boolean.class, java.util.Map.class,
1289 java.io.InputStream.class
1290 };
1291 private static final Class<?>[] _importPortletInfoParameterTypes14 = new Class[] {
1292 long.class, long.class, java.lang.String.class, java.util.Map.class,
1293 java.io.File.class
1294 };
1295 private static final Class<?>[] _importPortletInfoParameterTypes15 = new Class[] {
1296 long.class, long.class, java.lang.String.class, java.util.Map.class,
1297 java.io.InputStream.class
1298 };
1299 private static final Class<?>[] _schedulePublishToLiveParameterTypes16 = new Class[] {
1300 long.class, long.class, boolean.class, java.util.Map.class,
1301 java.util.Map.class, java.lang.String.class, java.util.Date.class,
1302 java.util.Date.class, java.lang.String.class, java.lang.String.class,
1303 java.util.Date.class, java.util.Date.class, java.lang.String.class
1304 };
1305 private static final Class<?>[] _schedulePublishToRemoteParameterTypes17 = new Class[] {
1306 long.class, boolean.class, java.util.Map.class, java.util.Map.class,
1307 java.lang.String.class, int.class, boolean.class, long.class,
1308 boolean.class, java.util.Date.class, java.util.Date.class,
1309 java.lang.String.class, java.lang.String.class, java.util.Date.class,
1310 java.util.Date.class, java.lang.String.class
1311 };
1312 private static final Class<?>[] _setLayoutsParameterTypes18 = new Class[] {
1313 long.class, boolean.class, long.class, long[].class
1314 };
1315 private static final Class<?>[] _unschedulePublishToLiveParameterTypes19 = new Class[] {
1316 long.class, java.lang.String.class, java.lang.String.class
1317 };
1318 private static final Class<?>[] _unschedulePublishToRemoteParameterTypes20 = new Class[] {
1319 long.class, java.lang.String.class, java.lang.String.class
1320 };
1321 private static final Class<?>[] _updateLayoutParameterTypes21 = new Class[] {
1322 long.class, boolean.class, long.class, long.class,
1323 java.util.Map.class, java.util.Map.class, java.lang.String.class,
1324 java.lang.String.class, boolean.class, java.lang.String.class
1325 };
1326 private static final Class<?>[] _updateLayoutParameterTypes22 = new Class[] {
1327 long.class, boolean.class, long.class, long.class,
1328 java.util.Map.class, java.util.Map.class, java.lang.String.class,
1329 java.lang.String.class, boolean.class, java.lang.String.class,
1330 java.lang.Boolean.class, byte[].class
1331 };
1332 private static final Class<?>[] _updateLayoutParameterTypes23 = new Class[] {
1333 long.class, boolean.class, long.class, java.lang.String.class
1334 };
1335 private static final Class<?>[] _updateLookAndFeelParameterTypes24 = new Class[] {
1336 long.class, boolean.class, long.class, java.lang.String.class,
1337 java.lang.String.class, java.lang.String.class, boolean.class
1338 };
1339 private static final Class<?>[] _updateNameParameterTypes25 = new Class[] {
1340 long.class, boolean.class, long.class, java.lang.String.class,
1341 java.lang.String.class
1342 };
1343 private static final Class<?>[] _updateNameParameterTypes26 = new Class[] {
1344 long.class, java.lang.String.class, java.lang.String.class
1345 };
1346 private static final Class<?>[] _updateParentLayoutIdParameterTypes27 = new Class[] {
1347 long.class, boolean.class, long.class, long.class
1348 };
1349 private static final Class<?>[] _updateParentLayoutIdParameterTypes28 = new Class[] {
1350 long.class, long.class
1351 };
1352 private static final Class<?>[] _updatePriorityParameterTypes29 = new Class[] {
1353 long.class, boolean.class, long.class, int.class
1354 };
1355 private static final Class<?>[] _updatePriorityParameterTypes30 = new Class[] {
1356 long.class, int.class
1357 };
1358}