001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
025     * <p>
026     * This class provides a HTTP utility for the
027     * {@link com.liferay.portal.service.LayoutServiceUtil} service utility. The
028     * static methods of this class calls the same methods of the service utility.
029     * However, the signatures are different because it requires an additional
030     * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
031     * </p>
032     *
033     * <p>
034     * The benefits of using the HTTP utility is that it is fast and allows for
035     * tunneling without the cost of serializing to text. The drawback is that it
036     * only works with Java.
037     * </p>
038     *
039     * <p>
040     * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
041     * configure security.
042     * </p>
043     *
044     * <p>
045     * The HTTP utility is only generated for remote services.
046     * </p>
047     *
048     * @author    Brian Wing Shun Chan
049     * @see       LayoutServiceSoap
050     * @see       com.liferay.portal.security.auth.HttpPrincipal
051     * @see       com.liferay.portal.service.LayoutServiceUtil
052     * @generated
053     */
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 long getDefaultPlid(HttpPrincipal httpPrincipal,
410                    long groupId, long scopeGroupId, boolean privateLayout,
411                    java.lang.String portletId)
412                    throws com.liferay.portal.kernel.exception.PortalException,
413                            com.liferay.portal.kernel.exception.SystemException {
414                    try {
415                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
416                                            "getDefaultPlid", _getDefaultPlidParameterTypes9);
417    
418                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
419                                            scopeGroupId, privateLayout, portletId);
420    
421                            Object returnObj = null;
422    
423                            try {
424                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
425                            }
426                            catch (Exception e) {
427                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
428                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
429                                    }
430    
431                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
432                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
433                                    }
434    
435                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
436                            }
437    
438                            return ((Long)returnObj).longValue();
439                    }
440                    catch (com.liferay.portal.kernel.exception.SystemException se) {
441                            _log.error(se, se);
442    
443                            throw se;
444                    }
445            }
446    
447            public static java.lang.String getLayoutName(HttpPrincipal httpPrincipal,
448                    long groupId, boolean privateLayout, long layoutId,
449                    java.lang.String languageId)
450                    throws com.liferay.portal.kernel.exception.PortalException,
451                            com.liferay.portal.kernel.exception.SystemException {
452                    try {
453                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
454                                            "getLayoutName", _getLayoutNameParameterTypes10);
455    
456                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
457                                            privateLayout, layoutId, languageId);
458    
459                            Object returnObj = null;
460    
461                            try {
462                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
463                            }
464                            catch (Exception e) {
465                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
466                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
467                                    }
468    
469                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
470                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
471                                    }
472    
473                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
474                            }
475    
476                            return (java.lang.String)returnObj;
477                    }
478                    catch (com.liferay.portal.kernel.exception.SystemException se) {
479                            _log.error(se, se);
480    
481                            throw se;
482                    }
483            }
484    
485            public static com.liferay.portal.model.LayoutReference[] getLayoutReferences(
486                    HttpPrincipal httpPrincipal, long companyId,
487                    java.lang.String portletId, java.lang.String preferencesKey,
488                    java.lang.String preferencesValue)
489                    throws com.liferay.portal.kernel.exception.SystemException {
490                    try {
491                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
492                                            "getLayoutReferences", _getLayoutReferencesParameterTypes11);
493    
494                            MethodHandler methodHandler = new MethodHandler(methodKey,
495                                            companyId, portletId, preferencesKey, preferencesValue);
496    
497                            Object returnObj = null;
498    
499                            try {
500                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
501                            }
502                            catch (Exception e) {
503                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
504                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
505                                    }
506    
507                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
508                            }
509    
510                            return (com.liferay.portal.model.LayoutReference[])returnObj;
511                    }
512                    catch (com.liferay.portal.kernel.exception.SystemException se) {
513                            _log.error(se, se);
514    
515                            throw se;
516                    }
517            }
518    
519            public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
520                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout)
521                    throws com.liferay.portal.kernel.exception.PortalException,
522                            com.liferay.portal.kernel.exception.SystemException {
523                    try {
524                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
525                                            "getLayouts", _getLayoutsParameterTypes12);
526    
527                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
528                                            privateLayout);
529    
530                            Object returnObj = null;
531    
532                            try {
533                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
534                            }
535                            catch (Exception e) {
536                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
537                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
538                                    }
539    
540                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
541                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
542                                    }
543    
544                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
545                            }
546    
547                            return (java.util.List<com.liferay.portal.model.Layout>)returnObj;
548                    }
549                    catch (com.liferay.portal.kernel.exception.SystemException se) {
550                            _log.error(se, se);
551    
552                            throw se;
553                    }
554            }
555    
556            public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
557                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
558                    long parentLayoutId)
559                    throws com.liferay.portal.kernel.exception.PortalException,
560                            com.liferay.portal.kernel.exception.SystemException {
561                    try {
562                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
563                                            "getLayouts", _getLayoutsParameterTypes13);
564    
565                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
566                                            privateLayout, parentLayoutId);
567    
568                            Object returnObj = null;
569    
570                            try {
571                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
572                            }
573                            catch (Exception e) {
574                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
575                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
576                                    }
577    
578                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
579                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
580                                    }
581    
582                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
583                            }
584    
585                            return (java.util.List<com.liferay.portal.model.Layout>)returnObj;
586                    }
587                    catch (com.liferay.portal.kernel.exception.SystemException se) {
588                            _log.error(se, se);
589    
590                            throw se;
591                    }
592            }
593    
594            public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
595                    boolean privateLayout,
596                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
597                    byte[] bytes)
598                    throws com.liferay.portal.kernel.exception.PortalException,
599                            com.liferay.portal.kernel.exception.SystemException {
600                    try {
601                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
602                                            "importLayouts", _importLayoutsParameterTypes14);
603    
604                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
605                                            privateLayout, parameterMap, bytes);
606    
607                            try {
608                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
609                            }
610                            catch (Exception e) {
611                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
612                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
613                                    }
614    
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                    catch (com.liferay.portal.kernel.exception.SystemException se) {
623                            _log.error(se, se);
624    
625                            throw se;
626                    }
627            }
628    
629            public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
630                    boolean privateLayout,
631                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
632                    java.io.File file)
633                    throws com.liferay.portal.kernel.exception.PortalException,
634                            com.liferay.portal.kernel.exception.SystemException {
635                    try {
636                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
637                                            "importLayouts", _importLayoutsParameterTypes15);
638    
639                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
640                                            privateLayout, parameterMap, file);
641    
642                            try {
643                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
644                            }
645                            catch (Exception e) {
646                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
647                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
648                                    }
649    
650                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
651                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
652                                    }
653    
654                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
655                            }
656                    }
657                    catch (com.liferay.portal.kernel.exception.SystemException se) {
658                            _log.error(se, se);
659    
660                            throw se;
661                    }
662            }
663    
664            public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
665                    boolean privateLayout,
666                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
667                    java.io.InputStream is)
668                    throws com.liferay.portal.kernel.exception.PortalException,
669                            com.liferay.portal.kernel.exception.SystemException {
670                    try {
671                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
672                                            "importLayouts", _importLayoutsParameterTypes16);
673    
674                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
675                                            privateLayout, parameterMap, is);
676    
677                            try {
678                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
679                            }
680                            catch (Exception e) {
681                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
682                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
683                                    }
684    
685                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
686                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
687                                    }
688    
689                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
690                            }
691                    }
692                    catch (com.liferay.portal.kernel.exception.SystemException se) {
693                            _log.error(se, se);
694    
695                            throw se;
696                    }
697            }
698    
699            public static void importPortletInfo(HttpPrincipal httpPrincipal,
700                    long plid, long groupId, java.lang.String portletId,
701                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
702                    java.io.File file)
703                    throws com.liferay.portal.kernel.exception.PortalException,
704                            com.liferay.portal.kernel.exception.SystemException {
705                    try {
706                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
707                                            "importPortletInfo", _importPortletInfoParameterTypes17);
708    
709                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
710                                            groupId, portletId, parameterMap, file);
711    
712                            try {
713                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
714                            }
715                            catch (Exception e) {
716                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
717                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
718                                    }
719    
720                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
721                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
722                                    }
723    
724                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
725                            }
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 importPortletInfo(HttpPrincipal httpPrincipal,
735                    long plid, long groupId, java.lang.String portletId,
736                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
737                    java.io.InputStream is)
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                                            "importPortletInfo", _importPortletInfoParameterTypes18);
743    
744                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
745                                            groupId, portletId, parameterMap, is);
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 schedulePublishToLive(HttpPrincipal httpPrincipal,
770                    long sourceGroupId, long targetGroupId, boolean privateLayout,
771                    java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
772                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
773                    java.lang.String scope, java.util.Date startDate,
774                    java.util.Date endDate, java.lang.String groupName,
775                    java.lang.String cronText, java.util.Date schedulerStartDate,
776                    java.util.Date schedulerEndDate, java.lang.String description)
777                    throws com.liferay.portal.kernel.exception.PortalException,
778                            com.liferay.portal.kernel.exception.SystemException {
779                    try {
780                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
781                                            "schedulePublishToLive",
782                                            _schedulePublishToLiveParameterTypes19);
783    
784                            MethodHandler methodHandler = new MethodHandler(methodKey,
785                                            sourceGroupId, targetGroupId, privateLayout, layoutIdMap,
786                                            parameterMap, scope, startDate, endDate, groupName,
787                                            cronText, schedulerStartDate, schedulerEndDate, description);
788    
789                            try {
790                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
791                            }
792                            catch (Exception e) {
793                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
794                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
795                                    }
796    
797                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
798                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
799                                    }
800    
801                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
802                            }
803                    }
804                    catch (com.liferay.portal.kernel.exception.SystemException se) {
805                            _log.error(se, se);
806    
807                            throw se;
808                    }
809            }
810    
811            public static void schedulePublishToRemote(HttpPrincipal httpPrincipal,
812                    long sourceGroupId, boolean privateLayout,
813                    java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
814                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
815                    java.lang.String remoteAddress, int remotePort,
816                    java.lang.String remotePathContext, boolean secureConnection,
817                    long remoteGroupId, boolean remotePrivateLayout,
818                    java.util.Date startDate, java.util.Date endDate,
819                    java.lang.String groupName, java.lang.String cronText,
820                    java.util.Date schedulerStartDate, java.util.Date schedulerEndDate,
821                    java.lang.String description)
822                    throws com.liferay.portal.kernel.exception.PortalException,
823                            com.liferay.portal.kernel.exception.SystemException {
824                    try {
825                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
826                                            "schedulePublishToRemote",
827                                            _schedulePublishToRemoteParameterTypes20);
828    
829                            MethodHandler methodHandler = new MethodHandler(methodKey,
830                                            sourceGroupId, privateLayout, layoutIdMap, parameterMap,
831                                            remoteAddress, remotePort, remotePathContext,
832                                            secureConnection, remoteGroupId, remotePrivateLayout,
833                                            startDate, endDate, groupName, cronText,
834                                            schedulerStartDate, schedulerEndDate, description);
835    
836                            try {
837                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
838                            }
839                            catch (Exception e) {
840                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
841                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
842                                    }
843    
844                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
845                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
846                                    }
847    
848                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
849                            }
850                    }
851                    catch (com.liferay.portal.kernel.exception.SystemException se) {
852                            _log.error(se, se);
853    
854                            throw se;
855                    }
856            }
857    
858            public static void setLayouts(HttpPrincipal httpPrincipal, long groupId,
859                    boolean privateLayout, long parentLayoutId, long[] layoutIds,
860                    com.liferay.portal.service.ServiceContext serviceContext)
861                    throws com.liferay.portal.kernel.exception.PortalException,
862                            com.liferay.portal.kernel.exception.SystemException {
863                    try {
864                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
865                                            "setLayouts", _setLayoutsParameterTypes21);
866    
867                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
868                                            privateLayout, parentLayoutId, layoutIds, serviceContext);
869    
870                            try {
871                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
872                            }
873                            catch (Exception e) {
874                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
875                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
876                                    }
877    
878                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
879                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
880                                    }
881    
882                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
883                            }
884                    }
885                    catch (com.liferay.portal.kernel.exception.SystemException se) {
886                            _log.error(se, se);
887    
888                            throw se;
889                    }
890            }
891    
892            public static void unschedulePublishToLive(HttpPrincipal httpPrincipal,
893                    long groupId, java.lang.String jobName, java.lang.String groupName)
894                    throws com.liferay.portal.kernel.exception.PortalException,
895                            com.liferay.portal.kernel.exception.SystemException {
896                    try {
897                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
898                                            "unschedulePublishToLive",
899                                            _unschedulePublishToLiveParameterTypes22);
900    
901                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
902                                            jobName, groupName);
903    
904                            try {
905                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
906                            }
907                            catch (Exception e) {
908                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
909                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
910                                    }
911    
912                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
913                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
914                                    }
915    
916                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
917                            }
918                    }
919                    catch (com.liferay.portal.kernel.exception.SystemException se) {
920                            _log.error(se, se);
921    
922                            throw se;
923                    }
924            }
925    
926            public static void unschedulePublishToRemote(HttpPrincipal httpPrincipal,
927                    long groupId, java.lang.String jobName, java.lang.String groupName)
928                    throws com.liferay.portal.kernel.exception.PortalException,
929                            com.liferay.portal.kernel.exception.SystemException {
930                    try {
931                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
932                                            "unschedulePublishToRemote",
933                                            _unschedulePublishToRemoteParameterTypes23);
934    
935                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
936                                            jobName, groupName);
937    
938                            try {
939                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
940                            }
941                            catch (Exception e) {
942                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
943                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
944                                    }
945    
946                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
947                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
948                                    }
949    
950                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
951                            }
952                    }
953                    catch (com.liferay.portal.kernel.exception.SystemException se) {
954                            _log.error(se, se);
955    
956                            throw se;
957                    }
958            }
959    
960            public static com.liferay.portal.model.Layout updateLayout(
961                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
962                    long layoutId, long parentLayoutId,
963                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
964                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
965                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
966                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
967                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
968                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
969                    java.lang.Boolean iconImage, byte[] iconBytes,
970                    com.liferay.portal.service.ServiceContext serviceContext)
971                    throws com.liferay.portal.kernel.exception.PortalException,
972                            com.liferay.portal.kernel.exception.SystemException {
973                    try {
974                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
975                                            "updateLayout", _updateLayoutParameterTypes24);
976    
977                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
978                                            privateLayout, layoutId, parentLayoutId, localeNamesMap,
979                                            localeTitlesMap, descriptionMap, keywordsMap, robotsMap,
980                                            type, hidden, friendlyURL, iconImage, iconBytes,
981                                            serviceContext);
982    
983                            Object returnObj = null;
984    
985                            try {
986                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
987                            }
988                            catch (Exception e) {
989                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
990                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
991                                    }
992    
993                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
994                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
995                                    }
996    
997                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
998                            }
999    
1000                            return (com.liferay.portal.model.Layout)returnObj;
1001                    }
1002                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1003                            _log.error(se, se);
1004    
1005                            throw se;
1006                    }
1007            }
1008    
1009            public static com.liferay.portal.model.Layout updateLayout(
1010                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1011                    long layoutId, java.lang.String typeSettings)
1012                    throws com.liferay.portal.kernel.exception.PortalException,
1013                            com.liferay.portal.kernel.exception.SystemException {
1014                    try {
1015                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1016                                            "updateLayout", _updateLayoutParameterTypes25);
1017    
1018                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1019                                            privateLayout, layoutId, typeSettings);
1020    
1021                            Object returnObj = null;
1022    
1023                            try {
1024                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1025                            }
1026                            catch (Exception e) {
1027                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1028                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1029                                    }
1030    
1031                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1032                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1033                                    }
1034    
1035                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1036                            }
1037    
1038                            return (com.liferay.portal.model.Layout)returnObj;
1039                    }
1040                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1041                            _log.error(se, se);
1042    
1043                            throw se;
1044                    }
1045            }
1046    
1047            public static com.liferay.portal.model.Layout updateLookAndFeel(
1048                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1049                    long layoutId, java.lang.String themeId,
1050                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
1051                    throws com.liferay.portal.kernel.exception.PortalException,
1052                            com.liferay.portal.kernel.exception.SystemException {
1053                    try {
1054                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1055                                            "updateLookAndFeel", _updateLookAndFeelParameterTypes26);
1056    
1057                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1058                                            privateLayout, layoutId, themeId, colorSchemeId, css,
1059                                            wapTheme);
1060    
1061                            Object returnObj = null;
1062    
1063                            try {
1064                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1065                            }
1066                            catch (Exception e) {
1067                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1068                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1069                                    }
1070    
1071                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1072                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1073                                    }
1074    
1075                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1076                            }
1077    
1078                            return (com.liferay.portal.model.Layout)returnObj;
1079                    }
1080                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1081                            _log.error(se, se);
1082    
1083                            throw se;
1084                    }
1085            }
1086    
1087            public static com.liferay.portal.model.Layout updateName(
1088                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1089                    long layoutId, java.lang.String name, java.lang.String languageId)
1090                    throws com.liferay.portal.kernel.exception.PortalException,
1091                            com.liferay.portal.kernel.exception.SystemException {
1092                    try {
1093                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1094                                            "updateName", _updateNameParameterTypes27);
1095    
1096                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1097                                            privateLayout, layoutId, name, languageId);
1098    
1099                            Object returnObj = null;
1100    
1101                            try {
1102                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1103                            }
1104                            catch (Exception e) {
1105                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1106                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1107                                    }
1108    
1109                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1110                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1111                                    }
1112    
1113                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1114                            }
1115    
1116                            return (com.liferay.portal.model.Layout)returnObj;
1117                    }
1118                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1119                            _log.error(se, se);
1120    
1121                            throw se;
1122                    }
1123            }
1124    
1125            public static com.liferay.portal.model.Layout updateName(
1126                    HttpPrincipal httpPrincipal, long plid, java.lang.String name,
1127                    java.lang.String languageId)
1128                    throws com.liferay.portal.kernel.exception.PortalException,
1129                            com.liferay.portal.kernel.exception.SystemException {
1130                    try {
1131                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1132                                            "updateName", _updateNameParameterTypes28);
1133    
1134                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
1135                                            name, languageId);
1136    
1137                            Object returnObj = null;
1138    
1139                            try {
1140                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1141                            }
1142                            catch (Exception e) {
1143                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1144                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1145                                    }
1146    
1147                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1148                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1149                                    }
1150    
1151                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1152                            }
1153    
1154                            return (com.liferay.portal.model.Layout)returnObj;
1155                    }
1156                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1157                            _log.error(se, se);
1158    
1159                            throw se;
1160                    }
1161            }
1162    
1163            public static com.liferay.portal.model.Layout updateParentLayoutId(
1164                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1165                    long layoutId, long parentLayoutId)
1166                    throws com.liferay.portal.kernel.exception.PortalException,
1167                            com.liferay.portal.kernel.exception.SystemException {
1168                    try {
1169                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1170                                            "updateParentLayoutId",
1171                                            _updateParentLayoutIdParameterTypes29);
1172    
1173                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1174                                            privateLayout, layoutId, parentLayoutId);
1175    
1176                            Object returnObj = null;
1177    
1178                            try {
1179                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1180                            }
1181                            catch (Exception e) {
1182                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1183                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1184                                    }
1185    
1186                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1187                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1188                                    }
1189    
1190                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1191                            }
1192    
1193                            return (com.liferay.portal.model.Layout)returnObj;
1194                    }
1195                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1196                            _log.error(se, se);
1197    
1198                            throw se;
1199                    }
1200            }
1201    
1202            public static com.liferay.portal.model.Layout updateParentLayoutId(
1203                    HttpPrincipal httpPrincipal, long plid, long parentPlid)
1204                    throws com.liferay.portal.kernel.exception.PortalException,
1205                            com.liferay.portal.kernel.exception.SystemException {
1206                    try {
1207                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1208                                            "updateParentLayoutId",
1209                                            _updateParentLayoutIdParameterTypes30);
1210    
1211                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
1212                                            parentPlid);
1213    
1214                            Object returnObj = null;
1215    
1216                            try {
1217                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1218                            }
1219                            catch (Exception e) {
1220                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1221                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1222                                    }
1223    
1224                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1225                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1226                                    }
1227    
1228                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1229                            }
1230    
1231                            return (com.liferay.portal.model.Layout)returnObj;
1232                    }
1233                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1234                            _log.error(se, se);
1235    
1236                            throw se;
1237                    }
1238            }
1239    
1240            public static com.liferay.portal.model.Layout updatePriority(
1241                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1242                    long layoutId, int priority)
1243                    throws com.liferay.portal.kernel.exception.PortalException,
1244                            com.liferay.portal.kernel.exception.SystemException {
1245                    try {
1246                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1247                                            "updatePriority", _updatePriorityParameterTypes31);
1248    
1249                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1250                                            privateLayout, layoutId, priority);
1251    
1252                            Object returnObj = null;
1253    
1254                            try {
1255                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1256                            }
1257                            catch (Exception e) {
1258                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1259                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1260                                    }
1261    
1262                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1263                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1264                                    }
1265    
1266                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1267                            }
1268    
1269                            return (com.liferay.portal.model.Layout)returnObj;
1270                    }
1271                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1272                            _log.error(se, se);
1273    
1274                            throw se;
1275                    }
1276            }
1277    
1278            public static com.liferay.portal.model.Layout updatePriority(
1279                    HttpPrincipal httpPrincipal, long plid, int priority)
1280                    throws com.liferay.portal.kernel.exception.PortalException,
1281                            com.liferay.portal.kernel.exception.SystemException {
1282                    try {
1283                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1284                                            "updatePriority", _updatePriorityParameterTypes32);
1285    
1286                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
1287                                            priority);
1288    
1289                            Object returnObj = null;
1290    
1291                            try {
1292                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1293                            }
1294                            catch (Exception e) {
1295                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1296                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1297                                    }
1298    
1299                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1300                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1301                                    }
1302    
1303                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1304                            }
1305    
1306                            return (com.liferay.portal.model.Layout)returnObj;
1307                    }
1308                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1309                            _log.error(se, se);
1310    
1311                            throw se;
1312                    }
1313            }
1314    
1315            private static Log _log = LogFactoryUtil.getLog(LayoutServiceHttp.class);
1316            private static final Class<?>[] _addLayoutParameterTypes0 = new Class[] {
1317                            long.class, boolean.class, long.class, java.util.Map.class,
1318                            java.util.Map.class, java.util.Map.class, java.util.Map.class,
1319                            java.util.Map.class, java.lang.String.class, boolean.class,
1320                            java.lang.String.class,
1321                            com.liferay.portal.service.ServiceContext.class
1322                    };
1323            private static final Class<?>[] _addLayoutParameterTypes1 = new Class[] {
1324                            long.class, boolean.class, long.class, java.lang.String.class,
1325                            java.lang.String.class, java.lang.String.class,
1326                            java.lang.String.class, boolean.class, java.lang.String.class,
1327                            com.liferay.portal.service.ServiceContext.class
1328                    };
1329            private static final Class<?>[] _deleteLayoutParameterTypes2 = new Class[] {
1330                            long.class, boolean.class, long.class,
1331                            com.liferay.portal.service.ServiceContext.class
1332                    };
1333            private static final Class<?>[] _deleteLayoutParameterTypes3 = new Class[] {
1334                            long.class, com.liferay.portal.service.ServiceContext.class
1335                    };
1336            private static final Class<?>[] _exportLayoutsParameterTypes4 = new Class[] {
1337                            long.class, boolean.class, long[].class, java.util.Map.class,
1338                            java.util.Date.class, java.util.Date.class
1339                    };
1340            private static final Class<?>[] _exportLayoutsParameterTypes5 = new Class[] {
1341                            long.class, boolean.class, java.util.Map.class, java.util.Date.class,
1342                            java.util.Date.class
1343                    };
1344            private static final Class<?>[] _exportLayoutsAsFileParameterTypes6 = new Class[] {
1345                            long.class, boolean.class, long[].class, java.util.Map.class,
1346                            java.util.Date.class, java.util.Date.class
1347                    };
1348            private static final Class<?>[] _exportPortletInfoParameterTypes7 = new Class[] {
1349                            long.class, long.class, java.lang.String.class, java.util.Map.class,
1350                            java.util.Date.class, java.util.Date.class
1351                    };
1352            private static final Class<?>[] _exportPortletInfoAsFileParameterTypes8 = new Class[] {
1353                            long.class, long.class, java.lang.String.class, java.util.Map.class,
1354                            java.util.Date.class, java.util.Date.class
1355                    };
1356            private static final Class<?>[] _getDefaultPlidParameterTypes9 = new Class[] {
1357                            long.class, long.class, boolean.class, java.lang.String.class
1358                    };
1359            private static final Class<?>[] _getLayoutNameParameterTypes10 = new Class[] {
1360                            long.class, boolean.class, long.class, java.lang.String.class
1361                    };
1362            private static final Class<?>[] _getLayoutReferencesParameterTypes11 = new Class[] {
1363                            long.class, java.lang.String.class, java.lang.String.class,
1364                            java.lang.String.class
1365                    };
1366            private static final Class<?>[] _getLayoutsParameterTypes12 = new Class[] {
1367                            long.class, boolean.class
1368                    };
1369            private static final Class<?>[] _getLayoutsParameterTypes13 = new Class[] {
1370                            long.class, boolean.class, long.class
1371                    };
1372            private static final Class<?>[] _importLayoutsParameterTypes14 = new Class[] {
1373                            long.class, boolean.class, java.util.Map.class, byte[].class
1374                    };
1375            private static final Class<?>[] _importLayoutsParameterTypes15 = new Class[] {
1376                            long.class, boolean.class, java.util.Map.class, java.io.File.class
1377                    };
1378            private static final Class<?>[] _importLayoutsParameterTypes16 = new Class[] {
1379                            long.class, boolean.class, java.util.Map.class,
1380                            java.io.InputStream.class
1381                    };
1382            private static final Class<?>[] _importPortletInfoParameterTypes17 = new Class[] {
1383                            long.class, long.class, java.lang.String.class, java.util.Map.class,
1384                            java.io.File.class
1385                    };
1386            private static final Class<?>[] _importPortletInfoParameterTypes18 = new Class[] {
1387                            long.class, long.class, java.lang.String.class, java.util.Map.class,
1388                            java.io.InputStream.class
1389                    };
1390            private static final Class<?>[] _schedulePublishToLiveParameterTypes19 = new Class[] {
1391                            long.class, long.class, boolean.class, java.util.Map.class,
1392                            java.util.Map.class, java.lang.String.class, java.util.Date.class,
1393                            java.util.Date.class, java.lang.String.class, java.lang.String.class,
1394                            java.util.Date.class, java.util.Date.class, java.lang.String.class
1395                    };
1396            private static final Class<?>[] _schedulePublishToRemoteParameterTypes20 = new Class[] {
1397                            long.class, boolean.class, java.util.Map.class, java.util.Map.class,
1398                            java.lang.String.class, int.class, java.lang.String.class,
1399                            boolean.class, long.class, boolean.class, java.util.Date.class,
1400                            java.util.Date.class, java.lang.String.class, java.lang.String.class,
1401                            java.util.Date.class, java.util.Date.class, java.lang.String.class
1402                    };
1403            private static final Class<?>[] _setLayoutsParameterTypes21 = new Class[] {
1404                            long.class, boolean.class, long.class, long[].class,
1405                            com.liferay.portal.service.ServiceContext.class
1406                    };
1407            private static final Class<?>[] _unschedulePublishToLiveParameterTypes22 = new Class[] {
1408                            long.class, java.lang.String.class, java.lang.String.class
1409                    };
1410            private static final Class<?>[] _unschedulePublishToRemoteParameterTypes23 = new Class[] {
1411                            long.class, java.lang.String.class, java.lang.String.class
1412                    };
1413            private static final Class<?>[] _updateLayoutParameterTypes24 = new Class[] {
1414                            long.class, boolean.class, long.class, long.class,
1415                            java.util.Map.class, java.util.Map.class, java.util.Map.class,
1416                            java.util.Map.class, java.util.Map.class, java.lang.String.class,
1417                            boolean.class, java.lang.String.class, java.lang.Boolean.class,
1418                            byte[].class, com.liferay.portal.service.ServiceContext.class
1419                    };
1420            private static final Class<?>[] _updateLayoutParameterTypes25 = new Class[] {
1421                            long.class, boolean.class, long.class, java.lang.String.class
1422                    };
1423            private static final Class<?>[] _updateLookAndFeelParameterTypes26 = new Class[] {
1424                            long.class, boolean.class, long.class, java.lang.String.class,
1425                            java.lang.String.class, java.lang.String.class, boolean.class
1426                    };
1427            private static final Class<?>[] _updateNameParameterTypes27 = new Class[] {
1428                            long.class, boolean.class, long.class, java.lang.String.class,
1429                            java.lang.String.class
1430                    };
1431            private static final Class<?>[] _updateNameParameterTypes28 = new Class[] {
1432                            long.class, java.lang.String.class, java.lang.String.class
1433                    };
1434            private static final Class<?>[] _updateParentLayoutIdParameterTypes29 = new Class[] {
1435                            long.class, boolean.class, long.class, long.class
1436                    };
1437            private static final Class<?>[] _updateParentLayoutIdParameterTypes30 = new Class[] {
1438                            long.class, long.class
1439                    };
1440            private static final Class<?>[] _updatePriorityParameterTypes31 = new Class[] {
1441                            long.class, boolean.class, long.class, int.class
1442                    };
1443            private static final Class<?>[] _updatePriorityParameterTypes32 = new Class[] {
1444                            long.class, int.class
1445                    };
1446    }