001
014
015 package com.liferay.portal.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019 import com.liferay.portal.kernel.util.MethodHandler;
020 import com.liferay.portal.kernel.util.MethodKey;
021 import com.liferay.portal.security.auth.HttpPrincipal;
022 import com.liferay.portal.service.LayoutServiceUtil;
023
024
054 public class LayoutServiceHttp {
055 public static com.liferay.portal.model.Layout addLayout(
056 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
057 long parentLayoutId,
058 java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
059 java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
060 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
061 java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
062 java.util.Map<java.util.Locale, java.lang.String> robotsMap,
063 java.lang.String type, boolean hidden, java.lang.String friendlyURL,
064 com.liferay.portal.service.ServiceContext serviceContext)
065 throws com.liferay.portal.kernel.exception.PortalException,
066 com.liferay.portal.kernel.exception.SystemException {
067 try {
068 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
069 "addLayout", _addLayoutParameterTypes0);
070
071 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
072 privateLayout, parentLayoutId, localeNamesMap,
073 localeTitlesMap, descriptionMap, keywordsMap, robotsMap,
074 type, hidden, friendlyURL, serviceContext);
075
076 Object returnObj = null;
077
078 try {
079 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
080 }
081 catch (Exception e) {
082 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
083 throw (com.liferay.portal.kernel.exception.PortalException)e;
084 }
085
086 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
087 throw (com.liferay.portal.kernel.exception.SystemException)e;
088 }
089
090 throw new com.liferay.portal.kernel.exception.SystemException(e);
091 }
092
093 return (com.liferay.portal.model.Layout)returnObj;
094 }
095 catch (com.liferay.portal.kernel.exception.SystemException se) {
096 _log.error(se, se);
097
098 throw se;
099 }
100 }
101
102 public static com.liferay.portal.model.Layout addLayout(
103 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
104 long parentLayoutId, java.lang.String name, java.lang.String title,
105 java.lang.String description, java.lang.String type, boolean hidden,
106 java.lang.String friendlyURL,
107 com.liferay.portal.service.ServiceContext serviceContext)
108 throws com.liferay.portal.kernel.exception.PortalException,
109 com.liferay.portal.kernel.exception.SystemException {
110 try {
111 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
112 "addLayout", _addLayoutParameterTypes1);
113
114 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
115 privateLayout, parentLayoutId, name, title, description,
116 type, hidden, friendlyURL, serviceContext);
117
118 Object returnObj = null;
119
120 try {
121 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
122 }
123 catch (Exception e) {
124 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
125 throw (com.liferay.portal.kernel.exception.PortalException)e;
126 }
127
128 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
129 throw (com.liferay.portal.kernel.exception.SystemException)e;
130 }
131
132 throw new com.liferay.portal.kernel.exception.SystemException(e);
133 }
134
135 return (com.liferay.portal.model.Layout)returnObj;
136 }
137 catch (com.liferay.portal.kernel.exception.SystemException se) {
138 _log.error(se, se);
139
140 throw se;
141 }
142 }
143
144 public static void deleteLayout(HttpPrincipal httpPrincipal, long groupId,
145 boolean privateLayout, long layoutId,
146 com.liferay.portal.service.ServiceContext serviceContext)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException {
149 try {
150 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
151 "deleteLayout", _deleteLayoutParameterTypes2);
152
153 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
154 privateLayout, layoutId, serviceContext);
155
156 try {
157 TunnelUtil.invoke(httpPrincipal, methodHandler);
158 }
159 catch (Exception e) {
160 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
161 throw (com.liferay.portal.kernel.exception.PortalException)e;
162 }
163
164 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
165 throw (com.liferay.portal.kernel.exception.SystemException)e;
166 }
167
168 throw new com.liferay.portal.kernel.exception.SystemException(e);
169 }
170 }
171 catch (com.liferay.portal.kernel.exception.SystemException se) {
172 _log.error(se, se);
173
174 throw se;
175 }
176 }
177
178 public static void deleteLayout(HttpPrincipal httpPrincipal, long plid,
179 com.liferay.portal.service.ServiceContext serviceContext)
180 throws com.liferay.portal.kernel.exception.PortalException,
181 com.liferay.portal.kernel.exception.SystemException {
182 try {
183 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
184 "deleteLayout", _deleteLayoutParameterTypes3);
185
186 MethodHandler methodHandler = new MethodHandler(methodKey, plid,
187 serviceContext);
188
189 try {
190 TunnelUtil.invoke(httpPrincipal, methodHandler);
191 }
192 catch (Exception e) {
193 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
194 throw (com.liferay.portal.kernel.exception.PortalException)e;
195 }
196
197 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
198 throw (com.liferay.portal.kernel.exception.SystemException)e;
199 }
200
201 throw new com.liferay.portal.kernel.exception.SystemException(e);
202 }
203 }
204 catch (com.liferay.portal.kernel.exception.SystemException se) {
205 _log.error(se, se);
206
207 throw se;
208 }
209 }
210
211 public static byte[] exportLayouts(HttpPrincipal httpPrincipal,
212 long groupId, boolean privateLayout, long[] layoutIds,
213 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
214 java.util.Date startDate, java.util.Date endDate)
215 throws com.liferay.portal.kernel.exception.PortalException,
216 com.liferay.portal.kernel.exception.SystemException {
217 try {
218 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
219 "exportLayouts", _exportLayoutsParameterTypes4);
220
221 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
222 privateLayout, layoutIds, parameterMap, startDate, endDate);
223
224 Object returnObj = null;
225
226 try {
227 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
228 }
229 catch (Exception e) {
230 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
231 throw (com.liferay.portal.kernel.exception.PortalException)e;
232 }
233
234 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
235 throw (com.liferay.portal.kernel.exception.SystemException)e;
236 }
237
238 throw new com.liferay.portal.kernel.exception.SystemException(e);
239 }
240
241 return (byte[])returnObj;
242 }
243 catch (com.liferay.portal.kernel.exception.SystemException se) {
244 _log.error(se, se);
245
246 throw se;
247 }
248 }
249
250 public static byte[] exportLayouts(HttpPrincipal httpPrincipal,
251 long groupId, boolean privateLayout,
252 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
253 java.util.Date startDate, java.util.Date endDate)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException {
256 try {
257 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
258 "exportLayouts", _exportLayoutsParameterTypes5);
259
260 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
261 privateLayout, parameterMap, startDate, endDate);
262
263 Object returnObj = null;
264
265 try {
266 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
267 }
268 catch (Exception e) {
269 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
270 throw (com.liferay.portal.kernel.exception.PortalException)e;
271 }
272
273 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
274 throw (com.liferay.portal.kernel.exception.SystemException)e;
275 }
276
277 throw new com.liferay.portal.kernel.exception.SystemException(e);
278 }
279
280 return (byte[])returnObj;
281 }
282 catch (com.liferay.portal.kernel.exception.SystemException se) {
283 _log.error(se, se);
284
285 throw se;
286 }
287 }
288
289 public static java.io.File exportLayoutsAsFile(
290 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
291 long[] layoutIds,
292 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
293 java.util.Date startDate, java.util.Date endDate)
294 throws com.liferay.portal.kernel.exception.PortalException,
295 com.liferay.portal.kernel.exception.SystemException {
296 try {
297 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
298 "exportLayoutsAsFile", _exportLayoutsAsFileParameterTypes6);
299
300 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
301 privateLayout, layoutIds, parameterMap, startDate, endDate);
302
303 Object returnObj = null;
304
305 try {
306 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
307 }
308 catch (Exception e) {
309 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
310 throw (com.liferay.portal.kernel.exception.PortalException)e;
311 }
312
313 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
314 throw (com.liferay.portal.kernel.exception.SystemException)e;
315 }
316
317 throw new com.liferay.portal.kernel.exception.SystemException(e);
318 }
319
320 return (java.io.File)returnObj;
321 }
322 catch (com.liferay.portal.kernel.exception.SystemException se) {
323 _log.error(se, se);
324
325 throw se;
326 }
327 }
328
329 public static byte[] exportPortletInfo(HttpPrincipal httpPrincipal,
330 long plid, long groupId, java.lang.String portletId,
331 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
332 java.util.Date startDate, java.util.Date endDate)
333 throws com.liferay.portal.kernel.exception.PortalException,
334 com.liferay.portal.kernel.exception.SystemException {
335 try {
336 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
337 "exportPortletInfo", _exportPortletInfoParameterTypes7);
338
339 MethodHandler methodHandler = new MethodHandler(methodKey, plid,
340 groupId, portletId, parameterMap, startDate, endDate);
341
342 Object returnObj = null;
343
344 try {
345 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
346 }
347 catch (Exception e) {
348 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
349 throw (com.liferay.portal.kernel.exception.PortalException)e;
350 }
351
352 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
353 throw (com.liferay.portal.kernel.exception.SystemException)e;
354 }
355
356 throw new com.liferay.portal.kernel.exception.SystemException(e);
357 }
358
359 return (byte[])returnObj;
360 }
361 catch (com.liferay.portal.kernel.exception.SystemException se) {
362 _log.error(se, se);
363
364 throw se;
365 }
366 }
367
368 public static java.io.File exportPortletInfoAsFile(
369 HttpPrincipal httpPrincipal, long plid, long groupId,
370 java.lang.String portletId,
371 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
372 java.util.Date startDate, java.util.Date endDate)
373 throws com.liferay.portal.kernel.exception.PortalException,
374 com.liferay.portal.kernel.exception.SystemException {
375 try {
376 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
377 "exportPortletInfoAsFile",
378 _exportPortletInfoAsFileParameterTypes8);
379
380 MethodHandler methodHandler = new MethodHandler(methodKey, plid,
381 groupId, portletId, parameterMap, startDate, endDate);
382
383 Object returnObj = null;
384
385 try {
386 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
387 }
388 catch (Exception e) {
389 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
390 throw (com.liferay.portal.kernel.exception.PortalException)e;
391 }
392
393 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
394 throw (com.liferay.portal.kernel.exception.SystemException)e;
395 }
396
397 throw new com.liferay.portal.kernel.exception.SystemException(e);
398 }
399
400 return (java.io.File)returnObj;
401 }
402 catch (com.liferay.portal.kernel.exception.SystemException se) {
403 _log.error(se, se);
404
405 throw se;
406 }
407 }
408
409 public static java.util.List<com.liferay.portal.model.Layout> getAncestorLayouts(
410 HttpPrincipal httpPrincipal, long plid)
411 throws com.liferay.portal.kernel.exception.PortalException,
412 com.liferay.portal.kernel.exception.SystemException {
413 try {
414 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
415 "getAncestorLayouts", _getAncestorLayoutsParameterTypes9);
416
417 MethodHandler methodHandler = new MethodHandler(methodKey, plid);
418
419 Object returnObj = null;
420
421 try {
422 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
423 }
424 catch (Exception e) {
425 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
426 throw (com.liferay.portal.kernel.exception.PortalException)e;
427 }
428
429 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
430 throw (com.liferay.portal.kernel.exception.SystemException)e;
431 }
432
433 throw new com.liferay.portal.kernel.exception.SystemException(e);
434 }
435
436 return (java.util.List<com.liferay.portal.model.Layout>)returnObj;
437 }
438 catch (com.liferay.portal.kernel.exception.SystemException se) {
439 _log.error(se, se);
440
441 throw se;
442 }
443 }
444
445 public static long getDefaultPlid(HttpPrincipal httpPrincipal,
446 long groupId, long scopeGroupId, boolean privateLayout,
447 java.lang.String portletId)
448 throws com.liferay.portal.kernel.exception.PortalException,
449 com.liferay.portal.kernel.exception.SystemException {
450 try {
451 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
452 "getDefaultPlid", _getDefaultPlidParameterTypes10);
453
454 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
455 scopeGroupId, privateLayout, portletId);
456
457 Object returnObj = null;
458
459 try {
460 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
461 }
462 catch (Exception e) {
463 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
464 throw (com.liferay.portal.kernel.exception.PortalException)e;
465 }
466
467 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
468 throw (com.liferay.portal.kernel.exception.SystemException)e;
469 }
470
471 throw new com.liferay.portal.kernel.exception.SystemException(e);
472 }
473
474 return ((Long)returnObj).longValue();
475 }
476 catch (com.liferay.portal.kernel.exception.SystemException se) {
477 _log.error(se, se);
478
479 throw se;
480 }
481 }
482
483 public static long getDefaultPlid(HttpPrincipal httpPrincipal,
484 long groupId, long scopeGroupId, java.lang.String portletId)
485 throws com.liferay.portal.kernel.exception.PortalException,
486 com.liferay.portal.kernel.exception.SystemException {
487 try {
488 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
489 "getDefaultPlid", _getDefaultPlidParameterTypes11);
490
491 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
492 scopeGroupId, portletId);
493
494 Object returnObj = null;
495
496 try {
497 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
498 }
499 catch (Exception e) {
500 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
501 throw (com.liferay.portal.kernel.exception.PortalException)e;
502 }
503
504 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
505 throw (com.liferay.portal.kernel.exception.SystemException)e;
506 }
507
508 throw new com.liferay.portal.kernel.exception.SystemException(e);
509 }
510
511 return ((Long)returnObj).longValue();
512 }
513 catch (com.liferay.portal.kernel.exception.SystemException se) {
514 _log.error(se, se);
515
516 throw se;
517 }
518 }
519
520 public static com.liferay.portal.model.Layout getLayoutByUuidAndGroupId(
521 HttpPrincipal httpPrincipal, java.lang.String uuid, long groupId,
522 boolean privateLayout)
523 throws com.liferay.portal.kernel.exception.PortalException,
524 com.liferay.portal.kernel.exception.SystemException {
525 try {
526 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
527 "getLayoutByUuidAndGroupId",
528 _getLayoutByUuidAndGroupIdParameterTypes12);
529
530 MethodHandler methodHandler = new MethodHandler(methodKey, uuid,
531 groupId, privateLayout);
532
533 Object returnObj = null;
534
535 try {
536 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
537 }
538 catch (Exception e) {
539 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
540 throw (com.liferay.portal.kernel.exception.PortalException)e;
541 }
542
543 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
544 throw (com.liferay.portal.kernel.exception.SystemException)e;
545 }
546
547 throw new com.liferay.portal.kernel.exception.SystemException(e);
548 }
549
550 return (com.liferay.portal.model.Layout)returnObj;
551 }
552 catch (com.liferay.portal.kernel.exception.SystemException se) {
553 _log.error(se, se);
554
555 throw se;
556 }
557 }
558
559 public static java.lang.String getLayoutName(HttpPrincipal httpPrincipal,
560 long groupId, boolean privateLayout, long layoutId,
561 java.lang.String languageId)
562 throws com.liferay.portal.kernel.exception.PortalException,
563 com.liferay.portal.kernel.exception.SystemException {
564 try {
565 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
566 "getLayoutName", _getLayoutNameParameterTypes13);
567
568 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
569 privateLayout, layoutId, languageId);
570
571 Object returnObj = null;
572
573 try {
574 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
575 }
576 catch (Exception e) {
577 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
578 throw (com.liferay.portal.kernel.exception.PortalException)e;
579 }
580
581 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
582 throw (com.liferay.portal.kernel.exception.SystemException)e;
583 }
584
585 throw new com.liferay.portal.kernel.exception.SystemException(e);
586 }
587
588 return (java.lang.String)returnObj;
589 }
590 catch (com.liferay.portal.kernel.exception.SystemException se) {
591 _log.error(se, se);
592
593 throw se;
594 }
595 }
596
597 public static com.liferay.portal.model.LayoutReference[] getLayoutReferences(
598 HttpPrincipal httpPrincipal, long companyId,
599 java.lang.String portletId, java.lang.String preferencesKey,
600 java.lang.String preferencesValue)
601 throws com.liferay.portal.kernel.exception.SystemException {
602 try {
603 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
604 "getLayoutReferences", _getLayoutReferencesParameterTypes14);
605
606 MethodHandler methodHandler = new MethodHandler(methodKey,
607 companyId, portletId, preferencesKey, preferencesValue);
608
609 Object returnObj = null;
610
611 try {
612 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
613 }
614 catch (Exception e) {
615 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
616 throw (com.liferay.portal.kernel.exception.SystemException)e;
617 }
618
619 throw new com.liferay.portal.kernel.exception.SystemException(e);
620 }
621
622 return (com.liferay.portal.model.LayoutReference[])returnObj;
623 }
624 catch (com.liferay.portal.kernel.exception.SystemException se) {
625 _log.error(se, se);
626
627 throw se;
628 }
629 }
630
631 public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
632 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout)
633 throws com.liferay.portal.kernel.exception.SystemException {
634 try {
635 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
636 "getLayouts", _getLayoutsParameterTypes15);
637
638 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
639 privateLayout);
640
641 Object returnObj = null;
642
643 try {
644 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
645 }
646 catch (Exception e) {
647 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
648 throw (com.liferay.portal.kernel.exception.SystemException)e;
649 }
650
651 throw new com.liferay.portal.kernel.exception.SystemException(e);
652 }
653
654 return (java.util.List<com.liferay.portal.model.Layout>)returnObj;
655 }
656 catch (com.liferay.portal.kernel.exception.SystemException se) {
657 _log.error(se, se);
658
659 throw se;
660 }
661 }
662
663 public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
664 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
665 long parentLayoutId)
666 throws com.liferay.portal.kernel.exception.SystemException {
667 try {
668 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
669 "getLayouts", _getLayoutsParameterTypes16);
670
671 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
672 privateLayout, parentLayoutId);
673
674 Object returnObj = null;
675
676 try {
677 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
678 }
679 catch (Exception e) {
680 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
681 throw (com.liferay.portal.kernel.exception.SystemException)e;
682 }
683
684 throw new com.liferay.portal.kernel.exception.SystemException(e);
685 }
686
687 return (java.util.List<com.liferay.portal.model.Layout>)returnObj;
688 }
689 catch (com.liferay.portal.kernel.exception.SystemException se) {
690 _log.error(se, se);
691
692 throw se;
693 }
694 }
695
696 public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
697 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
698 long parentLayoutId, boolean incomplete, int start, int end)
699 throws com.liferay.portal.kernel.exception.PortalException,
700 com.liferay.portal.kernel.exception.SystemException {
701 try {
702 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
703 "getLayouts", _getLayoutsParameterTypes17);
704
705 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
706 privateLayout, parentLayoutId, incomplete, start, end);
707
708 Object returnObj = null;
709
710 try {
711 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
712 }
713 catch (Exception e) {
714 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
715 throw (com.liferay.portal.kernel.exception.PortalException)e;
716 }
717
718 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
719 throw (com.liferay.portal.kernel.exception.SystemException)e;
720 }
721
722 throw new com.liferay.portal.kernel.exception.SystemException(e);
723 }
724
725 return (java.util.List<com.liferay.portal.model.Layout>)returnObj;
726 }
727 catch (com.liferay.portal.kernel.exception.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,
736 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
737 byte[] bytes)
738 throws com.liferay.portal.kernel.exception.PortalException,
739 com.liferay.portal.kernel.exception.SystemException {
740 try {
741 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
742 "importLayouts", _importLayoutsParameterTypes18);
743
744 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
745 privateLayout, parameterMap, bytes);
746
747 try {
748 TunnelUtil.invoke(httpPrincipal, methodHandler);
749 }
750 catch (Exception e) {
751 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
752 throw (com.liferay.portal.kernel.exception.PortalException)e;
753 }
754
755 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
756 throw (com.liferay.portal.kernel.exception.SystemException)e;
757 }
758
759 throw new com.liferay.portal.kernel.exception.SystemException(e);
760 }
761 }
762 catch (com.liferay.portal.kernel.exception.SystemException se) {
763 _log.error(se, se);
764
765 throw se;
766 }
767 }
768
769 public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
770 boolean privateLayout,
771 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
772 java.io.File file)
773 throws com.liferay.portal.kernel.exception.PortalException,
774 com.liferay.portal.kernel.exception.SystemException {
775 try {
776 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
777 "importLayouts", _importLayoutsParameterTypes19);
778
779 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
780 privateLayout, parameterMap, file);
781
782 try {
783 TunnelUtil.invoke(httpPrincipal, methodHandler);
784 }
785 catch (Exception e) {
786 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
787 throw (com.liferay.portal.kernel.exception.PortalException)e;
788 }
789
790 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
791 throw (com.liferay.portal.kernel.exception.SystemException)e;
792 }
793
794 throw new com.liferay.portal.kernel.exception.SystemException(e);
795 }
796 }
797 catch (com.liferay.portal.kernel.exception.SystemException se) {
798 _log.error(se, se);
799
800 throw se;
801 }
802 }
803
804 public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
805 boolean privateLayout,
806 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
807 java.io.InputStream is)
808 throws com.liferay.portal.kernel.exception.PortalException,
809 com.liferay.portal.kernel.exception.SystemException {
810 try {
811 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
812 "importLayouts", _importLayoutsParameterTypes20);
813
814 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
815 privateLayout, parameterMap, is);
816
817 try {
818 TunnelUtil.invoke(httpPrincipal, methodHandler);
819 }
820 catch (Exception e) {
821 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
822 throw (com.liferay.portal.kernel.exception.PortalException)e;
823 }
824
825 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
826 throw (com.liferay.portal.kernel.exception.SystemException)e;
827 }
828
829 throw new com.liferay.portal.kernel.exception.SystemException(e);
830 }
831 }
832 catch (com.liferay.portal.kernel.exception.SystemException se) {
833 _log.error(se, se);
834
835 throw se;
836 }
837 }
838
839 public static void importPortletInfo(HttpPrincipal httpPrincipal,
840 long plid, long groupId, java.lang.String portletId,
841 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
842 java.io.File file)
843 throws com.liferay.portal.kernel.exception.PortalException,
844 com.liferay.portal.kernel.exception.SystemException {
845 try {
846 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
847 "importPortletInfo", _importPortletInfoParameterTypes21);
848
849 MethodHandler methodHandler = new MethodHandler(methodKey, plid,
850 groupId, portletId, parameterMap, file);
851
852 try {
853 TunnelUtil.invoke(httpPrincipal, methodHandler);
854 }
855 catch (Exception e) {
856 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
857 throw (com.liferay.portal.kernel.exception.PortalException)e;
858 }
859
860 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
861 throw (com.liferay.portal.kernel.exception.SystemException)e;
862 }
863
864 throw new com.liferay.portal.kernel.exception.SystemException(e);
865 }
866 }
867 catch (com.liferay.portal.kernel.exception.SystemException se) {
868 _log.error(se, se);
869
870 throw se;
871 }
872 }
873
874 public static void importPortletInfo(HttpPrincipal httpPrincipal,
875 long plid, long groupId, java.lang.String portletId,
876 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
877 java.io.InputStream is)
878 throws com.liferay.portal.kernel.exception.PortalException,
879 com.liferay.portal.kernel.exception.SystemException {
880 try {
881 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
882 "importPortletInfo", _importPortletInfoParameterTypes22);
883
884 MethodHandler methodHandler = new MethodHandler(methodKey, plid,
885 groupId, portletId, parameterMap, is);
886
887 try {
888 TunnelUtil.invoke(httpPrincipal, methodHandler);
889 }
890 catch (Exception e) {
891 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
892 throw (com.liferay.portal.kernel.exception.PortalException)e;
893 }
894
895 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
896 throw (com.liferay.portal.kernel.exception.SystemException)e;
897 }
898
899 throw new com.liferay.portal.kernel.exception.SystemException(e);
900 }
901 }
902 catch (com.liferay.portal.kernel.exception.SystemException se) {
903 _log.error(se, se);
904
905 throw se;
906 }
907 }
908
909 public static void schedulePublishToLive(HttpPrincipal httpPrincipal,
910 long sourceGroupId, long targetGroupId, boolean privateLayout,
911 java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
912 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
913 java.lang.String scope, java.util.Date startDate,
914 java.util.Date endDate, java.lang.String groupName,
915 java.lang.String cronText, java.util.Date schedulerStartDate,
916 java.util.Date schedulerEndDate, java.lang.String description)
917 throws com.liferay.portal.kernel.exception.PortalException,
918 com.liferay.portal.kernel.exception.SystemException {
919 try {
920 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
921 "schedulePublishToLive",
922 _schedulePublishToLiveParameterTypes23);
923
924 MethodHandler methodHandler = new MethodHandler(methodKey,
925 sourceGroupId, targetGroupId, privateLayout, layoutIdMap,
926 parameterMap, scope, startDate, endDate, groupName,
927 cronText, schedulerStartDate, schedulerEndDate, description);
928
929 try {
930 TunnelUtil.invoke(httpPrincipal, methodHandler);
931 }
932 catch (Exception e) {
933 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
934 throw (com.liferay.portal.kernel.exception.PortalException)e;
935 }
936
937 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
938 throw (com.liferay.portal.kernel.exception.SystemException)e;
939 }
940
941 throw new com.liferay.portal.kernel.exception.SystemException(e);
942 }
943 }
944 catch (com.liferay.portal.kernel.exception.SystemException se) {
945 _log.error(se, se);
946
947 throw se;
948 }
949 }
950
951 public static void schedulePublishToRemote(HttpPrincipal httpPrincipal,
952 long sourceGroupId, boolean privateLayout,
953 java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
954 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
955 java.lang.String remoteAddress, int remotePort,
956 java.lang.String remotePathContext, boolean secureConnection,
957 long remoteGroupId, boolean remotePrivateLayout,
958 java.util.Date startDate, java.util.Date endDate,
959 java.lang.String groupName, java.lang.String cronText,
960 java.util.Date schedulerStartDate, java.util.Date schedulerEndDate,
961 java.lang.String description)
962 throws com.liferay.portal.kernel.exception.PortalException,
963 com.liferay.portal.kernel.exception.SystemException {
964 try {
965 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
966 "schedulePublishToRemote",
967 _schedulePublishToRemoteParameterTypes24);
968
969 MethodHandler methodHandler = new MethodHandler(methodKey,
970 sourceGroupId, privateLayout, layoutIdMap, parameterMap,
971 remoteAddress, remotePort, remotePathContext,
972 secureConnection, remoteGroupId, remotePrivateLayout,
973 startDate, endDate, groupName, cronText,
974 schedulerStartDate, schedulerEndDate, description);
975
976 try {
977 TunnelUtil.invoke(httpPrincipal, methodHandler);
978 }
979 catch (Exception e) {
980 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
981 throw (com.liferay.portal.kernel.exception.PortalException)e;
982 }
983
984 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
985 throw (com.liferay.portal.kernel.exception.SystemException)e;
986 }
987
988 throw new com.liferay.portal.kernel.exception.SystemException(e);
989 }
990 }
991 catch (com.liferay.portal.kernel.exception.SystemException se) {
992 _log.error(se, se);
993
994 throw se;
995 }
996 }
997
998 public static void setLayouts(HttpPrincipal httpPrincipal, long groupId,
999 boolean privateLayout, long parentLayoutId, long[] layoutIds,
1000 com.liferay.portal.service.ServiceContext serviceContext)
1001 throws com.liferay.portal.kernel.exception.PortalException,
1002 com.liferay.portal.kernel.exception.SystemException {
1003 try {
1004 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1005 "setLayouts", _setLayoutsParameterTypes25);
1006
1007 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1008 privateLayout, parentLayoutId, layoutIds, serviceContext);
1009
1010 try {
1011 TunnelUtil.invoke(httpPrincipal, methodHandler);
1012 }
1013 catch (Exception e) {
1014 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1015 throw (com.liferay.portal.kernel.exception.PortalException)e;
1016 }
1017
1018 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1019 throw (com.liferay.portal.kernel.exception.SystemException)e;
1020 }
1021
1022 throw new com.liferay.portal.kernel.exception.SystemException(e);
1023 }
1024 }
1025 catch (com.liferay.portal.kernel.exception.SystemException se) {
1026 _log.error(se, se);
1027
1028 throw se;
1029 }
1030 }
1031
1032 public static void unschedulePublishToLive(HttpPrincipal httpPrincipal,
1033 long groupId, java.lang.String jobName, java.lang.String groupName)
1034 throws com.liferay.portal.kernel.exception.PortalException,
1035 com.liferay.portal.kernel.exception.SystemException {
1036 try {
1037 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1038 "unschedulePublishToLive",
1039 _unschedulePublishToLiveParameterTypes26);
1040
1041 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1042 jobName, groupName);
1043
1044 try {
1045 TunnelUtil.invoke(httpPrincipal, methodHandler);
1046 }
1047 catch (Exception e) {
1048 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1049 throw (com.liferay.portal.kernel.exception.PortalException)e;
1050 }
1051
1052 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1053 throw (com.liferay.portal.kernel.exception.SystemException)e;
1054 }
1055
1056 throw new com.liferay.portal.kernel.exception.SystemException(e);
1057 }
1058 }
1059 catch (com.liferay.portal.kernel.exception.SystemException se) {
1060 _log.error(se, se);
1061
1062 throw se;
1063 }
1064 }
1065
1066 public static void unschedulePublishToRemote(HttpPrincipal httpPrincipal,
1067 long groupId, java.lang.String jobName, java.lang.String groupName)
1068 throws com.liferay.portal.kernel.exception.PortalException,
1069 com.liferay.portal.kernel.exception.SystemException {
1070 try {
1071 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1072 "unschedulePublishToRemote",
1073 _unschedulePublishToRemoteParameterTypes27);
1074
1075 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1076 jobName, groupName);
1077
1078 try {
1079 TunnelUtil.invoke(httpPrincipal, methodHandler);
1080 }
1081 catch (Exception e) {
1082 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1083 throw (com.liferay.portal.kernel.exception.PortalException)e;
1084 }
1085
1086 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1087 throw (com.liferay.portal.kernel.exception.SystemException)e;
1088 }
1089
1090 throw new com.liferay.portal.kernel.exception.SystemException(e);
1091 }
1092 }
1093 catch (com.liferay.portal.kernel.exception.SystemException se) {
1094 _log.error(se, se);
1095
1096 throw se;
1097 }
1098 }
1099
1100 public static com.liferay.portal.model.Layout updateLayout(
1101 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1102 long layoutId, long parentLayoutId,
1103 java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
1104 java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
1105 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1106 java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
1107 java.util.Map<java.util.Locale, java.lang.String> robotsMap,
1108 java.lang.String type, boolean hidden, java.lang.String friendlyURL,
1109 java.lang.Boolean iconImage, byte[] iconBytes,
1110 com.liferay.portal.service.ServiceContext serviceContext)
1111 throws com.liferay.portal.kernel.exception.PortalException,
1112 com.liferay.portal.kernel.exception.SystemException {
1113 try {
1114 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1115 "updateLayout", _updateLayoutParameterTypes28);
1116
1117 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1118 privateLayout, layoutId, parentLayoutId, localeNamesMap,
1119 localeTitlesMap, descriptionMap, keywordsMap, robotsMap,
1120 type, hidden, friendlyURL, iconImage, iconBytes,
1121 serviceContext);
1122
1123 Object returnObj = null;
1124
1125 try {
1126 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1127 }
1128 catch (Exception e) {
1129 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1130 throw (com.liferay.portal.kernel.exception.PortalException)e;
1131 }
1132
1133 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1134 throw (com.liferay.portal.kernel.exception.SystemException)e;
1135 }
1136
1137 throw new com.liferay.portal.kernel.exception.SystemException(e);
1138 }
1139
1140 return (com.liferay.portal.model.Layout)returnObj;
1141 }
1142 catch (com.liferay.portal.kernel.exception.SystemException se) {
1143 _log.error(se, se);
1144
1145 throw se;
1146 }
1147 }
1148
1149 public static com.liferay.portal.model.Layout updateLayout(
1150 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1151 long layoutId, java.lang.String typeSettings)
1152 throws com.liferay.portal.kernel.exception.PortalException,
1153 com.liferay.portal.kernel.exception.SystemException {
1154 try {
1155 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1156 "updateLayout", _updateLayoutParameterTypes29);
1157
1158 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1159 privateLayout, layoutId, typeSettings);
1160
1161 Object returnObj = null;
1162
1163 try {
1164 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1165 }
1166 catch (Exception e) {
1167 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1168 throw (com.liferay.portal.kernel.exception.PortalException)e;
1169 }
1170
1171 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1172 throw (com.liferay.portal.kernel.exception.SystemException)e;
1173 }
1174
1175 throw new com.liferay.portal.kernel.exception.SystemException(e);
1176 }
1177
1178 return (com.liferay.portal.model.Layout)returnObj;
1179 }
1180 catch (com.liferay.portal.kernel.exception.SystemException se) {
1181 _log.error(se, se);
1182
1183 throw se;
1184 }
1185 }
1186
1187 public static com.liferay.portal.model.Layout updateLookAndFeel(
1188 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1189 long layoutId, java.lang.String themeId,
1190 java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
1191 throws com.liferay.portal.kernel.exception.PortalException,
1192 com.liferay.portal.kernel.exception.SystemException {
1193 try {
1194 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1195 "updateLookAndFeel", _updateLookAndFeelParameterTypes30);
1196
1197 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1198 privateLayout, layoutId, themeId, colorSchemeId, css,
1199 wapTheme);
1200
1201 Object returnObj = null;
1202
1203 try {
1204 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1205 }
1206 catch (Exception e) {
1207 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1208 throw (com.liferay.portal.kernel.exception.PortalException)e;
1209 }
1210
1211 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1212 throw (com.liferay.portal.kernel.exception.SystemException)e;
1213 }
1214
1215 throw new com.liferay.portal.kernel.exception.SystemException(e);
1216 }
1217
1218 return (com.liferay.portal.model.Layout)returnObj;
1219 }
1220 catch (com.liferay.portal.kernel.exception.SystemException se) {
1221 _log.error(se, se);
1222
1223 throw se;
1224 }
1225 }
1226
1227 public static com.liferay.portal.model.Layout updateName(
1228 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1229 long layoutId, java.lang.String name, java.lang.String languageId)
1230 throws com.liferay.portal.kernel.exception.PortalException,
1231 com.liferay.portal.kernel.exception.SystemException {
1232 try {
1233 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1234 "updateName", _updateNameParameterTypes31);
1235
1236 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1237 privateLayout, layoutId, name, languageId);
1238
1239 Object returnObj = null;
1240
1241 try {
1242 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1243 }
1244 catch (Exception e) {
1245 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1246 throw (com.liferay.portal.kernel.exception.PortalException)e;
1247 }
1248
1249 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1250 throw (com.liferay.portal.kernel.exception.SystemException)e;
1251 }
1252
1253 throw new com.liferay.portal.kernel.exception.SystemException(e);
1254 }
1255
1256 return (com.liferay.portal.model.Layout)returnObj;
1257 }
1258 catch (com.liferay.portal.kernel.exception.SystemException se) {
1259 _log.error(se, se);
1260
1261 throw se;
1262 }
1263 }
1264
1265 public static com.liferay.portal.model.Layout updateName(
1266 HttpPrincipal httpPrincipal, long plid, java.lang.String name,
1267 java.lang.String languageId)
1268 throws com.liferay.portal.kernel.exception.PortalException,
1269 com.liferay.portal.kernel.exception.SystemException {
1270 try {
1271 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1272 "updateName", _updateNameParameterTypes32);
1273
1274 MethodHandler methodHandler = new MethodHandler(methodKey, plid,
1275 name, languageId);
1276
1277 Object returnObj = null;
1278
1279 try {
1280 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1281 }
1282 catch (Exception e) {
1283 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1284 throw (com.liferay.portal.kernel.exception.PortalException)e;
1285 }
1286
1287 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1288 throw (com.liferay.portal.kernel.exception.SystemException)e;
1289 }
1290
1291 throw new com.liferay.portal.kernel.exception.SystemException(e);
1292 }
1293
1294 return (com.liferay.portal.model.Layout)returnObj;
1295 }
1296 catch (com.liferay.portal.kernel.exception.SystemException se) {
1297 _log.error(se, se);
1298
1299 throw se;
1300 }
1301 }
1302
1303 public static com.liferay.portal.model.Layout updateParentLayoutId(
1304 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1305 long layoutId, long parentLayoutId)
1306 throws com.liferay.portal.kernel.exception.PortalException,
1307 com.liferay.portal.kernel.exception.SystemException {
1308 try {
1309 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1310 "updateParentLayoutId",
1311 _updateParentLayoutIdParameterTypes33);
1312
1313 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1314 privateLayout, layoutId, parentLayoutId);
1315
1316 Object returnObj = null;
1317
1318 try {
1319 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1320 }
1321 catch (Exception e) {
1322 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1323 throw (com.liferay.portal.kernel.exception.PortalException)e;
1324 }
1325
1326 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1327 throw (com.liferay.portal.kernel.exception.SystemException)e;
1328 }
1329
1330 throw new com.liferay.portal.kernel.exception.SystemException(e);
1331 }
1332
1333 return (com.liferay.portal.model.Layout)returnObj;
1334 }
1335 catch (com.liferay.portal.kernel.exception.SystemException se) {
1336 _log.error(se, se);
1337
1338 throw se;
1339 }
1340 }
1341
1342 public static com.liferay.portal.model.Layout updateParentLayoutId(
1343 HttpPrincipal httpPrincipal, long plid, long parentPlid)
1344 throws com.liferay.portal.kernel.exception.PortalException,
1345 com.liferay.portal.kernel.exception.SystemException {
1346 try {
1347 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1348 "updateParentLayoutId",
1349 _updateParentLayoutIdParameterTypes34);
1350
1351 MethodHandler methodHandler = new MethodHandler(methodKey, plid,
1352 parentPlid);
1353
1354 Object returnObj = null;
1355
1356 try {
1357 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1358 }
1359 catch (Exception e) {
1360 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1361 throw (com.liferay.portal.kernel.exception.PortalException)e;
1362 }
1363
1364 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1365 throw (com.liferay.portal.kernel.exception.SystemException)e;
1366 }
1367
1368 throw new com.liferay.portal.kernel.exception.SystemException(e);
1369 }
1370
1371 return (com.liferay.portal.model.Layout)returnObj;
1372 }
1373 catch (com.liferay.portal.kernel.exception.SystemException se) {
1374 _log.error(se, se);
1375
1376 throw se;
1377 }
1378 }
1379
1380 public static com.liferay.portal.model.Layout updatePriority(
1381 HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1382 long layoutId, int priority)
1383 throws com.liferay.portal.kernel.exception.PortalException,
1384 com.liferay.portal.kernel.exception.SystemException {
1385 try {
1386 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1387 "updatePriority", _updatePriorityParameterTypes35);
1388
1389 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1390 privateLayout, layoutId, priority);
1391
1392 Object returnObj = null;
1393
1394 try {
1395 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1396 }
1397 catch (Exception e) {
1398 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1399 throw (com.liferay.portal.kernel.exception.PortalException)e;
1400 }
1401
1402 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1403 throw (com.liferay.portal.kernel.exception.SystemException)e;
1404 }
1405
1406 throw new com.liferay.portal.kernel.exception.SystemException(e);
1407 }
1408
1409 return (com.liferay.portal.model.Layout)returnObj;
1410 }
1411 catch (com.liferay.portal.kernel.exception.SystemException se) {
1412 _log.error(se, se);
1413
1414 throw se;
1415 }
1416 }
1417
1418 public static com.liferay.portal.model.Layout updatePriority(
1419 HttpPrincipal httpPrincipal, long plid, int priority)
1420 throws com.liferay.portal.kernel.exception.PortalException,
1421 com.liferay.portal.kernel.exception.SystemException {
1422 try {
1423 MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1424 "updatePriority", _updatePriorityParameterTypes36);
1425
1426 MethodHandler methodHandler = new MethodHandler(methodKey, plid,
1427 priority);
1428
1429 Object returnObj = null;
1430
1431 try {
1432 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1433 }
1434 catch (Exception e) {
1435 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1436 throw (com.liferay.portal.kernel.exception.PortalException)e;
1437 }
1438
1439 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1440 throw (com.liferay.portal.kernel.exception.SystemException)e;
1441 }
1442
1443 throw new com.liferay.portal.kernel.exception.SystemException(e);
1444 }
1445
1446 return (com.liferay.portal.model.Layout)returnObj;
1447 }
1448 catch (com.liferay.portal.kernel.exception.SystemException se) {
1449 _log.error(se, se);
1450
1451 throw se;
1452 }
1453 }
1454
1455 private static Log _log = LogFactoryUtil.getLog(LayoutServiceHttp.class);
1456 private static final Class<?>[] _addLayoutParameterTypes0 = new Class[] {
1457 long.class, boolean.class, long.class, java.util.Map.class,
1458 java.util.Map.class, java.util.Map.class, java.util.Map.class,
1459 java.util.Map.class, java.lang.String.class, boolean.class,
1460 java.lang.String.class,
1461 com.liferay.portal.service.ServiceContext.class
1462 };
1463 private static final Class<?>[] _addLayoutParameterTypes1 = new Class[] {
1464 long.class, boolean.class, long.class, java.lang.String.class,
1465 java.lang.String.class, java.lang.String.class,
1466 java.lang.String.class, boolean.class, java.lang.String.class,
1467 com.liferay.portal.service.ServiceContext.class
1468 };
1469 private static final Class<?>[] _deleteLayoutParameterTypes2 = new Class[] {
1470 long.class, boolean.class, long.class,
1471 com.liferay.portal.service.ServiceContext.class
1472 };
1473 private static final Class<?>[] _deleteLayoutParameterTypes3 = new Class[] {
1474 long.class, com.liferay.portal.service.ServiceContext.class
1475 };
1476 private static final Class<?>[] _exportLayoutsParameterTypes4 = new Class[] {
1477 long.class, boolean.class, long[].class, java.util.Map.class,
1478 java.util.Date.class, java.util.Date.class
1479 };
1480 private static final Class<?>[] _exportLayoutsParameterTypes5 = new Class[] {
1481 long.class, boolean.class, java.util.Map.class, java.util.Date.class,
1482 java.util.Date.class
1483 };
1484 private static final Class<?>[] _exportLayoutsAsFileParameterTypes6 = new Class[] {
1485 long.class, boolean.class, long[].class, java.util.Map.class,
1486 java.util.Date.class, java.util.Date.class
1487 };
1488 private static final Class<?>[] _exportPortletInfoParameterTypes7 = new Class[] {
1489 long.class, long.class, java.lang.String.class, java.util.Map.class,
1490 java.util.Date.class, java.util.Date.class
1491 };
1492 private static final Class<?>[] _exportPortletInfoAsFileParameterTypes8 = new Class[] {
1493 long.class, long.class, java.lang.String.class, java.util.Map.class,
1494 java.util.Date.class, java.util.Date.class
1495 };
1496 private static final Class<?>[] _getAncestorLayoutsParameterTypes9 = new Class[] {
1497 long.class
1498 };
1499 private static final Class<?>[] _getDefaultPlidParameterTypes10 = new Class[] {
1500 long.class, long.class, boolean.class, java.lang.String.class
1501 };
1502 private static final Class<?>[] _getDefaultPlidParameterTypes11 = new Class[] {
1503 long.class, long.class, java.lang.String.class
1504 };
1505 private static final Class<?>[] _getLayoutByUuidAndGroupIdParameterTypes12 = new Class[] {
1506 java.lang.String.class, long.class, boolean.class
1507 };
1508 private static final Class<?>[] _getLayoutNameParameterTypes13 = new Class[] {
1509 long.class, boolean.class, long.class, java.lang.String.class
1510 };
1511 private static final Class<?>[] _getLayoutReferencesParameterTypes14 = new Class[] {
1512 long.class, java.lang.String.class, java.lang.String.class,
1513 java.lang.String.class
1514 };
1515 private static final Class<?>[] _getLayoutsParameterTypes15 = new Class[] {
1516 long.class, boolean.class
1517 };
1518 private static final Class<?>[] _getLayoutsParameterTypes16 = new Class[] {
1519 long.class, boolean.class, long.class
1520 };
1521 private static final Class<?>[] _getLayoutsParameterTypes17 = new Class[] {
1522 long.class, boolean.class, long.class, boolean.class, int.class,
1523 int.class
1524 };
1525 private static final Class<?>[] _importLayoutsParameterTypes18 = new Class[] {
1526 long.class, boolean.class, java.util.Map.class, byte[].class
1527 };
1528 private static final Class<?>[] _importLayoutsParameterTypes19 = new Class[] {
1529 long.class, boolean.class, java.util.Map.class, java.io.File.class
1530 };
1531 private static final Class<?>[] _importLayoutsParameterTypes20 = new Class[] {
1532 long.class, boolean.class, java.util.Map.class,
1533 java.io.InputStream.class
1534 };
1535 private static final Class<?>[] _importPortletInfoParameterTypes21 = new Class[] {
1536 long.class, long.class, java.lang.String.class, java.util.Map.class,
1537 java.io.File.class
1538 };
1539 private static final Class<?>[] _importPortletInfoParameterTypes22 = new Class[] {
1540 long.class, long.class, java.lang.String.class, java.util.Map.class,
1541 java.io.InputStream.class
1542 };
1543 private static final Class<?>[] _schedulePublishToLiveParameterTypes23 = new Class[] {
1544 long.class, long.class, boolean.class, java.util.Map.class,
1545 java.util.Map.class, java.lang.String.class, java.util.Date.class,
1546 java.util.Date.class, java.lang.String.class, java.lang.String.class,
1547 java.util.Date.class, java.util.Date.class, java.lang.String.class
1548 };
1549 private static final Class<?>[] _schedulePublishToRemoteParameterTypes24 = new Class[] {
1550 long.class, boolean.class, java.util.Map.class, java.util.Map.class,
1551 java.lang.String.class, int.class, java.lang.String.class,
1552 boolean.class, long.class, boolean.class, java.util.Date.class,
1553 java.util.Date.class, java.lang.String.class, java.lang.String.class,
1554 java.util.Date.class, java.util.Date.class, java.lang.String.class
1555 };
1556 private static final Class<?>[] _setLayoutsParameterTypes25 = new Class[] {
1557 long.class, boolean.class, long.class, long[].class,
1558 com.liferay.portal.service.ServiceContext.class
1559 };
1560 private static final Class<?>[] _unschedulePublishToLiveParameterTypes26 = new Class[] {
1561 long.class, java.lang.String.class, java.lang.String.class
1562 };
1563 private static final Class<?>[] _unschedulePublishToRemoteParameterTypes27 = new Class[] {
1564 long.class, java.lang.String.class, java.lang.String.class
1565 };
1566 private static final Class<?>[] _updateLayoutParameterTypes28 = new Class[] {
1567 long.class, boolean.class, long.class, long.class,
1568 java.util.Map.class, java.util.Map.class, java.util.Map.class,
1569 java.util.Map.class, java.util.Map.class, java.lang.String.class,
1570 boolean.class, java.lang.String.class, java.lang.Boolean.class,
1571 byte[].class, com.liferay.portal.service.ServiceContext.class
1572 };
1573 private static final Class<?>[] _updateLayoutParameterTypes29 = new Class[] {
1574 long.class, boolean.class, long.class, java.lang.String.class
1575 };
1576 private static final Class<?>[] _updateLookAndFeelParameterTypes30 = new Class[] {
1577 long.class, boolean.class, long.class, java.lang.String.class,
1578 java.lang.String.class, java.lang.String.class, boolean.class
1579 };
1580 private static final Class<?>[] _updateNameParameterTypes31 = new Class[] {
1581 long.class, boolean.class, long.class, java.lang.String.class,
1582 java.lang.String.class
1583 };
1584 private static final Class<?>[] _updateNameParameterTypes32 = new Class[] {
1585 long.class, java.lang.String.class, java.lang.String.class
1586 };
1587 private static final Class<?>[] _updateParentLayoutIdParameterTypes33 = new Class[] {
1588 long.class, boolean.class, long.class, long.class
1589 };
1590 private static final Class<?>[] _updateParentLayoutIdParameterTypes34 = new Class[] {
1591 long.class, long.class
1592 };
1593 private static final Class<?>[] _updatePriorityParameterTypes35 = new Class[] {
1594 long.class, boolean.class, long.class, int.class
1595 };
1596 private static final Class<?>[] _updatePriorityParameterTypes36 = new Class[] {
1597 long.class, int.class
1598 };
1599 }