1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
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.IntegerWrapper;
28  import com.liferay.portal.kernel.util.LongWrapper;
29  import com.liferay.portal.kernel.util.MethodWrapper;
30  import com.liferay.portal.kernel.util.NullWrapper;
31  import com.liferay.portal.security.auth.HttpPrincipal;
32  import com.liferay.portal.service.http.TunnelUtil;
33  
34  import com.liferay.portlet.expando.service.ExpandoValueServiceUtil;
35  
36  /**
37   * <a href="ExpandoValueServiceHttp.java.html"><b><i>View Source</i></b></a>
38   *
39   * <p>
40   * ServiceBuilder generated this class. Modifications in this class will be
41   * overwritten the next time is generated.
42   * </p>
43   *
44   * <p>
45   * This class provides a HTTP utility for the
46   * <code>com.liferay.portlet.expando.service.ExpandoValueServiceUtil</code> service
47   * utility. The static methods of this class calls the same methods of the
48   * service utility. However, the signatures are different because it requires an
49   * additional <code>com.liferay.portal.security.auth.HttpPrincipal</code>
50   * parameter.
51   * </p>
52   *
53   * <p>
54   * The benefits of using the HTTP utility is that it is fast and allows for
55   * tunneling without the cost of serializing to text. The drawback is that it
56   * only works with Java.
57   * </p>
58   *
59   * <p>
60   * Set the property <code>tunnel.servlet.hosts.allowed</code> in
61   * portal.properties to configure security.
62   * </p>
63   *
64   * <p>
65   * The HTTP utility is only generated for remote services.
66   * </p>
67   *
68   * @author Brian Wing Shun Chan
69   *
70   * @see com.liferay.portal.security.auth.HttpPrincipal
71   * @see com.liferay.portlet.expando.service.ExpandoValueServiceUtil
72   * @see com.liferay.portlet.expando.service.http.ExpandoValueServiceSoap
73   *
74   */
75  public class ExpandoValueServiceHttp {
76      public static com.liferay.portlet.expando.model.ExpandoValue addValue(
77          HttpPrincipal httpPrincipal, long columnId, long rowId, long classPK,
78          java.lang.String data)
79          throws com.liferay.portal.SystemException,
80              com.liferay.portal.PortalException {
81          try {
82              Object paramObj0 = new LongWrapper(columnId);
83  
84              Object paramObj1 = new LongWrapper(rowId);
85  
86              Object paramObj2 = new LongWrapper(classPK);
87  
88              Object paramObj3 = data;
89  
90              if (data == null) {
91                  paramObj3 = new NullWrapper("java.lang.String");
92              }
93  
94              MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
95                      "addValue",
96                      new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
97  
98              Object returnObj = null;
99  
100             try {
101                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
102             }
103             catch (Exception e) {
104                 if (e instanceof com.liferay.portal.SystemException) {
105                     throw (com.liferay.portal.SystemException)e;
106                 }
107 
108                 if (e instanceof com.liferay.portal.PortalException) {
109                     throw (com.liferay.portal.PortalException)e;
110                 }
111 
112                 throw new com.liferay.portal.SystemException(e);
113             }
114 
115             return (com.liferay.portlet.expando.model.ExpandoValue)returnObj;
116         }
117         catch (com.liferay.portal.SystemException se) {
118             _log.error(se, se);
119 
120             throw se;
121         }
122     }
123 
124     public static void deleteColumnValues(HttpPrincipal httpPrincipal,
125         long columnId) throws com.liferay.portal.SystemException {
126         try {
127             Object paramObj0 = new LongWrapper(columnId);
128 
129             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
130                     "deleteColumnValues", new Object[] { paramObj0 });
131 
132             try {
133                 TunnelUtil.invoke(httpPrincipal, methodWrapper);
134             }
135             catch (Exception e) {
136                 if (e instanceof com.liferay.portal.SystemException) {
137                     throw (com.liferay.portal.SystemException)e;
138                 }
139 
140                 throw new com.liferay.portal.SystemException(e);
141             }
142         }
143         catch (com.liferay.portal.SystemException se) {
144             _log.error(se, se);
145 
146             throw se;
147         }
148     }
149 
150     public static void deleteRowValues(HttpPrincipal httpPrincipal, long rowId)
151         throws com.liferay.portal.SystemException {
152         try {
153             Object paramObj0 = new LongWrapper(rowId);
154 
155             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
156                     "deleteRowValues", new Object[] { paramObj0 });
157 
158             try {
159                 TunnelUtil.invoke(httpPrincipal, methodWrapper);
160             }
161             catch (Exception e) {
162                 if (e instanceof com.liferay.portal.SystemException) {
163                     throw (com.liferay.portal.SystemException)e;
164                 }
165 
166                 throw new com.liferay.portal.SystemException(e);
167             }
168         }
169         catch (com.liferay.portal.SystemException se) {
170             _log.error(se, se);
171 
172             throw se;
173         }
174     }
175 
176     public static void deleteTableValues(HttpPrincipal httpPrincipal,
177         long tableId) throws com.liferay.portal.SystemException {
178         try {
179             Object paramObj0 = new LongWrapper(tableId);
180 
181             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
182                     "deleteTableValues", new Object[] { paramObj0 });
183 
184             try {
185                 TunnelUtil.invoke(httpPrincipal, methodWrapper);
186             }
187             catch (Exception e) {
188                 if (e instanceof com.liferay.portal.SystemException) {
189                     throw (com.liferay.portal.SystemException)e;
190                 }
191 
192                 throw new com.liferay.portal.SystemException(e);
193             }
194         }
195         catch (com.liferay.portal.SystemException se) {
196             _log.error(se, se);
197 
198             throw se;
199         }
200     }
201 
202     public static void deleteValue(HttpPrincipal httpPrincipal, long valueId)
203         throws com.liferay.portal.SystemException,
204             com.liferay.portal.PortalException {
205         try {
206             Object paramObj0 = new LongWrapper(valueId);
207 
208             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
209                     "deleteValue", new Object[] { paramObj0 });
210 
211             try {
212                 TunnelUtil.invoke(httpPrincipal, methodWrapper);
213             }
214             catch (Exception e) {
215                 if (e instanceof com.liferay.portal.SystemException) {
216                     throw (com.liferay.portal.SystemException)e;
217                 }
218 
219                 if (e instanceof com.liferay.portal.PortalException) {
220                     throw (com.liferay.portal.PortalException)e;
221                 }
222 
223                 throw new com.liferay.portal.SystemException(e);
224             }
225         }
226         catch (com.liferay.portal.SystemException se) {
227             _log.error(se, se);
228 
229             throw se;
230         }
231     }
232 
233     public static void deleteValues(HttpPrincipal httpPrincipal,
234         java.lang.String className, long classPK)
235         throws com.liferay.portal.SystemException,
236             com.liferay.portal.PortalException {
237         try {
238             Object paramObj0 = className;
239 
240             if (className == null) {
241                 paramObj0 = new NullWrapper("java.lang.String");
242             }
243 
244             Object paramObj1 = new LongWrapper(classPK);
245 
246             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
247                     "deleteValues", new Object[] { paramObj0, paramObj1 });
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 deleteValues(HttpPrincipal httpPrincipal,
272         long classNameId, long classPK)
273         throws com.liferay.portal.SystemException,
274             com.liferay.portal.PortalException {
275         try {
276             Object paramObj0 = new LongWrapper(classNameId);
277 
278             Object paramObj1 = new LongWrapper(classPK);
279 
280             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
281                     "deleteValues", new Object[] { paramObj0, paramObj1 });
282 
283             try {
284                 TunnelUtil.invoke(httpPrincipal, methodWrapper);
285             }
286             catch (Exception e) {
287                 if (e instanceof com.liferay.portal.SystemException) {
288                     throw (com.liferay.portal.SystemException)e;
289                 }
290 
291                 if (e instanceof com.liferay.portal.PortalException) {
292                     throw (com.liferay.portal.PortalException)e;
293                 }
294 
295                 throw new com.liferay.portal.SystemException(e);
296             }
297         }
298         catch (com.liferay.portal.SystemException se) {
299             _log.error(se, se);
300 
301             throw se;
302         }
303     }
304 
305     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
306         HttpPrincipal httpPrincipal, long columnId, int begin, int end)
307         throws com.liferay.portal.SystemException {
308         try {
309             Object paramObj0 = new LongWrapper(columnId);
310 
311             Object paramObj1 = new IntegerWrapper(begin);
312 
313             Object paramObj2 = new IntegerWrapper(end);
314 
315             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
316                     "getColumnValues",
317                     new Object[] { paramObj0, paramObj1, paramObj2 });
318 
319             Object returnObj = null;
320 
321             try {
322                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
323             }
324             catch (Exception e) {
325                 if (e instanceof com.liferay.portal.SystemException) {
326                     throw (com.liferay.portal.SystemException)e;
327                 }
328 
329                 throw new com.liferay.portal.SystemException(e);
330             }
331 
332             return (java.util.List<com.liferay.portlet.expando.model.ExpandoValue>)returnObj;
333         }
334         catch (com.liferay.portal.SystemException se) {
335             _log.error(se, se);
336 
337             throw se;
338         }
339     }
340 
341     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
342         HttpPrincipal httpPrincipal, java.lang.String className,
343         java.lang.String tableName, java.lang.String columnName, int begin,
344         int end) throws com.liferay.portal.SystemException {
345         try {
346             Object paramObj0 = className;
347 
348             if (className == null) {
349                 paramObj0 = new NullWrapper("java.lang.String");
350             }
351 
352             Object paramObj1 = tableName;
353 
354             if (tableName == null) {
355                 paramObj1 = new NullWrapper("java.lang.String");
356             }
357 
358             Object paramObj2 = columnName;
359 
360             if (columnName == null) {
361                 paramObj2 = new NullWrapper("java.lang.String");
362             }
363 
364             Object paramObj3 = new IntegerWrapper(begin);
365 
366             Object paramObj4 = new IntegerWrapper(end);
367 
368             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
369                     "getColumnValues",
370                     new Object[] {
371                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
372                     });
373 
374             Object returnObj = null;
375 
376             try {
377                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
378             }
379             catch (Exception e) {
380                 if (e instanceof com.liferay.portal.SystemException) {
381                     throw (com.liferay.portal.SystemException)e;
382                 }
383 
384                 throw new com.liferay.portal.SystemException(e);
385             }
386 
387             return (java.util.List<com.liferay.portlet.expando.model.ExpandoValue>)returnObj;
388         }
389         catch (com.liferay.portal.SystemException se) {
390             _log.error(se, se);
391 
392             throw se;
393         }
394     }
395 
396     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
397         HttpPrincipal httpPrincipal, long classNameId,
398         java.lang.String tableName, java.lang.String columnName, int begin,
399         int end) throws com.liferay.portal.SystemException {
400         try {
401             Object paramObj0 = new LongWrapper(classNameId);
402 
403             Object paramObj1 = tableName;
404 
405             if (tableName == null) {
406                 paramObj1 = new NullWrapper("java.lang.String");
407             }
408 
409             Object paramObj2 = columnName;
410 
411             if (columnName == null) {
412                 paramObj2 = new NullWrapper("java.lang.String");
413             }
414 
415             Object paramObj3 = new IntegerWrapper(begin);
416 
417             Object paramObj4 = new IntegerWrapper(end);
418 
419             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
420                     "getColumnValues",
421                     new Object[] {
422                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
423                     });
424 
425             Object returnObj = null;
426 
427             try {
428                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
429             }
430             catch (Exception e) {
431                 if (e instanceof com.liferay.portal.SystemException) {
432                     throw (com.liferay.portal.SystemException)e;
433                 }
434 
435                 throw new com.liferay.portal.SystemException(e);
436             }
437 
438             return (java.util.List<com.liferay.portlet.expando.model.ExpandoValue>)returnObj;
439         }
440         catch (com.liferay.portal.SystemException se) {
441             _log.error(se, se);
442 
443             throw se;
444         }
445     }
446 
447     public static int getColumnValuesCount(HttpPrincipal httpPrincipal,
448         long columnId) throws com.liferay.portal.SystemException {
449         try {
450             Object paramObj0 = new LongWrapper(columnId);
451 
452             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
453                     "getColumnValuesCount", new Object[] { paramObj0 });
454 
455             Object returnObj = null;
456 
457             try {
458                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
459             }
460             catch (Exception e) {
461                 if (e instanceof com.liferay.portal.SystemException) {
462                     throw (com.liferay.portal.SystemException)e;
463                 }
464 
465                 throw new com.liferay.portal.SystemException(e);
466             }
467 
468             return ((Integer)returnObj).intValue();
469         }
470         catch (com.liferay.portal.SystemException se) {
471             _log.error(se, se);
472 
473             throw se;
474         }
475     }
476 
477     public static int getColumnValuesCount(HttpPrincipal httpPrincipal,
478         java.lang.String className, java.lang.String tableName,
479         java.lang.String columnName) throws com.liferay.portal.SystemException {
480         try {
481             Object paramObj0 = className;
482 
483             if (className == null) {
484                 paramObj0 = new NullWrapper("java.lang.String");
485             }
486 
487             Object paramObj1 = tableName;
488 
489             if (tableName == null) {
490                 paramObj1 = new NullWrapper("java.lang.String");
491             }
492 
493             Object paramObj2 = columnName;
494 
495             if (columnName == null) {
496                 paramObj2 = new NullWrapper("java.lang.String");
497             }
498 
499             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
500                     "getColumnValuesCount",
501                     new Object[] { paramObj0, paramObj1, paramObj2 });
502 
503             Object returnObj = null;
504 
505             try {
506                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
507             }
508             catch (Exception e) {
509                 if (e instanceof com.liferay.portal.SystemException) {
510                     throw (com.liferay.portal.SystemException)e;
511                 }
512 
513                 throw new com.liferay.portal.SystemException(e);
514             }
515 
516             return ((Integer)returnObj).intValue();
517         }
518         catch (com.liferay.portal.SystemException se) {
519             _log.error(se, se);
520 
521             throw se;
522         }
523     }
524 
525     public static int getColumnValuesCount(HttpPrincipal httpPrincipal,
526         long classNameId, java.lang.String tableName,
527         java.lang.String columnName) throws com.liferay.portal.SystemException {
528         try {
529             Object paramObj0 = new LongWrapper(classNameId);
530 
531             Object paramObj1 = tableName;
532 
533             if (tableName == null) {
534                 paramObj1 = new NullWrapper("java.lang.String");
535             }
536 
537             Object paramObj2 = columnName;
538 
539             if (columnName == null) {
540                 paramObj2 = new NullWrapper("java.lang.String");
541             }
542 
543             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
544                     "getColumnValuesCount",
545                     new Object[] { paramObj0, paramObj1, paramObj2 });
546 
547             Object returnObj = null;
548 
549             try {
550                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
551             }
552             catch (Exception e) {
553                 if (e instanceof com.liferay.portal.SystemException) {
554                     throw (com.liferay.portal.SystemException)e;
555                 }
556 
557                 throw new com.liferay.portal.SystemException(e);
558             }
559 
560             return ((Integer)returnObj).intValue();
561         }
562         catch (com.liferay.portal.SystemException se) {
563             _log.error(se, se);
564 
565             throw se;
566         }
567     }
568 
569     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getDefaultTableColumnValues(
570         HttpPrincipal httpPrincipal, java.lang.String className,
571         java.lang.String columnName, int begin, int end)
572         throws com.liferay.portal.SystemException {
573         try {
574             Object paramObj0 = className;
575 
576             if (className == null) {
577                 paramObj0 = new NullWrapper("java.lang.String");
578             }
579 
580             Object paramObj1 = columnName;
581 
582             if (columnName == null) {
583                 paramObj1 = new NullWrapper("java.lang.String");
584             }
585 
586             Object paramObj2 = new IntegerWrapper(begin);
587 
588             Object paramObj3 = new IntegerWrapper(end);
589 
590             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
591                     "getDefaultTableColumnValues",
592                     new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
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                 throw new com.liferay.portal.SystemException(e);
605             }
606 
607             return (java.util.List<com.liferay.portlet.expando.model.ExpandoValue>)returnObj;
608         }
609         catch (com.liferay.portal.SystemException se) {
610             _log.error(se, se);
611 
612             throw se;
613         }
614     }
615 
616     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getDefaultTableColumnValues(
617         HttpPrincipal httpPrincipal, long classNameId,
618         java.lang.String columnName, int begin, int end)
619         throws com.liferay.portal.SystemException {
620         try {
621             Object paramObj0 = new LongWrapper(classNameId);
622 
623             Object paramObj1 = columnName;
624 
625             if (columnName == null) {
626                 paramObj1 = new NullWrapper("java.lang.String");
627             }
628 
629             Object paramObj2 = new IntegerWrapper(begin);
630 
631             Object paramObj3 = new IntegerWrapper(end);
632 
633             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
634                     "getDefaultTableColumnValues",
635                     new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
636 
637             Object returnObj = null;
638 
639             try {
640                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
641             }
642             catch (Exception e) {
643                 if (e instanceof com.liferay.portal.SystemException) {
644                     throw (com.liferay.portal.SystemException)e;
645                 }
646 
647                 throw new com.liferay.portal.SystemException(e);
648             }
649 
650             return (java.util.List<com.liferay.portlet.expando.model.ExpandoValue>)returnObj;
651         }
652         catch (com.liferay.portal.SystemException se) {
653             _log.error(se, se);
654 
655             throw se;
656         }
657     }
658 
659     public static int getDefaultTableColumnValuesCount(
660         HttpPrincipal httpPrincipal, java.lang.String className,
661         java.lang.String columnName) throws com.liferay.portal.SystemException {
662         try {
663             Object paramObj0 = className;
664 
665             if (className == null) {
666                 paramObj0 = new NullWrapper("java.lang.String");
667             }
668 
669             Object paramObj1 = columnName;
670 
671             if (columnName == null) {
672                 paramObj1 = new NullWrapper("java.lang.String");
673             }
674 
675             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
676                     "getDefaultTableColumnValuesCount",
677                     new Object[] { paramObj0, paramObj1 });
678 
679             Object returnObj = null;
680 
681             try {
682                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
683             }
684             catch (Exception e) {
685                 if (e instanceof com.liferay.portal.SystemException) {
686                     throw (com.liferay.portal.SystemException)e;
687                 }
688 
689                 throw new com.liferay.portal.SystemException(e);
690             }
691 
692             return ((Integer)returnObj).intValue();
693         }
694         catch (com.liferay.portal.SystemException se) {
695             _log.error(se, se);
696 
697             throw se;
698         }
699     }
700 
701     public static int getDefaultTableColumnValuesCount(
702         HttpPrincipal httpPrincipal, long classNameId,
703         java.lang.String columnName) throws com.liferay.portal.SystemException {
704         try {
705             Object paramObj0 = new LongWrapper(classNameId);
706 
707             Object paramObj1 = columnName;
708 
709             if (columnName == null) {
710                 paramObj1 = new NullWrapper("java.lang.String");
711             }
712 
713             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
714                     "getDefaultTableColumnValuesCount",
715                     new Object[] { paramObj0, paramObj1 });
716 
717             Object returnObj = null;
718 
719             try {
720                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
721             }
722             catch (Exception e) {
723                 if (e instanceof com.liferay.portal.SystemException) {
724                     throw (com.liferay.portal.SystemException)e;
725                 }
726 
727                 throw new com.liferay.portal.SystemException(e);
728             }
729 
730             return ((Integer)returnObj).intValue();
731         }
732         catch (com.liferay.portal.SystemException se) {
733             _log.error(se, se);
734 
735             throw se;
736         }
737     }
738 
739     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
740         HttpPrincipal httpPrincipal, long rowId)
741         throws com.liferay.portal.SystemException {
742         try {
743             Object paramObj0 = new LongWrapper(rowId);
744 
745             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
746                     "getRowValues", new Object[] { paramObj0 });
747 
748             Object returnObj = null;
749 
750             try {
751                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
752             }
753             catch (Exception e) {
754                 if (e instanceof com.liferay.portal.SystemException) {
755                     throw (com.liferay.portal.SystemException)e;
756                 }
757 
758                 throw new com.liferay.portal.SystemException(e);
759             }
760 
761             return (java.util.List<com.liferay.portlet.expando.model.ExpandoValue>)returnObj;
762         }
763         catch (com.liferay.portal.SystemException se) {
764             _log.error(se, se);
765 
766             throw se;
767         }
768     }
769 
770     public static java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
771         HttpPrincipal httpPrincipal, long rowId, int begin, int end)
772         throws com.liferay.portal.SystemException {
773         try {
774             Object paramObj0 = new LongWrapper(rowId);
775 
776             Object paramObj1 = new IntegerWrapper(begin);
777 
778             Object paramObj2 = new IntegerWrapper(end);
779 
780             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
781                     "getRowValues",
782                     new Object[] { paramObj0, paramObj1, paramObj2 });
783 
784             Object returnObj = null;
785 
786             try {
787                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
788             }
789             catch (Exception e) {
790                 if (e instanceof com.liferay.portal.SystemException) {
791                     throw (com.liferay.portal.SystemException)e;
792                 }
793 
794                 throw new com.liferay.portal.SystemException(e);
795             }
796 
797             return (java.util.List<com.liferay.portlet.expando.model.ExpandoValue>)returnObj;
798         }
799         catch (com.liferay.portal.SystemException se) {
800             _log.error(se, se);
801 
802             throw se;
803         }
804     }
805 
806     public static int getRowValuesCount(HttpPrincipal httpPrincipal, long rowId)
807         throws com.liferay.portal.SystemException {
808         try {
809             Object paramObj0 = new LongWrapper(rowId);
810 
811             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
812                     "getRowValuesCount", new Object[] { paramObj0 });
813 
814             Object returnObj = null;
815 
816             try {
817                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
818             }
819             catch (Exception e) {
820                 if (e instanceof com.liferay.portal.SystemException) {
821                     throw (com.liferay.portal.SystemException)e;
822                 }
823 
824                 throw new com.liferay.portal.SystemException(e);
825             }
826 
827             return ((Integer)returnObj).intValue();
828         }
829         catch (com.liferay.portal.SystemException se) {
830             _log.error(se, se);
831 
832             throw se;
833         }
834     }
835 
836     public static com.liferay.portlet.expando.model.ExpandoValue getValue(
837         HttpPrincipal httpPrincipal, long valueId)
838         throws com.liferay.portal.SystemException,
839             com.liferay.portal.PortalException {
840         try {
841             Object paramObj0 = new LongWrapper(valueId);
842 
843             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
844                     "getValue", new Object[] { paramObj0 });
845 
846             Object returnObj = null;
847 
848             try {
849                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
850             }
851             catch (Exception e) {
852                 if (e instanceof com.liferay.portal.SystemException) {
853                     throw (com.liferay.portal.SystemException)e;
854                 }
855 
856                 if (e instanceof com.liferay.portal.PortalException) {
857                     throw (com.liferay.portal.PortalException)e;
858                 }
859 
860                 throw new com.liferay.portal.SystemException(e);
861             }
862 
863             return (com.liferay.portlet.expando.model.ExpandoValue)returnObj;
864         }
865         catch (com.liferay.portal.SystemException se) {
866             _log.error(se, se);
867 
868             throw se;
869         }
870     }
871 
872     public static com.liferay.portlet.expando.model.ExpandoValue getValue(
873         HttpPrincipal httpPrincipal, long columnId, long rowId)
874         throws com.liferay.portal.SystemException,
875             com.liferay.portal.PortalException {
876         try {
877             Object paramObj0 = new LongWrapper(columnId);
878 
879             Object paramObj1 = new LongWrapper(rowId);
880 
881             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
882                     "getValue", new Object[] { paramObj0, paramObj1 });
883 
884             Object returnObj = null;
885 
886             try {
887                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
888             }
889             catch (Exception e) {
890                 if (e instanceof com.liferay.portal.SystemException) {
891                     throw (com.liferay.portal.SystemException)e;
892                 }
893 
894                 if (e instanceof com.liferay.portal.PortalException) {
895                     throw (com.liferay.portal.PortalException)e;
896                 }
897 
898                 throw new com.liferay.portal.SystemException(e);
899             }
900 
901             return (com.liferay.portlet.expando.model.ExpandoValue)returnObj;
902         }
903         catch (com.liferay.portal.SystemException se) {
904             _log.error(se, se);
905 
906             throw se;
907         }
908     }
909 
910     public static com.liferay.portlet.expando.model.ExpandoValue getValue(
911         HttpPrincipal httpPrincipal, java.lang.String className,
912         java.lang.String tableName, java.lang.String name, long rowId)
913         throws com.liferay.portal.SystemException,
914             com.liferay.portal.PortalException {
915         try {
916             Object paramObj0 = className;
917 
918             if (className == null) {
919                 paramObj0 = new NullWrapper("java.lang.String");
920             }
921 
922             Object paramObj1 = tableName;
923 
924             if (tableName == null) {
925                 paramObj1 = new NullWrapper("java.lang.String");
926             }
927 
928             Object paramObj2 = name;
929 
930             if (name == null) {
931                 paramObj2 = new NullWrapper("java.lang.String");
932             }
933 
934             Object paramObj3 = new LongWrapper(rowId);
935 
936             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
937                     "getValue",
938                     new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
939 
940             Object returnObj = null;
941 
942             try {
943                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
944             }
945             catch (Exception e) {
946                 if (e instanceof com.liferay.portal.SystemException) {
947                     throw (com.liferay.portal.SystemException)e;
948                 }
949 
950                 if (e instanceof com.liferay.portal.PortalException) {
951                     throw (com.liferay.portal.PortalException)e;
952                 }
953 
954                 throw new com.liferay.portal.SystemException(e);
955             }
956 
957             return (com.liferay.portlet.expando.model.ExpandoValue)returnObj;
958         }
959         catch (com.liferay.portal.SystemException se) {
960             _log.error(se, se);
961 
962             throw se;
963         }
964     }
965 
966     public static com.liferay.portlet.expando.model.ExpandoValue getValue(
967         HttpPrincipal httpPrincipal, long classNameId,
968         java.lang.String tableName, java.lang.String name, long rowId)
969         throws com.liferay.portal.SystemException,
970             com.liferay.portal.PortalException {
971         try {
972             Object paramObj0 = new LongWrapper(classNameId);
973 
974             Object paramObj1 = tableName;
975 
976             if (tableName == null) {
977                 paramObj1 = new NullWrapper("java.lang.String");
978             }
979 
980             Object paramObj2 = name;
981 
982             if (name == null) {
983                 paramObj2 = new NullWrapper("java.lang.String");
984             }
985 
986             Object paramObj3 = new LongWrapper(rowId);
987 
988             MethodWrapper methodWrapper = new MethodWrapper(ExpandoValueServiceUtil.class.getName(),
989                     "getValue",
990                     new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
991 
992             Object returnObj = null;
993 
994             try {
995                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
996             }
997             catch (Exception e) {
998                 if (e instanceof com.liferay.portal.SystemException) {
999                     throw (com.liferay.portal.SystemException)e;
1000                }
1001
1002                if (e instanceof com.liferay.portal.PortalException) {
1003                    throw (com.liferay.portal.PortalException)e;
1004                }
1005
1006                throw new com.liferay.portal.SystemException(e);
1007            }
1008
1009            return (com.liferay.portlet.expando.model.ExpandoValue)returnObj;
1010        }
1011        catch (com.liferay.portal.SystemException se) {
1012            _log.error(se, se);
1013
1014            throw se;
1015        }
1016    }
1017
1018    private static Log _log = LogFactoryUtil.getLog(ExpandoValueServiceHttp.class);
1019}