1
22
23 package com.liferay.portal.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.BooleanWrapper;
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.CompanyServiceUtil;
33
34
71 public class CompanyServiceHttp {
72 public static com.liferay.portal.model.Company addCompany(
73 HttpPrincipal httpPrincipal, java.lang.String webId,
74 java.lang.String virtualHost, java.lang.String mx,
75 java.lang.String shardName, boolean system)
76 throws com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException {
78 try {
79 Object paramObj0 = webId;
80
81 if (webId == null) {
82 paramObj0 = new NullWrapper("java.lang.String");
83 }
84
85 Object paramObj1 = virtualHost;
86
87 if (virtualHost == null) {
88 paramObj1 = new NullWrapper("java.lang.String");
89 }
90
91 Object paramObj2 = mx;
92
93 if (mx == null) {
94 paramObj2 = new NullWrapper("java.lang.String");
95 }
96
97 Object paramObj3 = shardName;
98
99 if (shardName == null) {
100 paramObj3 = new NullWrapper("java.lang.String");
101 }
102
103 Object paramObj4 = new BooleanWrapper(system);
104
105 MethodWrapper methodWrapper = new MethodWrapper(CompanyServiceUtil.class.getName(),
106 "addCompany",
107 new Object[] {
108 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
109 });
110
111 Object returnObj = null;
112
113 try {
114 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
115 }
116 catch (Exception e) {
117 if (e instanceof com.liferay.portal.PortalException) {
118 throw (com.liferay.portal.PortalException)e;
119 }
120
121 if (e instanceof com.liferay.portal.SystemException) {
122 throw (com.liferay.portal.SystemException)e;
123 }
124
125 throw new com.liferay.portal.SystemException(e);
126 }
127
128 return (com.liferay.portal.model.Company)returnObj;
129 }
130 catch (com.liferay.portal.SystemException se) {
131 _log.error(se, se);
132
133 throw se;
134 }
135 }
136
137 public static void deleteLogo(HttpPrincipal httpPrincipal, long companyId)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException {
140 try {
141 Object paramObj0 = new LongWrapper(companyId);
142
143 MethodWrapper methodWrapper = new MethodWrapper(CompanyServiceUtil.class.getName(),
144 "deleteLogo", new Object[] { paramObj0 });
145
146 try {
147 TunnelUtil.invoke(httpPrincipal, methodWrapper);
148 }
149 catch (Exception e) {
150 if (e instanceof com.liferay.portal.PortalException) {
151 throw (com.liferay.portal.PortalException)e;
152 }
153
154 if (e instanceof com.liferay.portal.SystemException) {
155 throw (com.liferay.portal.SystemException)e;
156 }
157
158 throw new com.liferay.portal.SystemException(e);
159 }
160 }
161 catch (com.liferay.portal.SystemException se) {
162 _log.error(se, se);
163
164 throw se;
165 }
166 }
167
168 public static com.liferay.portal.model.Company getCompanyById(
169 HttpPrincipal httpPrincipal, long companyId)
170 throws com.liferay.portal.PortalException,
171 com.liferay.portal.SystemException {
172 try {
173 Object paramObj0 = new LongWrapper(companyId);
174
175 MethodWrapper methodWrapper = new MethodWrapper(CompanyServiceUtil.class.getName(),
176 "getCompanyById", new Object[] { paramObj0 });
177
178 Object returnObj = null;
179
180 try {
181 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
182 }
183 catch (Exception e) {
184 if (e instanceof com.liferay.portal.PortalException) {
185 throw (com.liferay.portal.PortalException)e;
186 }
187
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 return (com.liferay.portal.model.Company)returnObj;
196 }
197 catch (com.liferay.portal.SystemException se) {
198 _log.error(se, se);
199
200 throw se;
201 }
202 }
203
204 public static com.liferay.portal.model.Company getCompanyByLogoId(
205 HttpPrincipal httpPrincipal, long logoId)
206 throws com.liferay.portal.PortalException,
207 com.liferay.portal.SystemException {
208 try {
209 Object paramObj0 = new LongWrapper(logoId);
210
211 MethodWrapper methodWrapper = new MethodWrapper(CompanyServiceUtil.class.getName(),
212 "getCompanyByLogoId", new Object[] { paramObj0 });
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.PortalException) {
221 throw (com.liferay.portal.PortalException)e;
222 }
223
224 if (e instanceof com.liferay.portal.SystemException) {
225 throw (com.liferay.portal.SystemException)e;
226 }
227
228 throw new com.liferay.portal.SystemException(e);
229 }
230
231 return (com.liferay.portal.model.Company)returnObj;
232 }
233 catch (com.liferay.portal.SystemException se) {
234 _log.error(se, se);
235
236 throw se;
237 }
238 }
239
240 public static com.liferay.portal.model.Company getCompanyByMx(
241 HttpPrincipal httpPrincipal, java.lang.String mx)
242 throws com.liferay.portal.PortalException,
243 com.liferay.portal.SystemException {
244 try {
245 Object paramObj0 = mx;
246
247 if (mx == null) {
248 paramObj0 = new NullWrapper("java.lang.String");
249 }
250
251 MethodWrapper methodWrapper = new MethodWrapper(CompanyServiceUtil.class.getName(),
252 "getCompanyByMx", new Object[] { paramObj0 });
253
254 Object returnObj = null;
255
256 try {
257 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
258 }
259 catch (Exception e) {
260 if (e instanceof com.liferay.portal.PortalException) {
261 throw (com.liferay.portal.PortalException)e;
262 }
263
264 if (e instanceof com.liferay.portal.SystemException) {
265 throw (com.liferay.portal.SystemException)e;
266 }
267
268 throw new com.liferay.portal.SystemException(e);
269 }
270
271 return (com.liferay.portal.model.Company)returnObj;
272 }
273 catch (com.liferay.portal.SystemException se) {
274 _log.error(se, se);
275
276 throw se;
277 }
278 }
279
280 public static com.liferay.portal.model.Company getCompanyByVirtualHost(
281 HttpPrincipal httpPrincipal, java.lang.String virtualHost)
282 throws com.liferay.portal.PortalException,
283 com.liferay.portal.SystemException {
284 try {
285 Object paramObj0 = virtualHost;
286
287 if (virtualHost == null) {
288 paramObj0 = new NullWrapper("java.lang.String");
289 }
290
291 MethodWrapper methodWrapper = new MethodWrapper(CompanyServiceUtil.class.getName(),
292 "getCompanyByVirtualHost", new Object[] { paramObj0 });
293
294 Object returnObj = null;
295
296 try {
297 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
298 }
299 catch (Exception e) {
300 if (e instanceof com.liferay.portal.PortalException) {
301 throw (com.liferay.portal.PortalException)e;
302 }
303
304 if (e instanceof com.liferay.portal.SystemException) {
305 throw (com.liferay.portal.SystemException)e;
306 }
307
308 throw new com.liferay.portal.SystemException(e);
309 }
310
311 return (com.liferay.portal.model.Company)returnObj;
312 }
313 catch (com.liferay.portal.SystemException se) {
314 _log.error(se, se);
315
316 throw se;
317 }
318 }
319
320 public static com.liferay.portal.model.Company getCompanyByWebId(
321 HttpPrincipal httpPrincipal, java.lang.String webId)
322 throws com.liferay.portal.PortalException,
323 com.liferay.portal.SystemException {
324 try {
325 Object paramObj0 = webId;
326
327 if (webId == null) {
328 paramObj0 = new NullWrapper("java.lang.String");
329 }
330
331 MethodWrapper methodWrapper = new MethodWrapper(CompanyServiceUtil.class.getName(),
332 "getCompanyByWebId", new Object[] { paramObj0 });
333
334 Object returnObj = null;
335
336 try {
337 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
338 }
339 catch (Exception e) {
340 if (e instanceof com.liferay.portal.PortalException) {
341 throw (com.liferay.portal.PortalException)e;
342 }
343
344 if (e instanceof com.liferay.portal.SystemException) {
345 throw (com.liferay.portal.SystemException)e;
346 }
347
348 throw new com.liferay.portal.SystemException(e);
349 }
350
351 return (com.liferay.portal.model.Company)returnObj;
352 }
353 catch (com.liferay.portal.SystemException se) {
354 _log.error(se, se);
355
356 throw se;
357 }
358 }
359
360 public static com.liferay.portal.model.Company updateCompany(
361 HttpPrincipal httpPrincipal, long companyId,
362 java.lang.String virtualHost, java.lang.String mx)
363 throws com.liferay.portal.PortalException,
364 com.liferay.portal.SystemException {
365 try {
366 Object paramObj0 = new LongWrapper(companyId);
367
368 Object paramObj1 = virtualHost;
369
370 if (virtualHost == null) {
371 paramObj1 = new NullWrapper("java.lang.String");
372 }
373
374 Object paramObj2 = mx;
375
376 if (mx == null) {
377 paramObj2 = new NullWrapper("java.lang.String");
378 }
379
380 MethodWrapper methodWrapper = new MethodWrapper(CompanyServiceUtil.class.getName(),
381 "updateCompany",
382 new Object[] { paramObj0, paramObj1, paramObj2 });
383
384 Object returnObj = null;
385
386 try {
387 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
388 }
389 catch (Exception e) {
390 if (e instanceof com.liferay.portal.PortalException) {
391 throw (com.liferay.portal.PortalException)e;
392 }
393
394 if (e instanceof com.liferay.portal.SystemException) {
395 throw (com.liferay.portal.SystemException)e;
396 }
397
398 throw new com.liferay.portal.SystemException(e);
399 }
400
401 return (com.liferay.portal.model.Company)returnObj;
402 }
403 catch (com.liferay.portal.SystemException se) {
404 _log.error(se, se);
405
406 throw se;
407 }
408 }
409
410 public static com.liferay.portal.model.Company updateCompany(
411 HttpPrincipal httpPrincipal, long companyId,
412 java.lang.String virtualHost, java.lang.String mx,
413 java.lang.String homeURL, java.lang.String name,
414 java.lang.String legalName, java.lang.String legalId,
415 java.lang.String legalType, java.lang.String sicCode,
416 java.lang.String tickerSymbol, java.lang.String industry,
417 java.lang.String type, java.lang.String size)
418 throws com.liferay.portal.PortalException,
419 com.liferay.portal.SystemException {
420 try {
421 Object paramObj0 = new LongWrapper(companyId);
422
423 Object paramObj1 = virtualHost;
424
425 if (virtualHost == null) {
426 paramObj1 = new NullWrapper("java.lang.String");
427 }
428
429 Object paramObj2 = mx;
430
431 if (mx == null) {
432 paramObj2 = new NullWrapper("java.lang.String");
433 }
434
435 Object paramObj3 = homeURL;
436
437 if (homeURL == null) {
438 paramObj3 = new NullWrapper("java.lang.String");
439 }
440
441 Object paramObj4 = name;
442
443 if (name == null) {
444 paramObj4 = new NullWrapper("java.lang.String");
445 }
446
447 Object paramObj5 = legalName;
448
449 if (legalName == null) {
450 paramObj5 = new NullWrapper("java.lang.String");
451 }
452
453 Object paramObj6 = legalId;
454
455 if (legalId == null) {
456 paramObj6 = new NullWrapper("java.lang.String");
457 }
458
459 Object paramObj7 = legalType;
460
461 if (legalType == null) {
462 paramObj7 = new NullWrapper("java.lang.String");
463 }
464
465 Object paramObj8 = sicCode;
466
467 if (sicCode == null) {
468 paramObj8 = new NullWrapper("java.lang.String");
469 }
470
471 Object paramObj9 = tickerSymbol;
472
473 if (tickerSymbol == null) {
474 paramObj9 = new NullWrapper("java.lang.String");
475 }
476
477 Object paramObj10 = industry;
478
479 if (industry == null) {
480 paramObj10 = new NullWrapper("java.lang.String");
481 }
482
483 Object paramObj11 = type;
484
485 if (type == null) {
486 paramObj11 = new NullWrapper("java.lang.String");
487 }
488
489 Object paramObj12 = size;
490
491 if (size == null) {
492 paramObj12 = new NullWrapper("java.lang.String");
493 }
494
495 MethodWrapper methodWrapper = new MethodWrapper(CompanyServiceUtil.class.getName(),
496 "updateCompany",
497 new Object[] {
498 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
499 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
500 paramObj10, paramObj11, paramObj12
501 });
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.PortalException) {
510 throw (com.liferay.portal.PortalException)e;
511 }
512
513 if (e instanceof com.liferay.portal.SystemException) {
514 throw (com.liferay.portal.SystemException)e;
515 }
516
517 throw new com.liferay.portal.SystemException(e);
518 }
519
520 return (com.liferay.portal.model.Company)returnObj;
521 }
522 catch (com.liferay.portal.SystemException se) {
523 _log.error(se, se);
524
525 throw se;
526 }
527 }
528
529 public static com.liferay.portal.model.Company updateCompany(
530 HttpPrincipal httpPrincipal, long companyId,
531 java.lang.String virtualHost, java.lang.String mx,
532 java.lang.String homeURL, java.lang.String name,
533 java.lang.String legalName, java.lang.String legalId,
534 java.lang.String legalType, java.lang.String sicCode,
535 java.lang.String tickerSymbol, java.lang.String industry,
536 java.lang.String type, java.lang.String size,
537 java.lang.String languageId, java.lang.String timeZoneId,
538 java.util.List<com.liferay.portal.model.Address> addresses,
539 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
540 java.util.List<com.liferay.portal.model.Phone> phones,
541 java.util.List<com.liferay.portal.model.Website> websites,
542 com.liferay.portal.kernel.util.UnicodeProperties properties)
543 throws com.liferay.portal.PortalException,
544 com.liferay.portal.SystemException {
545 try {
546 Object paramObj0 = new LongWrapper(companyId);
547
548 Object paramObj1 = virtualHost;
549
550 if (virtualHost == null) {
551 paramObj1 = new NullWrapper("java.lang.String");
552 }
553
554 Object paramObj2 = mx;
555
556 if (mx == null) {
557 paramObj2 = new NullWrapper("java.lang.String");
558 }
559
560 Object paramObj3 = homeURL;
561
562 if (homeURL == null) {
563 paramObj3 = new NullWrapper("java.lang.String");
564 }
565
566 Object paramObj4 = name;
567
568 if (name == null) {
569 paramObj4 = new NullWrapper("java.lang.String");
570 }
571
572 Object paramObj5 = legalName;
573
574 if (legalName == null) {
575 paramObj5 = new NullWrapper("java.lang.String");
576 }
577
578 Object paramObj6 = legalId;
579
580 if (legalId == null) {
581 paramObj6 = new NullWrapper("java.lang.String");
582 }
583
584 Object paramObj7 = legalType;
585
586 if (legalType == null) {
587 paramObj7 = new NullWrapper("java.lang.String");
588 }
589
590 Object paramObj8 = sicCode;
591
592 if (sicCode == null) {
593 paramObj8 = new NullWrapper("java.lang.String");
594 }
595
596 Object paramObj9 = tickerSymbol;
597
598 if (tickerSymbol == null) {
599 paramObj9 = new NullWrapper("java.lang.String");
600 }
601
602 Object paramObj10 = industry;
603
604 if (industry == null) {
605 paramObj10 = new NullWrapper("java.lang.String");
606 }
607
608 Object paramObj11 = type;
609
610 if (type == null) {
611 paramObj11 = new NullWrapper("java.lang.String");
612 }
613
614 Object paramObj12 = size;
615
616 if (size == null) {
617 paramObj12 = new NullWrapper("java.lang.String");
618 }
619
620 Object paramObj13 = languageId;
621
622 if (languageId == null) {
623 paramObj13 = new NullWrapper("java.lang.String");
624 }
625
626 Object paramObj14 = timeZoneId;
627
628 if (timeZoneId == null) {
629 paramObj14 = new NullWrapper("java.lang.String");
630 }
631
632 Object paramObj15 = addresses;
633
634 if (addresses == null) {
635 paramObj15 = new NullWrapper("java.util.List");
636 }
637
638 Object paramObj16 = emailAddresses;
639
640 if (emailAddresses == null) {
641 paramObj16 = new NullWrapper("java.util.List");
642 }
643
644 Object paramObj17 = phones;
645
646 if (phones == null) {
647 paramObj17 = new NullWrapper("java.util.List");
648 }
649
650 Object paramObj18 = websites;
651
652 if (websites == null) {
653 paramObj18 = new NullWrapper("java.util.List");
654 }
655
656 Object paramObj19 = properties;
657
658 if (properties == null) {
659 paramObj19 = new NullWrapper(
660 "com.liferay.portal.kernel.util.UnicodeProperties");
661 }
662
663 MethodWrapper methodWrapper = new MethodWrapper(CompanyServiceUtil.class.getName(),
664 "updateCompany",
665 new Object[] {
666 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
667 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
668 paramObj10, paramObj11, paramObj12, paramObj13,
669 paramObj14, paramObj15, paramObj16, paramObj17,
670 paramObj18, paramObj19
671 });
672
673 Object returnObj = null;
674
675 try {
676 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
677 }
678 catch (Exception e) {
679 if (e instanceof com.liferay.portal.PortalException) {
680 throw (com.liferay.portal.PortalException)e;
681 }
682
683 if (e instanceof com.liferay.portal.SystemException) {
684 throw (com.liferay.portal.SystemException)e;
685 }
686
687 throw new com.liferay.portal.SystemException(e);
688 }
689
690 return (com.liferay.portal.model.Company)returnObj;
691 }
692 catch (com.liferay.portal.SystemException se) {
693 _log.error(se, se);
694
695 throw se;
696 }
697 }
698
699 public static void updateDisplay(HttpPrincipal httpPrincipal,
700 long companyId, java.lang.String languageId, java.lang.String timeZoneId)
701 throws com.liferay.portal.PortalException,
702 com.liferay.portal.SystemException {
703 try {
704 Object paramObj0 = new LongWrapper(companyId);
705
706 Object paramObj1 = languageId;
707
708 if (languageId == null) {
709 paramObj1 = new NullWrapper("java.lang.String");
710 }
711
712 Object paramObj2 = timeZoneId;
713
714 if (timeZoneId == null) {
715 paramObj2 = new NullWrapper("java.lang.String");
716 }
717
718 MethodWrapper methodWrapper = new MethodWrapper(CompanyServiceUtil.class.getName(),
719 "updateDisplay",
720 new Object[] { paramObj0, paramObj1, paramObj2 });
721
722 try {
723 TunnelUtil.invoke(httpPrincipal, methodWrapper);
724 }
725 catch (Exception e) {
726 if (e instanceof com.liferay.portal.PortalException) {
727 throw (com.liferay.portal.PortalException)e;
728 }
729
730 if (e instanceof com.liferay.portal.SystemException) {
731 throw (com.liferay.portal.SystemException)e;
732 }
733
734 throw new com.liferay.portal.SystemException(e);
735 }
736 }
737 catch (com.liferay.portal.SystemException se) {
738 _log.error(se, se);
739
740 throw se;
741 }
742 }
743
744 public static void updateLogo(HttpPrincipal httpPrincipal, long companyId,
745 java.io.File file)
746 throws com.liferay.portal.PortalException,
747 com.liferay.portal.SystemException {
748 try {
749 Object paramObj0 = new LongWrapper(companyId);
750
751 Object paramObj1 = file;
752
753 if (file == null) {
754 paramObj1 = new NullWrapper("java.io.File");
755 }
756
757 MethodWrapper methodWrapper = new MethodWrapper(CompanyServiceUtil.class.getName(),
758 "updateLogo", new Object[] { paramObj0, paramObj1 });
759
760 try {
761 TunnelUtil.invoke(httpPrincipal, methodWrapper);
762 }
763 catch (Exception e) {
764 if (e instanceof com.liferay.portal.PortalException) {
765 throw (com.liferay.portal.PortalException)e;
766 }
767
768 if (e instanceof com.liferay.portal.SystemException) {
769 throw (com.liferay.portal.SystemException)e;
770 }
771
772 throw new com.liferay.portal.SystemException(e);
773 }
774 }
775 catch (com.liferay.portal.SystemException se) {
776 _log.error(se, se);
777
778 throw se;
779 }
780 }
781
782 public static void updatePreferences(HttpPrincipal httpPrincipal,
783 long companyId,
784 com.liferay.portal.kernel.util.UnicodeProperties properties)
785 throws com.liferay.portal.PortalException,
786 com.liferay.portal.SystemException {
787 try {
788 Object paramObj0 = new LongWrapper(companyId);
789
790 Object paramObj1 = properties;
791
792 if (properties == null) {
793 paramObj1 = new NullWrapper(
794 "com.liferay.portal.kernel.util.UnicodeProperties");
795 }
796
797 MethodWrapper methodWrapper = new MethodWrapper(CompanyServiceUtil.class.getName(),
798 "updatePreferences", new Object[] { paramObj0, paramObj1 });
799
800 try {
801 TunnelUtil.invoke(httpPrincipal, methodWrapper);
802 }
803 catch (Exception e) {
804 if (e instanceof com.liferay.portal.PortalException) {
805 throw (com.liferay.portal.PortalException)e;
806 }
807
808 if (e instanceof com.liferay.portal.SystemException) {
809 throw (com.liferay.portal.SystemException)e;
810 }
811
812 throw new com.liferay.portal.SystemException(e);
813 }
814 }
815 catch (com.liferay.portal.SystemException se) {
816 _log.error(se, se);
817
818 throw se;
819 }
820 }
821
822 public static void updateSecurity(HttpPrincipal httpPrincipal,
823 long companyId, java.lang.String authType, boolean autoLogin,
824 boolean sendPassword, boolean strangers, boolean strangersWithMx,
825 boolean strangersVerify, boolean communityLogo)
826 throws com.liferay.portal.PortalException,
827 com.liferay.portal.SystemException {
828 try {
829 Object paramObj0 = new LongWrapper(companyId);
830
831 Object paramObj1 = authType;
832
833 if (authType == null) {
834 paramObj1 = new NullWrapper("java.lang.String");
835 }
836
837 Object paramObj2 = new BooleanWrapper(autoLogin);
838
839 Object paramObj3 = new BooleanWrapper(sendPassword);
840
841 Object paramObj4 = new BooleanWrapper(strangers);
842
843 Object paramObj5 = new BooleanWrapper(strangersWithMx);
844
845 Object paramObj6 = new BooleanWrapper(strangersVerify);
846
847 Object paramObj7 = new BooleanWrapper(communityLogo);
848
849 MethodWrapper methodWrapper = new MethodWrapper(CompanyServiceUtil.class.getName(),
850 "updateSecurity",
851 new Object[] {
852 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
853 paramObj5, paramObj6, paramObj7
854 });
855
856 try {
857 TunnelUtil.invoke(httpPrincipal, methodWrapper);
858 }
859 catch (Exception e) {
860 if (e instanceof com.liferay.portal.PortalException) {
861 throw (com.liferay.portal.PortalException)e;
862 }
863
864 if (e instanceof com.liferay.portal.SystemException) {
865 throw (com.liferay.portal.SystemException)e;
866 }
867
868 throw new com.liferay.portal.SystemException(e);
869 }
870 }
871 catch (com.liferay.portal.SystemException se) {
872 _log.error(se, se);
873
874 throw se;
875 }
876 }
877
878 private static Log _log = LogFactoryUtil.getLog(CompanyServiceHttp.class);
879 }