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 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 com.liferay.portal.model.Layout getLayoutByUuidAndGroupId(
484                    HttpPrincipal httpPrincipal, java.lang.String uuid, long groupId,
485                    boolean privateLayout)
486                    throws com.liferay.portal.kernel.exception.PortalException,
487                            com.liferay.portal.kernel.exception.SystemException {
488                    try {
489                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
490                                            "getLayoutByUuidAndGroupId",
491                                            _getLayoutByUuidAndGroupIdParameterTypes11);
492    
493                            MethodHandler methodHandler = new MethodHandler(methodKey, uuid,
494                                            groupId, privateLayout);
495    
496                            Object returnObj = null;
497    
498                            try {
499                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
500                            }
501                            catch (Exception e) {
502                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
503                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
504                                    }
505    
506                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
507                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
508                                    }
509    
510                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
511                            }
512    
513                            return (com.liferay.portal.model.Layout)returnObj;
514                    }
515                    catch (com.liferay.portal.kernel.exception.SystemException se) {
516                            _log.error(se, se);
517    
518                            throw se;
519                    }
520            }
521    
522            public static java.lang.String getLayoutName(HttpPrincipal httpPrincipal,
523                    long groupId, boolean privateLayout, long layoutId,
524                    java.lang.String languageId)
525                    throws com.liferay.portal.kernel.exception.PortalException,
526                            com.liferay.portal.kernel.exception.SystemException {
527                    try {
528                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
529                                            "getLayoutName", _getLayoutNameParameterTypes12);
530    
531                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
532                                            privateLayout, layoutId, languageId);
533    
534                            Object returnObj = null;
535    
536                            try {
537                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
538                            }
539                            catch (Exception e) {
540                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
541                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
542                                    }
543    
544                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
545                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
546                                    }
547    
548                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
549                            }
550    
551                            return (java.lang.String)returnObj;
552                    }
553                    catch (com.liferay.portal.kernel.exception.SystemException se) {
554                            _log.error(se, se);
555    
556                            throw se;
557                    }
558            }
559    
560            public static com.liferay.portal.model.LayoutReference[] getLayoutReferences(
561                    HttpPrincipal httpPrincipal, long companyId,
562                    java.lang.String portletId, java.lang.String preferencesKey,
563                    java.lang.String preferencesValue)
564                    throws com.liferay.portal.kernel.exception.SystemException {
565                    try {
566                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
567                                            "getLayoutReferences", _getLayoutReferencesParameterTypes13);
568    
569                            MethodHandler methodHandler = new MethodHandler(methodKey,
570                                            companyId, portletId, preferencesKey, preferencesValue);
571    
572                            Object returnObj = null;
573    
574                            try {
575                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
576                            }
577                            catch (Exception e) {
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 (com.liferay.portal.model.LayoutReference[])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 java.util.List<com.liferay.portal.model.Layout> getLayouts(
595                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout)
596                    throws com.liferay.portal.kernel.exception.SystemException {
597                    try {
598                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
599                                            "getLayouts", _getLayoutsParameterTypes14);
600    
601                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
602                                            privateLayout);
603    
604                            Object returnObj = null;
605    
606                            try {
607                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
608                            }
609                            catch (Exception e) {
610                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
611                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
612                                    }
613    
614                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
615                            }
616    
617                            return (java.util.List<com.liferay.portal.model.Layout>)returnObj;
618                    }
619                    catch (com.liferay.portal.kernel.exception.SystemException se) {
620                            _log.error(se, se);
621    
622                            throw se;
623                    }
624            }
625    
626            public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
627                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
628                    long parentLayoutId)
629                    throws com.liferay.portal.kernel.exception.SystemException {
630                    try {
631                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
632                                            "getLayouts", _getLayoutsParameterTypes15);
633    
634                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
635                                            privateLayout, parentLayoutId);
636    
637                            Object returnObj = null;
638    
639                            try {
640                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
641                            }
642                            catch (Exception e) {
643                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
644                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
645                                    }
646    
647                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
648                            }
649    
650                            return (java.util.List<com.liferay.portal.model.Layout>)returnObj;
651                    }
652                    catch (com.liferay.portal.kernel.exception.SystemException se) {
653                            _log.error(se, se);
654    
655                            throw se;
656                    }
657            }
658    
659            public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
660                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
661                    long parentLayoutId, boolean incomplete, int start, int end)
662                    throws com.liferay.portal.kernel.exception.PortalException,
663                            com.liferay.portal.kernel.exception.SystemException {
664                    try {
665                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
666                                            "getLayouts", _getLayoutsParameterTypes16);
667    
668                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
669                                            privateLayout, parentLayoutId, incomplete, start, end);
670    
671                            Object returnObj = null;
672    
673                            try {
674                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
675                            }
676                            catch (Exception e) {
677                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
678                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
679                                    }
680    
681                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
682                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
683                                    }
684    
685                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
686                            }
687    
688                            return (java.util.List<com.liferay.portal.model.Layout>)returnObj;
689                    }
690                    catch (com.liferay.portal.kernel.exception.SystemException se) {
691                            _log.error(se, se);
692    
693                            throw se;
694                    }
695            }
696    
697            public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
698                    boolean privateLayout,
699                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
700                    byte[] bytes)
701                    throws com.liferay.portal.kernel.exception.PortalException,
702                            com.liferay.portal.kernel.exception.SystemException {
703                    try {
704                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
705                                            "importLayouts", _importLayoutsParameterTypes17);
706    
707                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
708                                            privateLayout, parameterMap, bytes);
709    
710                            try {
711                                    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                    catch (com.liferay.portal.kernel.exception.SystemException se) {
726                            _log.error(se, se);
727    
728                            throw se;
729                    }
730            }
731    
732            public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
733                    boolean privateLayout,
734                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
735                    java.io.File file)
736                    throws com.liferay.portal.kernel.exception.PortalException,
737                            com.liferay.portal.kernel.exception.SystemException {
738                    try {
739                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
740                                            "importLayouts", _importLayoutsParameterTypes18);
741    
742                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
743                                            privateLayout, parameterMap, file);
744    
745                            try {
746                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
747                            }
748                            catch (Exception e) {
749                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
750                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
751                                    }
752    
753                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
754                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
755                                    }
756    
757                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
758                            }
759                    }
760                    catch (com.liferay.portal.kernel.exception.SystemException se) {
761                            _log.error(se, se);
762    
763                            throw se;
764                    }
765            }
766    
767            public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
768                    boolean privateLayout,
769                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
770                    java.io.InputStream is)
771                    throws com.liferay.portal.kernel.exception.PortalException,
772                            com.liferay.portal.kernel.exception.SystemException {
773                    try {
774                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
775                                            "importLayouts", _importLayoutsParameterTypes19);
776    
777                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
778                                            privateLayout, parameterMap, is);
779    
780                            try {
781                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
782                            }
783                            catch (Exception e) {
784                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
785                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
786                                    }
787    
788                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
789                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
790                                    }
791    
792                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
793                            }
794                    }
795                    catch (com.liferay.portal.kernel.exception.SystemException se) {
796                            _log.error(se, se);
797    
798                            throw se;
799                    }
800            }
801    
802            public static void importPortletInfo(HttpPrincipal httpPrincipal,
803                    long plid, long groupId, java.lang.String portletId,
804                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
805                    java.io.File file)
806                    throws com.liferay.portal.kernel.exception.PortalException,
807                            com.liferay.portal.kernel.exception.SystemException {
808                    try {
809                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
810                                            "importPortletInfo", _importPortletInfoParameterTypes20);
811    
812                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
813                                            groupId, portletId, parameterMap, file);
814    
815                            try {
816                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
817                            }
818                            catch (Exception e) {
819                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
820                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
821                                    }
822    
823                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
824                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
825                                    }
826    
827                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
828                            }
829                    }
830                    catch (com.liferay.portal.kernel.exception.SystemException se) {
831                            _log.error(se, se);
832    
833                            throw se;
834                    }
835            }
836    
837            public static void importPortletInfo(HttpPrincipal httpPrincipal,
838                    long plid, long groupId, java.lang.String portletId,
839                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
840                    java.io.InputStream is)
841                    throws com.liferay.portal.kernel.exception.PortalException,
842                            com.liferay.portal.kernel.exception.SystemException {
843                    try {
844                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
845                                            "importPortletInfo", _importPortletInfoParameterTypes21);
846    
847                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
848                                            groupId, portletId, parameterMap, is);
849    
850                            try {
851                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
852                            }
853                            catch (Exception e) {
854                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
855                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
856                                    }
857    
858                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
859                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
860                                    }
861    
862                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
863                            }
864                    }
865                    catch (com.liferay.portal.kernel.exception.SystemException se) {
866                            _log.error(se, se);
867    
868                            throw se;
869                    }
870            }
871    
872            public static void schedulePublishToLive(HttpPrincipal httpPrincipal,
873                    long sourceGroupId, long targetGroupId, boolean privateLayout,
874                    java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
875                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
876                    java.lang.String scope, java.util.Date startDate,
877                    java.util.Date endDate, java.lang.String groupName,
878                    java.lang.String cronText, java.util.Date schedulerStartDate,
879                    java.util.Date schedulerEndDate, java.lang.String description)
880                    throws com.liferay.portal.kernel.exception.PortalException,
881                            com.liferay.portal.kernel.exception.SystemException {
882                    try {
883                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
884                                            "schedulePublishToLive",
885                                            _schedulePublishToLiveParameterTypes22);
886    
887                            MethodHandler methodHandler = new MethodHandler(methodKey,
888                                            sourceGroupId, targetGroupId, privateLayout, layoutIdMap,
889                                            parameterMap, scope, startDate, endDate, groupName,
890                                            cronText, schedulerStartDate, schedulerEndDate, description);
891    
892                            try {
893                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
894                            }
895                            catch (Exception e) {
896                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
897                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
898                                    }
899    
900                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
901                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
902                                    }
903    
904                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
905                            }
906                    }
907                    catch (com.liferay.portal.kernel.exception.SystemException se) {
908                            _log.error(se, se);
909    
910                            throw se;
911                    }
912            }
913    
914            public static void schedulePublishToRemote(HttpPrincipal httpPrincipal,
915                    long sourceGroupId, boolean privateLayout,
916                    java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
917                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
918                    java.lang.String remoteAddress, int remotePort,
919                    java.lang.String remotePathContext, boolean secureConnection,
920                    long remoteGroupId, boolean remotePrivateLayout,
921                    java.util.Date startDate, java.util.Date endDate,
922                    java.lang.String groupName, java.lang.String cronText,
923                    java.util.Date schedulerStartDate, java.util.Date schedulerEndDate,
924                    java.lang.String description)
925                    throws com.liferay.portal.kernel.exception.PortalException,
926                            com.liferay.portal.kernel.exception.SystemException {
927                    try {
928                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
929                                            "schedulePublishToRemote",
930                                            _schedulePublishToRemoteParameterTypes23);
931    
932                            MethodHandler methodHandler = new MethodHandler(methodKey,
933                                            sourceGroupId, privateLayout, layoutIdMap, parameterMap,
934                                            remoteAddress, remotePort, remotePathContext,
935                                            secureConnection, remoteGroupId, remotePrivateLayout,
936                                            startDate, endDate, groupName, cronText,
937                                            schedulerStartDate, schedulerEndDate, description);
938    
939                            try {
940                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
941                            }
942                            catch (Exception e) {
943                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
944                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
945                                    }
946    
947                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
948                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
949                                    }
950    
951                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
952                            }
953                    }
954                    catch (com.liferay.portal.kernel.exception.SystemException se) {
955                            _log.error(se, se);
956    
957                            throw se;
958                    }
959            }
960    
961            public static void setLayouts(HttpPrincipal httpPrincipal, long groupId,
962                    boolean privateLayout, long parentLayoutId, long[] layoutIds,
963                    com.liferay.portal.service.ServiceContext serviceContext)
964                    throws com.liferay.portal.kernel.exception.PortalException,
965                            com.liferay.portal.kernel.exception.SystemException {
966                    try {
967                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
968                                            "setLayouts", _setLayoutsParameterTypes24);
969    
970                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
971                                            privateLayout, parentLayoutId, layoutIds, serviceContext);
972    
973                            try {
974                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
975                            }
976                            catch (Exception e) {
977                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
978                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
979                                    }
980    
981                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
982                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
983                                    }
984    
985                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
986                            }
987                    }
988                    catch (com.liferay.portal.kernel.exception.SystemException se) {
989                            _log.error(se, se);
990    
991                            throw se;
992                    }
993            }
994    
995            public static void unschedulePublishToLive(HttpPrincipal httpPrincipal,
996                    long groupId, java.lang.String jobName, java.lang.String groupName)
997                    throws com.liferay.portal.kernel.exception.PortalException,
998                            com.liferay.portal.kernel.exception.SystemException {
999                    try {
1000                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1001                                            "unschedulePublishToLive",
1002                                            _unschedulePublishToLiveParameterTypes25);
1003    
1004                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1005                                            jobName, groupName);
1006    
1007                            try {
1008                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1009                            }
1010                            catch (Exception e) {
1011                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1012                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1013                                    }
1014    
1015                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1016                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1017                                    }
1018    
1019                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1020                            }
1021                    }
1022                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1023                            _log.error(se, se);
1024    
1025                            throw se;
1026                    }
1027            }
1028    
1029            public static void unschedulePublishToRemote(HttpPrincipal httpPrincipal,
1030                    long groupId, java.lang.String jobName, java.lang.String groupName)
1031                    throws com.liferay.portal.kernel.exception.PortalException,
1032                            com.liferay.portal.kernel.exception.SystemException {
1033                    try {
1034                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1035                                            "unschedulePublishToRemote",
1036                                            _unschedulePublishToRemoteParameterTypes26);
1037    
1038                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1039                                            jobName, groupName);
1040    
1041                            try {
1042                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1043                            }
1044                            catch (Exception e) {
1045                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1046                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1047                                    }
1048    
1049                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1050                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1051                                    }
1052    
1053                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1054                            }
1055                    }
1056                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1057                            _log.error(se, se);
1058    
1059                            throw se;
1060                    }
1061            }
1062    
1063            public static com.liferay.portal.model.Layout updateLayout(
1064                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1065                    long layoutId, long parentLayoutId,
1066                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
1067                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
1068                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1069                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
1070                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
1071                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
1072                    java.lang.Boolean iconImage, byte[] iconBytes,
1073                    com.liferay.portal.service.ServiceContext serviceContext)
1074                    throws com.liferay.portal.kernel.exception.PortalException,
1075                            com.liferay.portal.kernel.exception.SystemException {
1076                    try {
1077                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1078                                            "updateLayout", _updateLayoutParameterTypes27);
1079    
1080                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1081                                            privateLayout, layoutId, parentLayoutId, localeNamesMap,
1082                                            localeTitlesMap, descriptionMap, keywordsMap, robotsMap,
1083                                            type, hidden, friendlyURL, iconImage, iconBytes,
1084                                            serviceContext);
1085    
1086                            Object returnObj = null;
1087    
1088                            try {
1089                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1090                            }
1091                            catch (Exception e) {
1092                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1093                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1094                                    }
1095    
1096                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1097                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1098                                    }
1099    
1100                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1101                            }
1102    
1103                            return (com.liferay.portal.model.Layout)returnObj;
1104                    }
1105                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1106                            _log.error(se, se);
1107    
1108                            throw se;
1109                    }
1110            }
1111    
1112            public static com.liferay.portal.model.Layout updateLayout(
1113                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1114                    long layoutId, java.lang.String typeSettings)
1115                    throws com.liferay.portal.kernel.exception.PortalException,
1116                            com.liferay.portal.kernel.exception.SystemException {
1117                    try {
1118                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1119                                            "updateLayout", _updateLayoutParameterTypes28);
1120    
1121                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1122                                            privateLayout, layoutId, typeSettings);
1123    
1124                            Object returnObj = null;
1125    
1126                            try {
1127                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1128                            }
1129                            catch (Exception e) {
1130                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1131                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1132                                    }
1133    
1134                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1135                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1136                                    }
1137    
1138                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1139                            }
1140    
1141                            return (com.liferay.portal.model.Layout)returnObj;
1142                    }
1143                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1144                            _log.error(se, se);
1145    
1146                            throw se;
1147                    }
1148            }
1149    
1150            public static com.liferay.portal.model.Layout updateLookAndFeel(
1151                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1152                    long layoutId, java.lang.String themeId,
1153                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
1154                    throws com.liferay.portal.kernel.exception.PortalException,
1155                            com.liferay.portal.kernel.exception.SystemException {
1156                    try {
1157                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1158                                            "updateLookAndFeel", _updateLookAndFeelParameterTypes29);
1159    
1160                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1161                                            privateLayout, layoutId, themeId, colorSchemeId, css,
1162                                            wapTheme);
1163    
1164                            Object returnObj = null;
1165    
1166                            try {
1167                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1168                            }
1169                            catch (Exception e) {
1170                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1171                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1172                                    }
1173    
1174                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1175                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1176                                    }
1177    
1178                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1179                            }
1180    
1181                            return (com.liferay.portal.model.Layout)returnObj;
1182                    }
1183                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1184                            _log.error(se, se);
1185    
1186                            throw se;
1187                    }
1188            }
1189    
1190            public static com.liferay.portal.model.Layout updateName(
1191                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1192                    long layoutId, java.lang.String name, java.lang.String languageId)
1193                    throws com.liferay.portal.kernel.exception.PortalException,
1194                            com.liferay.portal.kernel.exception.SystemException {
1195                    try {
1196                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1197                                            "updateName", _updateNameParameterTypes30);
1198    
1199                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1200                                            privateLayout, layoutId, name, languageId);
1201    
1202                            Object returnObj = null;
1203    
1204                            try {
1205                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1206                            }
1207                            catch (Exception e) {
1208                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1209                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1210                                    }
1211    
1212                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1213                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1214                                    }
1215    
1216                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1217                            }
1218    
1219                            return (com.liferay.portal.model.Layout)returnObj;
1220                    }
1221                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1222                            _log.error(se, se);
1223    
1224                            throw se;
1225                    }
1226            }
1227    
1228            public static com.liferay.portal.model.Layout updateName(
1229                    HttpPrincipal httpPrincipal, long plid, java.lang.String name,
1230                    java.lang.String languageId)
1231                    throws com.liferay.portal.kernel.exception.PortalException,
1232                            com.liferay.portal.kernel.exception.SystemException {
1233                    try {
1234                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1235                                            "updateName", _updateNameParameterTypes31);
1236    
1237                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
1238                                            name, languageId);
1239    
1240                            Object returnObj = null;
1241    
1242                            try {
1243                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1244                            }
1245                            catch (Exception e) {
1246                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1247                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1248                                    }
1249    
1250                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1251                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1252                                    }
1253    
1254                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1255                            }
1256    
1257                            return (com.liferay.portal.model.Layout)returnObj;
1258                    }
1259                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1260                            _log.error(se, se);
1261    
1262                            throw se;
1263                    }
1264            }
1265    
1266            public static com.liferay.portal.model.Layout updateParentLayoutId(
1267                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1268                    long layoutId, long parentLayoutId)
1269                    throws com.liferay.portal.kernel.exception.PortalException,
1270                            com.liferay.portal.kernel.exception.SystemException {
1271                    try {
1272                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1273                                            "updateParentLayoutId",
1274                                            _updateParentLayoutIdParameterTypes32);
1275    
1276                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1277                                            privateLayout, layoutId, parentLayoutId);
1278    
1279                            Object returnObj = null;
1280    
1281                            try {
1282                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1283                            }
1284                            catch (Exception e) {
1285                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1286                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1287                                    }
1288    
1289                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1290                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1291                                    }
1292    
1293                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1294                            }
1295    
1296                            return (com.liferay.portal.model.Layout)returnObj;
1297                    }
1298                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1299                            _log.error(se, se);
1300    
1301                            throw se;
1302                    }
1303            }
1304    
1305            public static com.liferay.portal.model.Layout updateParentLayoutId(
1306                    HttpPrincipal httpPrincipal, long plid, long parentPlid)
1307                    throws com.liferay.portal.kernel.exception.PortalException,
1308                            com.liferay.portal.kernel.exception.SystemException {
1309                    try {
1310                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1311                                            "updateParentLayoutId",
1312                                            _updateParentLayoutIdParameterTypes33);
1313    
1314                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
1315                                            parentPlid);
1316    
1317                            Object returnObj = null;
1318    
1319                            try {
1320                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1321                            }
1322                            catch (Exception e) {
1323                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1324                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1325                                    }
1326    
1327                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1328                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1329                                    }
1330    
1331                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1332                            }
1333    
1334                            return (com.liferay.portal.model.Layout)returnObj;
1335                    }
1336                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1337                            _log.error(se, se);
1338    
1339                            throw se;
1340                    }
1341            }
1342    
1343            public static com.liferay.portal.model.Layout updatePriority(
1344                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1345                    long layoutId, int priority)
1346                    throws com.liferay.portal.kernel.exception.PortalException,
1347                            com.liferay.portal.kernel.exception.SystemException {
1348                    try {
1349                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1350                                            "updatePriority", _updatePriorityParameterTypes34);
1351    
1352                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1353                                            privateLayout, layoutId, priority);
1354    
1355                            Object returnObj = null;
1356    
1357                            try {
1358                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1359                            }
1360                            catch (Exception e) {
1361                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1362                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1363                                    }
1364    
1365                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1366                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1367                                    }
1368    
1369                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1370                            }
1371    
1372                            return (com.liferay.portal.model.Layout)returnObj;
1373                    }
1374                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1375                            _log.error(se, se);
1376    
1377                            throw se;
1378                    }
1379            }
1380    
1381            public static com.liferay.portal.model.Layout updatePriority(
1382                    HttpPrincipal httpPrincipal, long plid, 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, plid,
1390                                            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            private static Log _log = LogFactoryUtil.getLog(LayoutServiceHttp.class);
1419            private static final Class<?>[] _addLayoutParameterTypes0 = new Class[] {
1420                            long.class, boolean.class, long.class, java.util.Map.class,
1421                            java.util.Map.class, java.util.Map.class, java.util.Map.class,
1422                            java.util.Map.class, java.lang.String.class, boolean.class,
1423                            java.lang.String.class,
1424                            com.liferay.portal.service.ServiceContext.class
1425                    };
1426            private static final Class<?>[] _addLayoutParameterTypes1 = new Class[] {
1427                            long.class, boolean.class, long.class, java.lang.String.class,
1428                            java.lang.String.class, java.lang.String.class,
1429                            java.lang.String.class, boolean.class, java.lang.String.class,
1430                            com.liferay.portal.service.ServiceContext.class
1431                    };
1432            private static final Class<?>[] _deleteLayoutParameterTypes2 = new Class[] {
1433                            long.class, boolean.class, long.class,
1434                            com.liferay.portal.service.ServiceContext.class
1435                    };
1436            private static final Class<?>[] _deleteLayoutParameterTypes3 = new Class[] {
1437                            long.class, com.liferay.portal.service.ServiceContext.class
1438                    };
1439            private static final Class<?>[] _exportLayoutsParameterTypes4 = new Class[] {
1440                            long.class, boolean.class, long[].class, java.util.Map.class,
1441                            java.util.Date.class, java.util.Date.class
1442                    };
1443            private static final Class<?>[] _exportLayoutsParameterTypes5 = new Class[] {
1444                            long.class, boolean.class, java.util.Map.class, java.util.Date.class,
1445                            java.util.Date.class
1446                    };
1447            private static final Class<?>[] _exportLayoutsAsFileParameterTypes6 = new Class[] {
1448                            long.class, boolean.class, long[].class, java.util.Map.class,
1449                            java.util.Date.class, java.util.Date.class
1450                    };
1451            private static final Class<?>[] _exportPortletInfoParameterTypes7 = new Class[] {
1452                            long.class, long.class, java.lang.String.class, java.util.Map.class,
1453                            java.util.Date.class, java.util.Date.class
1454                    };
1455            private static final Class<?>[] _exportPortletInfoAsFileParameterTypes8 = new Class[] {
1456                            long.class, long.class, java.lang.String.class, java.util.Map.class,
1457                            java.util.Date.class, java.util.Date.class
1458                    };
1459            private static final Class<?>[] _getAncestorLayoutsParameterTypes9 = new Class[] {
1460                            long.class
1461                    };
1462            private static final Class<?>[] _getDefaultPlidParameterTypes10 = new Class[] {
1463                            long.class, long.class, boolean.class, java.lang.String.class
1464                    };
1465            private static final Class<?>[] _getLayoutByUuidAndGroupIdParameterTypes11 = new Class[] {
1466                            java.lang.String.class, long.class, boolean.class
1467                    };
1468            private static final Class<?>[] _getLayoutNameParameterTypes12 = new Class[] {
1469                            long.class, boolean.class, long.class, java.lang.String.class
1470                    };
1471            private static final Class<?>[] _getLayoutReferencesParameterTypes13 = new Class[] {
1472                            long.class, java.lang.String.class, java.lang.String.class,
1473                            java.lang.String.class
1474                    };
1475            private static final Class<?>[] _getLayoutsParameterTypes14 = new Class[] {
1476                            long.class, boolean.class
1477                    };
1478            private static final Class<?>[] _getLayoutsParameterTypes15 = new Class[] {
1479                            long.class, boolean.class, long.class
1480                    };
1481            private static final Class<?>[] _getLayoutsParameterTypes16 = new Class[] {
1482                            long.class, boolean.class, long.class, boolean.class, int.class,
1483                            int.class
1484                    };
1485            private static final Class<?>[] _importLayoutsParameterTypes17 = new Class[] {
1486                            long.class, boolean.class, java.util.Map.class, byte[].class
1487                    };
1488            private static final Class<?>[] _importLayoutsParameterTypes18 = new Class[] {
1489                            long.class, boolean.class, java.util.Map.class, java.io.File.class
1490                    };
1491            private static final Class<?>[] _importLayoutsParameterTypes19 = new Class[] {
1492                            long.class, boolean.class, java.util.Map.class,
1493                            java.io.InputStream.class
1494                    };
1495            private static final Class<?>[] _importPortletInfoParameterTypes20 = new Class[] {
1496                            long.class, long.class, java.lang.String.class, java.util.Map.class,
1497                            java.io.File.class
1498                    };
1499            private static final Class<?>[] _importPortletInfoParameterTypes21 = new Class[] {
1500                            long.class, long.class, java.lang.String.class, java.util.Map.class,
1501                            java.io.InputStream.class
1502                    };
1503            private static final Class<?>[] _schedulePublishToLiveParameterTypes22 = new Class[] {
1504                            long.class, long.class, boolean.class, java.util.Map.class,
1505                            java.util.Map.class, java.lang.String.class, java.util.Date.class,
1506                            java.util.Date.class, java.lang.String.class, java.lang.String.class,
1507                            java.util.Date.class, java.util.Date.class, java.lang.String.class
1508                    };
1509            private static final Class<?>[] _schedulePublishToRemoteParameterTypes23 = new Class[] {
1510                            long.class, boolean.class, java.util.Map.class, java.util.Map.class,
1511                            java.lang.String.class, int.class, java.lang.String.class,
1512                            boolean.class, long.class, boolean.class, java.util.Date.class,
1513                            java.util.Date.class, java.lang.String.class, java.lang.String.class,
1514                            java.util.Date.class, java.util.Date.class, java.lang.String.class
1515                    };
1516            private static final Class<?>[] _setLayoutsParameterTypes24 = new Class[] {
1517                            long.class, boolean.class, long.class, long[].class,
1518                            com.liferay.portal.service.ServiceContext.class
1519                    };
1520            private static final Class<?>[] _unschedulePublishToLiveParameterTypes25 = new Class[] {
1521                            long.class, java.lang.String.class, java.lang.String.class
1522                    };
1523            private static final Class<?>[] _unschedulePublishToRemoteParameterTypes26 = new Class[] {
1524                            long.class, java.lang.String.class, java.lang.String.class
1525                    };
1526            private static final Class<?>[] _updateLayoutParameterTypes27 = new Class[] {
1527                            long.class, boolean.class, long.class, long.class,
1528                            java.util.Map.class, java.util.Map.class, java.util.Map.class,
1529                            java.util.Map.class, java.util.Map.class, java.lang.String.class,
1530                            boolean.class, java.lang.String.class, java.lang.Boolean.class,
1531                            byte[].class, com.liferay.portal.service.ServiceContext.class
1532                    };
1533            private static final Class<?>[] _updateLayoutParameterTypes28 = new Class[] {
1534                            long.class, boolean.class, long.class, java.lang.String.class
1535                    };
1536            private static final Class<?>[] _updateLookAndFeelParameterTypes29 = new Class[] {
1537                            long.class, boolean.class, long.class, java.lang.String.class,
1538                            java.lang.String.class, java.lang.String.class, boolean.class
1539                    };
1540            private static final Class<?>[] _updateNameParameterTypes30 = new Class[] {
1541                            long.class, boolean.class, long.class, java.lang.String.class,
1542                            java.lang.String.class
1543                    };
1544            private static final Class<?>[] _updateNameParameterTypes31 = new Class[] {
1545                            long.class, java.lang.String.class, java.lang.String.class
1546                    };
1547            private static final Class<?>[] _updateParentLayoutIdParameterTypes32 = new Class[] {
1548                            long.class, boolean.class, long.class, long.class
1549                    };
1550            private static final Class<?>[] _updateParentLayoutIdParameterTypes33 = new Class[] {
1551                            long.class, long.class
1552                    };
1553            private static final Class<?>[] _updatePriorityParameterTypes34 = new Class[] {
1554                            long.class, boolean.class, long.class, int.class
1555                    };
1556            private static final Class<?>[] _updatePriorityParameterTypes35 = new Class[] {
1557                            long.class, int.class
1558                    };
1559    }