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