1
22
23 package com.liferay.portal.service.http;
24
25 import com.liferay.portal.kernel.log.Log;
26 import com.liferay.portal.kernel.log.LogFactoryUtil;
27 import com.liferay.portal.kernel.util.BooleanWrapper;
28 import com.liferay.portal.kernel.util.IntegerWrapper;
29 import com.liferay.portal.kernel.util.LongWrapper;
30 import com.liferay.portal.kernel.util.MethodWrapper;
31 import com.liferay.portal.kernel.util.NullWrapper;
32 import com.liferay.portal.security.auth.HttpPrincipal;
33 import com.liferay.portal.service.LayoutServiceUtil;
34
35
72 public class LayoutServiceHttp {
73 public static com.liferay.portal.model.Layout addLayout(
74 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
75 long parentLayoutId, java.lang.String name, java.lang.String title,
76 java.lang.String description, java.lang.String type, boolean hidden,
77 java.lang.String friendlyURL)
78 throws com.liferay.portal.PortalException,
79 com.liferay.portal.SystemException {
80 try {
81 Object paramObj0 = new LongWrapper(groupId);
82
83 Object paramObj1 = new BooleanWrapper(privateLayout);
84
85 Object paramObj2 = new LongWrapper(parentLayoutId);
86
87 Object paramObj3 = name;
88
89 if (name == null) {
90 paramObj3 = new NullWrapper("java.lang.String");
91 }
92
93 Object paramObj4 = title;
94
95 if (title == null) {
96 paramObj4 = new NullWrapper("java.lang.String");
97 }
98
99 Object paramObj5 = description;
100
101 if (description == null) {
102 paramObj5 = new NullWrapper("java.lang.String");
103 }
104
105 Object paramObj6 = type;
106
107 if (type == null) {
108 paramObj6 = new NullWrapper("java.lang.String");
109 }
110
111 Object paramObj7 = new BooleanWrapper(hidden);
112
113 Object paramObj8 = friendlyURL;
114
115 if (friendlyURL == null) {
116 paramObj8 = new NullWrapper("java.lang.String");
117 }
118
119 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
120 "addLayout",
121 new Object[] {
122 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
123 paramObj5, paramObj6, paramObj7, paramObj8
124 });
125
126 Object returnObj = null;
127
128 try {
129 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
130 }
131 catch (Exception e) {
132 if (e instanceof com.liferay.portal.PortalException) {
133 throw (com.liferay.portal.PortalException)e;
134 }
135
136 if (e instanceof com.liferay.portal.SystemException) {
137 throw (com.liferay.portal.SystemException)e;
138 }
139
140 throw new com.liferay.portal.SystemException(e);
141 }
142
143 return (com.liferay.portal.model.Layout)returnObj;
144 }
145 catch (com.liferay.portal.SystemException se) {
146 _log.error(se, se);
147
148 throw se;
149 }
150 }
151
152 public static com.liferay.portal.model.Layout addLayout(
153 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
154 long parentLayoutId,
155 java.util.Map<java.util.Locale, String> localeNamesMap,
156 java.util.Map<java.util.Locale, String> localeTitlesMap,
157 java.lang.String description, java.lang.String type, boolean hidden,
158 java.lang.String friendlyURL)
159 throws com.liferay.portal.PortalException,
160 com.liferay.portal.SystemException {
161 try {
162 Object paramObj0 = new LongWrapper(groupId);
163
164 Object paramObj1 = new BooleanWrapper(privateLayout);
165
166 Object paramObj2 = new LongWrapper(parentLayoutId);
167
168 Object paramObj3 = localeNamesMap;
169
170 if (localeNamesMap == null) {
171 paramObj3 = new NullWrapper("java.util.Map");
172 }
173
174 Object paramObj4 = localeTitlesMap;
175
176 if (localeTitlesMap == null) {
177 paramObj4 = new NullWrapper("java.util.Map");
178 }
179
180 Object paramObj5 = description;
181
182 if (description == null) {
183 paramObj5 = new NullWrapper("java.lang.String");
184 }
185
186 Object paramObj6 = type;
187
188 if (type == null) {
189 paramObj6 = new NullWrapper("java.lang.String");
190 }
191
192 Object paramObj7 = new BooleanWrapper(hidden);
193
194 Object paramObj8 = friendlyURL;
195
196 if (friendlyURL == null) {
197 paramObj8 = new NullWrapper("java.lang.String");
198 }
199
200 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
201 "addLayout",
202 new Object[] {
203 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
204 paramObj5, paramObj6, paramObj7, paramObj8
205 });
206
207 Object returnObj = null;
208
209 try {
210 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
211 }
212 catch (Exception e) {
213 if (e instanceof com.liferay.portal.PortalException) {
214 throw (com.liferay.portal.PortalException)e;
215 }
216
217 if (e instanceof com.liferay.portal.SystemException) {
218 throw (com.liferay.portal.SystemException)e;
219 }
220
221 throw new com.liferay.portal.SystemException(e);
222 }
223
224 return (com.liferay.portal.model.Layout)returnObj;
225 }
226 catch (com.liferay.portal.SystemException se) {
227 _log.error(se, se);
228
229 throw se;
230 }
231 }
232
233 public static void deleteLayout(HttpPrincipal httpPrincipal, long plid)
234 throws com.liferay.portal.PortalException,
235 com.liferay.portal.SystemException {
236 try {
237 Object paramObj0 = new LongWrapper(plid);
238
239 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
240 "deleteLayout", new Object[] { paramObj0 });
241
242 try {
243 TunnelUtil.invoke(httpPrincipal, methodWrapper);
244 }
245 catch (Exception e) {
246 if (e instanceof com.liferay.portal.PortalException) {
247 throw (com.liferay.portal.PortalException)e;
248 }
249
250 if (e instanceof com.liferay.portal.SystemException) {
251 throw (com.liferay.portal.SystemException)e;
252 }
253
254 throw new com.liferay.portal.SystemException(e);
255 }
256 }
257 catch (com.liferay.portal.SystemException se) {
258 _log.error(se, se);
259
260 throw se;
261 }
262 }
263
264 public static void deleteLayout(HttpPrincipal httpPrincipal, long groupId,
265 boolean privateLayout, long layoutId)
266 throws com.liferay.portal.PortalException,
267 com.liferay.portal.SystemException {
268 try {
269 Object paramObj0 = new LongWrapper(groupId);
270
271 Object paramObj1 = new BooleanWrapper(privateLayout);
272
273 Object paramObj2 = new LongWrapper(layoutId);
274
275 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
276 "deleteLayout",
277 new Object[] { paramObj0, paramObj1, paramObj2 });
278
279 try {
280 TunnelUtil.invoke(httpPrincipal, methodWrapper);
281 }
282 catch (Exception e) {
283 if (e instanceof com.liferay.portal.PortalException) {
284 throw (com.liferay.portal.PortalException)e;
285 }
286
287 if (e instanceof com.liferay.portal.SystemException) {
288 throw (com.liferay.portal.SystemException)e;
289 }
290
291 throw new com.liferay.portal.SystemException(e);
292 }
293 }
294 catch (com.liferay.portal.SystemException se) {
295 _log.error(se, se);
296
297 throw se;
298 }
299 }
300
301 public static java.lang.String getLayoutName(HttpPrincipal httpPrincipal,
302 long groupId, boolean privateLayout, long layoutId,
303 java.lang.String languageId)
304 throws com.liferay.portal.PortalException,
305 com.liferay.portal.SystemException {
306 try {
307 Object paramObj0 = new LongWrapper(groupId);
308
309 Object paramObj1 = new BooleanWrapper(privateLayout);
310
311 Object paramObj2 = new LongWrapper(layoutId);
312
313 Object paramObj3 = languageId;
314
315 if (languageId == null) {
316 paramObj3 = new NullWrapper("java.lang.String");
317 }
318
319 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
320 "getLayoutName",
321 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
322
323 Object returnObj = null;
324
325 try {
326 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
327 }
328 catch (Exception e) {
329 if (e instanceof com.liferay.portal.PortalException) {
330 throw (com.liferay.portal.PortalException)e;
331 }
332
333 if (e instanceof com.liferay.portal.SystemException) {
334 throw (com.liferay.portal.SystemException)e;
335 }
336
337 throw new com.liferay.portal.SystemException(e);
338 }
339
340 return (java.lang.String)returnObj;
341 }
342 catch (com.liferay.portal.SystemException se) {
343 _log.error(se, se);
344
345 throw se;
346 }
347 }
348
349 public static com.liferay.portal.model.LayoutReference[] getLayoutReferences(
350 HttpPrincipal httpPrincipal, long companyId,
351 java.lang.String portletId, java.lang.String prefsKey,
352 java.lang.String prefsValue) throws com.liferay.portal.SystemException {
353 try {
354 Object paramObj0 = new LongWrapper(companyId);
355
356 Object paramObj1 = portletId;
357
358 if (portletId == null) {
359 paramObj1 = new NullWrapper("java.lang.String");
360 }
361
362 Object paramObj2 = prefsKey;
363
364 if (prefsKey == null) {
365 paramObj2 = new NullWrapper("java.lang.String");
366 }
367
368 Object paramObj3 = prefsValue;
369
370 if (prefsValue == null) {
371 paramObj3 = new NullWrapper("java.lang.String");
372 }
373
374 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
375 "getLayoutReferences",
376 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
377
378 Object returnObj = null;
379
380 try {
381 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
382 }
383 catch (Exception e) {
384 if (e instanceof com.liferay.portal.SystemException) {
385 throw (com.liferay.portal.SystemException)e;
386 }
387
388 throw new com.liferay.portal.SystemException(e);
389 }
390
391 return (com.liferay.portal.model.LayoutReference[])returnObj;
392 }
393 catch (com.liferay.portal.SystemException se) {
394 _log.error(se, se);
395
396 throw se;
397 }
398 }
399
400 public static byte[] exportLayouts(HttpPrincipal httpPrincipal,
401 long groupId, boolean privateLayout,
402 java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
403 java.util.Date endDate)
404 throws com.liferay.portal.PortalException,
405 com.liferay.portal.SystemException {
406 try {
407 Object paramObj0 = new LongWrapper(groupId);
408
409 Object paramObj1 = new BooleanWrapper(privateLayout);
410
411 Object paramObj2 = parameterMap;
412
413 if (parameterMap == null) {
414 paramObj2 = new NullWrapper("java.util.Map");
415 }
416
417 Object paramObj3 = startDate;
418
419 if (startDate == null) {
420 paramObj3 = new NullWrapper("java.util.Date");
421 }
422
423 Object paramObj4 = endDate;
424
425 if (endDate == null) {
426 paramObj4 = new NullWrapper("java.util.Date");
427 }
428
429 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
430 "exportLayouts",
431 new Object[] {
432 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
433 });
434
435 Object returnObj = null;
436
437 try {
438 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
439 }
440 catch (Exception e) {
441 if (e instanceof com.liferay.portal.PortalException) {
442 throw (com.liferay.portal.PortalException)e;
443 }
444
445 if (e instanceof com.liferay.portal.SystemException) {
446 throw (com.liferay.portal.SystemException)e;
447 }
448
449 throw new com.liferay.portal.SystemException(e);
450 }
451
452 return (byte[])returnObj;
453 }
454 catch (com.liferay.portal.SystemException se) {
455 _log.error(se, se);
456
457 throw se;
458 }
459 }
460
461 public static byte[] exportLayouts(HttpPrincipal httpPrincipal,
462 long groupId, boolean privateLayout, long[] layoutIds,
463 java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
464 java.util.Date endDate)
465 throws com.liferay.portal.PortalException,
466 com.liferay.portal.SystemException {
467 try {
468 Object paramObj0 = new LongWrapper(groupId);
469
470 Object paramObj1 = new BooleanWrapper(privateLayout);
471
472 Object paramObj2 = layoutIds;
473
474 if (layoutIds == null) {
475 paramObj2 = new NullWrapper("[J");
476 }
477
478 Object paramObj3 = parameterMap;
479
480 if (parameterMap == null) {
481 paramObj3 = new NullWrapper("java.util.Map");
482 }
483
484 Object paramObj4 = startDate;
485
486 if (startDate == null) {
487 paramObj4 = new NullWrapper("java.util.Date");
488 }
489
490 Object paramObj5 = endDate;
491
492 if (endDate == null) {
493 paramObj5 = new NullWrapper("java.util.Date");
494 }
495
496 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
497 "exportLayouts",
498 new Object[] {
499 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
500 paramObj5
501 });
502
503 Object returnObj = null;
504
505 try {
506 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
507 }
508 catch (Exception e) {
509 if (e instanceof com.liferay.portal.PortalException) {
510 throw (com.liferay.portal.PortalException)e;
511 }
512
513 if (e instanceof com.liferay.portal.SystemException) {
514 throw (com.liferay.portal.SystemException)e;
515 }
516
517 throw new com.liferay.portal.SystemException(e);
518 }
519
520 return (byte[])returnObj;
521 }
522 catch (com.liferay.portal.SystemException se) {
523 _log.error(se, se);
524
525 throw se;
526 }
527 }
528
529 public static com.liferay.portal.kernel.io.FileCacheOutputStream exportLayoutsAsStream(
530 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
531 long[] layoutIds, java.util.Map<String, String[]> parameterMap,
532 java.util.Date startDate, java.util.Date endDate)
533 throws com.liferay.portal.PortalException,
534 com.liferay.portal.SystemException {
535 try {
536 Object paramObj0 = new LongWrapper(groupId);
537
538 Object paramObj1 = new BooleanWrapper(privateLayout);
539
540 Object paramObj2 = layoutIds;
541
542 if (layoutIds == null) {
543 paramObj2 = new NullWrapper("[J");
544 }
545
546 Object paramObj3 = parameterMap;
547
548 if (parameterMap == null) {
549 paramObj3 = new NullWrapper("java.util.Map");
550 }
551
552 Object paramObj4 = startDate;
553
554 if (startDate == null) {
555 paramObj4 = new NullWrapper("java.util.Date");
556 }
557
558 Object paramObj5 = endDate;
559
560 if (endDate == null) {
561 paramObj5 = new NullWrapper("java.util.Date");
562 }
563
564 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
565 "exportLayoutsAsStream",
566 new Object[] {
567 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
568 paramObj5
569 });
570
571 Object returnObj = null;
572
573 try {
574 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
575 }
576 catch (Exception e) {
577 if (e instanceof com.liferay.portal.PortalException) {
578 throw (com.liferay.portal.PortalException)e;
579 }
580
581 if (e instanceof com.liferay.portal.SystemException) {
582 throw (com.liferay.portal.SystemException)e;
583 }
584
585 throw new com.liferay.portal.SystemException(e);
586 }
587
588 return (com.liferay.portal.kernel.io.FileCacheOutputStream)returnObj;
589 }
590 catch (com.liferay.portal.SystemException se) {
591 _log.error(se, se);
592
593 throw se;
594 }
595 }
596
597 public static byte[] exportPortletInfo(HttpPrincipal httpPrincipal,
598 long plid, long groupId, java.lang.String portletId,
599 java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
600 java.util.Date endDate)
601 throws com.liferay.portal.PortalException,
602 com.liferay.portal.SystemException {
603 try {
604 Object paramObj0 = new LongWrapper(plid);
605
606 Object paramObj1 = new LongWrapper(groupId);
607
608 Object paramObj2 = portletId;
609
610 if (portletId == null) {
611 paramObj2 = new NullWrapper("java.lang.String");
612 }
613
614 Object paramObj3 = parameterMap;
615
616 if (parameterMap == null) {
617 paramObj3 = new NullWrapper("java.util.Map");
618 }
619
620 Object paramObj4 = startDate;
621
622 if (startDate == null) {
623 paramObj4 = new NullWrapper("java.util.Date");
624 }
625
626 Object paramObj5 = endDate;
627
628 if (endDate == null) {
629 paramObj5 = new NullWrapper("java.util.Date");
630 }
631
632 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
633 "exportPortletInfo",
634 new Object[] {
635 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
636 paramObj5
637 });
638
639 Object returnObj = null;
640
641 try {
642 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
643 }
644 catch (Exception e) {
645 if (e instanceof com.liferay.portal.PortalException) {
646 throw (com.liferay.portal.PortalException)e;
647 }
648
649 if (e instanceof com.liferay.portal.SystemException) {
650 throw (com.liferay.portal.SystemException)e;
651 }
652
653 throw new com.liferay.portal.SystemException(e);
654 }
655
656 return (byte[])returnObj;
657 }
658 catch (com.liferay.portal.SystemException se) {
659 _log.error(se, se);
660
661 throw se;
662 }
663 }
664
665 public static com.liferay.portal.kernel.io.FileCacheOutputStream exportPortletInfoAsStream(
666 HttpPrincipal httpPrincipal, long plid, long groupId,
667 java.lang.String portletId,
668 java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
669 java.util.Date endDate)
670 throws com.liferay.portal.PortalException,
671 com.liferay.portal.SystemException {
672 try {
673 Object paramObj0 = new LongWrapper(plid);
674
675 Object paramObj1 = new LongWrapper(groupId);
676
677 Object paramObj2 = portletId;
678
679 if (portletId == null) {
680 paramObj2 = new NullWrapper("java.lang.String");
681 }
682
683 Object paramObj3 = parameterMap;
684
685 if (parameterMap == null) {
686 paramObj3 = new NullWrapper("java.util.Map");
687 }
688
689 Object paramObj4 = startDate;
690
691 if (startDate == null) {
692 paramObj4 = new NullWrapper("java.util.Date");
693 }
694
695 Object paramObj5 = endDate;
696
697 if (endDate == null) {
698 paramObj5 = new NullWrapper("java.util.Date");
699 }
700
701 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
702 "exportPortletInfoAsStream",
703 new Object[] {
704 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
705 paramObj5
706 });
707
708 Object returnObj = null;
709
710 try {
711 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
712 }
713 catch (Exception e) {
714 if (e instanceof com.liferay.portal.PortalException) {
715 throw (com.liferay.portal.PortalException)e;
716 }
717
718 if (e instanceof com.liferay.portal.SystemException) {
719 throw (com.liferay.portal.SystemException)e;
720 }
721
722 throw new com.liferay.portal.SystemException(e);
723 }
724
725 return (com.liferay.portal.kernel.io.FileCacheOutputStream)returnObj;
726 }
727 catch (com.liferay.portal.SystemException se) {
728 _log.error(se, se);
729
730 throw se;
731 }
732 }
733
734 public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
735 boolean privateLayout, java.util.Map<String, String[]> parameterMap,
736 java.io.File file)
737 throws com.liferay.portal.PortalException,
738 com.liferay.portal.SystemException {
739 try {
740 Object paramObj0 = new LongWrapper(groupId);
741
742 Object paramObj1 = new BooleanWrapper(privateLayout);
743
744 Object paramObj2 = parameterMap;
745
746 if (parameterMap == null) {
747 paramObj2 = new NullWrapper("java.util.Map");
748 }
749
750 Object paramObj3 = file;
751
752 if (file == null) {
753 paramObj3 = new NullWrapper("java.io.File");
754 }
755
756 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
757 "importLayouts",
758 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
759
760 try {
761 TunnelUtil.invoke(httpPrincipal, methodWrapper);
762 }
763 catch (Exception e) {
764 if (e instanceof com.liferay.portal.PortalException) {
765 throw (com.liferay.portal.PortalException)e;
766 }
767
768 if (e instanceof com.liferay.portal.SystemException) {
769 throw (com.liferay.portal.SystemException)e;
770 }
771
772 throw new com.liferay.portal.SystemException(e);
773 }
774 }
775 catch (com.liferay.portal.SystemException se) {
776 _log.error(se, se);
777
778 throw se;
779 }
780 }
781
782 public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
783 boolean privateLayout, java.util.Map<String, String[]> parameterMap,
784 byte[] bytes)
785 throws com.liferay.portal.PortalException,
786 com.liferay.portal.SystemException {
787 try {
788 Object paramObj0 = new LongWrapper(groupId);
789
790 Object paramObj1 = new BooleanWrapper(privateLayout);
791
792 Object paramObj2 = parameterMap;
793
794 if (parameterMap == null) {
795 paramObj2 = new NullWrapper("java.util.Map");
796 }
797
798 Object paramObj3 = bytes;
799
800 if (bytes == null) {
801 paramObj3 = new NullWrapper("[B");
802 }
803
804 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
805 "importLayouts",
806 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
807
808 try {
809 TunnelUtil.invoke(httpPrincipal, methodWrapper);
810 }
811 catch (Exception e) {
812 if (e instanceof com.liferay.portal.PortalException) {
813 throw (com.liferay.portal.PortalException)e;
814 }
815
816 if (e instanceof com.liferay.portal.SystemException) {
817 throw (com.liferay.portal.SystemException)e;
818 }
819
820 throw new com.liferay.portal.SystemException(e);
821 }
822 }
823 catch (com.liferay.portal.SystemException se) {
824 _log.error(se, se);
825
826 throw se;
827 }
828 }
829
830 public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
831 boolean privateLayout, java.util.Map<String, String[]> parameterMap,
832 java.io.InputStream is)
833 throws com.liferay.portal.PortalException,
834 com.liferay.portal.SystemException {
835 try {
836 Object paramObj0 = new LongWrapper(groupId);
837
838 Object paramObj1 = new BooleanWrapper(privateLayout);
839
840 Object paramObj2 = parameterMap;
841
842 if (parameterMap == null) {
843 paramObj2 = new NullWrapper("java.util.Map");
844 }
845
846 Object paramObj3 = is;
847
848 if (is == null) {
849 paramObj3 = new NullWrapper("java.io.InputStream");
850 }
851
852 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
853 "importLayouts",
854 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
855
856 try {
857 TunnelUtil.invoke(httpPrincipal, methodWrapper);
858 }
859 catch (Exception e) {
860 if (e instanceof com.liferay.portal.PortalException) {
861 throw (com.liferay.portal.PortalException)e;
862 }
863
864 if (e instanceof com.liferay.portal.SystemException) {
865 throw (com.liferay.portal.SystemException)e;
866 }
867
868 throw new com.liferay.portal.SystemException(e);
869 }
870 }
871 catch (com.liferay.portal.SystemException se) {
872 _log.error(se, se);
873
874 throw se;
875 }
876 }
877
878 public static void importPortletInfo(HttpPrincipal httpPrincipal,
879 long plid, long groupId, java.lang.String portletId,
880 java.util.Map<String, String[]> parameterMap, java.io.File file)
881 throws com.liferay.portal.PortalException,
882 com.liferay.portal.SystemException {
883 try {
884 Object paramObj0 = new LongWrapper(plid);
885
886 Object paramObj1 = new LongWrapper(groupId);
887
888 Object paramObj2 = portletId;
889
890 if (portletId == null) {
891 paramObj2 = new NullWrapper("java.lang.String");
892 }
893
894 Object paramObj3 = parameterMap;
895
896 if (parameterMap == null) {
897 paramObj3 = new NullWrapper("java.util.Map");
898 }
899
900 Object paramObj4 = file;
901
902 if (file == null) {
903 paramObj4 = new NullWrapper("java.io.File");
904 }
905
906 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
907 "importPortletInfo",
908 new Object[] {
909 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
910 });
911
912 try {
913 TunnelUtil.invoke(httpPrincipal, methodWrapper);
914 }
915 catch (Exception e) {
916 if (e instanceof com.liferay.portal.PortalException) {
917 throw (com.liferay.portal.PortalException)e;
918 }
919
920 if (e instanceof com.liferay.portal.SystemException) {
921 throw (com.liferay.portal.SystemException)e;
922 }
923
924 throw new com.liferay.portal.SystemException(e);
925 }
926 }
927 catch (com.liferay.portal.SystemException se) {
928 _log.error(se, se);
929
930 throw se;
931 }
932 }
933
934 public static void importPortletInfo(HttpPrincipal httpPrincipal,
935 long plid, long groupId, java.lang.String portletId,
936 java.util.Map<String, String[]> parameterMap, java.io.InputStream is)
937 throws com.liferay.portal.PortalException,
938 com.liferay.portal.SystemException {
939 try {
940 Object paramObj0 = new LongWrapper(plid);
941
942 Object paramObj1 = new LongWrapper(groupId);
943
944 Object paramObj2 = portletId;
945
946 if (portletId == null) {
947 paramObj2 = new NullWrapper("java.lang.String");
948 }
949
950 Object paramObj3 = parameterMap;
951
952 if (parameterMap == null) {
953 paramObj3 = new NullWrapper("java.util.Map");
954 }
955
956 Object paramObj4 = is;
957
958 if (is == null) {
959 paramObj4 = new NullWrapper("java.io.InputStream");
960 }
961
962 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
963 "importPortletInfo",
964 new Object[] {
965 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
966 });
967
968 try {
969 TunnelUtil.invoke(httpPrincipal, methodWrapper);
970 }
971 catch (Exception e) {
972 if (e instanceof com.liferay.portal.PortalException) {
973 throw (com.liferay.portal.PortalException)e;
974 }
975
976 if (e instanceof com.liferay.portal.SystemException) {
977 throw (com.liferay.portal.SystemException)e;
978 }
979
980 throw new com.liferay.portal.SystemException(e);
981 }
982 }
983 catch (com.liferay.portal.SystemException se) {
984 _log.error(se, se);
985
986 throw se;
987 }
988 }
989
990 public static void schedulePublishToLive(HttpPrincipal httpPrincipal,
991 long sourceGroupId, long targetGroupId, boolean privateLayout,
992 java.util.Map<Long, Boolean> layoutIdMap,
993 java.util.Map<String, String[]> parameterMap, java.lang.String scope,
994 java.util.Date startDate, java.util.Date endDate,
995 java.lang.String groupName, java.lang.String cronText,
996 java.util.Date schedulerStartDate, java.util.Date schedulerEndDate,
997 java.lang.String description)
998 throws com.liferay.portal.PortalException,
999 com.liferay.portal.SystemException {
1000 try {
1001 Object paramObj0 = new LongWrapper(sourceGroupId);
1002
1003 Object paramObj1 = new LongWrapper(targetGroupId);
1004
1005 Object paramObj2 = new BooleanWrapper(privateLayout);
1006
1007 Object paramObj3 = layoutIdMap;
1008
1009 if (layoutIdMap == null) {
1010 paramObj3 = new NullWrapper("java.util.Map");
1011 }
1012
1013 Object paramObj4 = parameterMap;
1014
1015 if (parameterMap == null) {
1016 paramObj4 = new NullWrapper("java.util.Map");
1017 }
1018
1019 Object paramObj5 = scope;
1020
1021 if (scope == null) {
1022 paramObj5 = new NullWrapper("java.lang.String");
1023 }
1024
1025 Object paramObj6 = startDate;
1026
1027 if (startDate == null) {
1028 paramObj6 = new NullWrapper("java.util.Date");
1029 }
1030
1031 Object paramObj7 = endDate;
1032
1033 if (endDate == null) {
1034 paramObj7 = new NullWrapper("java.util.Date");
1035 }
1036
1037 Object paramObj8 = groupName;
1038
1039 if (groupName == null) {
1040 paramObj8 = new NullWrapper("java.lang.String");
1041 }
1042
1043 Object paramObj9 = cronText;
1044
1045 if (cronText == null) {
1046 paramObj9 = new NullWrapper("java.lang.String");
1047 }
1048
1049 Object paramObj10 = schedulerStartDate;
1050
1051 if (schedulerStartDate == null) {
1052 paramObj10 = new NullWrapper("java.util.Date");
1053 }
1054
1055 Object paramObj11 = schedulerEndDate;
1056
1057 if (schedulerEndDate == null) {
1058 paramObj11 = new NullWrapper("java.util.Date");
1059 }
1060
1061 Object paramObj12 = description;
1062
1063 if (description == null) {
1064 paramObj12 = new NullWrapper("java.lang.String");
1065 }
1066
1067 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
1068 "schedulePublishToLive",
1069 new Object[] {
1070 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1071 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
1072 paramObj10, paramObj11, paramObj12
1073 });
1074
1075 try {
1076 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1077 }
1078 catch (Exception e) {
1079 if (e instanceof com.liferay.portal.PortalException) {
1080 throw (com.liferay.portal.PortalException)e;
1081 }
1082
1083 if (e instanceof com.liferay.portal.SystemException) {
1084 throw (com.liferay.portal.SystemException)e;
1085 }
1086
1087 throw new com.liferay.portal.SystemException(e);
1088 }
1089 }
1090 catch (com.liferay.portal.SystemException se) {
1091 _log.error(se, se);
1092
1093 throw se;
1094 }
1095 }
1096
1097 public static void schedulePublishToRemote(HttpPrincipal httpPrincipal,
1098 long sourceGroupId, boolean privateLayout,
1099 java.util.Map<Long, Boolean> layoutIdMap,
1100 java.util.Map<String, String[]> parameterMap,
1101 java.lang.String remoteAddress, int remotePort,
1102 boolean secureConnection, long remoteGroupId,
1103 boolean remotePrivateLayout, java.util.Date startDate,
1104 java.util.Date endDate, java.lang.String groupName,
1105 java.lang.String cronText, java.util.Date schedulerStartDate,
1106 java.util.Date schedulerEndDate, java.lang.String description)
1107 throws com.liferay.portal.PortalException,
1108 com.liferay.portal.SystemException {
1109 try {
1110 Object paramObj0 = new LongWrapper(sourceGroupId);
1111
1112 Object paramObj1 = new BooleanWrapper(privateLayout);
1113
1114 Object paramObj2 = layoutIdMap;
1115
1116 if (layoutIdMap == null) {
1117 paramObj2 = new NullWrapper("java.util.Map");
1118 }
1119
1120 Object paramObj3 = parameterMap;
1121
1122 if (parameterMap == null) {
1123 paramObj3 = new NullWrapper("java.util.Map");
1124 }
1125
1126 Object paramObj4 = remoteAddress;
1127
1128 if (remoteAddress == null) {
1129 paramObj4 = new NullWrapper("java.lang.String");
1130 }
1131
1132 Object paramObj5 = new IntegerWrapper(remotePort);
1133
1134 Object paramObj6 = new BooleanWrapper(secureConnection);
1135
1136 Object paramObj7 = new LongWrapper(remoteGroupId);
1137
1138 Object paramObj8 = new BooleanWrapper(remotePrivateLayout);
1139
1140 Object paramObj9 = startDate;
1141
1142 if (startDate == null) {
1143 paramObj9 = new NullWrapper("java.util.Date");
1144 }
1145
1146 Object paramObj10 = endDate;
1147
1148 if (endDate == null) {
1149 paramObj10 = new NullWrapper("java.util.Date");
1150 }
1151
1152 Object paramObj11 = groupName;
1153
1154 if (groupName == null) {
1155 paramObj11 = new NullWrapper("java.lang.String");
1156 }
1157
1158 Object paramObj12 = cronText;
1159
1160 if (cronText == null) {
1161 paramObj12 = new NullWrapper("java.lang.String");
1162 }
1163
1164 Object paramObj13 = schedulerStartDate;
1165
1166 if (schedulerStartDate == null) {
1167 paramObj13 = new NullWrapper("java.util.Date");
1168 }
1169
1170 Object paramObj14 = schedulerEndDate;
1171
1172 if (schedulerEndDate == null) {
1173 paramObj14 = new NullWrapper("java.util.Date");
1174 }
1175
1176 Object paramObj15 = description;
1177
1178 if (description == null) {
1179 paramObj15 = new NullWrapper("java.lang.String");
1180 }
1181
1182 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
1183 "schedulePublishToRemote",
1184 new Object[] {
1185 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1186 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
1187 paramObj10, paramObj11, paramObj12, paramObj13,
1188 paramObj14, paramObj15
1189 });
1190
1191 try {
1192 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1193 }
1194 catch (Exception e) {
1195 if (e instanceof com.liferay.portal.PortalException) {
1196 throw (com.liferay.portal.PortalException)e;
1197 }
1198
1199 if (e instanceof com.liferay.portal.SystemException) {
1200 throw (com.liferay.portal.SystemException)e;
1201 }
1202
1203 throw new com.liferay.portal.SystemException(e);
1204 }
1205 }
1206 catch (com.liferay.portal.SystemException se) {
1207 _log.error(se, se);
1208
1209 throw se;
1210 }
1211 }
1212
1213 public static void setLayouts(HttpPrincipal httpPrincipal, long groupId,
1214 boolean privateLayout, long parentLayoutId, long[] layoutIds)
1215 throws com.liferay.portal.PortalException,
1216 com.liferay.portal.SystemException {
1217 try {
1218 Object paramObj0 = new LongWrapper(groupId);
1219
1220 Object paramObj1 = new BooleanWrapper(privateLayout);
1221
1222 Object paramObj2 = new LongWrapper(parentLayoutId);
1223
1224 Object paramObj3 = layoutIds;
1225
1226 if (layoutIds == null) {
1227 paramObj3 = new NullWrapper("[J");
1228 }
1229
1230 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
1231 "setLayouts",
1232 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
1233
1234 try {
1235 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1236 }
1237 catch (Exception e) {
1238 if (e instanceof com.liferay.portal.PortalException) {
1239 throw (com.liferay.portal.PortalException)e;
1240 }
1241
1242 if (e instanceof com.liferay.portal.SystemException) {
1243 throw (com.liferay.portal.SystemException)e;
1244 }
1245
1246 throw new com.liferay.portal.SystemException(e);
1247 }
1248 }
1249 catch (com.liferay.portal.SystemException se) {
1250 _log.error(se, se);
1251
1252 throw se;
1253 }
1254 }
1255
1256 public static void unschedulePublishToLive(HttpPrincipal httpPrincipal,
1257 long groupId, java.lang.String jobName, java.lang.String groupName)
1258 throws com.liferay.portal.PortalException,
1259 com.liferay.portal.SystemException {
1260 try {
1261 Object paramObj0 = new LongWrapper(groupId);
1262
1263 Object paramObj1 = jobName;
1264
1265 if (jobName == null) {
1266 paramObj1 = new NullWrapper("java.lang.String");
1267 }
1268
1269 Object paramObj2 = groupName;
1270
1271 if (groupName == null) {
1272 paramObj2 = new NullWrapper("java.lang.String");
1273 }
1274
1275 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
1276 "unschedulePublishToLive",
1277 new Object[] { paramObj0, paramObj1, paramObj2 });
1278
1279 try {
1280 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1281 }
1282 catch (Exception e) {
1283 if (e instanceof com.liferay.portal.PortalException) {
1284 throw (com.liferay.portal.PortalException)e;
1285 }
1286
1287 if (e instanceof com.liferay.portal.SystemException) {
1288 throw (com.liferay.portal.SystemException)e;
1289 }
1290
1291 throw new com.liferay.portal.SystemException(e);
1292 }
1293 }
1294 catch (com.liferay.portal.SystemException se) {
1295 _log.error(se, se);
1296
1297 throw se;
1298 }
1299 }
1300
1301 public static void unschedulePublishToRemote(HttpPrincipal httpPrincipal,
1302 long groupId, java.lang.String jobName, java.lang.String groupName)
1303 throws com.liferay.portal.PortalException,
1304 com.liferay.portal.SystemException {
1305 try {
1306 Object paramObj0 = new LongWrapper(groupId);
1307
1308 Object paramObj1 = jobName;
1309
1310 if (jobName == null) {
1311 paramObj1 = new NullWrapper("java.lang.String");
1312 }
1313
1314 Object paramObj2 = groupName;
1315
1316 if (groupName == null) {
1317 paramObj2 = new NullWrapper("java.lang.String");
1318 }
1319
1320 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
1321 "unschedulePublishToRemote",
1322 new Object[] { paramObj0, paramObj1, paramObj2 });
1323
1324 try {
1325 TunnelUtil.invoke(httpPrincipal, methodWrapper);
1326 }
1327 catch (Exception e) {
1328 if (e instanceof com.liferay.portal.PortalException) {
1329 throw (com.liferay.portal.PortalException)e;
1330 }
1331
1332 if (e instanceof com.liferay.portal.SystemException) {
1333 throw (com.liferay.portal.SystemException)e;
1334 }
1335
1336 throw new com.liferay.portal.SystemException(e);
1337 }
1338 }
1339 catch (com.liferay.portal.SystemException se) {
1340 _log.error(se, se);
1341
1342 throw se;
1343 }
1344 }
1345
1346 public static com.liferay.portal.model.Layout updateLayout(
1347 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1348 long layoutId, long parentLayoutId,
1349 java.util.Map<java.util.Locale, String> localeNamesMap,
1350 java.util.Map<java.util.Locale, String> localeTitlesMap,
1351 java.lang.String description, java.lang.String type, boolean hidden,
1352 java.lang.String friendlyURL)
1353 throws com.liferay.portal.PortalException,
1354 com.liferay.portal.SystemException {
1355 try {
1356 Object paramObj0 = new LongWrapper(groupId);
1357
1358 Object paramObj1 = new BooleanWrapper(privateLayout);
1359
1360 Object paramObj2 = new LongWrapper(layoutId);
1361
1362 Object paramObj3 = new LongWrapper(parentLayoutId);
1363
1364 Object paramObj4 = localeNamesMap;
1365
1366 if (localeNamesMap == null) {
1367 paramObj4 = new NullWrapper("java.util.Map");
1368 }
1369
1370 Object paramObj5 = localeTitlesMap;
1371
1372 if (localeTitlesMap == null) {
1373 paramObj5 = new NullWrapper("java.util.Map");
1374 }
1375
1376 Object paramObj6 = description;
1377
1378 if (description == null) {
1379 paramObj6 = new NullWrapper("java.lang.String");
1380 }
1381
1382 Object paramObj7 = type;
1383
1384 if (type == null) {
1385 paramObj7 = new NullWrapper("java.lang.String");
1386 }
1387
1388 Object paramObj8 = new BooleanWrapper(hidden);
1389
1390 Object paramObj9 = friendlyURL;
1391
1392 if (friendlyURL == null) {
1393 paramObj9 = new NullWrapper("java.lang.String");
1394 }
1395
1396 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
1397 "updateLayout",
1398 new Object[] {
1399 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1400 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9
1401 });
1402
1403 Object returnObj = null;
1404
1405 try {
1406 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1407 }
1408 catch (Exception e) {
1409 if (e instanceof com.liferay.portal.PortalException) {
1410 throw (com.liferay.portal.PortalException)e;
1411 }
1412
1413 if (e instanceof com.liferay.portal.SystemException) {
1414 throw (com.liferay.portal.SystemException)e;
1415 }
1416
1417 throw new com.liferay.portal.SystemException(e);
1418 }
1419
1420 return (com.liferay.portal.model.Layout)returnObj;
1421 }
1422 catch (com.liferay.portal.SystemException se) {
1423 _log.error(se, se);
1424
1425 throw se;
1426 }
1427 }
1428
1429 public static com.liferay.portal.model.Layout updateLayout(
1430 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1431 long layoutId, long parentLayoutId,
1432 java.util.Map<java.util.Locale, String> localeNamesMap,
1433 java.util.Map<java.util.Locale, String> localeTitlesMap,
1434 java.lang.String description, java.lang.String type, boolean hidden,
1435 java.lang.String friendlyURL, java.lang.Boolean iconImage,
1436 byte[] iconBytes)
1437 throws com.liferay.portal.PortalException,
1438 com.liferay.portal.SystemException {
1439 try {
1440 Object paramObj0 = new LongWrapper(groupId);
1441
1442 Object paramObj1 = new BooleanWrapper(privateLayout);
1443
1444 Object paramObj2 = new LongWrapper(layoutId);
1445
1446 Object paramObj3 = new LongWrapper(parentLayoutId);
1447
1448 Object paramObj4 = localeNamesMap;
1449
1450 if (localeNamesMap == null) {
1451 paramObj4 = new NullWrapper("java.util.Map");
1452 }
1453
1454 Object paramObj5 = localeTitlesMap;
1455
1456 if (localeTitlesMap == null) {
1457 paramObj5 = new NullWrapper("java.util.Map");
1458 }
1459
1460 Object paramObj6 = description;
1461
1462 if (description == null) {
1463 paramObj6 = new NullWrapper("java.lang.String");
1464 }
1465
1466 Object paramObj7 = type;
1467
1468 if (type == null) {
1469 paramObj7 = new NullWrapper("java.lang.String");
1470 }
1471
1472 Object paramObj8 = new BooleanWrapper(hidden);
1473
1474 Object paramObj9 = friendlyURL;
1475
1476 if (friendlyURL == null) {
1477 paramObj9 = new NullWrapper("java.lang.String");
1478 }
1479
1480 Object paramObj10 = iconImage;
1481
1482 if (iconImage == null) {
1483 paramObj10 = new NullWrapper("java.lang.Boolean");
1484 }
1485
1486 Object paramObj11 = iconBytes;
1487
1488 if (iconBytes == null) {
1489 paramObj11 = new NullWrapper("[B");
1490 }
1491
1492 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
1493 "updateLayout",
1494 new Object[] {
1495 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1496 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
1497 paramObj10, paramObj11
1498 });
1499
1500 Object returnObj = null;
1501
1502 try {
1503 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1504 }
1505 catch (Exception e) {
1506 if (e instanceof com.liferay.portal.PortalException) {
1507 throw (com.liferay.portal.PortalException)e;
1508 }
1509
1510 if (e instanceof com.liferay.portal.SystemException) {
1511 throw (com.liferay.portal.SystemException)e;
1512 }
1513
1514 throw new com.liferay.portal.SystemException(e);
1515 }
1516
1517 return (com.liferay.portal.model.Layout)returnObj;
1518 }
1519 catch (com.liferay.portal.SystemException se) {
1520 _log.error(se, se);
1521
1522 throw se;
1523 }
1524 }
1525
1526 public static com.liferay.portal.model.Layout updateLayout(
1527 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1528 long layoutId, java.lang.String typeSettings)
1529 throws com.liferay.portal.PortalException,
1530 com.liferay.portal.SystemException {
1531 try {
1532 Object paramObj0 = new LongWrapper(groupId);
1533
1534 Object paramObj1 = new BooleanWrapper(privateLayout);
1535
1536 Object paramObj2 = new LongWrapper(layoutId);
1537
1538 Object paramObj3 = typeSettings;
1539
1540 if (typeSettings == null) {
1541 paramObj3 = new NullWrapper("java.lang.String");
1542 }
1543
1544 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
1545 "updateLayout",
1546 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
1547
1548 Object returnObj = null;
1549
1550 try {
1551 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1552 }
1553 catch (Exception e) {
1554 if (e instanceof com.liferay.portal.PortalException) {
1555 throw (com.liferay.portal.PortalException)e;
1556 }
1557
1558 if (e instanceof com.liferay.portal.SystemException) {
1559 throw (com.liferay.portal.SystemException)e;
1560 }
1561
1562 throw new com.liferay.portal.SystemException(e);
1563 }
1564
1565 return (com.liferay.portal.model.Layout)returnObj;
1566 }
1567 catch (com.liferay.portal.SystemException se) {
1568 _log.error(se, se);
1569
1570 throw se;
1571 }
1572 }
1573
1574 public static com.liferay.portal.model.Layout updateLookAndFeel(
1575 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1576 long layoutId, java.lang.String themeId,
1577 java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
1578 throws com.liferay.portal.PortalException,
1579 com.liferay.portal.SystemException {
1580 try {
1581 Object paramObj0 = new LongWrapper(groupId);
1582
1583 Object paramObj1 = new BooleanWrapper(privateLayout);
1584
1585 Object paramObj2 = new LongWrapper(layoutId);
1586
1587 Object paramObj3 = themeId;
1588
1589 if (themeId == null) {
1590 paramObj3 = new NullWrapper("java.lang.String");
1591 }
1592
1593 Object paramObj4 = colorSchemeId;
1594
1595 if (colorSchemeId == null) {
1596 paramObj4 = new NullWrapper("java.lang.String");
1597 }
1598
1599 Object paramObj5 = css;
1600
1601 if (css == null) {
1602 paramObj5 = new NullWrapper("java.lang.String");
1603 }
1604
1605 Object paramObj6 = new BooleanWrapper(wapTheme);
1606
1607 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
1608 "updateLookAndFeel",
1609 new Object[] {
1610 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1611 paramObj5, paramObj6
1612 });
1613
1614 Object returnObj = null;
1615
1616 try {
1617 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1618 }
1619 catch (Exception e) {
1620 if (e instanceof com.liferay.portal.PortalException) {
1621 throw (com.liferay.portal.PortalException)e;
1622 }
1623
1624 if (e instanceof com.liferay.portal.SystemException) {
1625 throw (com.liferay.portal.SystemException)e;
1626 }
1627
1628 throw new com.liferay.portal.SystemException(e);
1629 }
1630
1631 return (com.liferay.portal.model.Layout)returnObj;
1632 }
1633 catch (com.liferay.portal.SystemException se) {
1634 _log.error(se, se);
1635
1636 throw se;
1637 }
1638 }
1639
1640 public static com.liferay.portal.model.Layout updateName(
1641 HttpPrincipal httpPrincipal, long plid, java.lang.String name,
1642 java.lang.String languageId)
1643 throws com.liferay.portal.PortalException,
1644 com.liferay.portal.SystemException {
1645 try {
1646 Object paramObj0 = new LongWrapper(plid);
1647
1648 Object paramObj1 = name;
1649
1650 if (name == null) {
1651 paramObj1 = new NullWrapper("java.lang.String");
1652 }
1653
1654 Object paramObj2 = languageId;
1655
1656 if (languageId == null) {
1657 paramObj2 = new NullWrapper("java.lang.String");
1658 }
1659
1660 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
1661 "updateName",
1662 new Object[] { paramObj0, paramObj1, paramObj2 });
1663
1664 Object returnObj = null;
1665
1666 try {
1667 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1668 }
1669 catch (Exception e) {
1670 if (e instanceof com.liferay.portal.PortalException) {
1671 throw (com.liferay.portal.PortalException)e;
1672 }
1673
1674 if (e instanceof com.liferay.portal.SystemException) {
1675 throw (com.liferay.portal.SystemException)e;
1676 }
1677
1678 throw new com.liferay.portal.SystemException(e);
1679 }
1680
1681 return (com.liferay.portal.model.Layout)returnObj;
1682 }
1683 catch (com.liferay.portal.SystemException se) {
1684 _log.error(se, se);
1685
1686 throw se;
1687 }
1688 }
1689
1690 public static com.liferay.portal.model.Layout updateName(
1691 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1692 long layoutId, java.lang.String name, java.lang.String languageId)
1693 throws com.liferay.portal.PortalException,
1694 com.liferay.portal.SystemException {
1695 try {
1696 Object paramObj0 = new LongWrapper(groupId);
1697
1698 Object paramObj1 = new BooleanWrapper(privateLayout);
1699
1700 Object paramObj2 = new LongWrapper(layoutId);
1701
1702 Object paramObj3 = name;
1703
1704 if (name == null) {
1705 paramObj3 = new NullWrapper("java.lang.String");
1706 }
1707
1708 Object paramObj4 = languageId;
1709
1710 if (languageId == null) {
1711 paramObj4 = new NullWrapper("java.lang.String");
1712 }
1713
1714 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
1715 "updateName",
1716 new Object[] {
1717 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
1718 });
1719
1720 Object returnObj = null;
1721
1722 try {
1723 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1724 }
1725 catch (Exception e) {
1726 if (e instanceof com.liferay.portal.PortalException) {
1727 throw (com.liferay.portal.PortalException)e;
1728 }
1729
1730 if (e instanceof com.liferay.portal.SystemException) {
1731 throw (com.liferay.portal.SystemException)e;
1732 }
1733
1734 throw new com.liferay.portal.SystemException(e);
1735 }
1736
1737 return (com.liferay.portal.model.Layout)returnObj;
1738 }
1739 catch (com.liferay.portal.SystemException se) {
1740 _log.error(se, se);
1741
1742 throw se;
1743 }
1744 }
1745
1746 public static com.liferay.portal.model.Layout updateParentLayoutId(
1747 HttpPrincipal httpPrincipal, long plid, long parentPlid)
1748 throws com.liferay.portal.PortalException,
1749 com.liferay.portal.SystemException {
1750 try {
1751 Object paramObj0 = new LongWrapper(plid);
1752
1753 Object paramObj1 = new LongWrapper(parentPlid);
1754
1755 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
1756 "updateParentLayoutId",
1757 new Object[] { paramObj0, paramObj1 });
1758
1759 Object returnObj = null;
1760
1761 try {
1762 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1763 }
1764 catch (Exception e) {
1765 if (e instanceof com.liferay.portal.PortalException) {
1766 throw (com.liferay.portal.PortalException)e;
1767 }
1768
1769 if (e instanceof com.liferay.portal.SystemException) {
1770 throw (com.liferay.portal.SystemException)e;
1771 }
1772
1773 throw new com.liferay.portal.SystemException(e);
1774 }
1775
1776 return (com.liferay.portal.model.Layout)returnObj;
1777 }
1778 catch (com.liferay.portal.SystemException se) {
1779 _log.error(se, se);
1780
1781 throw se;
1782 }
1783 }
1784
1785 public static com.liferay.portal.model.Layout updateParentLayoutId(
1786 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1787 long layoutId, long parentLayoutId)
1788 throws com.liferay.portal.PortalException,
1789 com.liferay.portal.SystemException {
1790 try {
1791 Object paramObj0 = new LongWrapper(groupId);
1792
1793 Object paramObj1 = new BooleanWrapper(privateLayout);
1794
1795 Object paramObj2 = new LongWrapper(layoutId);
1796
1797 Object paramObj3 = new LongWrapper(parentLayoutId);
1798
1799 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
1800 "updateParentLayoutId",
1801 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
1802
1803 Object returnObj = null;
1804
1805 try {
1806 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1807 }
1808 catch (Exception e) {
1809 if (e instanceof com.liferay.portal.PortalException) {
1810 throw (com.liferay.portal.PortalException)e;
1811 }
1812
1813 if (e instanceof com.liferay.portal.SystemException) {
1814 throw (com.liferay.portal.SystemException)e;
1815 }
1816
1817 throw new com.liferay.portal.SystemException(e);
1818 }
1819
1820 return (com.liferay.portal.model.Layout)returnObj;
1821 }
1822 catch (com.liferay.portal.SystemException se) {
1823 _log.error(se, se);
1824
1825 throw se;
1826 }
1827 }
1828
1829 public static com.liferay.portal.model.Layout updatePriority(
1830 HttpPrincipal httpPrincipal, long plid, int priority)
1831 throws com.liferay.portal.PortalException,
1832 com.liferay.portal.SystemException {
1833 try {
1834 Object paramObj0 = new LongWrapper(plid);
1835
1836 Object paramObj1 = new IntegerWrapper(priority);
1837
1838 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
1839 "updatePriority", new Object[] { paramObj0, paramObj1 });
1840
1841 Object returnObj = null;
1842
1843 try {
1844 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1845 }
1846 catch (Exception e) {
1847 if (e instanceof com.liferay.portal.PortalException) {
1848 throw (com.liferay.portal.PortalException)e;
1849 }
1850
1851 if (e instanceof com.liferay.portal.SystemException) {
1852 throw (com.liferay.portal.SystemException)e;
1853 }
1854
1855 throw new com.liferay.portal.SystemException(e);
1856 }
1857
1858 return (com.liferay.portal.model.Layout)returnObj;
1859 }
1860 catch (com.liferay.portal.SystemException se) {
1861 _log.error(se, se);
1862
1863 throw se;
1864 }
1865 }
1866
1867 public static com.liferay.portal.model.Layout updatePriority(
1868 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1869 long layoutId, int priority)
1870 throws com.liferay.portal.PortalException,
1871 com.liferay.portal.SystemException {
1872 try {
1873 Object paramObj0 = new LongWrapper(groupId);
1874
1875 Object paramObj1 = new BooleanWrapper(privateLayout);
1876
1877 Object paramObj2 = new LongWrapper(layoutId);
1878
1879 Object paramObj3 = new IntegerWrapper(priority);
1880
1881 MethodWrapper methodWrapper = new MethodWrapper(LayoutServiceUtil.class.getName(),
1882 "updatePriority",
1883 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
1884
1885 Object returnObj = null;
1886
1887 try {
1888 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1889 }
1890 catch (Exception e) {
1891 if (e instanceof com.liferay.portal.PortalException) {
1892 throw (com.liferay.portal.PortalException)e;
1893 }
1894
1895 if (e instanceof com.liferay.portal.SystemException) {
1896 throw (com.liferay.portal.SystemException)e;
1897 }
1898
1899 throw new com.liferay.portal.SystemException(e);
1900 }
1901
1902 return (com.liferay.portal.model.Layout)returnObj;
1903 }
1904 catch (com.liferay.portal.SystemException se) {
1905 _log.error(se, se);
1906
1907 throw se;
1908 }
1909 }
1910
1911 private static Log _log = LogFactoryUtil.getLog(LayoutServiceHttp.class);
1912}