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 fetchStructure(
336 HttpPrincipal httpPrincipal, long groupId, long classNameId,
337 java.lang.String structureKey, boolean includeAncestorStructures)
338 throws com.liferay.portal.kernel.exception.PortalException,
339 com.liferay.portal.kernel.exception.SystemException {
340 try {
341 MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
342 "fetchStructure", _fetchStructureParameterTypes7);
343
344 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
345 classNameId, structureKey, includeAncestorStructures);
346
347 Object returnObj = null;
348
349 try {
350 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
351 }
352 catch (Exception e) {
353 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
354 throw (com.liferay.portal.kernel.exception.PortalException)e;
355 }
356
357 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
358 throw (com.liferay.portal.kernel.exception.SystemException)e;
359 }
360
361 throw new com.liferay.portal.kernel.exception.SystemException(e);
362 }
363
364 return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
365 }
366 catch (com.liferay.portal.kernel.exception.SystemException se) {
367 _log.error(se, se);
368
369 throw se;
370 }
371 }
372
373 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
374 HttpPrincipal httpPrincipal, long structureId)
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,
382 structureId);
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)
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);
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 com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure(
449 HttpPrincipal httpPrincipal, long groupId, long classNameId,
450 java.lang.String structureKey, boolean includeGlobalStructures)
451 throws com.liferay.portal.kernel.exception.PortalException,
452 com.liferay.portal.kernel.exception.SystemException {
453 try {
454 MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
455 "getStructure", _getStructureParameterTypes10);
456
457 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
458 classNameId, structureKey, includeGlobalStructures);
459
460 Object returnObj = null;
461
462 try {
463 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
464 }
465 catch (Exception e) {
466 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
467 throw (com.liferay.portal.kernel.exception.PortalException)e;
468 }
469
470 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
471 throw (com.liferay.portal.kernel.exception.SystemException)e;
472 }
473
474 throw new com.liferay.portal.kernel.exception.SystemException(e);
475 }
476
477 return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
478 }
479 catch (com.liferay.portal.kernel.exception.SystemException se) {
480 _log.error(se, se);
481
482 throw se;
483 }
484 }
485
486 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
487 HttpPrincipal httpPrincipal, long groupId)
488 throws com.liferay.portal.kernel.exception.SystemException {
489 try {
490 MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
491 "getStructures", _getStructuresParameterTypes11);
492
493 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
494
495 Object returnObj = null;
496
497 try {
498 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
499 }
500 catch (Exception e) {
501 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
502 throw (com.liferay.portal.kernel.exception.SystemException)e;
503 }
504
505 throw new com.liferay.portal.kernel.exception.SystemException(e);
506 }
507
508 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
509 }
510 catch (com.liferay.portal.kernel.exception.SystemException se) {
511 _log.error(se, se);
512
513 throw se;
514 }
515 }
516
517 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
518 HttpPrincipal httpPrincipal, long[] groupIds)
519 throws com.liferay.portal.kernel.exception.SystemException {
520 try {
521 MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
522 "getStructures", _getStructuresParameterTypes12);
523
524 MethodHandler methodHandler = new MethodHandler(methodKey, groupIds);
525
526 Object returnObj = null;
527
528 try {
529 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
530 }
531 catch (Exception e) {
532 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
533 throw (com.liferay.portal.kernel.exception.SystemException)e;
534 }
535
536 throw new com.liferay.portal.kernel.exception.SystemException(e);
537 }
538
539 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
540 }
541 catch (com.liferay.portal.kernel.exception.SystemException se) {
542 _log.error(se, se);
543
544 throw se;
545 }
546 }
547
548 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
549 HttpPrincipal httpPrincipal, long[] groupIds, long classNameId)
550 throws com.liferay.portal.kernel.exception.SystemException {
551 try {
552 MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
553 "getStructures", _getStructuresParameterTypes13);
554
555 MethodHandler methodHandler = new MethodHandler(methodKey,
556 groupIds, classNameId);
557
558 Object returnObj = null;
559
560 try {
561 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
562 }
563 catch (Exception e) {
564 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
565 throw (com.liferay.portal.kernel.exception.SystemException)e;
566 }
567
568 throw new com.liferay.portal.kernel.exception.SystemException(e);
569 }
570
571 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
572 }
573 catch (com.liferay.portal.kernel.exception.SystemException se) {
574 _log.error(se, se);
575
576 throw se;
577 }
578 }
579
580 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getStructures(
581 HttpPrincipal httpPrincipal, long[] groupIds, long classNameId,
582 int start, int end)
583 throws com.liferay.portal.kernel.exception.SystemException {
584 try {
585 MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
586 "getStructures", _getStructuresParameterTypes14);
587
588 MethodHandler methodHandler = new MethodHandler(methodKey,
589 groupIds, classNameId, start, end);
590
591 Object returnObj = null;
592
593 try {
594 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
595 }
596 catch (Exception e) {
597 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
598 throw (com.liferay.portal.kernel.exception.SystemException)e;
599 }
600
601 throw new com.liferay.portal.kernel.exception.SystemException(e);
602 }
603
604 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
605 }
606 catch (com.liferay.portal.kernel.exception.SystemException se) {
607 _log.error(se, se);
608
609 throw se;
610 }
611 }
612
613 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
614 HttpPrincipal httpPrincipal, long companyId, long[] groupIds,
615 long[] classNameIds, java.lang.String keywords, int start, int end,
616 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
617 throws com.liferay.portal.kernel.exception.SystemException {
618 try {
619 MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
620 "search", _searchParameterTypes15);
621
622 MethodHandler methodHandler = new MethodHandler(methodKey,
623 companyId, groupIds, classNameIds, keywords, 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 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> search(
649 HttpPrincipal httpPrincipal, long companyId, long[] groupIds,
650 long[] classNameIds, java.lang.String name,
651 java.lang.String description, java.lang.String storageType, int type,
652 boolean andOperator, int start, int end,
653 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
654 throws com.liferay.portal.kernel.exception.SystemException {
655 try {
656 MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
657 "search", _searchParameterTypes16);
658
659 MethodHandler methodHandler = new MethodHandler(methodKey,
660 companyId, groupIds, classNameIds, name, description,
661 storageType, type, andOperator, start, end,
662 orderByComparator);
663
664 Object returnObj = null;
665
666 try {
667 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
668 }
669 catch (Exception e) {
670 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
671 throw (com.liferay.portal.kernel.exception.SystemException)e;
672 }
673
674 throw new com.liferay.portal.kernel.exception.SystemException(e);
675 }
676
677 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure>)returnObj;
678 }
679 catch (com.liferay.portal.kernel.exception.SystemException se) {
680 _log.error(se, se);
681
682 throw se;
683 }
684 }
685
686 public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
687 long[] groupIds, long[] classNameIds, java.lang.String keywords)
688 throws com.liferay.portal.kernel.exception.SystemException {
689 try {
690 MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
691 "searchCount", _searchCountParameterTypes17);
692
693 MethodHandler methodHandler = new MethodHandler(methodKey,
694 companyId, groupIds, classNameIds, keywords);
695
696 Object returnObj = null;
697
698 try {
699 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
700 }
701 catch (Exception e) {
702 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
703 throw (com.liferay.portal.kernel.exception.SystemException)e;
704 }
705
706 throw new com.liferay.portal.kernel.exception.SystemException(e);
707 }
708
709 return ((Integer)returnObj).intValue();
710 }
711 catch (com.liferay.portal.kernel.exception.SystemException se) {
712 _log.error(se, se);
713
714 throw se;
715 }
716 }
717
718 public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
719 long[] groupIds, long[] classNameIds, java.lang.String name,
720 java.lang.String description, java.lang.String storageType, int type,
721 boolean andOperator)
722 throws com.liferay.portal.kernel.exception.SystemException {
723 try {
724 MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
725 "searchCount", _searchCountParameterTypes18);
726
727 MethodHandler methodHandler = new MethodHandler(methodKey,
728 companyId, groupIds, classNameIds, name, description,
729 storageType, type, andOperator);
730
731 Object returnObj = null;
732
733 try {
734 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
735 }
736 catch (Exception e) {
737 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
738 throw (com.liferay.portal.kernel.exception.SystemException)e;
739 }
740
741 throw new com.liferay.portal.kernel.exception.SystemException(e);
742 }
743
744 return ((Integer)returnObj).intValue();
745 }
746 catch (com.liferay.portal.kernel.exception.SystemException se) {
747 _log.error(se, se);
748
749 throw se;
750 }
751 }
752
753 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
754 HttpPrincipal httpPrincipal, long groupId, long parentStructureId,
755 long classNameId, java.lang.String structureKey,
756 java.util.Map<java.util.Locale, java.lang.String> nameMap,
757 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
758 java.lang.String xsd,
759 com.liferay.portal.service.ServiceContext serviceContext)
760 throws com.liferay.portal.kernel.exception.PortalException,
761 com.liferay.portal.kernel.exception.SystemException {
762 try {
763 MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
764 "updateStructure", _updateStructureParameterTypes19);
765
766 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
767 parentStructureId, classNameId, structureKey, nameMap,
768 descriptionMap, xsd, serviceContext);
769
770 Object returnObj = null;
771
772 try {
773 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
774 }
775 catch (Exception e) {
776 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
777 throw (com.liferay.portal.kernel.exception.PortalException)e;
778 }
779
780 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
781 throw (com.liferay.portal.kernel.exception.SystemException)e;
782 }
783
784 throw new com.liferay.portal.kernel.exception.SystemException(e);
785 }
786
787 return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
788 }
789 catch (com.liferay.portal.kernel.exception.SystemException se) {
790 _log.error(se, se);
791
792 throw se;
793 }
794 }
795
796 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure(
797 HttpPrincipal httpPrincipal, long structureId, long parentStructureId,
798 java.util.Map<java.util.Locale, java.lang.String> nameMap,
799 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
800 java.lang.String xsd,
801 com.liferay.portal.service.ServiceContext serviceContext)
802 throws com.liferay.portal.kernel.exception.PortalException,
803 com.liferay.portal.kernel.exception.SystemException {
804 try {
805 MethodKey methodKey = new MethodKey(DDMStructureServiceUtil.class,
806 "updateStructure", _updateStructureParameterTypes20);
807
808 MethodHandler methodHandler = new MethodHandler(methodKey,
809 structureId, parentStructureId, nameMap, descriptionMap,
810 xsd, serviceContext);
811
812 Object returnObj = null;
813
814 try {
815 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
816 }
817 catch (Exception e) {
818 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
819 throw (com.liferay.portal.kernel.exception.PortalException)e;
820 }
821
822 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
823 throw (com.liferay.portal.kernel.exception.SystemException)e;
824 }
825
826 throw new com.liferay.portal.kernel.exception.SystemException(e);
827 }
828
829 return (com.liferay.portlet.dynamicdatamapping.model.DDMStructure)returnObj;
830 }
831 catch (com.liferay.portal.kernel.exception.SystemException se) {
832 _log.error(se, se);
833
834 throw se;
835 }
836 }
837
838 private static Log _log = LogFactoryUtil.getLog(DDMStructureServiceHttp.class);
839 private static final Class<?>[] _addStructureParameterTypes0 = new Class[] {
840 long.class, long.class, long.class, java.util.Map.class,
841 java.util.Map.class, java.lang.String.class,
842 com.liferay.portal.service.ServiceContext.class
843 };
844 private static final Class<?>[] _addStructureParameterTypes1 = new Class[] {
845 long.class, long.class, long.class, java.lang.String.class,
846 java.util.Map.class, java.util.Map.class, java.lang.String.class,
847 java.lang.String.class, int.class,
848 com.liferay.portal.service.ServiceContext.class
849 };
850 private static final Class<?>[] _addStructureParameterTypes2 = new Class[] {
851 long.class, long.class, java.lang.String.class, long.class,
852 java.lang.String.class, java.util.Map.class, java.util.Map.class,
853 java.lang.String.class, java.lang.String.class, int.class,
854 com.liferay.portal.service.ServiceContext.class
855 };
856 private static final Class<?>[] _copyStructureParameterTypes3 = new Class[] {
857 long.class, java.util.Map.class, java.util.Map.class,
858 com.liferay.portal.service.ServiceContext.class
859 };
860 private static final Class<?>[] _copyStructureParameterTypes4 = new Class[] {
861 long.class, com.liferay.portal.service.ServiceContext.class
862 };
863 private static final Class<?>[] _deleteStructureParameterTypes5 = new Class[] {
864 long.class
865 };
866 private static final Class<?>[] _fetchStructureParameterTypes6 = new Class[] {
867 long.class, long.class, java.lang.String.class
868 };
869 private static final Class<?>[] _fetchStructureParameterTypes7 = new Class[] {
870 long.class, long.class, java.lang.String.class, boolean.class
871 };
872 private static final Class<?>[] _getStructureParameterTypes8 = new Class[] {
873 long.class
874 };
875 private static final Class<?>[] _getStructureParameterTypes9 = new Class[] {
876 long.class, long.class, java.lang.String.class
877 };
878 private static final Class<?>[] _getStructureParameterTypes10 = new Class[] {
879 long.class, long.class, java.lang.String.class, boolean.class
880 };
881 private static final Class<?>[] _getStructuresParameterTypes11 = new Class[] {
882 long.class
883 };
884 private static final Class<?>[] _getStructuresParameterTypes12 = new Class[] {
885 long[].class
886 };
887 private static final Class<?>[] _getStructuresParameterTypes13 = new Class[] {
888 long[].class, long.class
889 };
890 private static final Class<?>[] _getStructuresParameterTypes14 = new Class[] {
891 long[].class, long.class, int.class, int.class
892 };
893 private static final Class<?>[] _searchParameterTypes15 = new Class[] {
894 long.class, long[].class, long[].class, java.lang.String.class,
895 int.class, int.class,
896 com.liferay.portal.kernel.util.OrderByComparator.class
897 };
898 private static final Class<?>[] _searchParameterTypes16 = new Class[] {
899 long.class, long[].class, long[].class, java.lang.String.class,
900 java.lang.String.class, java.lang.String.class, int.class,
901 boolean.class, int.class, int.class,
902 com.liferay.portal.kernel.util.OrderByComparator.class
903 };
904 private static final Class<?>[] _searchCountParameterTypes17 = new Class[] {
905 long.class, long[].class, long[].class, java.lang.String.class
906 };
907 private static final Class<?>[] _searchCountParameterTypes18 = new Class[] {
908 long.class, long[].class, long[].class, java.lang.String.class,
909 java.lang.String.class, java.lang.String.class, int.class,
910 boolean.class
911 };
912 private static final Class<?>[] _updateStructureParameterTypes19 = new Class[] {
913 long.class, long.class, long.class, java.lang.String.class,
914 java.util.Map.class, java.util.Map.class, java.lang.String.class,
915 com.liferay.portal.service.ServiceContext.class
916 };
917 private static final Class<?>[] _updateStructureParameterTypes20 = new Class[] {
918 long.class, long.class, java.util.Map.class, java.util.Map.class,
919 java.lang.String.class,
920 com.liferay.portal.service.ServiceContext.class
921 };
922 }