001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.dynamicdatamapping.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.http.TunnelUtil;
023    
024    import com.liferay.portlet.dynamicdatamapping.service.DDMStructureServiceUtil;
025    
026    /**
027     * <p>
028     * This class provides a HTTP utility for the
029     * {@link com.liferay.portlet.dynamicdatamapping.service.DDMStructureServiceUtil} service utility. The
030     * static methods of this class calls the same methods of the service utility.
031     * However, the signatures are different because it requires an additional
032     * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
033     * </p>
034     *
035     * <p>
036     * The benefits of using the HTTP utility is that it is fast and allows for
037     * tunneling without the cost of serializing to text. The drawback is that it
038     * only works with Java.
039     * </p>
040     *
041     * <p>
042     * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
043     * configure security.
044     * </p>
045     *
046     * <p>
047     * The HTTP utility is only generated for remote services.
048     * </p>
049     *
050     * @author    Brian Wing Shun Chan
051     * @see       DDMStructureServiceSoap
052     * @see       com.liferay.portal.security.auth.HttpPrincipal
053     * @see       com.liferay.portlet.dynamicdatamapping.service.DDMStructureServiceUtil
054     * @generated
055     */
056    public class DDMStructureServiceHttp {
057            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
058                    HttpPrincipal httpPrincipal, long userId, long groupId,
059                    java.lang.String parentStructureKey, long classNameId,
060                    java.lang.String structureKey,
061                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
062                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
063                    java.lang.String xsd, java.lang.String storageType, int type,
064                    com.liferay.portal.service.ServiceContext serviceContext)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    try {
068                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
069                                            "addStructure", _addStructureParameterTypes0);
070    
071                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
072                                            groupId, parentStructureKey, classNameId, structureKey,
073                                            nameMap, descriptionMap, xsd, storageType, type,
074                                            serviceContext);
075    
076                            Object returnObj = null;
077    
078                            try {
079                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
080                            }
081                            catch (Exception e) {
082                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
083                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
084                                    }
085    
086                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
087                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
088                                    }
089    
090                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
091                            }
092    
093                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
094                    }
095                    catch (com.liferay.portal.kernel.exception.SystemException se) {
096                            _log.error(se, se);
097    
098                            throw se;
099                    }
100            }
101    
102            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
103                    HttpPrincipal httpPrincipal, long userId, long groupId,
104                    long classNameId,
105                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
106                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
107                    java.lang.String xsd,
108                    com.liferay.portal.service.ServiceContext serviceContext)
109                    throws com.liferay.portal.kernel.exception.PortalException,
110                            com.liferay.portal.kernel.exception.SystemException {
111                    try {
112                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
113                                            "addStructure", _addStructureParameterTypes1);
114    
115                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
116                                            groupId, classNameId, nameMap, descriptionMap, xsd,
117                                            serviceContext);
118    
119                            Object returnObj = null;
120    
121                            try {
122                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
123                            }
124                            catch (Exception e) {
125                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
126                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
127                                    }
128    
129                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
130                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
131                                    }
132    
133                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
134                            }
135    
136                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
137                    }
138                    catch (com.liferay.portal.kernel.exception.SystemException se) {
139                            _log.error(se, se);
140    
141                            throw se;
142                    }
143            }
144    
145            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
146                    HttpPrincipal httpPrincipal, long groupId, long parentStructureId,
147                    long classNameId, java.lang.String structureKey,
148                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
149                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
150                    java.lang.String xsd, java.lang.String storageType, int type,
151                    com.liferay.portal.service.ServiceContext serviceContext)
152                    throws com.liferay.portal.kernel.exception.PortalException,
153                            com.liferay.portal.kernel.exception.SystemException {
154                    try {
155                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
156                                            "addStructure", _addStructureParameterTypes2);
157    
158                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
159                                            parentStructureId, classNameId, structureKey, nameMap,
160                                            descriptionMap, xsd, storageType, type, serviceContext);
161    
162                            Object returnObj = null;
163    
164                            try {
165                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
166                            }
167                            catch (Exception e) {
168                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
169                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
170                                    }
171    
172                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
173                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
174                                    }
175    
176                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
177                            }
178    
179                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
180                    }
181                    catch (com.liferay.portal.kernel.exception.SystemException se) {
182                            _log.error(se, se);
183    
184                            throw se;
185                    }
186            }
187    
188            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure copyStructure(
189                    HttpPrincipal httpPrincipal, long structureId,
190                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
191                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
192                    com.liferay.portal.service.ServiceContext serviceContext)
193                    throws com.liferay.portal.kernel.exception.PortalException,
194                            com.liferay.portal.kernel.exception.SystemException {
195                    try {
196                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
197                                            "copyStructure", _copyStructureParameterTypes3);
198    
199                            MethodHandler methodHandler = new MethodHandler(methodKey,
200                                            structureId, nameMap, descriptionMap, serviceContext);
201    
202                            Object returnObj = null;
203    
204                            try {
205                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
206                            }
207                            catch (Exception e) {
208                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
209                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
210                                    }
211    
212                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
213                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
214                                    }
215    
216                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
217                            }
218    
219                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
220                    }
221                    catch (com.liferay.portal.kernel.exception.SystemException se) {
222                            _log.error(se, se);
223    
224                            throw se;
225                    }
226            }
227    
228            public static void deleteStructure(HttpPrincipal httpPrincipal,
229                    long structureId)
230                    throws com.liferay.portal.kernel.exception.PortalException,
231                            com.liferay.portal.kernel.exception.SystemException {
232                    try {
233                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
234                                            "deleteStructure", _deleteStructureParameterTypes4);
235    
236                            MethodHandler methodHandler = new MethodHandler(methodKey,
237                                            structureId);
238    
239                            try {
240                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
241                            }
242                            catch (Exception e) {
243                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
244                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
245                                    }
246    
247                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
248                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
249                                    }
250    
251                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
252                            }
253                    }
254                    catch (com.liferay.portal.kernel.exception.SystemException se) {
255                            _log.error(se, se);
256    
257                            throw se;
258                    }
259            }
260    
261            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(
262                    HttpPrincipal httpPrincipal, long groupId, java.lang.String structureKey)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException {
265                    try {
266                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
267                                            "fetchStructure", _fetchStructureParameterTypes5);
268    
269                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
270                                            structureKey);
271    
272                            Object returnObj = null;
273    
274                            try {
275                                    returnObj = 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                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
290                    }
291                    catch (com.liferay.portal.kernel.exception.SystemException se) {
292                            _log.error(se, se);
293    
294                            throw se;
295                    }
296            }
297    
298            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
299                    HttpPrincipal httpPrincipal, long structureId)
300                    throws com.liferay.portal.kernel.exception.PortalException,
301                            com.liferay.portal.kernel.exception.SystemException {
302                    try {
303                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
304                                            "getStructure", _getStructureParameterTypes6);
305    
306                            MethodHandler methodHandler = new MethodHandler(methodKey,
307                                            structureId);
308    
309                            Object returnObj = null;
310    
311                            try {
312                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
313                            }
314                            catch (Exception e) {
315                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
316                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
317                                    }
318    
319                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
320                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
321                                    }
322    
323                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
324                            }
325    
326                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
327                    }
328                    catch (com.liferay.portal.kernel.exception.SystemException se) {
329                            _log.error(se, se);
330    
331                            throw se;
332                    }
333            }
334    
335            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
336                    HttpPrincipal httpPrincipal, long groupId, java.lang.String structureKey)
337                    throws com.liferay.portal.kernel.exception.PortalException,
338                            com.liferay.portal.kernel.exception.SystemException {
339                    try {
340                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
341                                            "getStructure", _getStructureParameterTypes7);
342    
343                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
344                                            structureKey);
345    
346                            Object returnObj = null;
347    
348                            try {
349                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
350                            }
351                            catch (Exception e) {
352                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
353                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
354                                    }
355    
356                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
357                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
358                                    }
359    
360                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
361                            }
362    
363                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
364                    }
365                    catch (com.liferay.portal.kernel.exception.SystemException se) {
366                            _log.error(se, se);
367    
368                            throw se;
369                    }
370            }
371    
372            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
373                    HttpPrincipal httpPrincipal, long groupId,
374                    java.lang.String structureKey, boolean includeGlobalStructures)
375                    throws com.liferay.portal.kernel.exception.PortalException,
376                            com.liferay.portal.kernel.exception.SystemException {
377                    try {
378                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
379                                            "getStructure", _getStructureParameterTypes8);
380    
381                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
382                                            structureKey, includeGlobalStructures);
383    
384                            Object returnObj = null;
385    
386                            try {
387                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
388                            }
389                            catch (Exception e) {
390                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
391                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
392                                    }
393    
394                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
395                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
396                                    }
397    
398                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
399                            }
400    
401                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
402                    }
403                    catch (com.liferay.portal.kernel.exception.SystemException se) {
404                            _log.error(se, se);
405    
406                            throw se;
407                    }
408            }
409    
410            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
411                    HttpPrincipal httpPrincipal, long groupId)
412                    throws com.liferay.portal.kernel.exception.SystemException {
413                    try {
414                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
415                                            "getStructures", _getStructuresParameterTypes9);
416    
417                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
418    
419                            Object returnObj = null;
420    
421                            try {
422                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
423                            }
424                            catch (Exception e) {
425                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
426                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
427                                    }
428    
429                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
430                            }
431    
432                            return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
433                    }
434                    catch (com.liferay.portal.kernel.exception.SystemException se) {
435                            _log.error(se, se);
436    
437                            throw se;
438                    }
439            }
440    
441            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
442                    HttpPrincipal httpPrincipal, long[] groupIds)
443                    throws com.liferay.portal.kernel.exception.SystemException {
444                    try {
445                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
446                                            "getStructures", _getStructuresParameterTypes10);
447    
448                            MethodHandler methodHandler = new MethodHandler(methodKey, groupIds);
449    
450                            Object returnObj = null;
451    
452                            try {
453                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
454                            }
455                            catch (Exception e) {
456                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
457                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
458                                    }
459    
460                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
461                            }
462    
463                            return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
464                    }
465                    catch (com.liferay.portal.kernel.exception.SystemException se) {
466                            _log.error(se, se);
467    
468                            throw se;
469                    }
470            }
471    
472            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
473                    HttpPrincipal httpPrincipal, long companyId, long[] groupIds,
474                    long[] classNameIds, java.lang.String keywords, int start, int end,
475                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
476                    throws com.liferay.portal.kernel.exception.SystemException {
477                    try {
478                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
479                                            "search", _searchParameterTypes11);
480    
481                            MethodHandler methodHandler = new MethodHandler(methodKey,
482                                            companyId, groupIds, classNameIds, keywords, start, end,
483                                            orderByComparator);
484    
485                            Object returnObj = null;
486    
487                            try {
488                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
489                            }
490                            catch (Exception e) {
491                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
492                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
493                                    }
494    
495                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
496                            }
497    
498                            return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
499                    }
500                    catch (com.liferay.portal.kernel.exception.SystemException se) {
501                            _log.error(se, se);
502    
503                            throw se;
504                    }
505            }
506    
507            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
508                    HttpPrincipal httpPrincipal, long companyId, long[] groupIds,
509                    long[] classNameIds, java.lang.String name,
510                    java.lang.String description, java.lang.String storageType, int type,
511                    boolean andOperator, int start, int end,
512                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
513                    throws com.liferay.portal.kernel.exception.SystemException {
514                    try {
515                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
516                                            "search", _searchParameterTypes12);
517    
518                            MethodHandler methodHandler = new MethodHandler(methodKey,
519                                            companyId, groupIds, classNameIds, name, description,
520                                            storageType, type, andOperator, start, end,
521                                            orderByComparator);
522    
523                            Object returnObj = null;
524    
525                            try {
526                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
527                            }
528                            catch (Exception e) {
529                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
530                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
531                                    }
532    
533                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
534                            }
535    
536                            return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
537                    }
538                    catch (com.liferay.portal.kernel.exception.SystemException se) {
539                            _log.error(se, se);
540    
541                            throw se;
542                    }
543            }
544    
545            public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
546                    long[] groupIds, long[] classNameIds, java.lang.String keywords)
547                    throws com.liferay.portal.kernel.exception.SystemException {
548                    try {
549                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
550                                            "searchCount", _searchCountParameterTypes13);
551    
552                            MethodHandler methodHandler = new MethodHandler(methodKey,
553                                            companyId, groupIds, classNameIds, keywords);
554    
555                            Object returnObj = null;
556    
557                            try {
558                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
559                            }
560                            catch (Exception e) {
561                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
562                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
563                                    }
564    
565                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
566                            }
567    
568                            return ((Integer)returnObj).intValue();
569                    }
570                    catch (com.liferay.portal.kernel.exception.SystemException se) {
571                            _log.error(se, se);
572    
573                            throw se;
574                    }
575            }
576    
577            public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
578                    long[] groupIds, long[] classNameIds, java.lang.String name,
579                    java.lang.String description, java.lang.String storageType, int type,
580                    boolean andOperator)
581                    throws com.liferay.portal.kernel.exception.SystemException {
582                    try {
583                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
584                                            "searchCount", _searchCountParameterTypes14);
585    
586                            MethodHandler methodHandler = new MethodHandler(methodKey,
587                                            companyId, groupIds, classNameIds, name, description,
588                                            storageType, type, andOperator);
589    
590                            Object returnObj = null;
591    
592                            try {
593                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
594                            }
595                            catch (Exception e) {
596                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
597                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
598                                    }
599    
600                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
601                            }
602    
603                            return ((Integer)returnObj).intValue();
604                    }
605                    catch (com.liferay.portal.kernel.exception.SystemException se) {
606                            _log.error(se, se);
607    
608                            throw se;
609                    }
610            }
611    
612            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
613                    HttpPrincipal httpPrincipal, long structureId, long parentStructureId,
614                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
615                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
616                    java.lang.String xsd,
617                    com.liferay.portal.service.ServiceContext serviceContext)
618                    throws com.liferay.portal.kernel.exception.PortalException,
619                            com.liferay.portal.kernel.exception.SystemException {
620                    try {
621                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
622                                            "updateStructure", _updateStructureParameterTypes15);
623    
624                            MethodHandler methodHandler = new MethodHandler(methodKey,
625                                            structureId, parentStructureId, nameMap, descriptionMap,
626                                            xsd, serviceContext);
627    
628                            Object returnObj = null;
629    
630                            try {
631                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
632                            }
633                            catch (Exception e) {
634                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
635                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
636                                    }
637    
638                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
639                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
640                                    }
641    
642                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
643                            }
644    
645                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
646                    }
647                    catch (com.liferay.portal.kernel.exception.SystemException se) {
648                            _log.error(se, se);
649    
650                            throw se;
651                    }
652            }
653    
654            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
655                    HttpPrincipal httpPrincipal, long groupId, long parentStructureId,
656                    java.lang.String structureKey,
657                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
658                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
659                    java.lang.String xsd,
660                    com.liferay.portal.service.ServiceContext serviceContext)
661                    throws com.liferay.portal.kernel.exception.PortalException,
662                            com.liferay.portal.kernel.exception.SystemException {
663                    try {
664                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
665                                            "updateStructure", _updateStructureParameterTypes16);
666    
667                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
668                                            parentStructureId, structureKey, nameMap, descriptionMap,
669                                            xsd, serviceContext);
670    
671                            Object returnObj = null;
672    
673                            try {
674                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
675                            }
676                            catch (Exception e) {
677                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
678                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
679                                    }
680    
681                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
682                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
683                                    }
684    
685                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
686                            }
687    
688                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
689                    }
690                    catch (com.liferay.portal.kernel.exception.SystemException se) {
691                            _log.error(se, se);
692    
693                            throw se;
694                    }
695            }
696    
697            private static Log _log = LogFactoryUtil.getLog(DDMStructureServiceHttp.class);
698            private static final Class<?>[] _addStructureParameterTypes0 = new Class[] {
699                            long.class, long.class, java.lang.String.class, long.class,
700                            java.lang.String.class, java.util.Map.class, java.util.Map.class,
701                            java.lang.String.class, java.lang.String.class, int.class,
702                            com.liferay.portal.service.ServiceContext.class
703                    };
704            private static final Class<?>[] _addStructureParameterTypes1 = new Class[] {
705                            long.class, long.class, long.class, java.util.Map.class,
706                            java.util.Map.class, java.lang.String.class,
707                            com.liferay.portal.service.ServiceContext.class
708                    };
709            private static final Class<?>[] _addStructureParameterTypes2 = new Class[] {
710                            long.class, long.class, long.class, java.lang.String.class,
711                            java.util.Map.class, java.util.Map.class, java.lang.String.class,
712                            java.lang.String.class, int.class,
713                            com.liferay.portal.service.ServiceContext.class
714                    };
715            private static final Class<?>[] _copyStructureParameterTypes3 = new Class[] {
716                            long.class, java.util.Map.class, java.util.Map.class,
717                            com.liferay.portal.service.ServiceContext.class
718                    };
719            private static final Class<?>[] _deleteStructureParameterTypes4 = new Class[] {
720                            long.class
721                    };
722            private static final Class<?>[] _fetchStructureParameterTypes5 = new Class[] {
723                            long.class, java.lang.String.class
724                    };
725            private static final Class<?>[] _getStructureParameterTypes6 = new Class[] {
726                            long.class
727                    };
728            private static final Class<?>[] _getStructureParameterTypes7 = new Class[] {
729                            long.class, java.lang.String.class
730                    };
731            private static final Class<?>[] _getStructureParameterTypes8 = new Class[] {
732                            long.class, java.lang.String.class, boolean.class
733                    };
734            private static final Class<?>[] _getStructuresParameterTypes9 = new Class[] {
735                            long.class
736                    };
737            private static final Class<?>[] _getStructuresParameterTypes10 = new Class[] {
738                            long[].class
739                    };
740            private static final Class<?>[] _searchParameterTypes11 = new Class[] {
741                            long.class, long[].class, long[].class, java.lang.String.class,
742                            int.class, int.class,
743                            com.liferay.portal.kernel.util.OrderByComparator.class
744                    };
745            private static final Class<?>[] _searchParameterTypes12 = new Class[] {
746                            long.class, long[].class, long[].class, java.lang.String.class,
747                            java.lang.String.class, java.lang.String.class, int.class,
748                            boolean.class, int.class, int.class,
749                            com.liferay.portal.kernel.util.OrderByComparator.class
750                    };
751            private static final Class<?>[] _searchCountParameterTypes13 = new Class[] {
752                            long.class, long[].class, long[].class, java.lang.String.class
753                    };
754            private static final Class<?>[] _searchCountParameterTypes14 = new Class[] {
755                            long.class, long[].class, long[].class, java.lang.String.class,
756                            java.lang.String.class, java.lang.String.class, int.class,
757                            boolean.class
758                    };
759            private static final Class<?>[] _updateStructureParameterTypes15 = new Class[] {
760                            long.class, long.class, java.util.Map.class, java.util.Map.class,
761                            java.lang.String.class,
762                            com.liferay.portal.service.ServiceContext.class
763                    };
764            private static final Class<?>[] _updateStructureParameterTypes16 = new Class[] {
765                            long.class, long.class, java.lang.String.class, java.util.Map.class,
766                            java.util.Map.class, java.lang.String.class,
767                            com.liferay.portal.service.ServiceContext.class
768                    };
769    }