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