001    /**
002     * Copyright (c) 2000-2013 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     * Provides the HTTP utility for the
026     * {@link com.liferay.portal.service.LayoutServiceUtil} service utility. The
027     * static methods of this class calls the same methods of the service utility.
028     * However, the signatures are different because it requires an additional
029     * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
030     *
031     * <p>
032     * The benefits of using the HTTP utility is that it is fast and allows for
033     * tunneling without the cost of serializing to text. The drawback is that it
034     * only works with Java.
035     * </p>
036     *
037     * <p>
038     * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
039     * configure security.
040     * </p>
041     *
042     * <p>
043     * The HTTP utility is only generated for remote services.
044     * </p>
045     *
046     * @author Brian Wing Shun Chan
047     * @see LayoutServiceSoap
048     * @see com.liferay.portal.security.auth.HttpPrincipal
049     * @see com.liferay.portal.service.LayoutServiceUtil
050     * @generated
051     */
052    public class LayoutServiceHttp {
053            public static com.liferay.portal.model.Layout addLayout(
054                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
055                    long parentLayoutId,
056                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
057                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
058                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
059                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
060                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
061                    java.lang.String type, boolean hidden, 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,
067                                            "addLayout", _addLayoutParameterTypes0);
068    
069                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
070                                            privateLayout, parentLayoutId, localeNamesMap,
071                                            localeTitlesMap, descriptionMap, keywordsMap, robotsMap,
072                                            type, hidden, friendlyURL, 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,
103                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
104                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
105                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
106                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
107                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
108                    java.lang.String type, java.lang.String typeSettings, boolean hidden,
109                    java.util.Map<java.util.Locale, java.lang.String> friendlyURLMap,
110                    com.liferay.portal.service.ServiceContext serviceContext)
111                    throws com.liferay.portal.kernel.exception.PortalException,
112                            com.liferay.portal.kernel.exception.SystemException {
113                    try {
114                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
115                                            "addLayout", _addLayoutParameterTypes1);
116    
117                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
118                                            privateLayout, parentLayoutId, localeNamesMap,
119                                            localeTitlesMap, descriptionMap, keywordsMap, robotsMap,
120                                            type, typeSettings, hidden, friendlyURLMap, serviceContext);
121    
122                            Object returnObj = null;
123    
124                            try {
125                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
126                            }
127                            catch (Exception e) {
128                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
129                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
130                                    }
131    
132                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
133                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
134                                    }
135    
136                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
137                            }
138    
139                            return (com.liferay.portal.model.Layout)returnObj;
140                    }
141                    catch (com.liferay.portal.kernel.exception.SystemException se) {
142                            _log.error(se, se);
143    
144                            throw se;
145                    }
146            }
147    
148            public static com.liferay.portal.model.Layout addLayout(
149                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
150                    long parentLayoutId, java.lang.String name, java.lang.String title,
151                    java.lang.String description, java.lang.String type, boolean hidden,
152                    java.lang.String friendlyURL,
153                    com.liferay.portal.service.ServiceContext serviceContext)
154                    throws com.liferay.portal.kernel.exception.PortalException,
155                            com.liferay.portal.kernel.exception.SystemException {
156                    try {
157                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
158                                            "addLayout", _addLayoutParameterTypes2);
159    
160                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
161                                            privateLayout, parentLayoutId, name, title, description,
162                                            type, hidden, friendlyURL, serviceContext);
163    
164                            Object returnObj = null;
165    
166                            try {
167                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
168                            }
169                            catch (Exception e) {
170                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
171                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
172                                    }
173    
174                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
175                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
176                                    }
177    
178                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
179                            }
180    
181                            return (com.liferay.portal.model.Layout)returnObj;
182                    }
183                    catch (com.liferay.portal.kernel.exception.SystemException se) {
184                            _log.error(se, se);
185    
186                            throw se;
187                    }
188            }
189    
190            public static com.liferay.portal.kernel.repository.model.FileEntry addTempFileEntry(
191                    HttpPrincipal httpPrincipal, long groupId, java.lang.String fileName,
192                    java.lang.String tempFolderName, java.io.InputStream inputStream,
193                    java.lang.String mimeType)
194                    throws com.liferay.portal.kernel.exception.PortalException,
195                            com.liferay.portal.kernel.exception.SystemException {
196                    try {
197                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
198                                            "addTempFileEntry", _addTempFileEntryParameterTypes3);
199    
200                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
201                                            fileName, tempFolderName, inputStream, mimeType);
202    
203                            Object returnObj = null;
204    
205                            try {
206                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
207                            }
208                            catch (Exception e) {
209                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
210                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
211                                    }
212    
213                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
214                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
215                                    }
216    
217                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
218                            }
219    
220                            return (com.liferay.portal.kernel.repository.model.FileEntry)returnObj;
221                    }
222                    catch (com.liferay.portal.kernel.exception.SystemException se) {
223                            _log.error(se, se);
224    
225                            throw se;
226                    }
227            }
228    
229            public static void deleteLayout(HttpPrincipal httpPrincipal, long groupId,
230                    boolean privateLayout, long layoutId,
231                    com.liferay.portal.service.ServiceContext serviceContext)
232                    throws com.liferay.portal.kernel.exception.PortalException,
233                            com.liferay.portal.kernel.exception.SystemException {
234                    try {
235                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
236                                            "deleteLayout", _deleteLayoutParameterTypes4);
237    
238                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
239                                            privateLayout, layoutId, serviceContext);
240    
241                            try {
242                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
243                            }
244                            catch (Exception e) {
245                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
246                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
247                                    }
248    
249                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
250                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
251                                    }
252    
253                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
254                            }
255                    }
256                    catch (com.liferay.portal.kernel.exception.SystemException se) {
257                            _log.error(se, se);
258    
259                            throw se;
260                    }
261            }
262    
263            public static void deleteLayout(HttpPrincipal httpPrincipal, long plid,
264                    com.liferay.portal.service.ServiceContext serviceContext)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException {
267                    try {
268                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
269                                            "deleteLayout", _deleteLayoutParameterTypes5);
270    
271                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
272                                            serviceContext);
273    
274                            try {
275                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
276                            }
277                            catch (Exception e) {
278                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
279                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
280                                    }
281    
282                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
283                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
284                                    }
285    
286                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
287                            }
288                    }
289                    catch (com.liferay.portal.kernel.exception.SystemException se) {
290                            _log.error(se, se);
291    
292                            throw se;
293                    }
294            }
295    
296            public static void deleteTempFileEntry(HttpPrincipal httpPrincipal,
297                    long groupId, java.lang.String fileName, java.lang.String tempFolderName)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException {
300                    try {
301                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
302                                            "deleteTempFileEntry", _deleteTempFileEntryParameterTypes6);
303    
304                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
305                                            fileName, tempFolderName);
306    
307                            try {
308                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
309                            }
310                            catch (Exception e) {
311                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
312                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
313                                    }
314    
315                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
316                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
317                                    }
318    
319                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
320                            }
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[] exportLayouts(HttpPrincipal httpPrincipal,
330                    long groupId, boolean privateLayout, long[] layoutIds,
331                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
332                    java.util.Date startDate, java.util.Date endDate)
333                    throws com.liferay.portal.kernel.exception.PortalException,
334                            com.liferay.portal.kernel.exception.SystemException {
335                    try {
336                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
337                                            "exportLayouts", _exportLayoutsParameterTypes7);
338    
339                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
340                                            privateLayout, layoutIds, 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 byte[] exportLayouts(HttpPrincipal httpPrincipal,
369                    long groupId, boolean privateLayout,
370                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
371                    java.util.Date startDate, java.util.Date endDate)
372                    throws com.liferay.portal.kernel.exception.PortalException,
373                            com.liferay.portal.kernel.exception.SystemException {
374                    try {
375                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
376                                            "exportLayouts", _exportLayoutsParameterTypes8);
377    
378                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
379                                            privateLayout, parameterMap, startDate, endDate);
380    
381                            Object returnObj = null;
382    
383                            try {
384                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
385                            }
386                            catch (Exception e) {
387                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
388                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
389                                    }
390    
391                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
392                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
393                                    }
394    
395                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
396                            }
397    
398                            return (byte[])returnObj;
399                    }
400                    catch (com.liferay.portal.kernel.exception.SystemException se) {
401                            _log.error(se, se);
402    
403                            throw se;
404                    }
405            }
406    
407            public static java.io.File exportLayoutsAsFile(
408                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
409                    long[] layoutIds,
410                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
411                    java.util.Date startDate, java.util.Date endDate)
412                    throws com.liferay.portal.kernel.exception.PortalException,
413                            com.liferay.portal.kernel.exception.SystemException {
414                    try {
415                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
416                                            "exportLayoutsAsFile", _exportLayoutsAsFileParameterTypes9);
417    
418                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
419                                            privateLayout, layoutIds, parameterMap, startDate, endDate);
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 (java.io.File)returnObj;
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 long exportLayoutsAsFileInBackground(
448                    HttpPrincipal httpPrincipal, java.lang.String taskName, long groupId,
449                    boolean privateLayout, long[] layoutIds,
450                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
451                    java.util.Date startDate, java.util.Date endDate,
452                    java.lang.String fileName)
453                    throws com.liferay.portal.kernel.exception.PortalException,
454                            com.liferay.portal.kernel.exception.SystemException {
455                    try {
456                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
457                                            "exportLayoutsAsFileInBackground",
458                                            _exportLayoutsAsFileInBackgroundParameterTypes10);
459    
460                            MethodHandler methodHandler = new MethodHandler(methodKey,
461                                            taskName, groupId, privateLayout, layoutIds, parameterMap,
462                                            startDate, endDate, fileName);
463    
464                            Object returnObj = null;
465    
466                            try {
467                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
468                            }
469                            catch (Exception e) {
470                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
471                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
472                                    }
473    
474                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
475                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
476                                    }
477    
478                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
479                            }
480    
481                            return ((Long)returnObj).longValue();
482                    }
483                    catch (com.liferay.portal.kernel.exception.SystemException se) {
484                            _log.error(se, se);
485    
486                            throw se;
487                    }
488            }
489    
490            public static byte[] exportPortletInfo(HttpPrincipal httpPrincipal,
491                    long plid, long groupId, java.lang.String portletId,
492                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
493                    java.util.Date startDate, java.util.Date endDate)
494                    throws com.liferay.portal.kernel.exception.PortalException,
495                            com.liferay.portal.kernel.exception.SystemException {
496                    try {
497                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
498                                            "exportPortletInfo", _exportPortletInfoParameterTypes11);
499    
500                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
501                                            groupId, portletId, parameterMap, startDate, endDate);
502    
503                            Object returnObj = null;
504    
505                            try {
506                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
507                            }
508                            catch (Exception e) {
509                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
510                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
511                                    }
512    
513                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
514                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
515                                    }
516    
517                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
518                            }
519    
520                            return (byte[])returnObj;
521                    }
522                    catch (com.liferay.portal.kernel.exception.SystemException se) {
523                            _log.error(se, se);
524    
525                            throw se;
526                    }
527            }
528    
529            public static byte[] exportPortletInfo(HttpPrincipal httpPrincipal,
530                    long companyId, java.lang.String portletId,
531                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
532                    java.util.Date startDate, java.util.Date endDate)
533                    throws com.liferay.portal.kernel.exception.PortalException,
534                            com.liferay.portal.kernel.exception.SystemException {
535                    try {
536                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
537                                            "exportPortletInfo", _exportPortletInfoParameterTypes12);
538    
539                            MethodHandler methodHandler = new MethodHandler(methodKey,
540                                            companyId, portletId, parameterMap, startDate, endDate);
541    
542                            Object returnObj = null;
543    
544                            try {
545                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
546                            }
547                            catch (Exception e) {
548                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
549                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
550                                    }
551    
552                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
553                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
554                                    }
555    
556                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
557                            }
558    
559                            return (byte[])returnObj;
560                    }
561                    catch (com.liferay.portal.kernel.exception.SystemException se) {
562                            _log.error(se, se);
563    
564                            throw se;
565                    }
566            }
567    
568            public static java.io.File exportPortletInfoAsFile(
569                    HttpPrincipal httpPrincipal, long plid, long groupId,
570                    java.lang.String portletId,
571                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
572                    java.util.Date startDate, java.util.Date endDate)
573                    throws com.liferay.portal.kernel.exception.PortalException,
574                            com.liferay.portal.kernel.exception.SystemException {
575                    try {
576                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
577                                            "exportPortletInfoAsFile",
578                                            _exportPortletInfoAsFileParameterTypes13);
579    
580                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
581                                            groupId, portletId, parameterMap, startDate, endDate);
582    
583                            Object returnObj = null;
584    
585                            try {
586                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
587                            }
588                            catch (Exception e) {
589                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
590                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
591                                    }
592    
593                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
594                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
595                                    }
596    
597                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
598                            }
599    
600                            return (java.io.File)returnObj;
601                    }
602                    catch (com.liferay.portal.kernel.exception.SystemException se) {
603                            _log.error(se, se);
604    
605                            throw se;
606                    }
607            }
608    
609            public static java.io.File exportPortletInfoAsFile(
610                    HttpPrincipal httpPrincipal, java.lang.String portletId,
611                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
612                    java.util.Date startDate, java.util.Date endDate)
613                    throws com.liferay.portal.kernel.exception.PortalException,
614                            com.liferay.portal.kernel.exception.SystemException {
615                    try {
616                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
617                                            "exportPortletInfoAsFile",
618                                            _exportPortletInfoAsFileParameterTypes14);
619    
620                            MethodHandler methodHandler = new MethodHandler(methodKey,
621                                            portletId, parameterMap, startDate, endDate);
622    
623                            Object returnObj = null;
624    
625                            try {
626                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
627                            }
628                            catch (Exception e) {
629                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
630                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
631                                    }
632    
633                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
634                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
635                                    }
636    
637                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
638                            }
639    
640                            return (java.io.File)returnObj;
641                    }
642                    catch (com.liferay.portal.kernel.exception.SystemException se) {
643                            _log.error(se, se);
644    
645                            throw se;
646                    }
647            }
648    
649            public static long exportPortletInfoAsFileInBackground(
650                    HttpPrincipal httpPrincipal, java.lang.String taskName, long plid,
651                    long groupId, java.lang.String portletId,
652                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
653                    java.util.Date startDate, java.util.Date endDate,
654                    java.lang.String fileName)
655                    throws com.liferay.portal.kernel.exception.PortalException,
656                            com.liferay.portal.kernel.exception.SystemException {
657                    try {
658                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
659                                            "exportPortletInfoAsFileInBackground",
660                                            _exportPortletInfoAsFileInBackgroundParameterTypes15);
661    
662                            MethodHandler methodHandler = new MethodHandler(methodKey,
663                                            taskName, plid, groupId, portletId, parameterMap,
664                                            startDate, endDate, fileName);
665    
666                            Object returnObj = null;
667    
668                            try {
669                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
670                            }
671                            catch (Exception e) {
672                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
673                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
674                                    }
675    
676                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
677                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
678                                    }
679    
680                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
681                            }
682    
683                            return ((Long)returnObj).longValue();
684                    }
685                    catch (com.liferay.portal.kernel.exception.SystemException se) {
686                            _log.error(se, se);
687    
688                            throw se;
689                    }
690            }
691    
692            public static long exportPortletInfoAsFileInBackground(
693                    HttpPrincipal httpPrincipal, java.lang.String taskName,
694                    java.lang.String portletId,
695                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
696                    java.util.Date startDate, java.util.Date endDate,
697                    java.lang.String fileName)
698                    throws com.liferay.portal.kernel.exception.PortalException,
699                            com.liferay.portal.kernel.exception.SystemException {
700                    try {
701                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
702                                            "exportPortletInfoAsFileInBackground",
703                                            _exportPortletInfoAsFileInBackgroundParameterTypes16);
704    
705                            MethodHandler methodHandler = new MethodHandler(methodKey,
706                                            taskName, portletId, parameterMap, startDate, endDate,
707                                            fileName);
708    
709                            Object returnObj = null;
710    
711                            try {
712                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
713                            }
714                            catch (Exception e) {
715                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
716                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
717                                    }
718    
719                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
720                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
721                                    }
722    
723                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
724                            }
725    
726                            return ((Long)returnObj).longValue();
727                    }
728                    catch (com.liferay.portal.kernel.exception.SystemException se) {
729                            _log.error(se, se);
730    
731                            throw se;
732                    }
733            }
734    
735            public static java.util.List<com.liferay.portal.model.Layout> getAncestorLayouts(
736                    HttpPrincipal httpPrincipal, long plid)
737                    throws com.liferay.portal.kernel.exception.PortalException,
738                            com.liferay.portal.kernel.exception.SystemException {
739                    try {
740                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
741                                            "getAncestorLayouts", _getAncestorLayoutsParameterTypes17);
742    
743                            MethodHandler methodHandler = new MethodHandler(methodKey, plid);
744    
745                            Object returnObj = null;
746    
747                            try {
748                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
749                            }
750                            catch (Exception e) {
751                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
752                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
753                                    }
754    
755                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
756                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
757                                    }
758    
759                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
760                            }
761    
762                            return (java.util.List<com.liferay.portal.model.Layout>)returnObj;
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 long getDefaultPlid(HttpPrincipal httpPrincipal,
772                    long groupId, long scopeGroupId, boolean privateLayout,
773                    java.lang.String portletId)
774                    throws com.liferay.portal.kernel.exception.PortalException,
775                            com.liferay.portal.kernel.exception.SystemException {
776                    try {
777                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
778                                            "getDefaultPlid", _getDefaultPlidParameterTypes18);
779    
780                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
781                                            scopeGroupId, privateLayout, portletId);
782    
783                            Object returnObj = null;
784    
785                            try {
786                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
787                            }
788                            catch (Exception e) {
789                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
790                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
791                                    }
792    
793                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
794                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
795                                    }
796    
797                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
798                            }
799    
800                            return ((Long)returnObj).longValue();
801                    }
802                    catch (com.liferay.portal.kernel.exception.SystemException se) {
803                            _log.error(se, se);
804    
805                            throw se;
806                    }
807            }
808    
809            public static long getDefaultPlid(HttpPrincipal httpPrincipal,
810                    long groupId, long scopeGroupId, java.lang.String portletId)
811                    throws com.liferay.portal.kernel.exception.PortalException,
812                            com.liferay.portal.kernel.exception.SystemException {
813                    try {
814                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
815                                            "getDefaultPlid", _getDefaultPlidParameterTypes19);
816    
817                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
818                                            scopeGroupId, portletId);
819    
820                            Object returnObj = null;
821    
822                            try {
823                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
824                            }
825                            catch (Exception e) {
826                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
827                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
828                                    }
829    
830                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
831                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
832                                    }
833    
834                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
835                            }
836    
837                            return ((Long)returnObj).longValue();
838                    }
839                    catch (com.liferay.portal.kernel.exception.SystemException se) {
840                            _log.error(se, se);
841    
842                            throw se;
843                    }
844            }
845    
846            public static com.liferay.portal.model.Layout getLayoutByUuidAndGroupId(
847                    HttpPrincipal httpPrincipal, java.lang.String uuid, long groupId,
848                    boolean privateLayout)
849                    throws com.liferay.portal.kernel.exception.PortalException,
850                            com.liferay.portal.kernel.exception.SystemException {
851                    try {
852                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
853                                            "getLayoutByUuidAndGroupId",
854                                            _getLayoutByUuidAndGroupIdParameterTypes20);
855    
856                            MethodHandler methodHandler = new MethodHandler(methodKey, uuid,
857                                            groupId, privateLayout);
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 java.lang.String getLayoutName(HttpPrincipal httpPrincipal,
886                    long groupId, boolean privateLayout, long layoutId,
887                    java.lang.String languageId)
888                    throws com.liferay.portal.kernel.exception.PortalException,
889                            com.liferay.portal.kernel.exception.SystemException {
890                    try {
891                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
892                                            "getLayoutName", _getLayoutNameParameterTypes21);
893    
894                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
895                                            privateLayout, layoutId, languageId);
896    
897                            Object returnObj = null;
898    
899                            try {
900                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
901                            }
902                            catch (Exception e) {
903                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
904                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
905                                    }
906    
907                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
908                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
909                                    }
910    
911                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
912                            }
913    
914                            return (java.lang.String)returnObj;
915                    }
916                    catch (com.liferay.portal.kernel.exception.SystemException se) {
917                            _log.error(se, se);
918    
919                            throw se;
920                    }
921            }
922    
923            public static com.liferay.portal.model.LayoutReference[] getLayoutReferences(
924                    HttpPrincipal httpPrincipal, long companyId,
925                    java.lang.String portletId, java.lang.String preferencesKey,
926                    java.lang.String preferencesValue)
927                    throws com.liferay.portal.kernel.exception.SystemException {
928                    try {
929                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
930                                            "getLayoutReferences", _getLayoutReferencesParameterTypes22);
931    
932                            MethodHandler methodHandler = new MethodHandler(methodKey,
933                                            companyId, portletId, preferencesKey, preferencesValue);
934    
935                            Object returnObj = null;
936    
937                            try {
938                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
939                            }
940                            catch (Exception e) {
941                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
942                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
943                                    }
944    
945                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
946                            }
947    
948                            return (com.liferay.portal.model.LayoutReference[])returnObj;
949                    }
950                    catch (com.liferay.portal.kernel.exception.SystemException se) {
951                            _log.error(se, se);
952    
953                            throw se;
954                    }
955            }
956    
957            public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
958                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout)
959                    throws com.liferay.portal.kernel.exception.SystemException {
960                    try {
961                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
962                                            "getLayouts", _getLayoutsParameterTypes23);
963    
964                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
965                                            privateLayout);
966    
967                            Object returnObj = null;
968    
969                            try {
970                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
971                            }
972                            catch (Exception e) {
973                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
974                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
975                                    }
976    
977                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
978                            }
979    
980                            return (java.util.List<com.liferay.portal.model.Layout>)returnObj;
981                    }
982                    catch (com.liferay.portal.kernel.exception.SystemException se) {
983                            _log.error(se, se);
984    
985                            throw se;
986                    }
987            }
988    
989            public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
990                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
991                    long parentLayoutId)
992                    throws com.liferay.portal.kernel.exception.SystemException {
993                    try {
994                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
995                                            "getLayouts", _getLayoutsParameterTypes24);
996    
997                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
998                                            privateLayout, parentLayoutId);
999    
1000                            Object returnObj = null;
1001    
1002                            try {
1003                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1004                            }
1005                            catch (Exception e) {
1006                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1007                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1008                                    }
1009    
1010                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1011                            }
1012    
1013                            return (java.util.List<com.liferay.portal.model.Layout>)returnObj;
1014                    }
1015                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1016                            _log.error(se, se);
1017    
1018                            throw se;
1019                    }
1020            }
1021    
1022            public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
1023                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1024                    long parentLayoutId, boolean incomplete, int start, int end)
1025                    throws com.liferay.portal.kernel.exception.PortalException,
1026                            com.liferay.portal.kernel.exception.SystemException {
1027                    try {
1028                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1029                                            "getLayouts", _getLayoutsParameterTypes25);
1030    
1031                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1032                                            privateLayout, parentLayoutId, incomplete, start, end);
1033    
1034                            Object returnObj = null;
1035    
1036                            try {
1037                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1038                            }
1039                            catch (Exception e) {
1040                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1041                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1042                                    }
1043    
1044                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1045                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1046                                    }
1047    
1048                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1049                            }
1050    
1051                            return (java.util.List<com.liferay.portal.model.Layout>)returnObj;
1052                    }
1053                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1054                            _log.error(se, se);
1055    
1056                            throw se;
1057                    }
1058            }
1059    
1060            public static int getLayoutsCount(HttpPrincipal httpPrincipal,
1061                    long groupId, boolean privateLayout, long parentLayoutId)
1062                    throws com.liferay.portal.kernel.exception.SystemException {
1063                    try {
1064                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1065                                            "getLayoutsCount", _getLayoutsCountParameterTypes26);
1066    
1067                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1068                                            privateLayout, parentLayoutId);
1069    
1070                            Object returnObj = null;
1071    
1072                            try {
1073                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1074                            }
1075                            catch (Exception e) {
1076                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1077                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1078                                    }
1079    
1080                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1081                            }
1082    
1083                            return ((Integer)returnObj).intValue();
1084                    }
1085                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1086                            _log.error(se, se);
1087    
1088                            throw se;
1089                    }
1090            }
1091    
1092            public static int getLayoutsCount(HttpPrincipal httpPrincipal,
1093                    long groupId, boolean privateLayout, long parentLayoutId, int priority)
1094                    throws com.liferay.portal.kernel.exception.SystemException {
1095                    try {
1096                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1097                                            "getLayoutsCount", _getLayoutsCountParameterTypes27);
1098    
1099                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1100                                            privateLayout, parentLayoutId, priority);
1101    
1102                            Object returnObj = null;
1103    
1104                            try {
1105                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1106                            }
1107                            catch (Exception e) {
1108                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1109                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1110                                    }
1111    
1112                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1113                            }
1114    
1115                            return ((Integer)returnObj).intValue();
1116                    }
1117                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1118                            _log.error(se, se);
1119    
1120                            throw se;
1121                    }
1122            }
1123    
1124            public static java.lang.String[] getTempFileEntryNames(
1125                    HttpPrincipal httpPrincipal, long groupId,
1126                    java.lang.String tempFolderName)
1127                    throws com.liferay.portal.kernel.exception.PortalException,
1128                            com.liferay.portal.kernel.exception.SystemException {
1129                    try {
1130                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1131                                            "getTempFileEntryNames",
1132                                            _getTempFileEntryNamesParameterTypes28);
1133    
1134                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1135                                            tempFolderName);
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 (java.lang.String[])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 void importLayouts(HttpPrincipal httpPrincipal, long groupId,
1164                    boolean privateLayout,
1165                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1166                    byte[] bytes)
1167                    throws com.liferay.portal.kernel.exception.PortalException,
1168                            com.liferay.portal.kernel.exception.SystemException {
1169                    try {
1170                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1171                                            "importLayouts", _importLayoutsParameterTypes29);
1172    
1173                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1174                                            privateLayout, parameterMap, bytes);
1175    
1176                            try {
1177                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1178                            }
1179                            catch (Exception e) {
1180                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1181                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1182                                    }
1183    
1184                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1185                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1186                                    }
1187    
1188                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1189                            }
1190                    }
1191                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1192                            _log.error(se, se);
1193    
1194                            throw se;
1195                    }
1196            }
1197    
1198            public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
1199                    boolean privateLayout,
1200                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1201                    java.io.File file)
1202                    throws com.liferay.portal.kernel.exception.PortalException,
1203                            com.liferay.portal.kernel.exception.SystemException {
1204                    try {
1205                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1206                                            "importLayouts", _importLayoutsParameterTypes30);
1207    
1208                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1209                                            privateLayout, parameterMap, file);
1210    
1211                            try {
1212                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1213                            }
1214                            catch (Exception e) {
1215                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1216                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1217                                    }
1218    
1219                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1220                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1221                                    }
1222    
1223                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1224                            }
1225                    }
1226                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1227                            _log.error(se, se);
1228    
1229                            throw se;
1230                    }
1231            }
1232    
1233            public static void importLayouts(HttpPrincipal httpPrincipal, long groupId,
1234                    boolean privateLayout,
1235                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1236                    java.io.InputStream is)
1237                    throws com.liferay.portal.kernel.exception.PortalException,
1238                            com.liferay.portal.kernel.exception.SystemException {
1239                    try {
1240                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1241                                            "importLayouts", _importLayoutsParameterTypes31);
1242    
1243                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1244                                            privateLayout, parameterMap, is);
1245    
1246                            try {
1247                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1248                            }
1249                            catch (Exception e) {
1250                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1251                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1252                                    }
1253    
1254                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1255                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1256                                    }
1257    
1258                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1259                            }
1260                    }
1261                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1262                            _log.error(se, se);
1263    
1264                            throw se;
1265                    }
1266            }
1267    
1268            public static long importLayoutsInBackground(HttpPrincipal httpPrincipal,
1269                    java.lang.String taskName, long groupId, boolean privateLayout,
1270                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1271                    java.io.File file)
1272                    throws com.liferay.portal.kernel.exception.PortalException,
1273                            com.liferay.portal.kernel.exception.SystemException {
1274                    try {
1275                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1276                                            "importLayoutsInBackground",
1277                                            _importLayoutsInBackgroundParameterTypes32);
1278    
1279                            MethodHandler methodHandler = new MethodHandler(methodKey,
1280                                            taskName, groupId, privateLayout, parameterMap, file);
1281    
1282                            Object returnObj = null;
1283    
1284                            try {
1285                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1286                            }
1287                            catch (Exception e) {
1288                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1289                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1290                                    }
1291    
1292                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1293                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1294                                    }
1295    
1296                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1297                            }
1298    
1299                            return ((Long)returnObj).longValue();
1300                    }
1301                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1302                            _log.error(se, se);
1303    
1304                            throw se;
1305                    }
1306            }
1307    
1308            public static long importLayoutsInBackground(HttpPrincipal httpPrincipal,
1309                    java.lang.String taskName, long groupId, boolean privateLayout,
1310                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1311                    java.io.InputStream inputStream)
1312                    throws com.liferay.portal.kernel.exception.PortalException,
1313                            com.liferay.portal.kernel.exception.SystemException {
1314                    try {
1315                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1316                                            "importLayoutsInBackground",
1317                                            _importLayoutsInBackgroundParameterTypes33);
1318    
1319                            MethodHandler methodHandler = new MethodHandler(methodKey,
1320                                            taskName, groupId, privateLayout, parameterMap, inputStream);
1321    
1322                            Object returnObj = null;
1323    
1324                            try {
1325                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1326                            }
1327                            catch (Exception e) {
1328                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1329                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1330                                    }
1331    
1332                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1333                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1334                                    }
1335    
1336                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1337                            }
1338    
1339                            return ((Long)returnObj).longValue();
1340                    }
1341                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1342                            _log.error(se, se);
1343    
1344                            throw se;
1345                    }
1346            }
1347    
1348            public static void importPortletInfo(HttpPrincipal httpPrincipal,
1349                    long plid, long groupId, java.lang.String portletId,
1350                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1351                    java.io.File file)
1352                    throws com.liferay.portal.kernel.exception.PortalException,
1353                            com.liferay.portal.kernel.exception.SystemException {
1354                    try {
1355                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1356                                            "importPortletInfo", _importPortletInfoParameterTypes34);
1357    
1358                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
1359                                            groupId, portletId, parameterMap, file);
1360    
1361                            try {
1362                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1363                            }
1364                            catch (Exception e) {
1365                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1366                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1367                                    }
1368    
1369                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1370                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1371                                    }
1372    
1373                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1374                            }
1375                    }
1376                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1377                            _log.error(se, se);
1378    
1379                            throw se;
1380                    }
1381            }
1382    
1383            public static void importPortletInfo(HttpPrincipal httpPrincipal,
1384                    long plid, long groupId, java.lang.String portletId,
1385                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1386                    java.io.InputStream is)
1387                    throws com.liferay.portal.kernel.exception.PortalException,
1388                            com.liferay.portal.kernel.exception.SystemException {
1389                    try {
1390                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1391                                            "importPortletInfo", _importPortletInfoParameterTypes35);
1392    
1393                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
1394                                            groupId, portletId, parameterMap, is);
1395    
1396                            try {
1397                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1398                            }
1399                            catch (Exception e) {
1400                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1401                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1402                                    }
1403    
1404                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1405                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1406                                    }
1407    
1408                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1409                            }
1410                    }
1411                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1412                            _log.error(se, se);
1413    
1414                            throw se;
1415                    }
1416            }
1417    
1418            public static void importPortletInfo(HttpPrincipal httpPrincipal,
1419                    java.lang.String portletId,
1420                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1421                    java.io.File file)
1422                    throws com.liferay.portal.kernel.exception.PortalException,
1423                            com.liferay.portal.kernel.exception.SystemException {
1424                    try {
1425                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1426                                            "importPortletInfo", _importPortletInfoParameterTypes36);
1427    
1428                            MethodHandler methodHandler = new MethodHandler(methodKey,
1429                                            portletId, parameterMap, file);
1430    
1431                            try {
1432                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1433                            }
1434                            catch (Exception e) {
1435                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1436                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1437                                    }
1438    
1439                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1440                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1441                                    }
1442    
1443                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1444                            }
1445                    }
1446                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1447                            _log.error(se, se);
1448    
1449                            throw se;
1450                    }
1451            }
1452    
1453            public static void importPortletInfo(HttpPrincipal httpPrincipal,
1454                    java.lang.String portletId,
1455                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1456                    java.io.InputStream is)
1457                    throws com.liferay.portal.kernel.exception.PortalException,
1458                            com.liferay.portal.kernel.exception.SystemException {
1459                    try {
1460                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1461                                            "importPortletInfo", _importPortletInfoParameterTypes37);
1462    
1463                            MethodHandler methodHandler = new MethodHandler(methodKey,
1464                                            portletId, parameterMap, is);
1465    
1466                            try {
1467                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1468                            }
1469                            catch (Exception e) {
1470                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1471                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1472                                    }
1473    
1474                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1475                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1476                                    }
1477    
1478                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1479                            }
1480                    }
1481                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1482                            _log.error(se, se);
1483    
1484                            throw se;
1485                    }
1486            }
1487    
1488            public static long importPortletInfoInBackground(
1489                    HttpPrincipal httpPrincipal, java.lang.String taskName, long plid,
1490                    long groupId, java.lang.String portletId,
1491                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1492                    java.io.File file)
1493                    throws com.liferay.portal.kernel.exception.PortalException,
1494                            com.liferay.portal.kernel.exception.SystemException {
1495                    try {
1496                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1497                                            "importPortletInfoInBackground",
1498                                            _importPortletInfoInBackgroundParameterTypes38);
1499    
1500                            MethodHandler methodHandler = new MethodHandler(methodKey,
1501                                            taskName, plid, groupId, portletId, parameterMap, file);
1502    
1503                            Object returnObj = null;
1504    
1505                            try {
1506                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1507                            }
1508                            catch (Exception e) {
1509                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1510                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1511                                    }
1512    
1513                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1514                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1515                                    }
1516    
1517                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1518                            }
1519    
1520                            return ((Long)returnObj).longValue();
1521                    }
1522                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1523                            _log.error(se, se);
1524    
1525                            throw se;
1526                    }
1527            }
1528    
1529            public static long importPortletInfoInBackground(
1530                    HttpPrincipal httpPrincipal, java.lang.String taskName, long plid,
1531                    long groupId, java.lang.String portletId,
1532                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1533                    java.io.InputStream is)
1534                    throws com.liferay.portal.kernel.exception.PortalException,
1535                            com.liferay.portal.kernel.exception.SystemException {
1536                    try {
1537                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1538                                            "importPortletInfoInBackground",
1539                                            _importPortletInfoInBackgroundParameterTypes39);
1540    
1541                            MethodHandler methodHandler = new MethodHandler(methodKey,
1542                                            taskName, plid, groupId, portletId, parameterMap, is);
1543    
1544                            Object returnObj = null;
1545    
1546                            try {
1547                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1548                            }
1549                            catch (Exception e) {
1550                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1551                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1552                                    }
1553    
1554                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1555                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1556                                    }
1557    
1558                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1559                            }
1560    
1561                            return ((Long)returnObj).longValue();
1562                    }
1563                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1564                            _log.error(se, se);
1565    
1566                            throw se;
1567                    }
1568            }
1569    
1570            public static void importPortletInfoInBackground(
1571                    HttpPrincipal httpPrincipal, java.lang.String taskName,
1572                    java.lang.String portletId,
1573                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1574                    java.io.File file)
1575                    throws com.liferay.portal.kernel.exception.PortalException,
1576                            com.liferay.portal.kernel.exception.SystemException {
1577                    try {
1578                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1579                                            "importPortletInfoInBackground",
1580                                            _importPortletInfoInBackgroundParameterTypes40);
1581    
1582                            MethodHandler methodHandler = new MethodHandler(methodKey,
1583                                            taskName, portletId, parameterMap, file);
1584    
1585                            try {
1586                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1587                            }
1588                            catch (Exception e) {
1589                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1590                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1591                                    }
1592    
1593                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1594                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1595                                    }
1596    
1597                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1598                            }
1599                    }
1600                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1601                            _log.error(se, se);
1602    
1603                            throw se;
1604                    }
1605            }
1606    
1607            public static void importPortletInfoInBackground(
1608                    HttpPrincipal httpPrincipal, java.lang.String taskName,
1609                    java.lang.String portletId,
1610                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1611                    java.io.InputStream is)
1612                    throws com.liferay.portal.kernel.exception.PortalException,
1613                            com.liferay.portal.kernel.exception.SystemException {
1614                    try {
1615                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1616                                            "importPortletInfoInBackground",
1617                                            _importPortletInfoInBackgroundParameterTypes41);
1618    
1619                            MethodHandler methodHandler = new MethodHandler(methodKey,
1620                                            taskName, portletId, parameterMap, is);
1621    
1622                            try {
1623                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1624                            }
1625                            catch (Exception e) {
1626                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1627                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1628                                    }
1629    
1630                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1631                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1632                                    }
1633    
1634                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1635                            }
1636                    }
1637                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1638                            _log.error(se, se);
1639    
1640                            throw se;
1641                    }
1642            }
1643    
1644            public static void schedulePublishToLive(HttpPrincipal httpPrincipal,
1645                    long sourceGroupId, long targetGroupId, boolean privateLayout,
1646                    java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
1647                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1648                    java.lang.String scope, java.util.Date startDate,
1649                    java.util.Date endDate, java.lang.String groupName,
1650                    java.lang.String cronText, java.util.Date schedulerStartDate,
1651                    java.util.Date schedulerEndDate, java.lang.String description)
1652                    throws com.liferay.portal.kernel.exception.PortalException,
1653                            com.liferay.portal.kernel.exception.SystemException {
1654                    try {
1655                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1656                                            "schedulePublishToLive",
1657                                            _schedulePublishToLiveParameterTypes42);
1658    
1659                            MethodHandler methodHandler = new MethodHandler(methodKey,
1660                                            sourceGroupId, targetGroupId, privateLayout, layoutIdMap,
1661                                            parameterMap, scope, startDate, endDate, groupName,
1662                                            cronText, schedulerStartDate, schedulerEndDate, description);
1663    
1664                            try {
1665                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1666                            }
1667                            catch (Exception e) {
1668                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1669                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1670                                    }
1671    
1672                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1673                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1674                                    }
1675    
1676                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1677                            }
1678                    }
1679                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1680                            _log.error(se, se);
1681    
1682                            throw se;
1683                    }
1684            }
1685    
1686            public static void schedulePublishToRemote(HttpPrincipal httpPrincipal,
1687                    long sourceGroupId, boolean privateLayout,
1688                    java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
1689                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1690                    java.lang.String remoteAddress, int remotePort,
1691                    java.lang.String remotePathContext, boolean secureConnection,
1692                    long remoteGroupId, boolean remotePrivateLayout,
1693                    java.util.Date startDate, java.util.Date endDate,
1694                    java.lang.String groupName, java.lang.String cronText,
1695                    java.util.Date schedulerStartDate, java.util.Date schedulerEndDate,
1696                    java.lang.String description)
1697                    throws com.liferay.portal.kernel.exception.PortalException,
1698                            com.liferay.portal.kernel.exception.SystemException {
1699                    try {
1700                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1701                                            "schedulePublishToRemote",
1702                                            _schedulePublishToRemoteParameterTypes43);
1703    
1704                            MethodHandler methodHandler = new MethodHandler(methodKey,
1705                                            sourceGroupId, privateLayout, layoutIdMap, parameterMap,
1706                                            remoteAddress, remotePort, remotePathContext,
1707                                            secureConnection, remoteGroupId, remotePrivateLayout,
1708                                            startDate, endDate, groupName, cronText,
1709                                            schedulerStartDate, schedulerEndDate, description);
1710    
1711                            try {
1712                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1713                            }
1714                            catch (Exception e) {
1715                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1716                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1717                                    }
1718    
1719                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1720                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1721                                    }
1722    
1723                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1724                            }
1725                    }
1726                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1727                            _log.error(se, se);
1728    
1729                            throw se;
1730                    }
1731            }
1732    
1733            public static void setLayouts(HttpPrincipal httpPrincipal, long groupId,
1734                    boolean privateLayout, long parentLayoutId, long[] layoutIds,
1735                    com.liferay.portal.service.ServiceContext serviceContext)
1736                    throws com.liferay.portal.kernel.exception.PortalException,
1737                            com.liferay.portal.kernel.exception.SystemException {
1738                    try {
1739                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1740                                            "setLayouts", _setLayoutsParameterTypes44);
1741    
1742                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1743                                            privateLayout, parentLayoutId, layoutIds, serviceContext);
1744    
1745                            try {
1746                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1747                            }
1748                            catch (Exception e) {
1749                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1750                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1751                                    }
1752    
1753                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1754                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1755                                    }
1756    
1757                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1758                            }
1759                    }
1760                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1761                            _log.error(se, se);
1762    
1763                            throw se;
1764                    }
1765            }
1766    
1767            public static void unschedulePublishToLive(HttpPrincipal httpPrincipal,
1768                    long groupId, java.lang.String jobName, java.lang.String groupName)
1769                    throws com.liferay.portal.kernel.exception.PortalException,
1770                            com.liferay.portal.kernel.exception.SystemException {
1771                    try {
1772                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1773                                            "unschedulePublishToLive",
1774                                            _unschedulePublishToLiveParameterTypes45);
1775    
1776                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1777                                            jobName, groupName);
1778    
1779                            try {
1780                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1781                            }
1782                            catch (Exception e) {
1783                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1784                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1785                                    }
1786    
1787                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1788                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1789                                    }
1790    
1791                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1792                            }
1793                    }
1794                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1795                            _log.error(se, se);
1796    
1797                            throw se;
1798                    }
1799            }
1800    
1801            public static void unschedulePublishToRemote(HttpPrincipal httpPrincipal,
1802                    long groupId, java.lang.String jobName, java.lang.String groupName)
1803                    throws com.liferay.portal.kernel.exception.PortalException,
1804                            com.liferay.portal.kernel.exception.SystemException {
1805                    try {
1806                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1807                                            "unschedulePublishToRemote",
1808                                            _unschedulePublishToRemoteParameterTypes46);
1809    
1810                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1811                                            jobName, groupName);
1812    
1813                            try {
1814                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1815                            }
1816                            catch (Exception e) {
1817                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1818                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1819                                    }
1820    
1821                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1822                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1823                                    }
1824    
1825                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1826                            }
1827                    }
1828                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1829                            _log.error(se, se);
1830    
1831                            throw se;
1832                    }
1833            }
1834    
1835            public static com.liferay.portal.model.Layout updateLayout(
1836                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1837                    long layoutId, long parentLayoutId,
1838                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
1839                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
1840                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1841                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
1842                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
1843                    java.lang.String type, boolean hidden,
1844                    java.util.Map<java.util.Locale, java.lang.String> friendlyURLMap,
1845                    java.lang.Boolean iconImage, byte[] iconBytes,
1846                    com.liferay.portal.service.ServiceContext serviceContext)
1847                    throws com.liferay.portal.kernel.exception.PortalException,
1848                            com.liferay.portal.kernel.exception.SystemException {
1849                    try {
1850                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1851                                            "updateLayout", _updateLayoutParameterTypes47);
1852    
1853                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1854                                            privateLayout, layoutId, parentLayoutId, localeNamesMap,
1855                                            localeTitlesMap, descriptionMap, keywordsMap, robotsMap,
1856                                            type, hidden, friendlyURLMap, iconImage, iconBytes,
1857                                            serviceContext);
1858    
1859                            Object returnObj = null;
1860    
1861                            try {
1862                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1863                            }
1864                            catch (Exception e) {
1865                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1866                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1867                                    }
1868    
1869                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1870                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1871                                    }
1872    
1873                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1874                            }
1875    
1876                            return (com.liferay.portal.model.Layout)returnObj;
1877                    }
1878                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1879                            _log.error(se, se);
1880    
1881                            throw se;
1882                    }
1883            }
1884    
1885            public static com.liferay.portal.model.Layout updateLayout(
1886                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1887                    long layoutId, long parentLayoutId,
1888                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
1889                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
1890                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1891                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
1892                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
1893                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
1894                    java.lang.Boolean iconImage, byte[] iconBytes,
1895                    com.liferay.portal.service.ServiceContext serviceContext)
1896                    throws com.liferay.portal.kernel.exception.PortalException,
1897                            com.liferay.portal.kernel.exception.SystemException {
1898                    try {
1899                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1900                                            "updateLayout", _updateLayoutParameterTypes48);
1901    
1902                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1903                                            privateLayout, layoutId, parentLayoutId, localeNamesMap,
1904                                            localeTitlesMap, descriptionMap, keywordsMap, robotsMap,
1905                                            type, hidden, friendlyURL, iconImage, iconBytes,
1906                                            serviceContext);
1907    
1908                            Object returnObj = null;
1909    
1910                            try {
1911                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1912                            }
1913                            catch (Exception e) {
1914                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1915                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1916                                    }
1917    
1918                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1919                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1920                                    }
1921    
1922                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1923                            }
1924    
1925                            return (com.liferay.portal.model.Layout)returnObj;
1926                    }
1927                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1928                            _log.error(se, se);
1929    
1930                            throw se;
1931                    }
1932            }
1933    
1934            public static com.liferay.portal.model.Layout updateLayout(
1935                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1936                    long layoutId, java.lang.String typeSettings)
1937                    throws com.liferay.portal.kernel.exception.PortalException,
1938                            com.liferay.portal.kernel.exception.SystemException {
1939                    try {
1940                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1941                                            "updateLayout", _updateLayoutParameterTypes49);
1942    
1943                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1944                                            privateLayout, layoutId, typeSettings);
1945    
1946                            Object returnObj = null;
1947    
1948                            try {
1949                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1950                            }
1951                            catch (Exception e) {
1952                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1953                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1954                                    }
1955    
1956                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1957                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1958                                    }
1959    
1960                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1961                            }
1962    
1963                            return (com.liferay.portal.model.Layout)returnObj;
1964                    }
1965                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1966                            _log.error(se, se);
1967    
1968                            throw se;
1969                    }
1970            }
1971    
1972            public static com.liferay.portal.model.Layout updateLookAndFeel(
1973                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
1974                    long layoutId, java.lang.String themeId,
1975                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
1976                    throws com.liferay.portal.kernel.exception.PortalException,
1977                            com.liferay.portal.kernel.exception.SystemException {
1978                    try {
1979                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
1980                                            "updateLookAndFeel", _updateLookAndFeelParameterTypes50);
1981    
1982                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1983                                            privateLayout, layoutId, themeId, colorSchemeId, css,
1984                                            wapTheme);
1985    
1986                            Object returnObj = null;
1987    
1988                            try {
1989                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1990                            }
1991                            catch (Exception e) {
1992                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1993                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1994                                    }
1995    
1996                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1997                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
1998                                    }
1999    
2000                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2001                            }
2002    
2003                            return (com.liferay.portal.model.Layout)returnObj;
2004                    }
2005                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2006                            _log.error(se, se);
2007    
2008                            throw se;
2009                    }
2010            }
2011    
2012            public static com.liferay.portal.model.Layout updateName(
2013                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
2014                    long layoutId, java.lang.String name, java.lang.String languageId)
2015                    throws com.liferay.portal.kernel.exception.PortalException,
2016                            com.liferay.portal.kernel.exception.SystemException {
2017                    try {
2018                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
2019                                            "updateName", _updateNameParameterTypes51);
2020    
2021                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2022                                            privateLayout, layoutId, name, languageId);
2023    
2024                            Object returnObj = null;
2025    
2026                            try {
2027                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2028                            }
2029                            catch (Exception e) {
2030                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2031                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2032                                    }
2033    
2034                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2035                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2036                                    }
2037    
2038                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2039                            }
2040    
2041                            return (com.liferay.portal.model.Layout)returnObj;
2042                    }
2043                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2044                            _log.error(se, se);
2045    
2046                            throw se;
2047                    }
2048            }
2049    
2050            public static com.liferay.portal.model.Layout updateName(
2051                    HttpPrincipal httpPrincipal, long plid, java.lang.String name,
2052                    java.lang.String languageId)
2053                    throws com.liferay.portal.kernel.exception.PortalException,
2054                            com.liferay.portal.kernel.exception.SystemException {
2055                    try {
2056                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
2057                                            "updateName", _updateNameParameterTypes52);
2058    
2059                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
2060                                            name, languageId);
2061    
2062                            Object returnObj = null;
2063    
2064                            try {
2065                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2066                            }
2067                            catch (Exception e) {
2068                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2069                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2070                                    }
2071    
2072                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2073                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2074                                    }
2075    
2076                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2077                            }
2078    
2079                            return (com.liferay.portal.model.Layout)returnObj;
2080                    }
2081                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2082                            _log.error(se, se);
2083    
2084                            throw se;
2085                    }
2086            }
2087    
2088            public static com.liferay.portal.model.Layout updateParentLayoutId(
2089                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
2090                    long layoutId, long parentLayoutId)
2091                    throws com.liferay.portal.kernel.exception.PortalException,
2092                            com.liferay.portal.kernel.exception.SystemException {
2093                    try {
2094                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
2095                                            "updateParentLayoutId",
2096                                            _updateParentLayoutIdParameterTypes53);
2097    
2098                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2099                                            privateLayout, layoutId, parentLayoutId);
2100    
2101                            Object returnObj = null;
2102    
2103                            try {
2104                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2105                            }
2106                            catch (Exception e) {
2107                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2108                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2109                                    }
2110    
2111                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2112                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2113                                    }
2114    
2115                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2116                            }
2117    
2118                            return (com.liferay.portal.model.Layout)returnObj;
2119                    }
2120                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2121                            _log.error(se, se);
2122    
2123                            throw se;
2124                    }
2125            }
2126    
2127            public static com.liferay.portal.model.Layout updateParentLayoutId(
2128                    HttpPrincipal httpPrincipal, long plid, long parentPlid)
2129                    throws com.liferay.portal.kernel.exception.PortalException,
2130                            com.liferay.portal.kernel.exception.SystemException {
2131                    try {
2132                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
2133                                            "updateParentLayoutId",
2134                                            _updateParentLayoutIdParameterTypes54);
2135    
2136                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
2137                                            parentPlid);
2138    
2139                            Object returnObj = null;
2140    
2141                            try {
2142                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2143                            }
2144                            catch (Exception e) {
2145                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2146                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2147                                    }
2148    
2149                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2150                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2151                                    }
2152    
2153                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2154                            }
2155    
2156                            return (com.liferay.portal.model.Layout)returnObj;
2157                    }
2158                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2159                            _log.error(se, se);
2160    
2161                            throw se;
2162                    }
2163            }
2164    
2165            public static com.liferay.portal.model.Layout updateParentLayoutIdAndPriority(
2166                    HttpPrincipal httpPrincipal, long plid, long parentPlid, int priority)
2167                    throws com.liferay.portal.kernel.exception.PortalException,
2168                            com.liferay.portal.kernel.exception.SystemException {
2169                    try {
2170                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
2171                                            "updateParentLayoutIdAndPriority",
2172                                            _updateParentLayoutIdAndPriorityParameterTypes55);
2173    
2174                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
2175                                            parentPlid, priority);
2176    
2177                            Object returnObj = null;
2178    
2179                            try {
2180                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2181                            }
2182                            catch (Exception e) {
2183                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2184                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2185                                    }
2186    
2187                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2188                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2189                                    }
2190    
2191                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2192                            }
2193    
2194                            return (com.liferay.portal.model.Layout)returnObj;
2195                    }
2196                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2197                            _log.error(se, se);
2198    
2199                            throw se;
2200                    }
2201            }
2202    
2203            public static com.liferay.portal.model.Layout updatePriority(
2204                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
2205                    long layoutId, int priority)
2206                    throws com.liferay.portal.kernel.exception.PortalException,
2207                            com.liferay.portal.kernel.exception.SystemException {
2208                    try {
2209                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
2210                                            "updatePriority", _updatePriorityParameterTypes56);
2211    
2212                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2213                                            privateLayout, layoutId, priority);
2214    
2215                            Object returnObj = null;
2216    
2217                            try {
2218                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2219                            }
2220                            catch (Exception e) {
2221                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2222                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2223                                    }
2224    
2225                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2226                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2227                                    }
2228    
2229                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2230                            }
2231    
2232                            return (com.liferay.portal.model.Layout)returnObj;
2233                    }
2234                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2235                            _log.error(se, se);
2236    
2237                            throw se;
2238                    }
2239            }
2240    
2241            public static com.liferay.portal.model.Layout updatePriority(
2242                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
2243                    long layoutId, long nextLayoutId, long previousLayoutId)
2244                    throws com.liferay.portal.kernel.exception.PortalException,
2245                            com.liferay.portal.kernel.exception.SystemException {
2246                    try {
2247                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
2248                                            "updatePriority", _updatePriorityParameterTypes57);
2249    
2250                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2251                                            privateLayout, layoutId, nextLayoutId, previousLayoutId);
2252    
2253                            Object returnObj = null;
2254    
2255                            try {
2256                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2257                            }
2258                            catch (Exception e) {
2259                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2260                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2261                                    }
2262    
2263                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2264                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2265                                    }
2266    
2267                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2268                            }
2269    
2270                            return (com.liferay.portal.model.Layout)returnObj;
2271                    }
2272                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2273                            _log.error(se, se);
2274    
2275                            throw se;
2276                    }
2277            }
2278    
2279            public static com.liferay.portal.model.Layout updatePriority(
2280                    HttpPrincipal httpPrincipal, long plid, int priority)
2281                    throws com.liferay.portal.kernel.exception.PortalException,
2282                            com.liferay.portal.kernel.exception.SystemException {
2283                    try {
2284                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
2285                                            "updatePriority", _updatePriorityParameterTypes58);
2286    
2287                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
2288                                            priority);
2289    
2290                            Object returnObj = null;
2291    
2292                            try {
2293                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2294                            }
2295                            catch (Exception e) {
2296                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2297                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2298                                    }
2299    
2300                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2301                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2302                                    }
2303    
2304                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2305                            }
2306    
2307                            return (com.liferay.portal.model.Layout)returnObj;
2308                    }
2309                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2310                            _log.error(se, se);
2311    
2312                            throw se;
2313                    }
2314            }
2315    
2316            public static com.liferay.portal.kernel.lar.MissingReferences validateImportLayoutsFile(
2317                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
2318                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
2319                    java.io.File file)
2320                    throws com.liferay.portal.kernel.exception.PortalException,
2321                            com.liferay.portal.kernel.exception.SystemException {
2322                    try {
2323                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
2324                                            "validateImportLayoutsFile",
2325                                            _validateImportLayoutsFileParameterTypes59);
2326    
2327                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2328                                            privateLayout, parameterMap, file);
2329    
2330                            Object returnObj = null;
2331    
2332                            try {
2333                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2334                            }
2335                            catch (Exception e) {
2336                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2337                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2338                                    }
2339    
2340                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2341                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2342                                    }
2343    
2344                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2345                            }
2346    
2347                            return (com.liferay.portal.kernel.lar.MissingReferences)returnObj;
2348                    }
2349                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2350                            _log.error(se, se);
2351    
2352                            throw se;
2353                    }
2354            }
2355    
2356            public static com.liferay.portal.kernel.lar.MissingReferences validateImportLayoutsFile(
2357                    HttpPrincipal httpPrincipal, long groupId, boolean privateLayout,
2358                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
2359                    java.io.InputStream inputStream)
2360                    throws com.liferay.portal.kernel.exception.PortalException,
2361                            com.liferay.portal.kernel.exception.SystemException {
2362                    try {
2363                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
2364                                            "validateImportLayoutsFile",
2365                                            _validateImportLayoutsFileParameterTypes60);
2366    
2367                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2368                                            privateLayout, parameterMap, inputStream);
2369    
2370                            Object returnObj = null;
2371    
2372                            try {
2373                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2374                            }
2375                            catch (Exception e) {
2376                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2377                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2378                                    }
2379    
2380                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2381                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2382                                    }
2383    
2384                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2385                            }
2386    
2387                            return (com.liferay.portal.kernel.lar.MissingReferences)returnObj;
2388                    }
2389                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2390                            _log.error(se, se);
2391    
2392                            throw se;
2393                    }
2394            }
2395    
2396            public static com.liferay.portal.kernel.lar.MissingReferences validateImportPortletInfo(
2397                    HttpPrincipal httpPrincipal, long plid, long groupId,
2398                    java.lang.String portletId,
2399                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
2400                    java.io.File file)
2401                    throws com.liferay.portal.kernel.exception.PortalException,
2402                            com.liferay.portal.kernel.exception.SystemException {
2403                    try {
2404                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
2405                                            "validateImportPortletInfo",
2406                                            _validateImportPortletInfoParameterTypes61);
2407    
2408                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
2409                                            groupId, portletId, parameterMap, file);
2410    
2411                            Object returnObj = null;
2412    
2413                            try {
2414                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2415                            }
2416                            catch (Exception e) {
2417                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2418                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2419                                    }
2420    
2421                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2422                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2423                                    }
2424    
2425                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2426                            }
2427    
2428                            return (com.liferay.portal.kernel.lar.MissingReferences)returnObj;
2429                    }
2430                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2431                            _log.error(se, se);
2432    
2433                            throw se;
2434                    }
2435            }
2436    
2437            public static com.liferay.portal.kernel.lar.MissingReferences validateImportPortletInfo(
2438                    HttpPrincipal httpPrincipal, long plid, long groupId,
2439                    java.lang.String portletId,
2440                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
2441                    java.io.InputStream inputStream)
2442                    throws com.liferay.portal.kernel.exception.PortalException,
2443                            com.liferay.portal.kernel.exception.SystemException {
2444                    try {
2445                            MethodKey methodKey = new MethodKey(LayoutServiceUtil.class,
2446                                            "validateImportPortletInfo",
2447                                            _validateImportPortletInfoParameterTypes62);
2448    
2449                            MethodHandler methodHandler = new MethodHandler(methodKey, plid,
2450                                            groupId, portletId, parameterMap, inputStream);
2451    
2452                            Object returnObj = null;
2453    
2454                            try {
2455                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2456                            }
2457                            catch (Exception e) {
2458                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2459                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
2460                                    }
2461    
2462                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2463                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
2464                                    }
2465    
2466                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
2467                            }
2468    
2469                            return (com.liferay.portal.kernel.lar.MissingReferences)returnObj;
2470                    }
2471                    catch (com.liferay.portal.kernel.exception.SystemException se) {
2472                            _log.error(se, se);
2473    
2474                            throw se;
2475                    }
2476            }
2477    
2478            private static Log _log = LogFactoryUtil.getLog(LayoutServiceHttp.class);
2479            private static final Class<?>[] _addLayoutParameterTypes0 = new Class[] {
2480                            long.class, boolean.class, long.class, java.util.Map.class,
2481                            java.util.Map.class, java.util.Map.class, java.util.Map.class,
2482                            java.util.Map.class, java.lang.String.class, boolean.class,
2483                            java.lang.String.class,
2484                            com.liferay.portal.service.ServiceContext.class
2485                    };
2486            private static final Class<?>[] _addLayoutParameterTypes1 = new Class[] {
2487                            long.class, boolean.class, long.class, java.util.Map.class,
2488                            java.util.Map.class, java.util.Map.class, java.util.Map.class,
2489                            java.util.Map.class, java.lang.String.class, java.lang.String.class,
2490                            boolean.class, java.util.Map.class,
2491                            com.liferay.portal.service.ServiceContext.class
2492                    };
2493            private static final Class<?>[] _addLayoutParameterTypes2 = new Class[] {
2494                            long.class, boolean.class, long.class, java.lang.String.class,
2495                            java.lang.String.class, java.lang.String.class,
2496                            java.lang.String.class, boolean.class, java.lang.String.class,
2497                            com.liferay.portal.service.ServiceContext.class
2498                    };
2499            private static final Class<?>[] _addTempFileEntryParameterTypes3 = new Class[] {
2500                            long.class, java.lang.String.class, java.lang.String.class,
2501                            java.io.InputStream.class, java.lang.String.class
2502                    };
2503            private static final Class<?>[] _deleteLayoutParameterTypes4 = new Class[] {
2504                            long.class, boolean.class, long.class,
2505                            com.liferay.portal.service.ServiceContext.class
2506                    };
2507            private static final Class<?>[] _deleteLayoutParameterTypes5 = new Class[] {
2508                            long.class, com.liferay.portal.service.ServiceContext.class
2509                    };
2510            private static final Class<?>[] _deleteTempFileEntryParameterTypes6 = new Class[] {
2511                            long.class, java.lang.String.class, java.lang.String.class
2512                    };
2513            private static final Class<?>[] _exportLayoutsParameterTypes7 = new Class[] {
2514                            long.class, boolean.class, long[].class, java.util.Map.class,
2515                            java.util.Date.class, java.util.Date.class
2516                    };
2517            private static final Class<?>[] _exportLayoutsParameterTypes8 = new Class[] {
2518                            long.class, boolean.class, java.util.Map.class, java.util.Date.class,
2519                            java.util.Date.class
2520                    };
2521            private static final Class<?>[] _exportLayoutsAsFileParameterTypes9 = new Class[] {
2522                            long.class, boolean.class, long[].class, java.util.Map.class,
2523                            java.util.Date.class, java.util.Date.class
2524                    };
2525            private static final Class<?>[] _exportLayoutsAsFileInBackgroundParameterTypes10 =
2526                    new Class[] {
2527                            java.lang.String.class, long.class, boolean.class, long[].class,
2528                            java.util.Map.class, java.util.Date.class, java.util.Date.class,
2529                            java.lang.String.class
2530                    };
2531            private static final Class<?>[] _exportPortletInfoParameterTypes11 = new Class[] {
2532                            long.class, long.class, java.lang.String.class, java.util.Map.class,
2533                            java.util.Date.class, java.util.Date.class
2534                    };
2535            private static final Class<?>[] _exportPortletInfoParameterTypes12 = new Class[] {
2536                            long.class, java.lang.String.class, java.util.Map.class,
2537                            java.util.Date.class, java.util.Date.class
2538                    };
2539            private static final Class<?>[] _exportPortletInfoAsFileParameterTypes13 = new Class[] {
2540                            long.class, long.class, java.lang.String.class, java.util.Map.class,
2541                            java.util.Date.class, java.util.Date.class
2542                    };
2543            private static final Class<?>[] _exportPortletInfoAsFileParameterTypes14 = new Class[] {
2544                            java.lang.String.class, java.util.Map.class, java.util.Date.class,
2545                            java.util.Date.class
2546                    };
2547            private static final Class<?>[] _exportPortletInfoAsFileInBackgroundParameterTypes15 =
2548                    new Class[] {
2549                            java.lang.String.class, long.class, long.class,
2550                            java.lang.String.class, java.util.Map.class, java.util.Date.class,
2551                            java.util.Date.class, java.lang.String.class
2552                    };
2553            private static final Class<?>[] _exportPortletInfoAsFileInBackgroundParameterTypes16 =
2554                    new Class[] {
2555                            java.lang.String.class, java.lang.String.class, java.util.Map.class,
2556                            java.util.Date.class, java.util.Date.class, java.lang.String.class
2557                    };
2558            private static final Class<?>[] _getAncestorLayoutsParameterTypes17 = new Class[] {
2559                            long.class
2560                    };
2561            private static final Class<?>[] _getDefaultPlidParameterTypes18 = new Class[] {
2562                            long.class, long.class, boolean.class, java.lang.String.class
2563                    };
2564            private static final Class<?>[] _getDefaultPlidParameterTypes19 = new Class[] {
2565                            long.class, long.class, java.lang.String.class
2566                    };
2567            private static final Class<?>[] _getLayoutByUuidAndGroupIdParameterTypes20 = new Class[] {
2568                            java.lang.String.class, long.class, boolean.class
2569                    };
2570            private static final Class<?>[] _getLayoutNameParameterTypes21 = new Class[] {
2571                            long.class, boolean.class, long.class, java.lang.String.class
2572                    };
2573            private static final Class<?>[] _getLayoutReferencesParameterTypes22 = new Class[] {
2574                            long.class, java.lang.String.class, java.lang.String.class,
2575                            java.lang.String.class
2576                    };
2577            private static final Class<?>[] _getLayoutsParameterTypes23 = new Class[] {
2578                            long.class, boolean.class
2579                    };
2580            private static final Class<?>[] _getLayoutsParameterTypes24 = new Class[] {
2581                            long.class, boolean.class, long.class
2582                    };
2583            private static final Class<?>[] _getLayoutsParameterTypes25 = new Class[] {
2584                            long.class, boolean.class, long.class, boolean.class, int.class,
2585                            int.class
2586                    };
2587            private static final Class<?>[] _getLayoutsCountParameterTypes26 = new Class[] {
2588                            long.class, boolean.class, long.class
2589                    };
2590            private static final Class<?>[] _getLayoutsCountParameterTypes27 = new Class[] {
2591                            long.class, boolean.class, long.class, int.class
2592                    };
2593            private static final Class<?>[] _getTempFileEntryNamesParameterTypes28 = new Class[] {
2594                            long.class, java.lang.String.class
2595                    };
2596            private static final Class<?>[] _importLayoutsParameterTypes29 = new Class[] {
2597                            long.class, boolean.class, java.util.Map.class, byte[].class
2598                    };
2599            private static final Class<?>[] _importLayoutsParameterTypes30 = new Class[] {
2600                            long.class, boolean.class, java.util.Map.class, java.io.File.class
2601                    };
2602            private static final Class<?>[] _importLayoutsParameterTypes31 = new Class[] {
2603                            long.class, boolean.class, java.util.Map.class,
2604                            java.io.InputStream.class
2605                    };
2606            private static final Class<?>[] _importLayoutsInBackgroundParameterTypes32 = new Class[] {
2607                            java.lang.String.class, long.class, boolean.class,
2608                            java.util.Map.class, java.io.File.class
2609                    };
2610            private static final Class<?>[] _importLayoutsInBackgroundParameterTypes33 = new Class[] {
2611                            java.lang.String.class, long.class, boolean.class,
2612                            java.util.Map.class, java.io.InputStream.class
2613                    };
2614            private static final Class<?>[] _importPortletInfoParameterTypes34 = new Class[] {
2615                            long.class, long.class, java.lang.String.class, java.util.Map.class,
2616                            java.io.File.class
2617                    };
2618            private static final Class<?>[] _importPortletInfoParameterTypes35 = new Class[] {
2619                            long.class, long.class, java.lang.String.class, java.util.Map.class,
2620                            java.io.InputStream.class
2621                    };
2622            private static final Class<?>[] _importPortletInfoParameterTypes36 = new Class[] {
2623                            java.lang.String.class, java.util.Map.class, java.io.File.class
2624                    };
2625            private static final Class<?>[] _importPortletInfoParameterTypes37 = new Class[] {
2626                            java.lang.String.class, java.util.Map.class,
2627                            java.io.InputStream.class
2628                    };
2629            private static final Class<?>[] _importPortletInfoInBackgroundParameterTypes38 =
2630                    new Class[] {
2631                            java.lang.String.class, long.class, long.class,
2632                            java.lang.String.class, java.util.Map.class, java.io.File.class
2633                    };
2634            private static final Class<?>[] _importPortletInfoInBackgroundParameterTypes39 =
2635                    new Class[] {
2636                            java.lang.String.class, long.class, long.class,
2637                            java.lang.String.class, java.util.Map.class,
2638                            java.io.InputStream.class
2639                    };
2640            private static final Class<?>[] _importPortletInfoInBackgroundParameterTypes40 =
2641                    new Class[] {
2642                            java.lang.String.class, java.lang.String.class, java.util.Map.class,
2643                            java.io.File.class
2644                    };
2645            private static final Class<?>[] _importPortletInfoInBackgroundParameterTypes41 =
2646                    new Class[] {
2647                            java.lang.String.class, java.lang.String.class, java.util.Map.class,
2648                            java.io.InputStream.class
2649                    };
2650            private static final Class<?>[] _schedulePublishToLiveParameterTypes42 = new Class[] {
2651                            long.class, long.class, boolean.class, java.util.Map.class,
2652                            java.util.Map.class, java.lang.String.class, java.util.Date.class,
2653                            java.util.Date.class, java.lang.String.class, java.lang.String.class,
2654                            java.util.Date.class, java.util.Date.class, java.lang.String.class
2655                    };
2656            private static final Class<?>[] _schedulePublishToRemoteParameterTypes43 = new Class[] {
2657                            long.class, boolean.class, java.util.Map.class, java.util.Map.class,
2658                            java.lang.String.class, int.class, java.lang.String.class,
2659                            boolean.class, long.class, boolean.class, java.util.Date.class,
2660                            java.util.Date.class, java.lang.String.class, java.lang.String.class,
2661                            java.util.Date.class, java.util.Date.class, java.lang.String.class
2662                    };
2663            private static final Class<?>[] _setLayoutsParameterTypes44 = new Class[] {
2664                            long.class, boolean.class, long.class, long[].class,
2665                            com.liferay.portal.service.ServiceContext.class
2666                    };
2667            private static final Class<?>[] _unschedulePublishToLiveParameterTypes45 = new Class[] {
2668                            long.class, java.lang.String.class, java.lang.String.class
2669                    };
2670            private static final Class<?>[] _unschedulePublishToRemoteParameterTypes46 = new Class[] {
2671                            long.class, java.lang.String.class, java.lang.String.class
2672                    };
2673            private static final Class<?>[] _updateLayoutParameterTypes47 = new Class[] {
2674                            long.class, boolean.class, long.class, long.class,
2675                            java.util.Map.class, java.util.Map.class, java.util.Map.class,
2676                            java.util.Map.class, java.util.Map.class, java.lang.String.class,
2677                            boolean.class, java.util.Map.class, java.lang.Boolean.class,
2678                            byte[].class, com.liferay.portal.service.ServiceContext.class
2679                    };
2680            private static final Class<?>[] _updateLayoutParameterTypes48 = new Class[] {
2681                            long.class, boolean.class, long.class, long.class,
2682                            java.util.Map.class, java.util.Map.class, java.util.Map.class,
2683                            java.util.Map.class, java.util.Map.class, java.lang.String.class,
2684                            boolean.class, java.lang.String.class, java.lang.Boolean.class,
2685                            byte[].class, com.liferay.portal.service.ServiceContext.class
2686                    };
2687            private static final Class<?>[] _updateLayoutParameterTypes49 = new Class[] {
2688                            long.class, boolean.class, long.class, java.lang.String.class
2689                    };
2690            private static final Class<?>[] _updateLookAndFeelParameterTypes50 = new Class[] {
2691                            long.class, boolean.class, long.class, java.lang.String.class,
2692                            java.lang.String.class, java.lang.String.class, boolean.class
2693                    };
2694            private static final Class<?>[] _updateNameParameterTypes51 = new Class[] {
2695                            long.class, boolean.class, long.class, java.lang.String.class,
2696                            java.lang.String.class
2697                    };
2698            private static final Class<?>[] _updateNameParameterTypes52 = new Class[] {
2699                            long.class, java.lang.String.class, java.lang.String.class
2700                    };
2701            private static final Class<?>[] _updateParentLayoutIdParameterTypes53 = new Class[] {
2702                            long.class, boolean.class, long.class, long.class
2703                    };
2704            private static final Class<?>[] _updateParentLayoutIdParameterTypes54 = new Class[] {
2705                            long.class, long.class
2706                    };
2707            private static final Class<?>[] _updateParentLayoutIdAndPriorityParameterTypes55 =
2708                    new Class[] { long.class, long.class, int.class };
2709            private static final Class<?>[] _updatePriorityParameterTypes56 = new Class[] {
2710                            long.class, boolean.class, long.class, int.class
2711                    };
2712            private static final Class<?>[] _updatePriorityParameterTypes57 = new Class[] {
2713                            long.class, boolean.class, long.class, long.class, long.class
2714                    };
2715            private static final Class<?>[] _updatePriorityParameterTypes58 = new Class[] {
2716                            long.class, int.class
2717                    };
2718            private static final Class<?>[] _validateImportLayoutsFileParameterTypes59 = new Class[] {
2719                            long.class, boolean.class, java.util.Map.class, java.io.File.class
2720                    };
2721            private static final Class<?>[] _validateImportLayoutsFileParameterTypes60 = new Class[] {
2722                            long.class, boolean.class, java.util.Map.class,
2723                            java.io.InputStream.class
2724                    };
2725            private static final Class<?>[] _validateImportPortletInfoParameterTypes61 = new Class[] {
2726                            long.class, long.class, java.lang.String.class, java.util.Map.class,
2727                            java.io.File.class
2728                    };
2729            private static final Class<?>[] _validateImportPortletInfoParameterTypes62 = new Class[] {
2730                            long.class, long.class, java.lang.String.class, java.util.Map.class,
2731                            java.io.InputStream.class
2732                    };
2733    }