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