001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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                    boolean locked, 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.getName(),
069                                            "addLayout", _addLayoutParameterTypes0);
070    
071                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
072                                            privateLayout, parentLayoutId, localeNamesMap,
073                                            localeTitlesMap, descriptionMap, keywordsMap, robotsMap,
074                                            type, hidden, friendlyURL, locked, 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, boolean locked,
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.getName(),
112                                            "addLayout", _addLayoutParameterTypes1);
113    
114                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
115                                            privateLayout, parentLayoutId, name, title, description,
116                                            type, hidden, friendlyURL, locked, 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 plid,
145                    com.liferay.portal.service.ServiceContext serviceContext)
146                    throws com.liferay.portal.kernel.exception.PortalException,
147                            com.liferay.portal.kernel.exception.SystemException {
148                    try {
149                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
150                                            "deleteLayout", _deleteLayoutParameterTypes2);
151    
152                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
153                                            serviceContext);
154    
155                            try {
156                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
157                            }
158                            catch (Exception e) {
159                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
160                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
161                                    }
162    
163                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
164                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
165                                    }
166    
167                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
168                            }
169                    }
170                    catch (com.liferay.portal.kernel.exception.SystemException se) {
171                            _log.error(se, se);
172    
173                            throw se;
174                    }
175            }
176    
177            public static void deleteLayout(HttpPrincipal httpPrincipal, long groupId,
178                    boolean privateLayout, long layoutId,
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.getName(),
184                                            "deleteLayout", _deleteLayoutParameterTypes3);
185    
186                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
187                                            privateLayout, layoutId, 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.getName(),
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.getName(),
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.getName(),
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.getName(),
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.getName(),
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.getName(),
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.getName(),
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.getName(),
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 void importLayouts(HttpPrincipal httpPrincipal, long groupId,
520                    boolean privateLayout,
521                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
522                    byte[] bytes)
523                    throws com.liferay.portal.kernel.exception.PortalException,
524                            com.liferay.portal.kernel.exception.SystemException {
525                    try {
526                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
527                                            "importLayouts", _importLayoutsParameterTypes12);
528    
529                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
530                                            privateLayout, parameterMap, bytes);
531    
532                            try {
533                                    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                    catch (com.liferay.portal.kernel.exception.SystemException se) {
548                            _log.error(se, se);
549    
550                            throw se;
551                    }
552            }
553    
554            public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
555                    boolean privateLayout,
556                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
557                    java.io.File file)
558                    throws com.liferay.portal.kernel.exception.PortalException,
559                            com.liferay.portal.kernel.exception.SystemException {
560                    try {
561                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
562                                            "importLayouts", _importLayoutsParameterTypes13);
563    
564                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
565                                            privateLayout, parameterMap, file);
566    
567                            try {
568                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
569                            }
570                            catch (Exception e) {
571                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
572                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
573                                    }
574    
575                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
576                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
577                                    }
578    
579                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
580                            }
581                    }
582                    catch (com.liferay.portal.kernel.exception.SystemException se) {
583                            _log.error(se, se);
584    
585                            throw se;
586                    }
587            }
588    
589            public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
590                    boolean privateLayout,
591                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
592                    java.io.InputStream is)
593                    throws com.liferay.portal.kernel.exception.PortalException,
594                            com.liferay.portal.kernel.exception.SystemException {
595                    try {
596                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
597                                            "importLayouts", _importLayoutsParameterTypes14);
598    
599                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
600                                            privateLayout, parameterMap, is);
601    
602                            try {
603                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
604                            }
605                            catch (Exception e) {
606                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
607                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
608                                    }
609    
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                    catch (com.liferay.portal.kernel.exception.SystemException se) {
618                            _log.error(se, se);
619    
620                            throw se;
621                    }
622            }
623    
624            public static void importPortletInfo(HttpPrincipal httpPrincipal,
625                    long plid, long groupId, java.lang.String portletId,
626                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
627                    java.io.File file)
628                    throws com.liferay.portal.kernel.exception.PortalException,
629                            com.liferay.portal.kernel.exception.SystemException {
630                    try {
631                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
632                                            "importPortletInfo", _importPortletInfoParameterTypes15);
633    
634                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
635                                            groupId, portletId, parameterMap, file);
636    
637                            try {
638                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
639                            }
640                            catch (Exception e) {
641                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
642                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
643                                    }
644    
645                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
646                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
647                                    }
648    
649                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
650                            }
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 void importPortletInfo(HttpPrincipal httpPrincipal,
660                    long plid, long groupId, java.lang.String portletId,
661                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
662                    java.io.InputStream is)
663                    throws com.liferay.portal.kernel.exception.PortalException,
664                            com.liferay.portal.kernel.exception.SystemException {
665                    try {
666                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
667                                            "importPortletInfo", _importPortletInfoParameterTypes16);
668    
669                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
670                                            groupId, portletId, parameterMap, is);
671    
672                            try {
673                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
674                            }
675                            catch (Exception e) {
676                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
677                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
678                                    }
679    
680                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
681                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
682                                    }
683    
684                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
685                            }
686                    }
687                    catch (com.liferay.portal.kernel.exception.SystemException se) {
688                            _log.error(se, se);
689    
690                            throw se;
691                    }
692            }
693    
694            public static void schedulePublishToLive(HttpPrincipal httpPrincipal,
695                    long sourceGroupId, long targetGroupId, boolean privateLayout,
696                    java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
697                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
698                    java.lang.String scope, java.util.Date startDate,
699                    java.util.Date endDate, java.lang.String groupName,
700                    java.lang.String cronText, java.util.Date schedulerStartDate,
701                    java.util.Date schedulerEndDate, java.lang.String description)
702                    throws com.liferay.portal.kernel.exception.PortalException,
703                            com.liferay.portal.kernel.exception.SystemException {
704                    try {
705                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
706                                            "schedulePublishToLive",
707                                            _schedulePublishToLiveParameterTypes17);
708    
709                            MethodHandler methodHandler = new MethodHandler(methodKey,
710                                            sourceGroupId, targetGroupId, privateLayout, layoutIdMap,
711                                            parameterMap, scope, startDate, endDate, groupName,
712                                            cronText, schedulerStartDate, schedulerEndDate, description);
713    
714                            try {
715                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
716                            }
717                            catch (Exception e) {
718                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
719                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
720                                    }
721    
722                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
723                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
724                                    }
725    
726                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
727                            }
728                    }
729                    catch (com.liferay.portal.kernel.exception.SystemException se) {
730                            _log.error(se, se);
731    
732                            throw se;
733                    }
734            }
735    
736            public static void schedulePublishToRemote(HttpPrincipal httpPrincipal,
737                    long sourceGroupId, boolean privateLayout,
738                    java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
739                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
740                    java.lang.String remoteAddress, int remotePort,
741                    boolean secureConnection, long remoteGroupId,
742                    boolean remotePrivateLayout, java.util.Date startDate,
743                    java.util.Date endDate, java.lang.String groupName,
744                    java.lang.String cronText, java.util.Date schedulerStartDate,
745                    java.util.Date schedulerEndDate, java.lang.String description)
746                    throws com.liferay.portal.kernel.exception.PortalException,
747                            com.liferay.portal.kernel.exception.SystemException {
748                    try {
749                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
750                                            "schedulePublishToRemote",
751                                            _schedulePublishToRemoteParameterTypes18);
752    
753                            MethodHandler methodHandler = new MethodHandler(methodKey,
754                                            sourceGroupId, privateLayout, layoutIdMap, parameterMap,
755                                            remoteAddress, remotePort, secureConnection, remoteGroupId,
756                                            remotePrivateLayout, startDate, endDate, groupName,
757                                            cronText, schedulerStartDate, schedulerEndDate, description);
758    
759                            try {
760                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
761                            }
762                            catch (Exception e) {
763                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
764                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
765                                    }
766    
767                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
768                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
769                                    }
770    
771                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
772                            }
773                    }
774                    catch (com.liferay.portal.kernel.exception.SystemException se) {
775                            _log.error(se, se);
776    
777                            throw se;
778                    }
779            }
780    
781            public static void setLayouts(HttpPrincipal httpPrincipal, long groupId,
782                    boolean privateLayout, long parentLayoutId, long[] layoutIds,
783                    com.liferay.portal.service.ServiceContext serviceContext)
784                    throws com.liferay.portal.kernel.exception.PortalException,
785                            com.liferay.portal.kernel.exception.SystemException {
786                    try {
787                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
788                                            "setLayouts", _setLayoutsParameterTypes19);
789    
790                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
791                                            privateLayout, parentLayoutId, layoutIds, serviceContext);
792    
793                            try {
794                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
795                            }
796                            catch (Exception e) {
797                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
798                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
799                                    }
800    
801                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
802                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
803                                    }
804    
805                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
806                            }
807                    }
808                    catch (com.liferay.portal.kernel.exception.SystemException se) {
809                            _log.error(se, se);
810    
811                            throw se;
812                    }
813            }
814    
815            public static void unschedulePublishToLive(HttpPrincipal httpPrincipal,
816                    long groupId, java.lang.String jobName, java.lang.String groupName)
817                    throws com.liferay.portal.kernel.exception.PortalException,
818                            com.liferay.portal.kernel.exception.SystemException {
819                    try {
820                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
821                                            "unschedulePublishToLive",
822                                            _unschedulePublishToLiveParameterTypes20);
823    
824                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
825                                            jobName, groupName);
826    
827                            try {
828                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
829                            }
830                            catch (Exception e) {
831                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
832                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
833                                    }
834    
835                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
836                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
837                                    }
838    
839                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
840                            }
841                    }
842                    catch (com.liferay.portal.kernel.exception.SystemException se) {
843                            _log.error(se, se);
844    
845                            throw se;
846                    }
847            }
848    
849            public static void unschedulePublishToRemote(HttpPrincipal httpPrincipal,
850                    long groupId, java.lang.String jobName, java.lang.String groupName)
851                    throws com.liferay.portal.kernel.exception.PortalException,
852                            com.liferay.portal.kernel.exception.SystemException {
853                    try {
854                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
855                                            "unschedulePublishToRemote",
856                                            _unschedulePublishToRemoteParameterTypes21);
857    
858                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
859                                            jobName, groupName);
860    
861                            try {
862                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
863                            }
864                            catch (Exception e) {
865                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
866                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
867                                    }
868    
869                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
870                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
871                                    }
872    
873                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
874                            }
875                    }
876                    catch (com.liferay.portal.kernel.exception.SystemException se) {
877                            _log.error(se, se);
878    
879                            throw se;
880                    }
881            }
882    
883            public static com.liferay.portal.model.Layout updateLayout(
884                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
885                    long layoutId, long parentLayoutId,
886                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
887                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
888                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
889                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
890                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
891                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
892                    java.lang.Boolean iconImage, byte[] iconBytes, boolean locked,
893                    com.liferay.portal.service.ServiceContext serviceContext)
894                    throws com.liferay.portal.kernel.exception.PortalException,
895                            com.liferay.portal.kernel.exception.SystemException {
896                    try {
897                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
898                                            "updateLayout", _updateLayoutParameterTypes22);
899    
900                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
901                                            privateLayout, layoutId, parentLayoutId, localeNamesMap,
902                                            localeTitlesMap, descriptionMap, keywordsMap, robotsMap,
903                                            type, hidden, friendlyURL, iconImage, iconBytes, locked,
904                                            serviceContext);
905    
906                            Object returnObj = null;
907    
908                            try {
909                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
910                            }
911                            catch (Exception e) {
912                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
913                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
914                                    }
915    
916                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
917                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
918                                    }
919    
920                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
921                            }
922    
923                            return (com.liferay.portal.model.Layout)returnObj;
924                    }
925                    catch (com.liferay.portal.kernel.exception.SystemException se) {
926                            _log.error(se, se);
927    
928                            throw se;
929                    }
930            }
931    
932            public static com.liferay.portal.model.Layout updateLayout(
933                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
934                    long layoutId, java.lang.String typeSettings)
935                    throws com.liferay.portal.kernel.exception.PortalException,
936                            com.liferay.portal.kernel.exception.SystemException {
937                    try {
938                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
939                                            "updateLayout", _updateLayoutParameterTypes23);
940    
941                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
942                                            privateLayout, layoutId, typeSettings);
943    
944                            Object returnObj = null;
945    
946                            try {
947                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
948                            }
949                            catch (Exception e) {
950                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
951                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
952                                    }
953    
954                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
955                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
956                                    }
957    
958                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
959                            }
960    
961                            return (com.liferay.portal.model.Layout)returnObj;
962                    }
963                    catch (com.liferay.portal.kernel.exception.SystemException se) {
964                            _log.error(se, se);
965    
966                            throw se;
967                    }
968            }
969    
970            public static com.liferay.portal.model.Layout updateLookAndFeel(
971                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
972                    long layoutId, java.lang.String themeId,
973                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
974                    throws com.liferay.portal.kernel.exception.PortalException,
975                            com.liferay.portal.kernel.exception.SystemException {
976                    try {
977                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
978                                            "updateLookAndFeel", _updateLookAndFeelParameterTypes24);
979    
980                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
981                                            privateLayout, layoutId, themeId, colorSchemeId, css,
982                                            wapTheme);
983    
984                            Object returnObj = null;
985    
986                            try {
987                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
988                            }
989                            catch (Exception e) {
990                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
991                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
992                                    }
993    
994                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
995                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
996                                    }
997    
998                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
999                            }
1000    
1001                            return (com.liferay.portal.model.Layout)returnObj;
1002                    }
1003                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1004                            _log.error(se, se);
1005    
1006                            throw se;
1007                    }
1008            }
1009    
1010            public static com.liferay.portal.model.Layout updateName(
1011                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1012                    long layoutId, java.lang.String name, java.lang.String languageId)
1013                    throws com.liferay.portal.kernel.exception.PortalException,
1014                            com.liferay.portal.kernel.exception.SystemException {
1015                    try {
1016                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
1017                                            "updateName", _updateNameParameterTypes25);
1018    
1019                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1020                                            privateLayout, layoutId, name, languageId);
1021    
1022                            Object returnObj = null;
1023    
1024                            try {
1025                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1026                            }
1027                            catch (Exception e) {
1028                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1029                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1030                                    }
1031    
1032                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1033                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1034                                    }
1035    
1036                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1037                            }
1038    
1039                            return (com.liferay.portal.model.Layout)returnObj;
1040                    }
1041                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1042                            _log.error(se, se);
1043    
1044                            throw se;
1045                    }
1046            }
1047    
1048            public static com.liferay.portal.model.Layout updateName(
1049                    HttpPrincipal httpPrincipal, long plid, java.lang.String name,
1050                    java.lang.String languageId)
1051                    throws com.liferay.portal.kernel.exception.PortalException,
1052                            com.liferay.portal.kernel.exception.SystemException {
1053                    try {
1054                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
1055                                            "updateName", _updateNameParameterTypes26);
1056    
1057                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
1058                                            name, languageId);
1059    
1060                            Object returnObj = null;
1061    
1062                            try {
1063                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1064                            }
1065                            catch (Exception e) {
1066                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1067                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1068                                    }
1069    
1070                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1071                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1072                                    }
1073    
1074                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1075                            }
1076    
1077                            return (com.liferay.portal.model.Layout)returnObj;
1078                    }
1079                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1080                            _log.error(se, se);
1081    
1082                            throw se;
1083                    }
1084            }
1085    
1086            public static com.liferay.portal.model.Layout updateParentLayoutId(
1087                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1088                    long layoutId, long parentLayoutId)
1089                    throws com.liferay.portal.kernel.exception.PortalException,
1090                            com.liferay.portal.kernel.exception.SystemException {
1091                    try {
1092                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
1093                                            "updateParentLayoutId",
1094                                            _updateParentLayoutIdParameterTypes27);
1095    
1096                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1097                                            privateLayout, layoutId, parentLayoutId);
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 updateParentLayoutId(
1126                    HttpPrincipal httpPrincipal, long plid, long parentPlid)
1127                    throws com.liferay.portal.kernel.exception.PortalException,
1128                            com.liferay.portal.kernel.exception.SystemException {
1129                    try {
1130                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
1131                                            "updateParentLayoutId",
1132                                            _updateParentLayoutIdParameterTypes28);
1133    
1134                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
1135                                            parentPlid);
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 updatePriority(
1164                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1165                    long layoutId, int priority)
1166                    throws com.liferay.portal.kernel.exception.PortalException,
1167                            com.liferay.portal.kernel.exception.SystemException {
1168                    try {
1169                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
1170                                            "updatePriority", _updatePriorityParameterTypes29);
1171    
1172                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1173                                            privateLayout, layoutId, priority);
1174    
1175                            Object returnObj = null;
1176    
1177                            try {
1178                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1179                            }
1180                            catch (Exception e) {
1181                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1182                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1183                                    }
1184    
1185                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1186                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1187                                    }
1188    
1189                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1190                            }
1191    
1192                            return (com.liferay.portal.model.Layout)returnObj;
1193                    }
1194                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1195                            _log.error(se, se);
1196    
1197                            throw se;
1198                    }
1199            }
1200    
1201            public static com.liferay.portal.model.Layout updatePriority(
1202                    HttpPrincipal httpPrincipal, long plid, int priority)
1203                    throws com.liferay.portal.kernel.exception.PortalException,
1204                            com.liferay.portal.kernel.exception.SystemException {
1205                    try {
1206                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
1207                                            "updatePriority", _updatePriorityParameterTypes30);
1208    
1209                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
1210                                            priority);
1211    
1212                            Object returnObj = null;
1213    
1214                            try {
1215                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1216                            }
1217                            catch (Exception e) {
1218                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1219                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1220                                    }
1221    
1222                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1223                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1224                                    }
1225    
1226                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1227                            }
1228    
1229                            return (com.liferay.portal.model.Layout)returnObj;
1230                    }
1231                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1232                            _log.error(se, se);
1233    
1234                            throw se;
1235                    }
1236            }
1237    
1238            private static Log _log = LogFactoryUtil.getLog(LayoutServiceHttp.class);
1239            private static final Class<?>[] _addLayoutParameterTypes0 = new Class[] {
1240                            long.class, boolean.class, long.class, java.util.Map.class,
1241                            java.util.Map.class, java.util.Map.class, java.util.Map.class,
1242                            java.util.Map.class, java.lang.String.class, boolean.class,
1243                            java.lang.String.class, boolean.class,
1244                            com.liferay.portal.service.ServiceContext.class
1245                    };
1246            private static final Class<?>[] _addLayoutParameterTypes1 = new Class[] {
1247                            long.class, boolean.class, long.class, java.lang.String.class,
1248                            java.lang.String.class, java.lang.String.class,
1249                            java.lang.String.class, boolean.class, java.lang.String.class,
1250                            boolean.class, com.liferay.portal.service.ServiceContext.class
1251                    };
1252            private static final Class<?>[] _deleteLayoutParameterTypes2 = new Class[] {
1253                            long.class, com.liferay.portal.service.ServiceContext.class
1254                    };
1255            private static final Class<?>[] _deleteLayoutParameterTypes3 = new Class[] {
1256                            long.class, boolean.class, long.class,
1257                            com.liferay.portal.service.ServiceContext.class
1258                    };
1259            private static final Class<?>[] _exportLayoutsParameterTypes4 = new Class[] {
1260                            long.class, boolean.class, long[].class, java.util.Map.class,
1261                            java.util.Date.class, java.util.Date.class
1262                    };
1263            private static final Class<?>[] _exportLayoutsParameterTypes5 = new Class[] {
1264                            long.class, boolean.class, java.util.Map.class, java.util.Date.class,
1265                            java.util.Date.class
1266                    };
1267            private static final Class<?>[] _exportLayoutsAsFileParameterTypes6 = new Class[] {
1268                            long.class, boolean.class, long[].class, java.util.Map.class,
1269                            java.util.Date.class, java.util.Date.class
1270                    };
1271            private static final Class<?>[] _exportPortletInfoParameterTypes7 = new Class[] {
1272                            long.class, long.class, java.lang.String.class, java.util.Map.class,
1273                            java.util.Date.class, java.util.Date.class
1274                    };
1275            private static final Class<?>[] _exportPortletInfoAsFileParameterTypes8 = new Class[] {
1276                            long.class, long.class, java.lang.String.class, java.util.Map.class,
1277                            java.util.Date.class, java.util.Date.class
1278                    };
1279            private static final Class<?>[] _getDefaultPlidParameterTypes9 = new Class[] {
1280                            long.class, long.class, boolean.class, java.lang.String.class
1281                    };
1282            private static final Class<?>[] _getLayoutNameParameterTypes10 = new Class[] {
1283                            long.class, boolean.class, long.class, java.lang.String.class
1284                    };
1285            private static final Class<?>[] _getLayoutReferencesParameterTypes11 = new Class[] {
1286                            long.class, java.lang.String.class, java.lang.String.class,
1287                            java.lang.String.class
1288                    };
1289            private static final Class<?>[] _importLayoutsParameterTypes12 = new Class[] {
1290                            long.class, boolean.class, java.util.Map.class, byte[].class
1291                    };
1292            private static final Class<?>[] _importLayoutsParameterTypes13 = new Class[] {
1293                            long.class, boolean.class, java.util.Map.class, java.io.File.class
1294                    };
1295            private static final Class<?>[] _importLayoutsParameterTypes14 = new Class[] {
1296                            long.class, boolean.class, java.util.Map.class,
1297                            java.io.InputStream.class
1298                    };
1299            private static final Class<?>[] _importPortletInfoParameterTypes15 = new Class[] {
1300                            long.class, long.class, java.lang.String.class, java.util.Map.class,
1301                            java.io.File.class
1302                    };
1303            private static final Class<?>[] _importPortletInfoParameterTypes16 = new Class[] {
1304                            long.class, long.class, java.lang.String.class, java.util.Map.class,
1305                            java.io.InputStream.class
1306                    };
1307            private static final Class<?>[] _schedulePublishToLiveParameterTypes17 = new Class[] {
1308                            long.class, long.class, boolean.class, java.util.Map.class,
1309                            java.util.Map.class, java.lang.String.class, java.util.Date.class,
1310                            java.util.Date.class, java.lang.String.class, java.lang.String.class,
1311                            java.util.Date.class, java.util.Date.class, java.lang.String.class
1312                    };
1313            private static final Class<?>[] _schedulePublishToRemoteParameterTypes18 = new Class[] {
1314                            long.class, boolean.class, java.util.Map.class, java.util.Map.class,
1315                            java.lang.String.class, int.class, boolean.class, long.class,
1316                            boolean.class, java.util.Date.class, java.util.Date.class,
1317                            java.lang.String.class, java.lang.String.class, java.util.Date.class,
1318                            java.util.Date.class, java.lang.String.class
1319                    };
1320            private static final Class<?>[] _setLayoutsParameterTypes19 = new Class[] {
1321                            long.class, boolean.class, long.class, long[].class,
1322                            com.liferay.portal.service.ServiceContext.class
1323                    };
1324            private static final Class<?>[] _unschedulePublishToLiveParameterTypes20 = new Class[] {
1325                            long.class, java.lang.String.class, java.lang.String.class
1326                    };
1327            private static final Class<?>[] _unschedulePublishToRemoteParameterTypes21 = new Class[] {
1328                            long.class, java.lang.String.class, java.lang.String.class
1329                    };
1330            private static final Class<?>[] _updateLayoutParameterTypes22 = new Class[] {
1331                            long.class, boolean.class, long.class, long.class,
1332                            java.util.Map.class, java.util.Map.class, java.util.Map.class,
1333                            java.util.Map.class, java.util.Map.class, java.lang.String.class,
1334                            boolean.class, java.lang.String.class, java.lang.Boolean.class,
1335                            byte[].class, boolean.class,
1336                            com.liferay.portal.service.ServiceContext.class
1337                    };
1338            private static final Class<?>[] _updateLayoutParameterTypes23 = new Class[] {
1339                            long.class, boolean.class, long.class, java.lang.String.class
1340                    };
1341            private static final Class<?>[] _updateLookAndFeelParameterTypes24 = new Class[] {
1342                            long.class, boolean.class, long.class, java.lang.String.class,
1343                            java.lang.String.class, java.lang.String.class, boolean.class
1344                    };
1345            private static final Class<?>[] _updateNameParameterTypes25 = new Class[] {
1346                            long.class, boolean.class, long.class, java.lang.String.class,
1347                            java.lang.String.class
1348                    };
1349            private static final Class<?>[] _updateNameParameterTypes26 = new Class[] {
1350                            long.class, java.lang.String.class, java.lang.String.class
1351                    };
1352            private static final Class<?>[] _updateParentLayoutIdParameterTypes27 = new Class[] {
1353                            long.class, boolean.class, long.class, long.class
1354                    };
1355            private static final Class<?>[] _updateParentLayoutIdParameterTypes28 = new Class[] {
1356                            long.class, long.class
1357                    };
1358            private static final Class<?>[] _updatePriorityParameterTypes29 = new Class[] {
1359                            long.class, boolean.class, long.class, int.class
1360                    };
1361            private static final Class<?>[] _updatePriorityParameterTypes30 = new Class[] {
1362                            long.class, int.class
1363                    };
1364    }