1
22
23 package com.liferay.portlet.expando.service.http;
24
25 import com.liferay.portal.kernel.log.Log;
26 import com.liferay.portal.kernel.log.LogFactoryUtil;
27 import com.liferay.portal.kernel.util.LongWrapper;
28 import com.liferay.portal.kernel.util.MethodWrapper;
29 import com.liferay.portal.kernel.util.NullWrapper;
30 import com.liferay.portal.security.auth.HttpPrincipal;
31 import com.liferay.portal.service.http.TunnelUtil;
32
33 import com.liferay.portlet.expando.service.ExpandoTableServiceUtil;
34
35
74 public class ExpandoTableServiceHttp {
75 public static com.liferay.portlet.expando.model.ExpandoTable addDefaultTable(
76 HttpPrincipal httpPrincipal, java.lang.String className)
77 throws com.liferay.portal.SystemException,
78 com.liferay.portal.PortalException {
79 try {
80 Object paramObj0 = className;
81
82 if (className == null) {
83 paramObj0 = new NullWrapper("java.lang.String");
84 }
85
86 MethodWrapper methodWrapper = new MethodWrapper(ExpandoTableServiceUtil.class.getName(),
87 "addDefaultTable", new Object[] { paramObj0 });
88
89 Object returnObj = null;
90
91 try {
92 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
93 }
94 catch (Exception e) {
95 if (e instanceof com.liferay.portal.SystemException) {
96 throw (com.liferay.portal.SystemException)e;
97 }
98
99 if (e instanceof com.liferay.portal.PortalException) {
100 throw (com.liferay.portal.PortalException)e;
101 }
102
103 throw new com.liferay.portal.SystemException(e);
104 }
105
106 return (com.liferay.portlet.expando.model.ExpandoTable)returnObj;
107 }
108 catch (com.liferay.portal.SystemException se) {
109 _log.error(se, se);
110
111 throw se;
112 }
113 }
114
115 public static com.liferay.portlet.expando.model.ExpandoTable addDefaultTable(
116 HttpPrincipal httpPrincipal, long classNameId)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portal.PortalException {
119 try {
120 Object paramObj0 = new LongWrapper(classNameId);
121
122 MethodWrapper methodWrapper = new MethodWrapper(ExpandoTableServiceUtil.class.getName(),
123 "addDefaultTable", new Object[] { paramObj0 });
124
125 Object returnObj = null;
126
127 try {
128 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
129 }
130 catch (Exception e) {
131 if (e instanceof com.liferay.portal.SystemException) {
132 throw (com.liferay.portal.SystemException)e;
133 }
134
135 if (e instanceof com.liferay.portal.PortalException) {
136 throw (com.liferay.portal.PortalException)e;
137 }
138
139 throw new com.liferay.portal.SystemException(e);
140 }
141
142 return (com.liferay.portlet.expando.model.ExpandoTable)returnObj;
143 }
144 catch (com.liferay.portal.SystemException se) {
145 _log.error(se, se);
146
147 throw se;
148 }
149 }
150
151 public static com.liferay.portlet.expando.model.ExpandoTable addTable(
152 HttpPrincipal httpPrincipal, java.lang.String className,
153 java.lang.String name)
154 throws com.liferay.portal.SystemException,
155 com.liferay.portal.PortalException {
156 try {
157 Object paramObj0 = className;
158
159 if (className == null) {
160 paramObj0 = new NullWrapper("java.lang.String");
161 }
162
163 Object paramObj1 = name;
164
165 if (name == null) {
166 paramObj1 = new NullWrapper("java.lang.String");
167 }
168
169 MethodWrapper methodWrapper = new MethodWrapper(ExpandoTableServiceUtil.class.getName(),
170 "addTable", new Object[] { paramObj0, paramObj1 });
171
172 Object returnObj = null;
173
174 try {
175 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
176 }
177 catch (Exception e) {
178 if (e instanceof com.liferay.portal.SystemException) {
179 throw (com.liferay.portal.SystemException)e;
180 }
181
182 if (e instanceof com.liferay.portal.PortalException) {
183 throw (com.liferay.portal.PortalException)e;
184 }
185
186 throw new com.liferay.portal.SystemException(e);
187 }
188
189 return (com.liferay.portlet.expando.model.ExpandoTable)returnObj;
190 }
191 catch (com.liferay.portal.SystemException se) {
192 _log.error(se, se);
193
194 throw se;
195 }
196 }
197
198 public static com.liferay.portlet.expando.model.ExpandoTable addTable(
199 HttpPrincipal httpPrincipal, long classNameId, java.lang.String name)
200 throws com.liferay.portal.SystemException,
201 com.liferay.portal.PortalException {
202 try {
203 Object paramObj0 = new LongWrapper(classNameId);
204
205 Object paramObj1 = name;
206
207 if (name == null) {
208 paramObj1 = new NullWrapper("java.lang.String");
209 }
210
211 MethodWrapper methodWrapper = new MethodWrapper(ExpandoTableServiceUtil.class.getName(),
212 "addTable", new Object[] { paramObj0, paramObj1 });
213
214 Object returnObj = null;
215
216 try {
217 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
218 }
219 catch (Exception e) {
220 if (e instanceof com.liferay.portal.SystemException) {
221 throw (com.liferay.portal.SystemException)e;
222 }
223
224 if (e instanceof com.liferay.portal.PortalException) {
225 throw (com.liferay.portal.PortalException)e;
226 }
227
228 throw new com.liferay.portal.SystemException(e);
229 }
230
231 return (com.liferay.portlet.expando.model.ExpandoTable)returnObj;
232 }
233 catch (com.liferay.portal.SystemException se) {
234 _log.error(se, se);
235
236 throw se;
237 }
238 }
239
240 public static void deleteTable(HttpPrincipal httpPrincipal, long tableId)
241 throws com.liferay.portal.SystemException,
242 com.liferay.portal.PortalException {
243 try {
244 Object paramObj0 = new LongWrapper(tableId);
245
246 MethodWrapper methodWrapper = new MethodWrapper(ExpandoTableServiceUtil.class.getName(),
247 "deleteTable", new Object[] { paramObj0 });
248
249 try {
250 TunnelUtil.invoke(httpPrincipal, methodWrapper);
251 }
252 catch (Exception e) {
253 if (e instanceof com.liferay.portal.SystemException) {
254 throw (com.liferay.portal.SystemException)e;
255 }
256
257 if (e instanceof com.liferay.portal.PortalException) {
258 throw (com.liferay.portal.PortalException)e;
259 }
260
261 throw new com.liferay.portal.SystemException(e);
262 }
263 }
264 catch (com.liferay.portal.SystemException se) {
265 _log.error(se, se);
266
267 throw se;
268 }
269 }
270
271 public static void deleteTable(HttpPrincipal httpPrincipal,
272 java.lang.String className, java.lang.String name)
273 throws com.liferay.portal.SystemException,
274 com.liferay.portal.PortalException {
275 try {
276 Object paramObj0 = className;
277
278 if (className == null) {
279 paramObj0 = new NullWrapper("java.lang.String");
280 }
281
282 Object paramObj1 = name;
283
284 if (name == null) {
285 paramObj1 = new NullWrapper("java.lang.String");
286 }
287
288 MethodWrapper methodWrapper = new MethodWrapper(ExpandoTableServiceUtil.class.getName(),
289 "deleteTable", new Object[] { paramObj0, paramObj1 });
290
291 try {
292 TunnelUtil.invoke(httpPrincipal, methodWrapper);
293 }
294 catch (Exception e) {
295 if (e instanceof com.liferay.portal.SystemException) {
296 throw (com.liferay.portal.SystemException)e;
297 }
298
299 if (e instanceof com.liferay.portal.PortalException) {
300 throw (com.liferay.portal.PortalException)e;
301 }
302
303 throw new com.liferay.portal.SystemException(e);
304 }
305 }
306 catch (com.liferay.portal.SystemException se) {
307 _log.error(se, se);
308
309 throw se;
310 }
311 }
312
313 public static void deleteTable(HttpPrincipal httpPrincipal,
314 long classNameId, java.lang.String name)
315 throws com.liferay.portal.SystemException,
316 com.liferay.portal.PortalException {
317 try {
318 Object paramObj0 = new LongWrapper(classNameId);
319
320 Object paramObj1 = name;
321
322 if (name == null) {
323 paramObj1 = new NullWrapper("java.lang.String");
324 }
325
326 MethodWrapper methodWrapper = new MethodWrapper(ExpandoTableServiceUtil.class.getName(),
327 "deleteTable", new Object[] { paramObj0, paramObj1 });
328
329 try {
330 TunnelUtil.invoke(httpPrincipal, methodWrapper);
331 }
332 catch (Exception e) {
333 if (e instanceof com.liferay.portal.SystemException) {
334 throw (com.liferay.portal.SystemException)e;
335 }
336
337 if (e instanceof com.liferay.portal.PortalException) {
338 throw (com.liferay.portal.PortalException)e;
339 }
340
341 throw new com.liferay.portal.SystemException(e);
342 }
343 }
344 catch (com.liferay.portal.SystemException se) {
345 _log.error(se, se);
346
347 throw se;
348 }
349 }
350
351 public static void deleteTables(HttpPrincipal httpPrincipal,
352 java.lang.String className)
353 throws com.liferay.portal.SystemException,
354 com.liferay.portal.PortalException {
355 try {
356 Object paramObj0 = className;
357
358 if (className == null) {
359 paramObj0 = new NullWrapper("java.lang.String");
360 }
361
362 MethodWrapper methodWrapper = new MethodWrapper(ExpandoTableServiceUtil.class.getName(),
363 "deleteTables", new Object[] { paramObj0 });
364
365 try {
366 TunnelUtil.invoke(httpPrincipal, methodWrapper);
367 }
368 catch (Exception e) {
369 if (e instanceof com.liferay.portal.SystemException) {
370 throw (com.liferay.portal.SystemException)e;
371 }
372
373 if (e instanceof com.liferay.portal.PortalException) {
374 throw (com.liferay.portal.PortalException)e;
375 }
376
377 throw new com.liferay.portal.SystemException(e);
378 }
379 }
380 catch (com.liferay.portal.SystemException se) {
381 _log.error(se, se);
382
383 throw se;
384 }
385 }
386
387 public static void deleteTables(HttpPrincipal httpPrincipal,
388 long classNameId)
389 throws com.liferay.portal.SystemException,
390 com.liferay.portal.PortalException {
391 try {
392 Object paramObj0 = new LongWrapper(classNameId);
393
394 MethodWrapper methodWrapper = new MethodWrapper(ExpandoTableServiceUtil.class.getName(),
395 "deleteTables", new Object[] { paramObj0 });
396
397 try {
398 TunnelUtil.invoke(httpPrincipal, methodWrapper);
399 }
400 catch (Exception e) {
401 if (e instanceof com.liferay.portal.SystemException) {
402 throw (com.liferay.portal.SystemException)e;
403 }
404
405 if (e instanceof com.liferay.portal.PortalException) {
406 throw (com.liferay.portal.PortalException)e;
407 }
408
409 throw new com.liferay.portal.SystemException(e);
410 }
411 }
412 catch (com.liferay.portal.SystemException se) {
413 _log.error(se, se);
414
415 throw se;
416 }
417 }
418
419 public static com.liferay.portlet.expando.model.ExpandoTable getDefaultTable(
420 HttpPrincipal httpPrincipal, java.lang.String className)
421 throws com.liferay.portal.SystemException,
422 com.liferay.portal.PortalException {
423 try {
424 Object paramObj0 = className;
425
426 if (className == null) {
427 paramObj0 = new NullWrapper("java.lang.String");
428 }
429
430 MethodWrapper methodWrapper = new MethodWrapper(ExpandoTableServiceUtil.class.getName(),
431 "getDefaultTable", new Object[] { paramObj0 });
432
433 Object returnObj = null;
434
435 try {
436 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
437 }
438 catch (Exception e) {
439 if (e instanceof com.liferay.portal.SystemException) {
440 throw (com.liferay.portal.SystemException)e;
441 }
442
443 if (e instanceof com.liferay.portal.PortalException) {
444 throw (com.liferay.portal.PortalException)e;
445 }
446
447 throw new com.liferay.portal.SystemException(e);
448 }
449
450 return (com.liferay.portlet.expando.model.ExpandoTable)returnObj;
451 }
452 catch (com.liferay.portal.SystemException se) {
453 _log.error(se, se);
454
455 throw se;
456 }
457 }
458
459 public static com.liferay.portlet.expando.model.ExpandoTable getDefaultTable(
460 HttpPrincipal httpPrincipal, long classNameId)
461 throws com.liferay.portal.SystemException,
462 com.liferay.portal.PortalException {
463 try {
464 Object paramObj0 = new LongWrapper(classNameId);
465
466 MethodWrapper methodWrapper = new MethodWrapper(ExpandoTableServiceUtil.class.getName(),
467 "getDefaultTable", new Object[] { paramObj0 });
468
469 Object returnObj = null;
470
471 try {
472 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
473 }
474 catch (Exception e) {
475 if (e instanceof com.liferay.portal.SystemException) {
476 throw (com.liferay.portal.SystemException)e;
477 }
478
479 if (e instanceof com.liferay.portal.PortalException) {
480 throw (com.liferay.portal.PortalException)e;
481 }
482
483 throw new com.liferay.portal.SystemException(e);
484 }
485
486 return (com.liferay.portlet.expando.model.ExpandoTable)returnObj;
487 }
488 catch (com.liferay.portal.SystemException se) {
489 _log.error(se, se);
490
491 throw se;
492 }
493 }
494
495 public static com.liferay.portlet.expando.model.ExpandoTable getTable(
496 HttpPrincipal httpPrincipal, long tableId)
497 throws com.liferay.portal.SystemException,
498 com.liferay.portal.PortalException {
499 try {
500 Object paramObj0 = new LongWrapper(tableId);
501
502 MethodWrapper methodWrapper = new MethodWrapper(ExpandoTableServiceUtil.class.getName(),
503 "getTable", new Object[] { paramObj0 });
504
505 Object returnObj = null;
506
507 try {
508 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
509 }
510 catch (Exception e) {
511 if (e instanceof com.liferay.portal.SystemException) {
512 throw (com.liferay.portal.SystemException)e;
513 }
514
515 if (e instanceof com.liferay.portal.PortalException) {
516 throw (com.liferay.portal.PortalException)e;
517 }
518
519 throw new com.liferay.portal.SystemException(e);
520 }
521
522 return (com.liferay.portlet.expando.model.ExpandoTable)returnObj;
523 }
524 catch (com.liferay.portal.SystemException se) {
525 _log.error(se, se);
526
527 throw se;
528 }
529 }
530
531 public static com.liferay.portlet.expando.model.ExpandoTable getTable(
532 HttpPrincipal httpPrincipal, java.lang.String className,
533 java.lang.String name)
534 throws com.liferay.portal.SystemException,
535 com.liferay.portal.PortalException {
536 try {
537 Object paramObj0 = className;
538
539 if (className == null) {
540 paramObj0 = new NullWrapper("java.lang.String");
541 }
542
543 Object paramObj1 = name;
544
545 if (name == null) {
546 paramObj1 = new NullWrapper("java.lang.String");
547 }
548
549 MethodWrapper methodWrapper = new MethodWrapper(ExpandoTableServiceUtil.class.getName(),
550 "getTable", new Object[] { paramObj0, paramObj1 });
551
552 Object returnObj = null;
553
554 try {
555 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
556 }
557 catch (Exception e) {
558 if (e instanceof com.liferay.portal.SystemException) {
559 throw (com.liferay.portal.SystemException)e;
560 }
561
562 if (e instanceof com.liferay.portal.PortalException) {
563 throw (com.liferay.portal.PortalException)e;
564 }
565
566 throw new com.liferay.portal.SystemException(e);
567 }
568
569 return (com.liferay.portlet.expando.model.ExpandoTable)returnObj;
570 }
571 catch (com.liferay.portal.SystemException se) {
572 _log.error(se, se);
573
574 throw se;
575 }
576 }
577
578 public static com.liferay.portlet.expando.model.ExpandoTable getTable(
579 HttpPrincipal httpPrincipal, long classNameId, java.lang.String name)
580 throws com.liferay.portal.SystemException,
581 com.liferay.portal.PortalException {
582 try {
583 Object paramObj0 = new LongWrapper(classNameId);
584
585 Object paramObj1 = name;
586
587 if (name == null) {
588 paramObj1 = new NullWrapper("java.lang.String");
589 }
590
591 MethodWrapper methodWrapper = new MethodWrapper(ExpandoTableServiceUtil.class.getName(),
592 "getTable", new Object[] { paramObj0, paramObj1 });
593
594 Object returnObj = null;
595
596 try {
597 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
598 }
599 catch (Exception e) {
600 if (e instanceof com.liferay.portal.SystemException) {
601 throw (com.liferay.portal.SystemException)e;
602 }
603
604 if (e instanceof com.liferay.portal.PortalException) {
605 throw (com.liferay.portal.PortalException)e;
606 }
607
608 throw new com.liferay.portal.SystemException(e);
609 }
610
611 return (com.liferay.portlet.expando.model.ExpandoTable)returnObj;
612 }
613 catch (com.liferay.portal.SystemException se) {
614 _log.error(se, se);
615
616 throw se;
617 }
618 }
619
620 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getTables(
621 HttpPrincipal httpPrincipal, java.lang.String className)
622 throws com.liferay.portal.SystemException,
623 com.liferay.portal.PortalException {
624 try {
625 Object paramObj0 = className;
626
627 if (className == null) {
628 paramObj0 = new NullWrapper("java.lang.String");
629 }
630
631 MethodWrapper methodWrapper = new MethodWrapper(ExpandoTableServiceUtil.class.getName(),
632 "getTables", new Object[] { paramObj0 });
633
634 Object returnObj = null;
635
636 try {
637 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
638 }
639 catch (Exception e) {
640 if (e instanceof com.liferay.portal.SystemException) {
641 throw (com.liferay.portal.SystemException)e;
642 }
643
644 if (e instanceof com.liferay.portal.PortalException) {
645 throw (com.liferay.portal.PortalException)e;
646 }
647
648 throw new com.liferay.portal.SystemException(e);
649 }
650
651 return (java.util.List<com.liferay.portlet.expando.model.ExpandoTable>)returnObj;
652 }
653 catch (com.liferay.portal.SystemException se) {
654 _log.error(se, se);
655
656 throw se;
657 }
658 }
659
660 public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getTables(
661 HttpPrincipal httpPrincipal, long classNameId)
662 throws com.liferay.portal.SystemException,
663 com.liferay.portal.PortalException {
664 try {
665 Object paramObj0 = new LongWrapper(classNameId);
666
667 MethodWrapper methodWrapper = new MethodWrapper(ExpandoTableServiceUtil.class.getName(),
668 "getTables", new Object[] { paramObj0 });
669
670 Object returnObj = null;
671
672 try {
673 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
674 }
675 catch (Exception e) {
676 if (e instanceof com.liferay.portal.SystemException) {
677 throw (com.liferay.portal.SystemException)e;
678 }
679
680 if (e instanceof com.liferay.portal.PortalException) {
681 throw (com.liferay.portal.PortalException)e;
682 }
683
684 throw new com.liferay.portal.SystemException(e);
685 }
686
687 return (java.util.List<com.liferay.portlet.expando.model.ExpandoTable>)returnObj;
688 }
689 catch (com.liferay.portal.SystemException se) {
690 _log.error(se, se);
691
692 throw se;
693 }
694 }
695
696 public static com.liferay.portlet.expando.model.ExpandoTable updateTable(
697 HttpPrincipal httpPrincipal, long tableId, java.lang.String name)
698 throws com.liferay.portal.SystemException,
699 com.liferay.portal.PortalException {
700 try {
701 Object paramObj0 = new LongWrapper(tableId);
702
703 Object paramObj1 = name;
704
705 if (name == null) {
706 paramObj1 = new NullWrapper("java.lang.String");
707 }
708
709 MethodWrapper methodWrapper = new MethodWrapper(ExpandoTableServiceUtil.class.getName(),
710 "updateTable", new Object[] { paramObj0, paramObj1 });
711
712 Object returnObj = null;
713
714 try {
715 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
716 }
717 catch (Exception e) {
718 if (e instanceof com.liferay.portal.SystemException) {
719 throw (com.liferay.portal.SystemException)e;
720 }
721
722 if (e instanceof com.liferay.portal.PortalException) {
723 throw (com.liferay.portal.PortalException)e;
724 }
725
726 throw new com.liferay.portal.SystemException(e);
727 }
728
729 return (com.liferay.portlet.expando.model.ExpandoTable)returnObj;
730 }
731 catch (com.liferay.portal.SystemException se) {
732 _log.error(se, se);
733
734 throw se;
735 }
736 }
737
738 private static Log _log = LogFactoryUtil.getLog(ExpandoTableServiceHttp.class);
739 }