001    /**
002     * Copyright (c) 2000-2010 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.lang.String description, java.lang.String type, boolean hidden,
061                    java.lang.String friendlyURL,
062                    com.liferay.portal.service.ServiceContext serviceContext)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    try {
066                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
067                                            "addLayout", _addLayoutParameterTypes0);
068    
069                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
070                                            privateLayout, parentLayoutId, localeNamesMap,
071                                            localeTitlesMap, description, type, hidden, friendlyURL,
072                                            serviceContext);
073    
074                            Object returnObj = null;
075    
076                            try {
077                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
078                            }
079                            catch (Exception e) {
080                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
081                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
082                                    }
083    
084                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
085                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
086                                    }
087    
088                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
089                            }
090    
091                            return (com.liferay.portal.model.Layout)returnObj;
092                    }
093                    catch (com.liferay.portal.kernel.exception.SystemException se) {
094                            _log.error(se, se);
095    
096                            throw se;
097                    }
098            }
099    
100            public static com.liferay.portal.model.Layout addLayout(
101                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
102                    long parentLayoutId, java.lang.String name, java.lang.String title,
103                    java.lang.String description, java.lang.String type, boolean hidden,
104                    java.lang.String friendlyURL,
105                    com.liferay.portal.service.ServiceContext serviceContext)
106                    throws com.liferay.portal.kernel.exception.PortalException,
107                            com.liferay.portal.kernel.exception.SystemException {
108                    try {
109                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
110                                            "addLayout", _addLayoutParameterTypes1);
111    
112                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
113                                            privateLayout, parentLayoutId, name, title, description,
114                                            type, hidden, friendlyURL, serviceContext);
115    
116                            Object returnObj = null;
117    
118                            try {
119                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
120                            }
121                            catch (Exception e) {
122                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
123                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
124                                    }
125    
126                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
127                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
128                                    }
129    
130                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
131                            }
132    
133                            return (com.liferay.portal.model.Layout)returnObj;
134                    }
135                    catch (com.liferay.portal.kernel.exception.SystemException se) {
136                            _log.error(se, se);
137    
138                            throw se;
139                    }
140            }
141    
142            public static void deleteLayout(HttpPrincipal httpPrincipal, long plid)
143                    throws com.liferay.portal.kernel.exception.PortalException,
144                            com.liferay.portal.kernel.exception.SystemException {
145                    try {
146                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
147                                            "deleteLayout", _deleteLayoutParameterTypes2);
148    
149                            MethodHandler methodHandler = new MethodHandler(methodKey, plid);
150    
151                            try {
152                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
153                            }
154                            catch (Exception e) {
155                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
156                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
157                                    }
158    
159                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
160                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
161                                    }
162    
163                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
164                            }
165                    }
166                    catch (com.liferay.portal.kernel.exception.SystemException se) {
167                            _log.error(se, se);
168    
169                            throw se;
170                    }
171            }
172    
173            public static void deleteLayout(HttpPrincipal httpPrincipal, long groupId,
174                    boolean privateLayout, long layoutId)
175                    throws com.liferay.portal.kernel.exception.PortalException,
176                            com.liferay.portal.kernel.exception.SystemException {
177                    try {
178                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
179                                            "deleteLayout", _deleteLayoutParameterTypes3);
180    
181                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
182                                            privateLayout, layoutId);
183    
184                            try {
185                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
186                            }
187                            catch (Exception e) {
188                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
189                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
190                                    }
191    
192                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
193                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
194                                    }
195    
196                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
197                            }
198                    }
199                    catch (com.liferay.portal.kernel.exception.SystemException se) {
200                            _log.error(se, se);
201    
202                            throw se;
203                    }
204            }
205    
206            public static byte[] exportLayouts(HttpPrincipal httpPrincipal,
207                    long groupId, boolean privateLayout, long[] layoutIds,
208                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
209                    java.util.Date startDate, java.util.Date endDate)
210                    throws com.liferay.portal.kernel.exception.PortalException,
211                            com.liferay.portal.kernel.exception.SystemException {
212                    try {
213                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
214                                            "exportLayouts", _exportLayoutsParameterTypes4);
215    
216                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
217                                            privateLayout, layoutIds, parameterMap, startDate, endDate);
218    
219                            Object returnObj = null;
220    
221                            try {
222                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
223                            }
224                            catch (Exception e) {
225                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
226                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
227                                    }
228    
229                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
230                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
231                                    }
232    
233                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
234                            }
235    
236                            return (byte[])returnObj;
237                    }
238                    catch (com.liferay.portal.kernel.exception.SystemException se) {
239                            _log.error(se, se);
240    
241                            throw se;
242                    }
243            }
244    
245            public static byte[] exportLayouts(HttpPrincipal httpPrincipal,
246                    long groupId, boolean privateLayout,
247                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
248                    java.util.Date startDate, java.util.Date endDate)
249                    throws com.liferay.portal.kernel.exception.PortalException,
250                            com.liferay.portal.kernel.exception.SystemException {
251                    try {
252                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
253                                            "exportLayouts", _exportLayoutsParameterTypes5);
254    
255                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
256                                            privateLayout, parameterMap, startDate, endDate);
257    
258                            Object returnObj = null;
259    
260                            try {
261                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
262                            }
263                            catch (Exception e) {
264                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
265                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
266                                    }
267    
268                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
269                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
270                                    }
271    
272                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
273                            }
274    
275                            return (byte[])returnObj;
276                    }
277                    catch (com.liferay.portal.kernel.exception.SystemException se) {
278                            _log.error(se, se);
279    
280                            throw se;
281                    }
282            }
283    
284            public static java.io.File exportLayoutsAsFile(
285                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
286                    long[] layoutIds,
287                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
288                    java.util.Date startDate, java.util.Date endDate)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    try {
292                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
293                                            "exportLayoutsAsFile", _exportLayoutsAsFileParameterTypes6);
294    
295                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
296                                            privateLayout, layoutIds, parameterMap, startDate, endDate);
297    
298                            Object returnObj = null;
299    
300                            try {
301                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
302                            }
303                            catch (Exception e) {
304                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
305                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
306                                    }
307    
308                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
309                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
310                                    }
311    
312                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
313                            }
314    
315                            return (java.io.File)returnObj;
316                    }
317                    catch (com.liferay.portal.kernel.exception.SystemException se) {
318                            _log.error(se, se);
319    
320                            throw se;
321                    }
322            }
323    
324            public static byte[] exportPortletInfo(HttpPrincipal httpPrincipal,
325                    long plid, long groupId, java.lang.String portletId,
326                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
327                    java.util.Date startDate, java.util.Date endDate)
328                    throws com.liferay.portal.kernel.exception.PortalException,
329                            com.liferay.portal.kernel.exception.SystemException {
330                    try {
331                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
332                                            "exportPortletInfo", _exportPortletInfoParameterTypes7);
333    
334                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
335                                            groupId, portletId, parameterMap, startDate, endDate);
336    
337                            Object returnObj = null;
338    
339                            try {
340                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
341                            }
342                            catch (Exception e) {
343                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
344                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
345                                    }
346    
347                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
348                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
349                                    }
350    
351                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
352                            }
353    
354                            return (byte[])returnObj;
355                    }
356                    catch (com.liferay.portal.kernel.exception.SystemException se) {
357                            _log.error(se, se);
358    
359                            throw se;
360                    }
361            }
362    
363            public static java.io.File exportPortletInfoAsFile(
364                    HttpPrincipal httpPrincipal, long plid, long groupId,
365                    java.lang.String portletId,
366                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
367                    java.util.Date startDate, java.util.Date endDate)
368                    throws com.liferay.portal.kernel.exception.PortalException,
369                            com.liferay.portal.kernel.exception.SystemException {
370                    try {
371                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
372                                            "exportPortletInfoAsFile",
373                                            _exportPortletInfoAsFileParameterTypes8);
374    
375                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
376                                            groupId, portletId, parameterMap, startDate, endDate);
377    
378                            Object returnObj = null;
379    
380                            try {
381                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
382                            }
383                            catch (Exception e) {
384                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
385                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
386                                    }
387    
388                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
389                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
390                                    }
391    
392                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
393                            }
394    
395                            return (java.io.File)returnObj;
396                    }
397                    catch (com.liferay.portal.kernel.exception.SystemException se) {
398                            _log.error(se, se);
399    
400                            throw se;
401                    }
402            }
403    
404            public static java.lang.String getLayoutName(HttpPrincipal httpPrincipal,
405                    long groupId, boolean privateLayout, long layoutId,
406                    java.lang.String languageId)
407                    throws com.liferay.portal.kernel.exception.PortalException,
408                            com.liferay.portal.kernel.exception.SystemException {
409                    try {
410                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
411                                            "getLayoutName", _getLayoutNameParameterTypes9);
412    
413                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
414                                            privateLayout, layoutId, languageId);
415    
416                            Object returnObj = null;
417    
418                            try {
419                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
420                            }
421                            catch (Exception e) {
422                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
423                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
424                                    }
425    
426                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
427                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
428                                    }
429    
430                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
431                            }
432    
433                            return (java.lang.String)returnObj;
434                    }
435                    catch (com.liferay.portal.kernel.exception.SystemException se) {
436                            _log.error(se, se);
437    
438                            throw se;
439                    }
440            }
441    
442            public static com.liferay.portal.model.LayoutReference[] getLayoutReferences(
443                    HttpPrincipal httpPrincipal, long companyId,
444                    java.lang.String portletId, java.lang.String preferencesKey,
445                    java.lang.String preferencesValue)
446                    throws com.liferay.portal.kernel.exception.SystemException {
447                    try {
448                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
449                                            "getLayoutReferences", _getLayoutReferencesParameterTypes10);
450    
451                            MethodHandler methodHandler = new MethodHandler(methodKey,
452                                            companyId, portletId, preferencesKey, preferencesValue);
453    
454                            Object returnObj = null;
455    
456                            try {
457                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
458                            }
459                            catch (Exception e) {
460                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
461                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
462                                    }
463    
464                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
465                            }
466    
467                            return (com.liferay.portal.model.LayoutReference[])returnObj;
468                    }
469                    catch (com.liferay.portal.kernel.exception.SystemException se) {
470                            _log.error(se, se);
471    
472                            throw se;
473                    }
474            }
475    
476            public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
477                    boolean privateLayout,
478                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
479                    byte[] bytes)
480                    throws com.liferay.portal.kernel.exception.PortalException,
481                            com.liferay.portal.kernel.exception.SystemException {
482                    try {
483                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
484                                            "importLayouts", _importLayoutsParameterTypes11);
485    
486                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
487                                            privateLayout, parameterMap, bytes);
488    
489                            try {
490                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
491                            }
492                            catch (Exception e) {
493                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
494                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
495                                    }
496    
497                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
498                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
499                                    }
500    
501                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
502                            }
503                    }
504                    catch (com.liferay.portal.kernel.exception.SystemException se) {
505                            _log.error(se, se);
506    
507                            throw se;
508                    }
509            }
510    
511            public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
512                    boolean privateLayout,
513                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
514                    java.io.File file)
515                    throws com.liferay.portal.kernel.exception.PortalException,
516                            com.liferay.portal.kernel.exception.SystemException {
517                    try {
518                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
519                                            "importLayouts", _importLayoutsParameterTypes12);
520    
521                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
522                                            privateLayout, parameterMap, file);
523    
524                            try {
525                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
526                            }
527                            catch (Exception e) {
528                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
529                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
530                                    }
531    
532                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
533                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
534                                    }
535    
536                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
537                            }
538                    }
539                    catch (com.liferay.portal.kernel.exception.SystemException se) {
540                            _log.error(se, se);
541    
542                            throw se;
543                    }
544            }
545    
546            public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
547                    boolean privateLayout,
548                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
549                    java.io.InputStream is)
550                    throws com.liferay.portal.kernel.exception.PortalException,
551                            com.liferay.portal.kernel.exception.SystemException {
552                    try {
553                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
554                                            "importLayouts", _importLayoutsParameterTypes13);
555    
556                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
557                                            privateLayout, parameterMap, is);
558    
559                            try {
560                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
561                            }
562                            catch (Exception e) {
563                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
564                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
565                                    }
566    
567                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
568                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
569                                    }
570    
571                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
572                            }
573                    }
574                    catch (com.liferay.portal.kernel.exception.SystemException se) {
575                            _log.error(se, se);
576    
577                            throw se;
578                    }
579            }
580    
581            public static void importPortletInfo(HttpPrincipal httpPrincipal,
582                    long plid, long groupId, java.lang.String portletId,
583                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
584                    java.io.File file)
585                    throws com.liferay.portal.kernel.exception.PortalException,
586                            com.liferay.portal.kernel.exception.SystemException {
587                    try {
588                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
589                                            "importPortletInfo", _importPortletInfoParameterTypes14);
590    
591                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
592                                            groupId, portletId, parameterMap, file);
593    
594                            try {
595                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
596                            }
597                            catch (Exception e) {
598                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
599                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
600                                    }
601    
602                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
603                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
604                                    }
605    
606                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
607                            }
608                    }
609                    catch (com.liferay.portal.kernel.exception.SystemException se) {
610                            _log.error(se, se);
611    
612                            throw se;
613                    }
614            }
615    
616            public static void importPortletInfo(HttpPrincipal httpPrincipal,
617                    long plid, long groupId, java.lang.String portletId,
618                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
619                    java.io.InputStream is)
620                    throws com.liferay.portal.kernel.exception.PortalException,
621                            com.liferay.portal.kernel.exception.SystemException {
622                    try {
623                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
624                                            "importPortletInfo", _importPortletInfoParameterTypes15);
625    
626                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
627                                            groupId, portletId, parameterMap, is);
628    
629                            try {
630                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
631                            }
632                            catch (Exception e) {
633                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
634                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
635                                    }
636    
637                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
638                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
639                                    }
640    
641                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
642                            }
643                    }
644                    catch (com.liferay.portal.kernel.exception.SystemException se) {
645                            _log.error(se, se);
646    
647                            throw se;
648                    }
649            }
650    
651            public static void schedulePublishToLive(HttpPrincipal httpPrincipal,
652                    long sourceGroupId, long targetGroupId, boolean privateLayout,
653                    java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
654                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
655                    java.lang.String scope, java.util.Date startDate,
656                    java.util.Date endDate, java.lang.String groupName,
657                    java.lang.String cronText, java.util.Date schedulerStartDate,
658                    java.util.Date schedulerEndDate, java.lang.String description)
659                    throws com.liferay.portal.kernel.exception.PortalException,
660                            com.liferay.portal.kernel.exception.SystemException {
661                    try {
662                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
663                                            "schedulePublishToLive",
664                                            _schedulePublishToLiveParameterTypes16);
665    
666                            MethodHandler methodHandler = new MethodHandler(methodKey,
667                                            sourceGroupId, targetGroupId, privateLayout, layoutIdMap,
668                                            parameterMap, scope, startDate, endDate, groupName,
669                                            cronText, schedulerStartDate, schedulerEndDate, description);
670    
671                            try {
672                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
673                            }
674                            catch (Exception e) {
675                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
676                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
677                                    }
678    
679                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
680                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
681                                    }
682    
683                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
684                            }
685                    }
686                    catch (com.liferay.portal.kernel.exception.SystemException se) {
687                            _log.error(se, se);
688    
689                            throw se;
690                    }
691            }
692    
693            public static void schedulePublishToRemote(HttpPrincipal httpPrincipal,
694                    long sourceGroupId, boolean privateLayout,
695                    java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
696                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
697                    java.lang.String remoteAddress, int remotePort,
698                    boolean secureConnection, long remoteGroupId,
699                    boolean remotePrivateLayout, java.util.Date startDate,
700                    java.util.Date endDate, java.lang.String groupName,
701                    java.lang.String cronText, java.util.Date schedulerStartDate,
702                    java.util.Date schedulerEndDate, java.lang.String description)
703                    throws com.liferay.portal.kernel.exception.PortalException,
704                            com.liferay.portal.kernel.exception.SystemException {
705                    try {
706                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
707                                            "schedulePublishToRemote",
708                                            _schedulePublishToRemoteParameterTypes17);
709    
710                            MethodHandler methodHandler = new MethodHandler(methodKey,
711                                            sourceGroupId, privateLayout, layoutIdMap, parameterMap,
712                                            remoteAddress, remotePort, secureConnection, remoteGroupId,
713                                            remotePrivateLayout, startDate, endDate, groupName,
714                                            cronText, schedulerStartDate, schedulerEndDate, description);
715    
716                            try {
717                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
718                            }
719                            catch (Exception e) {
720                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
721                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
722                                    }
723    
724                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
725                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
726                                    }
727    
728                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
729                            }
730                    }
731                    catch (com.liferay.portal.kernel.exception.SystemException se) {
732                            _log.error(se, se);
733    
734                            throw se;
735                    }
736            }
737    
738            public static void setLayouts(HttpPrincipal httpPrincipal, long groupId,
739                    boolean privateLayout, long parentLayoutId, long[] layoutIds)
740                    throws com.liferay.portal.kernel.exception.PortalException,
741                            com.liferay.portal.kernel.exception.SystemException {
742                    try {
743                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
744                                            "setLayouts", _setLayoutsParameterTypes18);
745    
746                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
747                                            privateLayout, parentLayoutId, layoutIds);
748    
749                            try {
750                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
751                            }
752                            catch (Exception e) {
753                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
754                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
755                                    }
756    
757                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
758                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
759                                    }
760    
761                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
762                            }
763                    }
764                    catch (com.liferay.portal.kernel.exception.SystemException se) {
765                            _log.error(se, se);
766    
767                            throw se;
768                    }
769            }
770    
771            public static void unschedulePublishToLive(HttpPrincipal httpPrincipal,
772                    long groupId, java.lang.String jobName, java.lang.String groupName)
773                    throws com.liferay.portal.kernel.exception.PortalException,
774                            com.liferay.portal.kernel.exception.SystemException {
775                    try {
776                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
777                                            "unschedulePublishToLive",
778                                            _unschedulePublishToLiveParameterTypes19);
779    
780                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
781                                            jobName, groupName);
782    
783                            try {
784                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
785                            }
786                            catch (Exception e) {
787                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
788                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
789                                    }
790    
791                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
792                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
793                                    }
794    
795                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
796                            }
797                    }
798                    catch (com.liferay.portal.kernel.exception.SystemException se) {
799                            _log.error(se, se);
800    
801                            throw se;
802                    }
803            }
804    
805            public static void unschedulePublishToRemote(HttpPrincipal httpPrincipal,
806                    long groupId, java.lang.String jobName, java.lang.String groupName)
807                    throws com.liferay.portal.kernel.exception.PortalException,
808                            com.liferay.portal.kernel.exception.SystemException {
809                    try {
810                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
811                                            "unschedulePublishToRemote",
812                                            _unschedulePublishToRemoteParameterTypes20);
813    
814                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
815                                            jobName, groupName);
816    
817                            try {
818                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
819                            }
820                            catch (Exception e) {
821                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
822                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
823                                    }
824    
825                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
826                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
827                                    }
828    
829                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
830                            }
831                    }
832                    catch (com.liferay.portal.kernel.exception.SystemException se) {
833                            _log.error(se, se);
834    
835                            throw se;
836                    }
837            }
838    
839            public static com.liferay.portal.model.Layout updateLayout(
840                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
841                    long layoutId, long parentLayoutId,
842                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
843                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
844                    java.lang.String description, java.lang.String type, boolean hidden,
845                    java.lang.String friendlyURL, java.lang.Boolean iconImage,
846                    byte[] iconBytes,
847                    com.liferay.portal.service.ServiceContext serviceContext)
848                    throws com.liferay.portal.kernel.exception.PortalException,
849                            com.liferay.portal.kernel.exception.SystemException {
850                    try {
851                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
852                                            "updateLayout", _updateLayoutParameterTypes21);
853    
854                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
855                                            privateLayout, layoutId, parentLayoutId, localeNamesMap,
856                                            localeTitlesMap, description, type, hidden, friendlyURL,
857                                            iconImage, iconBytes, serviceContext);
858    
859                            Object returnObj = null;
860    
861                            try {
862                                    returnObj = 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                            return (com.liferay.portal.model.Layout)returnObj;
877                    }
878                    catch (com.liferay.portal.kernel.exception.SystemException se) {
879                            _log.error(se, se);
880    
881                            throw se;
882                    }
883            }
884    
885            public static com.liferay.portal.model.Layout updateLayout(
886                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
887                    long layoutId, long parentLayoutId,
888                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
889                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
890                    java.lang.String description, java.lang.String type, boolean hidden,
891                    java.lang.String friendlyURL,
892                    com.liferay.portal.service.ServiceContext serviceContext)
893                    throws com.liferay.portal.kernel.exception.PortalException,
894                            com.liferay.portal.kernel.exception.SystemException {
895                    try {
896                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
897                                            "updateLayout", _updateLayoutParameterTypes22);
898    
899                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
900                                            privateLayout, layoutId, parentLayoutId, localeNamesMap,
901                                            localeTitlesMap, description, type, hidden, friendlyURL,
902                                            serviceContext);
903    
904                            Object returnObj = null;
905    
906                            try {
907                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
908                            }
909                            catch (Exception e) {
910                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
911                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
912                                    }
913    
914                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
915                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
916                                    }
917    
918                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
919                            }
920    
921                            return (com.liferay.portal.model.Layout)returnObj;
922                    }
923                    catch (com.liferay.portal.kernel.exception.SystemException se) {
924                            _log.error(se, se);
925    
926                            throw se;
927                    }
928            }
929    
930            public static com.liferay.portal.model.Layout updateLayout(
931                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
932                    long layoutId, java.lang.String typeSettings)
933                    throws com.liferay.portal.kernel.exception.PortalException,
934                            com.liferay.portal.kernel.exception.SystemException {
935                    try {
936                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
937                                            "updateLayout", _updateLayoutParameterTypes23);
938    
939                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
940                                            privateLayout, layoutId, typeSettings);
941    
942                            Object returnObj = null;
943    
944                            try {
945                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
946                            }
947                            catch (Exception e) {
948                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
949                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
950                                    }
951    
952                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
953                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
954                                    }
955    
956                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
957                            }
958    
959                            return (com.liferay.portal.model.Layout)returnObj;
960                    }
961                    catch (com.liferay.portal.kernel.exception.SystemException se) {
962                            _log.error(se, se);
963    
964                            throw se;
965                    }
966            }
967    
968            public static com.liferay.portal.model.Layout updateLookAndFeel(
969                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
970                    long layoutId, java.lang.String themeId,
971                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
972                    throws com.liferay.portal.kernel.exception.PortalException,
973                            com.liferay.portal.kernel.exception.SystemException {
974                    try {
975                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
976                                            "updateLookAndFeel", _updateLookAndFeelParameterTypes24);
977    
978                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
979                                            privateLayout, layoutId, themeId, colorSchemeId, css,
980                                            wapTheme);
981    
982                            Object returnObj = null;
983    
984                            try {
985                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
986                            }
987                            catch (Exception e) {
988                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
989                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
990                                    }
991    
992                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
993                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
994                                    }
995    
996                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
997                            }
998    
999                            return (com.liferay.portal.model.Layout)returnObj;
1000                    }
1001                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1002                            _log.error(se, se);
1003    
1004                            throw se;
1005                    }
1006            }
1007    
1008            public static com.liferay.portal.model.Layout updateName(
1009                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1010                    long layoutId, java.lang.String name, java.lang.String languageId)
1011                    throws com.liferay.portal.kernel.exception.PortalException,
1012                            com.liferay.portal.kernel.exception.SystemException {
1013                    try {
1014                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
1015                                            "updateName", _updateNameParameterTypes25);
1016    
1017                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1018                                            privateLayout, layoutId, name, languageId);
1019    
1020                            Object returnObj = null;
1021    
1022                            try {
1023                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1024                            }
1025                            catch (Exception e) {
1026                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1027                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1028                                    }
1029    
1030                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1031                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1032                                    }
1033    
1034                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1035                            }
1036    
1037                            return (com.liferay.portal.model.Layout)returnObj;
1038                    }
1039                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1040                            _log.error(se, se);
1041    
1042                            throw se;
1043                    }
1044            }
1045    
1046            public static com.liferay.portal.model.Layout updateName(
1047                    HttpPrincipal httpPrincipal, long plid, java.lang.String name,
1048                    java.lang.String languageId)
1049                    throws com.liferay.portal.kernel.exception.PortalException,
1050                            com.liferay.portal.kernel.exception.SystemException {
1051                    try {
1052                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
1053                                            "updateName", _updateNameParameterTypes26);
1054    
1055                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
1056                                            name, languageId);
1057    
1058                            Object returnObj = null;
1059    
1060                            try {
1061                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1062                            }
1063                            catch (Exception e) {
1064                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1065                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1066                                    }
1067    
1068                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1069                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1070                                    }
1071    
1072                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1073                            }
1074    
1075                            return (com.liferay.portal.model.Layout)returnObj;
1076                    }
1077                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1078                            _log.error(se, se);
1079    
1080                            throw se;
1081                    }
1082            }
1083    
1084            public static com.liferay.portal.model.Layout updateParentLayoutId(
1085                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1086                    long layoutId, long parentLayoutId)
1087                    throws com.liferay.portal.kernel.exception.PortalException,
1088                            com.liferay.portal.kernel.exception.SystemException {
1089                    try {
1090                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
1091                                            "updateParentLayoutId",
1092                                            _updateParentLayoutIdParameterTypes27);
1093    
1094                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1095                                            privateLayout, layoutId, parentLayoutId);
1096    
1097                            Object returnObj = null;
1098    
1099                            try {
1100                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1101                            }
1102                            catch (Exception e) {
1103                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1104                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1105                                    }
1106    
1107                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1108                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1109                                    }
1110    
1111                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1112                            }
1113    
1114                            return (com.liferay.portal.model.Layout)returnObj;
1115                    }
1116                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1117                            _log.error(se, se);
1118    
1119                            throw se;
1120                    }
1121            }
1122    
1123            public static com.liferay.portal.model.Layout updateParentLayoutId(
1124                    HttpPrincipal httpPrincipal, long plid, long parentPlid)
1125                    throws com.liferay.portal.kernel.exception.PortalException,
1126                            com.liferay.portal.kernel.exception.SystemException {
1127                    try {
1128                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
1129                                            "updateParentLayoutId",
1130                                            _updateParentLayoutIdParameterTypes28);
1131    
1132                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
1133                                            parentPlid);
1134    
1135                            Object returnObj = null;
1136    
1137                            try {
1138                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1139                            }
1140                            catch (Exception e) {
1141                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1142                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1143                                    }
1144    
1145                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1146                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1147                                    }
1148    
1149                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1150                            }
1151    
1152                            return (com.liferay.portal.model.Layout)returnObj;
1153                    }
1154                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1155                            _log.error(se, se);
1156    
1157                            throw se;
1158                    }
1159            }
1160    
1161            public static com.liferay.portal.model.Layout updatePriority(
1162                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1163                    long layoutId, int priority)
1164                    throws com.liferay.portal.kernel.exception.PortalException,
1165                            com.liferay.portal.kernel.exception.SystemException {
1166                    try {
1167                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
1168                                            "updatePriority", _updatePriorityParameterTypes29);
1169    
1170                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1171                                            privateLayout, layoutId, priority);
1172    
1173                            Object returnObj = null;
1174    
1175                            try {
1176                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1177                            }
1178                            catch (Exception e) {
1179                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1180                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1181                                    }
1182    
1183                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1184                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1185                                    }
1186    
1187                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1188                            }
1189    
1190                            return (com.liferay.portal.model.Layout)returnObj;
1191                    }
1192                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1193                            _log.error(se, se);
1194    
1195                            throw se;
1196                    }
1197            }
1198    
1199            public static com.liferay.portal.model.Layout updatePriority(
1200                    HttpPrincipal httpPrincipal, long plid, int priority)
1201                    throws com.liferay.portal.kernel.exception.PortalException,
1202                            com.liferay.portal.kernel.exception.SystemException {
1203                    try {
1204                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class.getName(),
1205                                            "updatePriority", _updatePriorityParameterTypes30);
1206    
1207                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
1208                                            priority);
1209    
1210                            Object returnObj = null;
1211    
1212                            try {
1213                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1214                            }
1215                            catch (Exception e) {
1216                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1217                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1218                                    }
1219    
1220                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1221                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1222                                    }
1223    
1224                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1225                            }
1226    
1227                            return (com.liferay.portal.model.Layout)returnObj;
1228                    }
1229                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1230                            _log.error(se, se);
1231    
1232                            throw se;
1233                    }
1234            }
1235    
1236            private static Log _log = LogFactoryUtil.getLog(LayoutServiceHttp.class);
1237            private static final Class<?>[] _addLayoutParameterTypes0 = new Class[] {
1238                            long.class, boolean.class, long.class, java.util.Map.class,
1239                            java.util.Map.class, java.lang.String.class, java.lang.String.class,
1240                            boolean.class, java.lang.String.class,
1241                            com.liferay.portal.service.ServiceContext.class
1242                    };
1243            private static final Class<?>[] _addLayoutParameterTypes1 = new Class[] {
1244                            long.class, boolean.class, long.class, java.lang.String.class,
1245                            java.lang.String.class, java.lang.String.class,
1246                            java.lang.String.class, boolean.class, java.lang.String.class,
1247                            com.liferay.portal.service.ServiceContext.class
1248                    };
1249            private static final Class<?>[] _deleteLayoutParameterTypes2 = new Class[] {
1250                            long.class
1251                    };
1252            private static final Class<?>[] _deleteLayoutParameterTypes3 = new Class[] {
1253                            long.class, boolean.class, long.class
1254                    };
1255            private static final Class<?>[] _exportLayoutsParameterTypes4 = new Class[] {
1256                            long.class, boolean.class, long[].class, java.util.Map.class,
1257                            java.util.Date.class, java.util.Date.class
1258                    };
1259            private static final Class<?>[] _exportLayoutsParameterTypes5 = new Class[] {
1260                            long.class, boolean.class, java.util.Map.class, java.util.Date.class,
1261                            java.util.Date.class
1262                    };
1263            private static final Class<?>[] _exportLayoutsAsFileParameterTypes6 = new Class[] {
1264                            long.class, boolean.class, long[].class, java.util.Map.class,
1265                            java.util.Date.class, java.util.Date.class
1266                    };
1267            private static final Class<?>[] _exportPortletInfoParameterTypes7 = new Class[] {
1268                            long.class, long.class, java.lang.String.class, java.util.Map.class,
1269                            java.util.Date.class, java.util.Date.class
1270                    };
1271            private static final Class<?>[] _exportPortletInfoAsFileParameterTypes8 = 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<?>[] _getLayoutNameParameterTypes9 = new Class[] {
1276                            long.class, boolean.class, long.class, java.lang.String.class
1277                    };
1278            private static final Class<?>[] _getLayoutReferencesParameterTypes10 = new Class[] {
1279                            long.class, java.lang.String.class, java.lang.String.class,
1280                            java.lang.String.class
1281                    };
1282            private static final Class<?>[] _importLayoutsParameterTypes11 = new Class[] {
1283                            long.class, boolean.class, java.util.Map.class, byte[].class
1284                    };
1285            private static final Class<?>[] _importLayoutsParameterTypes12 = new Class[] {
1286                            long.class, boolean.class, java.util.Map.class, java.io.File.class
1287                    };
1288            private static final Class<?>[] _importLayoutsParameterTypes13 = new Class[] {
1289                            long.class, boolean.class, java.util.Map.class,
1290                            java.io.InputStream.class
1291                    };
1292            private static final Class<?>[] _importPortletInfoParameterTypes14 = new Class[] {
1293                            long.class, long.class, java.lang.String.class, java.util.Map.class,
1294                            java.io.File.class
1295                    };
1296            private static final Class<?>[] _importPortletInfoParameterTypes15 = new Class[] {
1297                            long.class, long.class, java.lang.String.class, java.util.Map.class,
1298                            java.io.InputStream.class
1299                    };
1300            private static final Class<?>[] _schedulePublishToLiveParameterTypes16 = new Class[] {
1301                            long.class, long.class, boolean.class, java.util.Map.class,
1302                            java.util.Map.class, java.lang.String.class, java.util.Date.class,
1303                            java.util.Date.class, java.lang.String.class, java.lang.String.class,
1304                            java.util.Date.class, java.util.Date.class, java.lang.String.class
1305                    };
1306            private static final Class<?>[] _schedulePublishToRemoteParameterTypes17 = new Class[] {
1307                            long.class, boolean.class, java.util.Map.class, java.util.Map.class,
1308                            java.lang.String.class, int.class, boolean.class, long.class,
1309                            boolean.class, java.util.Date.class, java.util.Date.class,
1310                            java.lang.String.class, java.lang.String.class, java.util.Date.class,
1311                            java.util.Date.class, java.lang.String.class
1312                    };
1313            private static final Class<?>[] _setLayoutsParameterTypes18 = new Class[] {
1314                            long.class, boolean.class, long.class, long[].class
1315                    };
1316            private static final Class<?>[] _unschedulePublishToLiveParameterTypes19 = new Class[] {
1317                            long.class, java.lang.String.class, java.lang.String.class
1318                    };
1319            private static final Class<?>[] _unschedulePublishToRemoteParameterTypes20 = new Class[] {
1320                            long.class, java.lang.String.class, java.lang.String.class
1321                    };
1322            private static final Class<?>[] _updateLayoutParameterTypes21 = new Class[] {
1323                            long.class, boolean.class, long.class, long.class,
1324                            java.util.Map.class, java.util.Map.class, java.lang.String.class,
1325                            java.lang.String.class, boolean.class, java.lang.String.class,
1326                            java.lang.Boolean.class, byte[].class,
1327                            com.liferay.portal.service.ServiceContext.class
1328                    };
1329            private static final Class<?>[] _updateLayoutParameterTypes22 = new Class[] {
1330                            long.class, boolean.class, long.class, long.class,
1331                            java.util.Map.class, java.util.Map.class, java.lang.String.class,
1332                            java.lang.String.class, boolean.class, java.lang.String.class,
1333                            com.liferay.portal.service.ServiceContext.class
1334                    };
1335            private static final Class<?>[] _updateLayoutParameterTypes23 = new Class[] {
1336                            long.class, boolean.class, long.class, java.lang.String.class
1337                    };
1338            private static final Class<?>[] _updateLookAndFeelParameterTypes24 = new Class[] {
1339                            long.class, boolean.class, long.class, java.lang.String.class,
1340                            java.lang.String.class, java.lang.String.class, boolean.class
1341                    };
1342            private static final Class<?>[] _updateNameParameterTypes25 = new Class[] {
1343                            long.class, boolean.class, long.class, java.lang.String.class,
1344                            java.lang.String.class
1345                    };
1346            private static final Class<?>[] _updateNameParameterTypes26 = new Class[] {
1347                            long.class, java.lang.String.class, java.lang.String.class
1348                    };
1349            private static final Class<?>[] _updateParentLayoutIdParameterTypes27 = new Class[] {
1350                            long.class, boolean.class, long.class, long.class
1351                    };
1352            private static final Class<?>[] _updateParentLayoutIdParameterTypes28 = new Class[] {
1353                            long.class, long.class
1354                    };
1355            private static final Class<?>[] _updatePriorityParameterTypes29 = new Class[] {
1356                            long.class, boolean.class, long.class, int.class
1357                    };
1358            private static final Class<?>[] _updatePriorityParameterTypes30 = new Class[] {
1359                            long.class, int.class
1360                    };
1361    }