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                    long classNameId,
060                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
061                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
062                    java.lang.String xsd,
063                    com.liferay.portal.service.ServiceContext serviceContext)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    try {
067                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
068                                            "addStructure", _addStructureParameterTypes0);
069    
070                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
071                                            groupId, classNameId, nameMap, descriptionMap, xsd,
072                                            serviceContext);
073    
074                            Object returnObj = null;
075    
076                            try {
077                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
078                            }
079                            catch (Exception e) {
080                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
081                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
082                                    }
083    
084                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
085                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
086                                    }
087    
088                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
089                            }
090    
091                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)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.portlet.dynamicdatamapping.model.DDMStructure addStructure(
101                    HttpPrincipal httpPrincipal, long groupId, long parentStructureId,
102                    long classNameId, java.lang.String structureKey,
103                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
104                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
105                    java.lang.String xsd, java.lang.String storageType, int type,
106                    com.liferay.portal.service.ServiceContext serviceContext)
107                    throws com.liferay.portal.kernel.exception.PortalException,
108                            com.liferay.portal.kernel.exception.SystemException {
109                    try {
110                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
111                                            "addStructure", _addStructureParameterTypes1);
112    
113                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
114                                            parentStructureId, classNameId, structureKey, nameMap,
115                                            descriptionMap, xsd, storageType, type, serviceContext);
116    
117                            Object returnObj = null;
118    
119                            try {
120                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
121                            }
122                            catch (Exception e) {
123                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
124                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
125                                    }
126    
127                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
128                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
129                                    }
130    
131                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
132                            }
133    
134                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
135                    }
136                    catch (com.liferay.portal.kernel.exception.SystemException se) {
137                            _log.error(se, se);
138    
139                            throw se;
140                    }
141            }
142    
143            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
144                    HttpPrincipal httpPrincipal, long userId, long groupId,
145                    java.lang.String parentStructureKey, long classNameId,
146                    java.lang.String structureKey,
147                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
148                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
149                    java.lang.String xsd, java.lang.String storageType, int type,
150                    com.liferay.portal.service.ServiceContext serviceContext)
151                    throws com.liferay.portal.kernel.exception.PortalException,
152                            com.liferay.portal.kernel.exception.SystemException {
153                    try {
154                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
155                                            "addStructure", _addStructureParameterTypes2);
156    
157                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
158                                            groupId, parentStructureKey, classNameId, structureKey,
159                                            nameMap, descriptionMap, xsd, storageType, type,
160                                            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 com.liferay.portlet.dynamicdatamapping.model.DDMStructure copyStructure(
229                    HttpPrincipal httpPrincipal, long structureId,
230                    com.liferay.portal.service.ServiceContext serviceContext)
231                    throws com.liferay.portal.kernel.exception.PortalException,
232                            com.liferay.portal.kernel.exception.SystemException {
233                    try {
234                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
235                                            "copyStructure", _copyStructureParameterTypes4);
236    
237                            MethodHandler methodHandler = new MethodHandler(methodKey,
238                                            structureId, serviceContext);
239    
240                            Object returnObj = null;
241    
242                            try {
243                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
244                            }
245                            catch (Exception e) {
246                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
247                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
248                                    }
249    
250                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
251                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
252                                    }
253    
254                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
255                            }
256    
257                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
258                    }
259                    catch (com.liferay.portal.kernel.exception.SystemException se) {
260                            _log.error(se, se);
261    
262                            throw se;
263                    }
264            }
265    
266            public static void deleteStructure(HttpPrincipal httpPrincipal,
267                    long structureId)
268                    throws com.liferay.portal.kernel.exception.PortalException,
269                            com.liferay.portal.kernel.exception.SystemException {
270                    try {
271                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
272                                            "deleteStructure", _deleteStructureParameterTypes5);
273    
274                            MethodHandler methodHandler = new MethodHandler(methodKey,
275                                            structureId);
276    
277                            try {
278                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
279                            }
280                            catch (Exception e) {
281                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
282                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
283                                    }
284    
285                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
286                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
287                                    }
288    
289                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
290                            }
291                    }
292                    catch (com.liferay.portal.kernel.exception.SystemException se) {
293                            _log.error(se, se);
294    
295                            throw se;
296                    }
297            }
298    
299            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(
300                    HttpPrincipal httpPrincipal, long groupId, long classNameId,
301                    java.lang.String structureKey)
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException {
304                    try {
305                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
306                                            "fetchStructure", _fetchStructureParameterTypes6);
307    
308                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
309                                            classNameId, structureKey);
310    
311                            Object returnObj = null;
312    
313                            try {
314                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
315                            }
316                            catch (Exception e) {
317                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
318                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
319                                    }
320    
321                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
322                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
323                                    }
324    
325                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
326                            }
327    
328                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
329                    }
330                    catch (com.liferay.portal.kernel.exception.SystemException se) {
331                            _log.error(se, se);
332    
333                            throw se;
334                    }
335            }
336    
337            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
338                    HttpPrincipal httpPrincipal, long structureId)
339                    throws com.liferay.portal.kernel.exception.PortalException,
340                            com.liferay.portal.kernel.exception.SystemException {
341                    try {
342                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
343                                            "getStructure", _getStructureParameterTypes7);
344    
345                            MethodHandler methodHandler = new MethodHandler(methodKey,
346                                            structureId);
347    
348                            Object returnObj = null;
349    
350                            try {
351                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
352                            }
353                            catch (Exception e) {
354                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
355                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
356                                    }
357    
358                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
359                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
360                                    }
361    
362                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
363                            }
364    
365                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
366                    }
367                    catch (com.liferay.portal.kernel.exception.SystemException se) {
368                            _log.error(se, se);
369    
370                            throw se;
371                    }
372            }
373    
374            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
375                    HttpPrincipal httpPrincipal, long groupId, long classNameId,
376                    java.lang.String structureKey)
377                    throws com.liferay.portal.kernel.exception.PortalException,
378                            com.liferay.portal.kernel.exception.SystemException {
379                    try {
380                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
381                                            "getStructure", _getStructureParameterTypes8);
382    
383                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
384                                            classNameId, structureKey);
385    
386                            Object returnObj = null;
387    
388                            try {
389                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
390                            }
391                            catch (Exception e) {
392                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
393                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
394                                    }
395    
396                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
397                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
398                                    }
399    
400                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
401                            }
402    
403                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
404                    }
405                    catch (com.liferay.portal.kernel.exception.SystemException se) {
406                            _log.error(se, se);
407    
408                            throw se;
409                    }
410            }
411    
412            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
413                    HttpPrincipal httpPrincipal, long groupId, long classNameId,
414                    java.lang.String structureKey, boolean includeGlobalStructures)
415                    throws com.liferay.portal.kernel.exception.PortalException,
416                            com.liferay.portal.kernel.exception.SystemException {
417                    try {
418                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
419                                            "getStructure", _getStructureParameterTypes9);
420    
421                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
422                                            classNameId, structureKey, includeGlobalStructures);
423    
424                            Object returnObj = null;
425    
426                            try {
427                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
428                            }
429                            catch (Exception e) {
430                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
431                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
432                                    }
433    
434                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
435                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
436                                    }
437    
438                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
439                            }
440    
441                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
442                    }
443                    catch (com.liferay.portal.kernel.exception.SystemException se) {
444                            _log.error(se, se);
445    
446                            throw se;
447                    }
448            }
449    
450            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
451                    HttpPrincipal httpPrincipal, long groupId)
452                    throws com.liferay.portal.kernel.exception.SystemException {
453                    try {
454                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
455                                            "getStructures", _getStructuresParameterTypes10);
456    
457                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
458    
459                            Object returnObj = null;
460    
461                            try {
462                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
463                            }
464                            catch (Exception e) {
465                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
466                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
467                                    }
468    
469                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
470                            }
471    
472                            return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
473                    }
474                    catch (com.liferay.portal.kernel.exception.SystemException se) {
475                            _log.error(se, se);
476    
477                            throw se;
478                    }
479            }
480    
481            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
482                    HttpPrincipal httpPrincipal, long[] groupIds)
483                    throws com.liferay.portal.kernel.exception.SystemException {
484                    try {
485                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
486                                            "getStructures", _getStructuresParameterTypes11);
487    
488                            MethodHandler methodHandler = new MethodHandler(methodKey, groupIds);
489    
490                            Object returnObj = null;
491    
492                            try {
493                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
494                            }
495                            catch (Exception e) {
496                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
497                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
498                                    }
499    
500                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
501                            }
502    
503                            return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
504                    }
505                    catch (com.liferay.portal.kernel.exception.SystemException se) {
506                            _log.error(se, se);
507    
508                            throw se;
509                    }
510            }
511    
512            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
513                    HttpPrincipal httpPrincipal, long companyId, long[] groupIds,
514                    long[] classNameIds, java.lang.String keywords, int start, int end,
515                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
516                    throws com.liferay.portal.kernel.exception.SystemException {
517                    try {
518                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
519                                            "search", _searchParameterTypes12);
520    
521                            MethodHandler methodHandler = new MethodHandler(methodKey,
522                                            companyId, groupIds, classNameIds, keywords, start, end,
523                                            orderByComparator);
524    
525                            Object returnObj = null;
526    
527                            try {
528                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
529                            }
530                            catch (Exception e) {
531                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
532                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
533                                    }
534    
535                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
536                            }
537    
538                            return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
539                    }
540                    catch (com.liferay.portal.kernel.exception.SystemException se) {
541                            _log.error(se, se);
542    
543                            throw se;
544                    }
545            }
546    
547            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
548                    HttpPrincipal httpPrincipal, long companyId, long[] groupIds,
549                    long[] classNameIds, java.lang.String name,
550                    java.lang.String description, java.lang.String storageType, int type,
551                    boolean andOperator, int start, int end,
552                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
553                    throws com.liferay.portal.kernel.exception.SystemException {
554                    try {
555                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
556                                            "search", _searchParameterTypes13);
557    
558                            MethodHandler methodHandler = new MethodHandler(methodKey,
559                                            companyId, groupIds, classNameIds, name, description,
560                                            storageType, type, andOperator, start, end,
561                                            orderByComparator);
562    
563                            Object returnObj = null;
564    
565                            try {
566                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
567                            }
568                            catch (Exception e) {
569                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
570                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
571                                    }
572    
573                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
574                            }
575    
576                            return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
577                    }
578                    catch (com.liferay.portal.kernel.exception.SystemException se) {
579                            _log.error(se, se);
580    
581                            throw se;
582                    }
583            }
584    
585            public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
586                    long[] groupIds, long[] classNameIds, java.lang.String keywords)
587                    throws com.liferay.portal.kernel.exception.SystemException {
588                    try {
589                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
590                                            "searchCount", _searchCountParameterTypes14);
591    
592                            MethodHandler methodHandler = new MethodHandler(methodKey,
593                                            companyId, groupIds, classNameIds, keywords);
594    
595                            Object returnObj = null;
596    
597                            try {
598                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
599                            }
600                            catch (Exception e) {
601                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
602                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
603                                    }
604    
605                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
606                            }
607    
608                            return ((Integer)returnObj).intValue();
609                    }
610                    catch (com.liferay.portal.kernel.exception.SystemException se) {
611                            _log.error(se, se);
612    
613                            throw se;
614                    }
615            }
616    
617            public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
618                    long[] groupIds, long[] classNameIds, java.lang.String name,
619                    java.lang.String description, java.lang.String storageType, int type,
620                    boolean andOperator)
621                    throws com.liferay.portal.kernel.exception.SystemException {
622                    try {
623                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
624                                            "searchCount", _searchCountParameterTypes15);
625    
626                            MethodHandler methodHandler = new MethodHandler(methodKey,
627                                            companyId, groupIds, classNameIds, name, description,
628                                            storageType, type, andOperator);
629    
630                            Object returnObj = null;
631    
632                            try {
633                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
634                            }
635                            catch (Exception e) {
636                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
637                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
638                                    }
639    
640                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
641                            }
642    
643                            return ((Integer)returnObj).intValue();
644                    }
645                    catch (com.liferay.portal.kernel.exception.SystemException se) {
646                            _log.error(se, se);
647    
648                            throw se;
649                    }
650            }
651    
652            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
653                    HttpPrincipal httpPrincipal, long groupId, long parentStructureId,
654                    long classNameId, java.lang.String structureKey,
655                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
656                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
657                    java.lang.String xsd,
658                    com.liferay.portal.service.ServiceContext serviceContext)
659                    throws com.liferay.portal.kernel.exception.PortalException,
660                            com.liferay.portal.kernel.exception.SystemException {
661                    try {
662                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
663                                            "updateStructure", _updateStructureParameterTypes16);
664    
665                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
666                                            parentStructureId, classNameId, structureKey, nameMap,
667                                            descriptionMap, xsd, serviceContext);
668    
669                            Object returnObj = null;
670    
671                            try {
672                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
673                            }
674                            catch (Exception e) {
675                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
676                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
677                                    }
678    
679                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
680                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
681                                    }
682    
683                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
684                            }
685    
686                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
687                    }
688                    catch (com.liferay.portal.kernel.exception.SystemException se) {
689                            _log.error(se, se);
690    
691                            throw se;
692                    }
693            }
694    
695            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
696                    HttpPrincipal httpPrincipal, long structureId, long parentStructureId,
697                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
698                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
699                    java.lang.String xsd,
700                    com.liferay.portal.service.ServiceContext serviceContext)
701                    throws com.liferay.portal.kernel.exception.PortalException,
702                            com.liferay.portal.kernel.exception.SystemException {
703                    try {
704                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
705                                            "updateStructure", _updateStructureParameterTypes17);
706    
707                            MethodHandler methodHandler = new MethodHandler(methodKey,
708                                            structureId, parentStructureId, nameMap, descriptionMap,
709                                            xsd, serviceContext);
710    
711                            Object returnObj = null;
712    
713                            try {
714                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
715                            }
716                            catch (Exception e) {
717                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
718                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
719                                    }
720    
721                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
722                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
723                                    }
724    
725                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
726                            }
727    
728                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
729                    }
730                    catch (com.liferay.portal.kernel.exception.SystemException se) {
731                            _log.error(se, se);
732    
733                            throw se;
734                    }
735            }
736    
737            private static Log _log = LogFactoryUtil.getLog(DDMStructureServiceHttp.class);
738            private static final Class<?>[] _addStructureParameterTypes0 = new Class[] {
739                            long.class, long.class, long.class, java.util.Map.class,
740                            java.util.Map.class, java.lang.String.class,
741                            com.liferay.portal.service.ServiceContext.class
742                    };
743            private static final Class<?>[] _addStructureParameterTypes1 = new Class[] {
744                            long.class, long.class, long.class, java.lang.String.class,
745                            java.util.Map.class, java.util.Map.class, java.lang.String.class,
746                            java.lang.String.class, int.class,
747                            com.liferay.portal.service.ServiceContext.class
748                    };
749            private static final Class<?>[] _addStructureParameterTypes2 = new Class[] {
750                            long.class, long.class, java.lang.String.class, long.class,
751                            java.lang.String.class, java.util.Map.class, java.util.Map.class,
752                            java.lang.String.class, java.lang.String.class, int.class,
753                            com.liferay.portal.service.ServiceContext.class
754                    };
755            private static final Class<?>[] _copyStructureParameterTypes3 = new Class[] {
756                            long.class, java.util.Map.class, java.util.Map.class,
757                            com.liferay.portal.service.ServiceContext.class
758                    };
759            private static final Class<?>[] _copyStructureParameterTypes4 = new Class[] {
760                            long.class, com.liferay.portal.service.ServiceContext.class
761                    };
762            private static final Class<?>[] _deleteStructureParameterTypes5 = new Class[] {
763                            long.class
764                    };
765            private static final Class<?>[] _fetchStructureParameterTypes6 = new Class[] {
766                            long.class, long.class, java.lang.String.class
767                    };
768            private static final Class<?>[] _getStructureParameterTypes7 = new Class[] {
769                            long.class
770                    };
771            private static final Class<?>[] _getStructureParameterTypes8 = new Class[] {
772                            long.class, long.class, java.lang.String.class
773                    };
774            private static final Class<?>[] _getStructureParameterTypes9 = new Class[] {
775                            long.class, long.class, java.lang.String.class, boolean.class
776                    };
777            private static final Class<?>[] _getStructuresParameterTypes10 = new Class[] {
778                            long.class
779                    };
780            private static final Class<?>[] _getStructuresParameterTypes11 = new Class[] {
781                            long[].class
782                    };
783            private static final Class<?>[] _searchParameterTypes12 = new Class[] {
784                            long.class, long[].class, long[].class, java.lang.String.class,
785                            int.class, int.class,
786                            com.liferay.portal.kernel.util.OrderByComparator.class
787                    };
788            private static final Class<?>[] _searchParameterTypes13 = new Class[] {
789                            long.class, long[].class, long[].class, java.lang.String.class,
790                            java.lang.String.class, java.lang.String.class, int.class,
791                            boolean.class, int.class, int.class,
792                            com.liferay.portal.kernel.util.OrderByComparator.class
793                    };
794            private static final Class<?>[] _searchCountParameterTypes14 = new Class[] {
795                            long.class, long[].class, long[].class, java.lang.String.class
796                    };
797            private static final Class<?>[] _searchCountParameterTypes15 = new Class[] {
798                            long.class, long[].class, long[].class, java.lang.String.class,
799                            java.lang.String.class, java.lang.String.class, int.class,
800                            boolean.class
801                    };
802            private static final Class<?>[] _updateStructureParameterTypes16 = new Class[] {
803                            long.class, long.class, long.class, java.lang.String.class,
804                            java.util.Map.class, java.util.Map.class, java.lang.String.class,
805                            com.liferay.portal.service.ServiceContext.class
806                    };
807            private static final Class<?>[] _updateStructureParameterTypes17 = new Class[] {
808                            long.class, long.class, java.util.Map.class, java.util.Map.class,
809                            java.lang.String.class,
810                            com.liferay.portal.service.ServiceContext.class
811                    };
812    }