001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.log.Log;
020    import com.liferay.portal.kernel.log.LogFactoryUtil;
021    import com.liferay.portal.kernel.util.MethodHandler;
022    import com.liferay.portal.kernel.util.MethodKey;
023    import com.liferay.portal.security.auth.HttpPrincipal;
024    import com.liferay.portal.service.http.TunnelUtil;
025    
026    import com.liferay.portlet.dynamicdatamapping.service.DDMStructureServiceUtil;
027    
028    /**
029     * Provides the HTTP utility for the
030     * {@link com.liferay.portlet.dynamicdatamapping.service.DDMStructureServiceUtil} service utility. The
031     * static methods of this class calls the same methods of the service utility.
032     * However, the signatures are different because it requires an additional
033     * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
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    @ProviderType
057    public class DDMStructureServiceHttp {
058            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
059                    HttpPrincipal httpPrincipal, long userId, long groupId,
060                    long classNameId,
061                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
062                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
063                    com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm,
064                    com.liferay.portal.service.ServiceContext serviceContext)
065                    throws com.liferay.portal.kernel.exception.PortalException {
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, ddmForm,
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                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
085                            }
086    
087                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
088                    }
089                    catch (com.liferay.portal.kernel.exception.SystemException se) {
090                            _log.error(se, se);
091    
092                            throw se;
093                    }
094            }
095    
096            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
097                    HttpPrincipal httpPrincipal, long userId, long groupId,
098                    long classNameId,
099                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
100                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
101                    java.lang.String xsd,
102                    com.liferay.portal.service.ServiceContext serviceContext)
103                    throws com.liferay.portal.kernel.exception.PortalException {
104                    try {
105                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
106                                            "addStructure", _addStructureParameterTypes1);
107    
108                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
109                                            groupId, classNameId, nameMap, descriptionMap, xsd,
110                                            serviceContext);
111    
112                            Object returnObj = null;
113    
114                            try {
115                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
116                            }
117                            catch (Exception e) {
118                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
119                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
120                                    }
121    
122                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
123                            }
124    
125                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
126                    }
127                    catch (com.liferay.portal.kernel.exception.SystemException se) {
128                            _log.error(se, se);
129    
130                            throw se;
131                    }
132            }
133    
134            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
135                    HttpPrincipal httpPrincipal, long groupId, long parentStructureId,
136                    long classNameId, java.lang.String structureKey,
137                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
138                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
139                    com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm,
140                    java.lang.String storageType, int type,
141                    com.liferay.portal.service.ServiceContext serviceContext)
142                    throws com.liferay.portal.kernel.exception.PortalException {
143                    try {
144                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
145                                            "addStructure", _addStructureParameterTypes2);
146    
147                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
148                                            parentStructureId, classNameId, structureKey, nameMap,
149                                            descriptionMap, ddmForm, storageType, type, serviceContext);
150    
151                            Object returnObj = null;
152    
153                            try {
154                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
155                            }
156                            catch (Exception e) {
157                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
158                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
159                                    }
160    
161                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
162                            }
163    
164                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
165                    }
166                    catch (com.liferay.portal.kernel.exception.SystemException se) {
167                            _log.error(se, se);
168    
169                            throw se;
170                    }
171            }
172    
173            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
174                    HttpPrincipal httpPrincipal, long groupId, long parentStructureId,
175                    long classNameId, java.lang.String structureKey,
176                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
177                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
178                    java.lang.String xsd, java.lang.String storageType, int type,
179                    com.liferay.portal.service.ServiceContext serviceContext)
180                    throws com.liferay.portal.kernel.exception.PortalException {
181                    try {
182                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
183                                            "addStructure", _addStructureParameterTypes3);
184    
185                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
186                                            parentStructureId, classNameId, structureKey, nameMap,
187                                            descriptionMap, xsd, storageType, type, serviceContext);
188    
189                            Object returnObj = null;
190    
191                            try {
192                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
193                            }
194                            catch (Exception e) {
195                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
196                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
197                                    }
198    
199                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
200                            }
201    
202                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
203                    }
204                    catch (com.liferay.portal.kernel.exception.SystemException se) {
205                            _log.error(se, se);
206    
207                            throw se;
208                    }
209            }
210    
211            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
212                    HttpPrincipal httpPrincipal, long userId, long groupId,
213                    java.lang.String parentStructureKey, long classNameId,
214                    java.lang.String structureKey,
215                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
216                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
217                    com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm,
218                    java.lang.String storageType, int type,
219                    com.liferay.portal.service.ServiceContext serviceContext)
220                    throws com.liferay.portal.kernel.exception.PortalException {
221                    try {
222                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
223                                            "addStructure", _addStructureParameterTypes4);
224    
225                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
226                                            groupId, parentStructureKey, classNameId, structureKey,
227                                            nameMap, descriptionMap, ddmForm, storageType, type,
228                                            serviceContext);
229    
230                            Object returnObj = null;
231    
232                            try {
233                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
234                            }
235                            catch (Exception e) {
236                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
237                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
238                                    }
239    
240                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
241                            }
242    
243                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
244                    }
245                    catch (com.liferay.portal.kernel.exception.SystemException se) {
246                            _log.error(se, se);
247    
248                            throw se;
249                    }
250            }
251    
252            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure(
253                    HttpPrincipal httpPrincipal, long userId, long groupId,
254                    java.lang.String parentStructureKey, long classNameId,
255                    java.lang.String structureKey,
256                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
257                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
258                    java.lang.String xsd, java.lang.String storageType, int type,
259                    com.liferay.portal.service.ServiceContext serviceContext)
260                    throws com.liferay.portal.kernel.exception.PortalException {
261                    try {
262                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
263                                            "addStructure", _addStructureParameterTypes5);
264    
265                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
266                                            groupId, parentStructureKey, classNameId, structureKey,
267                                            nameMap, descriptionMap, xsd, storageType, type,
268                                            serviceContext);
269    
270                            Object returnObj = null;
271    
272                            try {
273                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
274                            }
275                            catch (Exception e) {
276                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
277                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
278                                    }
279    
280                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
281                            }
282    
283                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
284                    }
285                    catch (com.liferay.portal.kernel.exception.SystemException se) {
286                            _log.error(se, se);
287    
288                            throw se;
289                    }
290            }
291    
292            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure copyStructure(
293                    HttpPrincipal httpPrincipal, long structureId,
294                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
295                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
296                    com.liferay.portal.service.ServiceContext serviceContext)
297                    throws com.liferay.portal.kernel.exception.PortalException {
298                    try {
299                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
300                                            "copyStructure", _copyStructureParameterTypes6);
301    
302                            MethodHandler methodHandler = new MethodHandler(methodKey,
303                                            structureId, nameMap, descriptionMap, serviceContext);
304    
305                            Object returnObj = null;
306    
307                            try {
308                                    returnObj = 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                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
316                            }
317    
318                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
319                    }
320                    catch (com.liferay.portal.kernel.exception.SystemException se) {
321                            _log.error(se, se);
322    
323                            throw se;
324                    }
325            }
326    
327            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure copyStructure(
328                    HttpPrincipal httpPrincipal, long structureId,
329                    com.liferay.portal.service.ServiceContext serviceContext)
330                    throws com.liferay.portal.kernel.exception.PortalException {
331                    try {
332                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
333                                            "copyStructure", _copyStructureParameterTypes7);
334    
335                            MethodHandler methodHandler = new MethodHandler(methodKey,
336                                            structureId, serviceContext);
337    
338                            Object returnObj = null;
339    
340                            try {
341                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
342                            }
343                            catch (Exception e) {
344                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
345                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
346                                    }
347    
348                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
349                            }
350    
351                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
352                    }
353                    catch (com.liferay.portal.kernel.exception.SystemException se) {
354                            _log.error(se, se);
355    
356                            throw se;
357                    }
358            }
359    
360            public static void deleteStructure(HttpPrincipal httpPrincipal,
361                    long structureId)
362                    throws com.liferay.portal.kernel.exception.PortalException {
363                    try {
364                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
365                                            "deleteStructure", _deleteStructureParameterTypes8);
366    
367                            MethodHandler methodHandler = new MethodHandler(methodKey,
368                                            structureId);
369    
370                            try {
371                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
372                            }
373                            catch (Exception e) {
374                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
375                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
376                                    }
377    
378                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
379                            }
380                    }
381                    catch (com.liferay.portal.kernel.exception.SystemException se) {
382                            _log.error(se, se);
383    
384                            throw se;
385                    }
386            }
387    
388            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure(
389                    HttpPrincipal httpPrincipal, long groupId, long classNameId,
390                    java.lang.String structureKey)
391                    throws com.liferay.portal.kernel.exception.PortalException {
392                    try {
393                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
394                                            "fetchStructure", _fetchStructureParameterTypes9);
395    
396                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
397                                            classNameId, structureKey);
398    
399                            Object returnObj = null;
400    
401                            try {
402                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
403                            }
404                            catch (Exception e) {
405                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
406                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
407                                    }
408    
409                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
410                            }
411    
412                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
413                    }
414                    catch (com.liferay.portal.kernel.exception.SystemException se) {
415                            _log.error(se, se);
416    
417                            throw se;
418                    }
419            }
420    
421            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getJournalFolderStructures(
422                    HttpPrincipal httpPrincipal, long[] groupIds, long journalFolderId,
423                    int restrictionType)
424                    throws com.liferay.portal.kernel.exception.PortalException {
425                    try {
426                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
427                                            "getJournalFolderStructures",
428                                            _getJournalFolderStructuresParameterTypes10);
429    
430                            MethodHandler methodHandler = new MethodHandler(methodKey,
431                                            groupIds, journalFolderId, restrictionType);
432    
433                            Object returnObj = null;
434    
435                            try {
436                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
437                            }
438                            catch (Exception e) {
439                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
440                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
441                                    }
442    
443                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
444                            }
445    
446                            return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
447                    }
448                    catch (com.liferay.portal.kernel.exception.SystemException se) {
449                            _log.error(se, se);
450    
451                            throw se;
452                    }
453            }
454    
455            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
456                    HttpPrincipal httpPrincipal, long structureId)
457                    throws com.liferay.portal.kernel.exception.PortalException {
458                    try {
459                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
460                                            "getStructure", _getStructureParameterTypes11);
461    
462                            MethodHandler methodHandler = new MethodHandler(methodKey,
463                                            structureId);
464    
465                            Object returnObj = null;
466    
467                            try {
468                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
469                            }
470                            catch (Exception e) {
471                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
472                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
473                                    }
474    
475                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
476                            }
477    
478                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
479                    }
480                    catch (com.liferay.portal.kernel.exception.SystemException se) {
481                            _log.error(se, se);
482    
483                            throw se;
484                    }
485            }
486    
487            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
488                    HttpPrincipal httpPrincipal, long groupId, long classNameId,
489                    java.lang.String structureKey)
490                    throws com.liferay.portal.kernel.exception.PortalException {
491                    try {
492                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
493                                            "getStructure", _getStructureParameterTypes12);
494    
495                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
496                                            classNameId, structureKey);
497    
498                            Object returnObj = null;
499    
500                            try {
501                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
502                            }
503                            catch (Exception e) {
504                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
505                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
506                                    }
507    
508                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
509                            }
510    
511                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
512                    }
513                    catch (com.liferay.portal.kernel.exception.SystemException se) {
514                            _log.error(se, se);
515    
516                            throw se;
517                    }
518            }
519    
520            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
521                    HttpPrincipal httpPrincipal, long groupId, long classNameId,
522                    java.lang.String structureKey, boolean includeAncestorStructures)
523                    throws com.liferay.portal.kernel.exception.PortalException {
524                    try {
525                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
526                                            "getStructure", _getStructureParameterTypes13);
527    
528                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
529                                            classNameId, structureKey, includeAncestorStructures);
530    
531                            Object returnObj = null;
532    
533                            try {
534                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
535                            }
536                            catch (Exception e) {
537                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
538                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
539                                    }
540    
541                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
542                            }
543    
544                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
545                    }
546                    catch (com.liferay.portal.kernel.exception.SystemException se) {
547                            _log.error(se, se);
548    
549                            throw se;
550                    }
551            }
552    
553            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
554                    HttpPrincipal httpPrincipal, long groupId) {
555                    try {
556                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
557                                            "getStructures", _getStructuresParameterTypes14);
558    
559                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
560    
561                            Object returnObj = null;
562    
563                            try {
564                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
565                            }
566                            catch (Exception e) {
567                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
568                            }
569    
570                            return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
571                    }
572                    catch (com.liferay.portal.kernel.exception.SystemException se) {
573                            _log.error(se, se);
574    
575                            throw se;
576                    }
577            }
578    
579            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
580                    HttpPrincipal httpPrincipal, long[] groupIds) {
581                    try {
582                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
583                                            "getStructures", _getStructuresParameterTypes15);
584    
585                            MethodHandler methodHandler = new MethodHandler(methodKey, groupIds);
586    
587                            Object returnObj = null;
588    
589                            try {
590                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
591                            }
592                            catch (Exception e) {
593                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
594                            }
595    
596                            return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
597                    }
598                    catch (com.liferay.portal.kernel.exception.SystemException se) {
599                            _log.error(se, se);
600    
601                            throw se;
602                    }
603            }
604    
605            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
606                    HttpPrincipal httpPrincipal, long[] groupIds, long classNameId) {
607                    try {
608                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
609                                            "getStructures", _getStructuresParameterTypes16);
610    
611                            MethodHandler methodHandler = new MethodHandler(methodKey,
612                                            groupIds, classNameId);
613    
614                            Object returnObj = null;
615    
616                            try {
617                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
618                            }
619                            catch (Exception e) {
620                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
621                            }
622    
623                            return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
624                    }
625                    catch (com.liferay.portal.kernel.exception.SystemException se) {
626                            _log.error(se, se);
627    
628                            throw se;
629                    }
630            }
631    
632            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
633                    HttpPrincipal httpPrincipal, long[] groupIds, long classNameId,
634                    int start, int end) {
635                    try {
636                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
637                                            "getStructures", _getStructuresParameterTypes17);
638    
639                            MethodHandler methodHandler = new MethodHandler(methodKey,
640                                            groupIds, classNameId, start, end);
641    
642                            Object returnObj = null;
643    
644                            try {
645                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
646                            }
647                            catch (Exception e) {
648                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
649                            }
650    
651                            return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
652                    }
653                    catch (com.liferay.portal.kernel.exception.SystemException se) {
654                            _log.error(se, se);
655    
656                            throw se;
657                    }
658            }
659    
660            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
661                    HttpPrincipal httpPrincipal, long companyId, long[] groupIds,
662                    long[] classNameIds, java.lang.String keywords, int start, int end,
663                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> orderByComparator) {
664                    try {
665                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
666                                            "search", _searchParameterTypes18);
667    
668                            MethodHandler methodHandler = new MethodHandler(methodKey,
669                                            companyId, groupIds, classNameIds, keywords, start, end,
670                                            orderByComparator);
671    
672                            Object returnObj = null;
673    
674                            try {
675                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
676                            }
677                            catch (Exception e) {
678                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
679                            }
680    
681                            return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
682                    }
683                    catch (com.liferay.portal.kernel.exception.SystemException se) {
684                            _log.error(se, se);
685    
686                            throw se;
687                    }
688            }
689    
690            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
691                    HttpPrincipal httpPrincipal, long companyId, long[] groupIds,
692                    long[] classNameIds, java.lang.String name,
693                    java.lang.String description, java.lang.String storageType, int type,
694                    boolean andOperator, int start, int end,
695                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> orderByComparator) {
696                    try {
697                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
698                                            "search", _searchParameterTypes19);
699    
700                            MethodHandler methodHandler = new MethodHandler(methodKey,
701                                            companyId, groupIds, classNameIds, name, description,
702                                            storageType, type, andOperator, start, end,
703                                            orderByComparator);
704    
705                            Object returnObj = null;
706    
707                            try {
708                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
709                            }
710                            catch (Exception e) {
711                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
712                            }
713    
714                            return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
715                    }
716                    catch (com.liferay.portal.kernel.exception.SystemException se) {
717                            _log.error(se, se);
718    
719                            throw se;
720                    }
721            }
722    
723            public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
724                    long[] groupIds, long[] classNameIds, java.lang.String keywords) {
725                    try {
726                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
727                                            "searchCount", _searchCountParameterTypes20);
728    
729                            MethodHandler methodHandler = new MethodHandler(methodKey,
730                                            companyId, groupIds, classNameIds, keywords);
731    
732                            Object returnObj = null;
733    
734                            try {
735                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
736                            }
737                            catch (Exception e) {
738                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
739                            }
740    
741                            return ((Integer)returnObj).intValue();
742                    }
743                    catch (com.liferay.portal.kernel.exception.SystemException se) {
744                            _log.error(se, se);
745    
746                            throw se;
747                    }
748            }
749    
750            public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
751                    long[] groupIds, long[] classNameIds, java.lang.String name,
752                    java.lang.String description, java.lang.String storageType, int type,
753                    boolean andOperator) {
754                    try {
755                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
756                                            "searchCount", _searchCountParameterTypes21);
757    
758                            MethodHandler methodHandler = new MethodHandler(methodKey,
759                                            companyId, groupIds, classNameIds, name, description,
760                                            storageType, type, andOperator);
761    
762                            Object returnObj = null;
763    
764                            try {
765                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
766                            }
767                            catch (Exception e) {
768                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
769                            }
770    
771                            return ((Integer)returnObj).intValue();
772                    }
773                    catch (com.liferay.portal.kernel.exception.SystemException se) {
774                            _log.error(se, se);
775    
776                            throw se;
777                    }
778            }
779    
780            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
781                    HttpPrincipal httpPrincipal, long groupId, long parentStructureId,
782                    long classNameId, java.lang.String structureKey,
783                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
784                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
785                    com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm,
786                    com.liferay.portal.service.ServiceContext serviceContext)
787                    throws com.liferay.portal.kernel.exception.PortalException {
788                    try {
789                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
790                                            "updateStructure", _updateStructureParameterTypes22);
791    
792                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
793                                            parentStructureId, classNameId, structureKey, nameMap,
794                                            descriptionMap, ddmForm, serviceContext);
795    
796                            Object returnObj = null;
797    
798                            try {
799                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
800                            }
801                            catch (Exception e) {
802                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
803                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
804                                    }
805    
806                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
807                            }
808    
809                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
810                    }
811                    catch (com.liferay.portal.kernel.exception.SystemException se) {
812                            _log.error(se, se);
813    
814                            throw se;
815                    }
816            }
817    
818            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
819                    HttpPrincipal httpPrincipal, long groupId, long parentStructureId,
820                    long classNameId, java.lang.String structureKey,
821                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
822                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
823                    java.lang.String definition,
824                    com.liferay.portal.service.ServiceContext serviceContext)
825                    throws com.liferay.portal.kernel.exception.PortalException {
826                    try {
827                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
828                                            "updateStructure", _updateStructureParameterTypes23);
829    
830                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
831                                            parentStructureId, classNameId, structureKey, nameMap,
832                                            descriptionMap, definition, serviceContext);
833    
834                            Object returnObj = null;
835    
836                            try {
837                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
838                            }
839                            catch (Exception e) {
840                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
841                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
842                                    }
843    
844                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
845                            }
846    
847                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
848                    }
849                    catch (com.liferay.portal.kernel.exception.SystemException se) {
850                            _log.error(se, se);
851    
852                            throw se;
853                    }
854            }
855    
856            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
857                    HttpPrincipal httpPrincipal, long structureId, long parentStructureId,
858                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
859                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
860                    com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm,
861                    com.liferay.portal.service.ServiceContext serviceContext)
862                    throws com.liferay.portal.kernel.exception.PortalException {
863                    try {
864                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
865                                            "updateStructure", _updateStructureParameterTypes24);
866    
867                            MethodHandler methodHandler = new MethodHandler(methodKey,
868                                            structureId, parentStructureId, nameMap, descriptionMap,
869                                            ddmForm, serviceContext);
870    
871                            Object returnObj = null;
872    
873                            try {
874                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
875                            }
876                            catch (Exception e) {
877                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
878                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
879                                    }
880    
881                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
882                            }
883    
884                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
885                    }
886                    catch (com.liferay.portal.kernel.exception.SystemException se) {
887                            _log.error(se, se);
888    
889                            throw se;
890                    }
891            }
892    
893            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
894                    HttpPrincipal httpPrincipal, long structureId, long parentStructureId,
895                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
896                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
897                    java.lang.String definition,
898                    com.liferay.portal.service.ServiceContext serviceContext)
899                    throws com.liferay.portal.kernel.exception.PortalException {
900                    try {
901                            MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
902                                            "updateStructure", _updateStructureParameterTypes25);
903    
904                            MethodHandler methodHandler = new MethodHandler(methodKey,
905                                            structureId, parentStructureId, nameMap, descriptionMap,
906                                            definition, serviceContext);
907    
908                            Object returnObj = null;
909    
910                            try {
911                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
912                            }
913                            catch (Exception e) {
914                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
915                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
916                                    }
917    
918                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
919                            }
920    
921                            return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
922                    }
923                    catch (com.liferay.portal.kernel.exception.SystemException se) {
924                            _log.error(se, se);
925    
926                            throw se;
927                    }
928            }
929    
930            private static Log _log = LogFactoryUtil.getLog(DDMStructureServiceHttp.class);
931            private static final Class<?>[] _addStructureParameterTypes0 = new Class[] {
932                            long.class, long.class, long.class, java.util.Map.class,
933                            java.util.Map.class,
934                            com.liferay.portlet.dynamicdatamapping.model.DDMForm.class,
935                            com.liferay.portal.service.ServiceContext.class
936                    };
937            private static final Class<?>[] _addStructureParameterTypes1 = new Class[] {
938                            long.class, long.class, long.class, java.util.Map.class,
939                            java.util.Map.class, java.lang.String.class,
940                            com.liferay.portal.service.ServiceContext.class
941                    };
942            private static final Class<?>[] _addStructureParameterTypes2 = new Class[] {
943                            long.class, long.class, long.class, java.lang.String.class,
944                            java.util.Map.class, java.util.Map.class,
945                            com.liferay.portlet.dynamicdatamapping.model.DDMForm.class,
946                            java.lang.String.class, int.class,
947                            com.liferay.portal.service.ServiceContext.class
948                    };
949            private static final Class<?>[] _addStructureParameterTypes3 = new Class[] {
950                            long.class, long.class, long.class, java.lang.String.class,
951                            java.util.Map.class, java.util.Map.class, java.lang.String.class,
952                            java.lang.String.class, int.class,
953                            com.liferay.portal.service.ServiceContext.class
954                    };
955            private static final Class<?>[] _addStructureParameterTypes4 = new Class[] {
956                            long.class, long.class, java.lang.String.class, long.class,
957                            java.lang.String.class, java.util.Map.class, java.util.Map.class,
958                            com.liferay.portlet.dynamicdatamapping.model.DDMForm.class,
959                            java.lang.String.class, int.class,
960                            com.liferay.portal.service.ServiceContext.class
961                    };
962            private static final Class<?>[] _addStructureParameterTypes5 = new Class[] {
963                            long.class, long.class, java.lang.String.class, long.class,
964                            java.lang.String.class, java.util.Map.class, java.util.Map.class,
965                            java.lang.String.class, java.lang.String.class, int.class,
966                            com.liferay.portal.service.ServiceContext.class
967                    };
968            private static final Class<?>[] _copyStructureParameterTypes6 = new Class[] {
969                            long.class, java.util.Map.class, java.util.Map.class,
970                            com.liferay.portal.service.ServiceContext.class
971                    };
972            private static final Class<?>[] _copyStructureParameterTypes7 = new Class[] {
973                            long.class, com.liferay.portal.service.ServiceContext.class
974                    };
975            private static final Class<?>[] _deleteStructureParameterTypes8 = new Class[] {
976                            long.class
977                    };
978            private static final Class<?>[] _fetchStructureParameterTypes9 = new Class[] {
979                            long.class, long.class, java.lang.String.class
980                    };
981            private static final Class<?>[] _getJournalFolderStructuresParameterTypes10 = new Class[] {
982                            long[].class, long.class, int.class
983                    };
984            private static final Class<?>[] _getStructureParameterTypes11 = new Class[] {
985                            long.class
986                    };
987            private static final Class<?>[] _getStructureParameterTypes12 = new Class[] {
988                            long.class, long.class, java.lang.String.class
989                    };
990            private static final Class<?>[] _getStructureParameterTypes13 = new Class[] {
991                            long.class, long.class, java.lang.String.class, boolean.class
992                    };
993            private static final Class<?>[] _getStructuresParameterTypes14 = new Class[] {
994                            long.class
995                    };
996            private static final Class<?>[] _getStructuresParameterTypes15 = new Class[] {
997                            long[].class
998                    };
999            private static final Class<?>[] _getStructuresParameterTypes16 = new Class[] {
1000                            long[].class, long.class
1001                    };
1002            private static final Class<?>[] _getStructuresParameterTypes17 = new Class[] {
1003                            long[].class, long.class, int.class, int.class
1004                    };
1005            private static final Class<?>[] _searchParameterTypes18 = new Class[] {
1006                            long.class, long[].class, long[].class, java.lang.String.class,
1007                            int.class, int.class,
1008                            com.liferay.portal.kernel.util.OrderByComparator.class
1009                    };
1010            private static final Class<?>[] _searchParameterTypes19 = new Class[] {
1011                            long.class, long[].class, long[].class, java.lang.String.class,
1012                            java.lang.String.class, java.lang.String.class, int.class,
1013                            boolean.class, int.class, int.class,
1014                            com.liferay.portal.kernel.util.OrderByComparator.class
1015                    };
1016            private static final Class<?>[] _searchCountParameterTypes20 = new Class[] {
1017                            long.class, long[].class, long[].class, java.lang.String.class
1018                    };
1019            private static final Class<?>[] _searchCountParameterTypes21 = new Class[] {
1020                            long.class, long[].class, long[].class, java.lang.String.class,
1021                            java.lang.String.class, java.lang.String.class, int.class,
1022                            boolean.class
1023                    };
1024            private static final Class<?>[] _updateStructureParameterTypes22 = new Class[] {
1025                            long.class, long.class, long.class, java.lang.String.class,
1026                            java.util.Map.class, java.util.Map.class,
1027                            com.liferay.portlet.dynamicdatamapping.model.DDMForm.class,
1028                            com.liferay.portal.service.ServiceContext.class
1029                    };
1030            private static final Class<?>[] _updateStructureParameterTypes23 = new Class[] {
1031                            long.class, long.class, long.class, java.lang.String.class,
1032                            java.util.Map.class, java.util.Map.class, java.lang.String.class,
1033                            com.liferay.portal.service.ServiceContext.class
1034                    };
1035            private static final Class<?>[] _updateStructureParameterTypes24 = new Class[] {
1036                            long.class, long.class, java.util.Map.class, java.util.Map.class,
1037                            com.liferay.portlet.dynamicdatamapping.model.DDMForm.class,
1038                            com.liferay.portal.service.ServiceContext.class
1039                    };
1040            private static final Class<?>[] _updateStructureParameterTypes25 = new Class[] {
1041                            long.class, long.class, java.util.Map.class, java.util.Map.class,
1042                            java.lang.String.class,
1043                            com.liferay.portal.service.ServiceContext.class
1044                    };
1045    }