001
014
015 package com.liferay.portal.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.OrganizationServiceUtil;
025
026
054 @ProviderType
055 public class OrganizationServiceHttp {
056 public static void addGroupOrganizations(HttpPrincipal httpPrincipal,
057 long groupId, long[] organizationIds)
058 throws com.liferay.portal.kernel.exception.PortalException {
059 try {
060 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
061 "addGroupOrganizations",
062 _addGroupOrganizationsParameterTypes0);
063
064 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
065 organizationIds);
066
067 try {
068 TunnelUtil.invoke(httpPrincipal, methodHandler);
069 }
070 catch (Exception e) {
071 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
072 throw (com.liferay.portal.kernel.exception.PortalException)e;
073 }
074
075 throw new com.liferay.portal.kernel.exception.SystemException(e);
076 }
077 }
078 catch (com.liferay.portal.kernel.exception.SystemException se) {
079 _log.error(se, se);
080
081 throw se;
082 }
083 }
084
085 public static com.liferay.portal.model.Organization addOrganization(
086 HttpPrincipal httpPrincipal, long parentOrganizationId,
087 java.lang.String name, java.lang.String type, boolean recursable,
088 long regionId, long countryId, long statusId,
089 java.lang.String comments, boolean site,
090 java.util.List<com.liferay.portal.model.Address> addresses,
091 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
092 java.util.List<com.liferay.portal.model.OrgLabor> orgLabors,
093 java.util.List<com.liferay.portal.model.Phone> phones,
094 java.util.List<com.liferay.portal.model.Website> websites,
095 com.liferay.portal.service.ServiceContext serviceContext)
096 throws com.liferay.portal.kernel.exception.PortalException {
097 try {
098 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
099 "addOrganization", _addOrganizationParameterTypes1);
100
101 MethodHandler methodHandler = new MethodHandler(methodKey,
102 parentOrganizationId, name, type, recursable, regionId,
103 countryId, statusId, comments, site, addresses,
104 emailAddresses, orgLabors, phones, websites, serviceContext);
105
106 Object returnObj = null;
107
108 try {
109 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
110 }
111 catch (Exception e) {
112 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
113 throw (com.liferay.portal.kernel.exception.PortalException)e;
114 }
115
116 throw new com.liferay.portal.kernel.exception.SystemException(e);
117 }
118
119 return (com.liferay.portal.model.Organization)returnObj;
120 }
121 catch (com.liferay.portal.kernel.exception.SystemException se) {
122 _log.error(se, se);
123
124 throw se;
125 }
126 }
127
128 public static com.liferay.portal.model.Organization addOrganization(
129 HttpPrincipal httpPrincipal, long parentOrganizationId,
130 java.lang.String name, java.lang.String type, boolean recursable,
131 long regionId, long countryId, long statusId,
132 java.lang.String comments, boolean site,
133 com.liferay.portal.service.ServiceContext serviceContext)
134 throws com.liferay.portal.kernel.exception.PortalException {
135 try {
136 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
137 "addOrganization", _addOrganizationParameterTypes2);
138
139 MethodHandler methodHandler = new MethodHandler(methodKey,
140 parentOrganizationId, name, type, recursable, regionId,
141 countryId, statusId, comments, site, serviceContext);
142
143 Object returnObj = null;
144
145 try {
146 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
147 }
148 catch (Exception e) {
149 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
150 throw (com.liferay.portal.kernel.exception.PortalException)e;
151 }
152
153 throw new com.liferay.portal.kernel.exception.SystemException(e);
154 }
155
156 return (com.liferay.portal.model.Organization)returnObj;
157 }
158 catch (com.liferay.portal.kernel.exception.SystemException se) {
159 _log.error(se, se);
160
161 throw se;
162 }
163 }
164
165 public static com.liferay.portal.model.Organization addOrganization(
166 HttpPrincipal httpPrincipal, long parentOrganizationId,
167 java.lang.String name, java.lang.String type, long regionId,
168 long countryId, long statusId, java.lang.String comments, boolean site,
169 java.util.List<com.liferay.portal.model.Address> addresses,
170 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
171 java.util.List<com.liferay.portal.model.OrgLabor> orgLabors,
172 java.util.List<com.liferay.portal.model.Phone> phones,
173 java.util.List<com.liferay.portal.model.Website> websites,
174 com.liferay.portal.service.ServiceContext serviceContext)
175 throws com.liferay.portal.kernel.exception.PortalException {
176 try {
177 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
178 "addOrganization", _addOrganizationParameterTypes3);
179
180 MethodHandler methodHandler = new MethodHandler(methodKey,
181 parentOrganizationId, name, type, regionId, countryId,
182 statusId, comments, site, addresses, emailAddresses,
183 orgLabors, phones, websites, serviceContext);
184
185 Object returnObj = null;
186
187 try {
188 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
189 }
190 catch (Exception e) {
191 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
192 throw (com.liferay.portal.kernel.exception.PortalException)e;
193 }
194
195 throw new com.liferay.portal.kernel.exception.SystemException(e);
196 }
197
198 return (com.liferay.portal.model.Organization)returnObj;
199 }
200 catch (com.liferay.portal.kernel.exception.SystemException se) {
201 _log.error(se, se);
202
203 throw se;
204 }
205 }
206
207 public static com.liferay.portal.model.Organization addOrganization(
208 HttpPrincipal httpPrincipal, long parentOrganizationId,
209 java.lang.String name, java.lang.String type, long regionId,
210 long countryId, long statusId, java.lang.String comments, boolean site,
211 com.liferay.portal.service.ServiceContext serviceContext)
212 throws com.liferay.portal.kernel.exception.PortalException {
213 try {
214 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
215 "addOrganization", _addOrganizationParameterTypes4);
216
217 MethodHandler methodHandler = new MethodHandler(methodKey,
218 parentOrganizationId, name, type, regionId, countryId,
219 statusId, comments, site, serviceContext);
220
221 Object returnObj = null;
222
223 try {
224 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
225 }
226 catch (Exception e) {
227 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
228 throw (com.liferay.portal.kernel.exception.PortalException)e;
229 }
230
231 throw new com.liferay.portal.kernel.exception.SystemException(e);
232 }
233
234 return (com.liferay.portal.model.Organization)returnObj;
235 }
236 catch (com.liferay.portal.kernel.exception.SystemException se) {
237 _log.error(se, se);
238
239 throw se;
240 }
241 }
242
243 public static void addPasswordPolicyOrganizations(
244 HttpPrincipal httpPrincipal, long passwordPolicyId,
245 long[] organizationIds)
246 throws com.liferay.portal.kernel.exception.PortalException {
247 try {
248 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
249 "addPasswordPolicyOrganizations",
250 _addPasswordPolicyOrganizationsParameterTypes5);
251
252 MethodHandler methodHandler = new MethodHandler(methodKey,
253 passwordPolicyId, organizationIds);
254
255 try {
256 TunnelUtil.invoke(httpPrincipal, methodHandler);
257 }
258 catch (Exception e) {
259 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
260 throw (com.liferay.portal.kernel.exception.PortalException)e;
261 }
262
263 throw new com.liferay.portal.kernel.exception.SystemException(e);
264 }
265 }
266 catch (com.liferay.portal.kernel.exception.SystemException se) {
267 _log.error(se, se);
268
269 throw se;
270 }
271 }
272
273 public static void deleteLogo(HttpPrincipal httpPrincipal,
274 long organizationId)
275 throws com.liferay.portal.kernel.exception.PortalException {
276 try {
277 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
278 "deleteLogo", _deleteLogoParameterTypes6);
279
280 MethodHandler methodHandler = new MethodHandler(methodKey,
281 organizationId);
282
283 try {
284 TunnelUtil.invoke(httpPrincipal, methodHandler);
285 }
286 catch (Exception e) {
287 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
288 throw (com.liferay.portal.kernel.exception.PortalException)e;
289 }
290
291 throw new com.liferay.portal.kernel.exception.SystemException(e);
292 }
293 }
294 catch (com.liferay.portal.kernel.exception.SystemException se) {
295 _log.error(se, se);
296
297 throw se;
298 }
299 }
300
301 public static void deleteOrganization(HttpPrincipal httpPrincipal,
302 long organizationId)
303 throws com.liferay.portal.kernel.exception.PortalException {
304 try {
305 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
306 "deleteOrganization", _deleteOrganizationParameterTypes7);
307
308 MethodHandler methodHandler = new MethodHandler(methodKey,
309 organizationId);
310
311 try {
312 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 catch (com.liferay.portal.kernel.exception.SystemException se) {
323 _log.error(se, se);
324
325 throw se;
326 }
327 }
328
329 public static com.liferay.portal.model.Organization fetchOrganization(
330 HttpPrincipal httpPrincipal, long organizationId)
331 throws com.liferay.portal.kernel.exception.PortalException {
332 try {
333 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
334 "fetchOrganization", _fetchOrganizationParameterTypes8);
335
336 MethodHandler methodHandler = new MethodHandler(methodKey,
337 organizationId);
338
339 Object returnObj = null;
340
341 try {
342 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
343 }
344 catch (Exception e) {
345 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
346 throw (com.liferay.portal.kernel.exception.PortalException)e;
347 }
348
349 throw new com.liferay.portal.kernel.exception.SystemException(e);
350 }
351
352 return (com.liferay.portal.model.Organization)returnObj;
353 }
354 catch (com.liferay.portal.kernel.exception.SystemException se) {
355 _log.error(se, se);
356
357 throw se;
358 }
359 }
360
361 public static java.util.List<com.liferay.portal.model.Organization> getManageableOrganizations(
362 HttpPrincipal httpPrincipal, java.lang.String actionId, int max)
363 throws com.liferay.portal.kernel.exception.PortalException {
364 try {
365 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
366 "getManageableOrganizations",
367 _getManageableOrganizationsParameterTypes9);
368
369 MethodHandler methodHandler = new MethodHandler(methodKey,
370 actionId, max);
371
372 Object returnObj = null;
373
374 try {
375 returnObj = 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 return (java.util.List<com.liferay.portal.model.Organization>)returnObj;
386 }
387 catch (com.liferay.portal.kernel.exception.SystemException se) {
388 _log.error(se, se);
389
390 throw se;
391 }
392 }
393
394 public static com.liferay.portal.model.Organization getOrganization(
395 HttpPrincipal httpPrincipal, long organizationId)
396 throws com.liferay.portal.kernel.exception.PortalException {
397 try {
398 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
399 "getOrganization", _getOrganizationParameterTypes10);
400
401 MethodHandler methodHandler = new MethodHandler(methodKey,
402 organizationId);
403
404 Object returnObj = null;
405
406 try {
407 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
408 }
409 catch (Exception e) {
410 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
411 throw (com.liferay.portal.kernel.exception.PortalException)e;
412 }
413
414 throw new com.liferay.portal.kernel.exception.SystemException(e);
415 }
416
417 return (com.liferay.portal.model.Organization)returnObj;
418 }
419 catch (com.liferay.portal.kernel.exception.SystemException se) {
420 _log.error(se, se);
421
422 throw se;
423 }
424 }
425
426 public static long getOrganizationId(HttpPrincipal httpPrincipal,
427 long companyId, java.lang.String name)
428 throws com.liferay.portal.kernel.exception.PortalException {
429 try {
430 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
431 "getOrganizationId", _getOrganizationIdParameterTypes11);
432
433 MethodHandler methodHandler = new MethodHandler(methodKey,
434 companyId, name);
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 ((Long)returnObj).longValue();
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 java.util.List<com.liferay.portal.model.Organization> getOrganizations(
459 HttpPrincipal httpPrincipal, long companyId, long parentOrganizationId) {
460 try {
461 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
462 "getOrganizations", _getOrganizationsParameterTypes12);
463
464 MethodHandler methodHandler = new MethodHandler(methodKey,
465 companyId, parentOrganizationId);
466
467 Object returnObj = null;
468
469 try {
470 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
471 }
472 catch (Exception e) {
473 throw new com.liferay.portal.kernel.exception.SystemException(e);
474 }
475
476 return (java.util.List<com.liferay.portal.model.Organization>)returnObj;
477 }
478 catch (com.liferay.portal.kernel.exception.SystemException se) {
479 _log.error(se, se);
480
481 throw se;
482 }
483 }
484
485 public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
486 HttpPrincipal httpPrincipal, long companyId, long parentOrganizationId,
487 int start, int end) {
488 try {
489 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
490 "getOrganizations", _getOrganizationsParameterTypes13);
491
492 MethodHandler methodHandler = new MethodHandler(methodKey,
493 companyId, parentOrganizationId, start, end);
494
495 Object returnObj = null;
496
497 try {
498 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
499 }
500 catch (Exception e) {
501 throw new com.liferay.portal.kernel.exception.SystemException(e);
502 }
503
504 return (java.util.List<com.liferay.portal.model.Organization>)returnObj;
505 }
506 catch (com.liferay.portal.kernel.exception.SystemException se) {
507 _log.error(se, se);
508
509 throw se;
510 }
511 }
512
513 public static int getOrganizationsCount(HttpPrincipal httpPrincipal,
514 long companyId, long parentOrganizationId) {
515 try {
516 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
517 "getOrganizationsCount",
518 _getOrganizationsCountParameterTypes14);
519
520 MethodHandler methodHandler = new MethodHandler(methodKey,
521 companyId, parentOrganizationId);
522
523 Object returnObj = null;
524
525 try {
526 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
527 }
528 catch (Exception e) {
529 throw new com.liferay.portal.kernel.exception.SystemException(e);
530 }
531
532 return ((Integer)returnObj).intValue();
533 }
534 catch (com.liferay.portal.kernel.exception.SystemException se) {
535 _log.error(se, se);
536
537 throw se;
538 }
539 }
540
541 public static java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
542 HttpPrincipal httpPrincipal, long userId)
543 throws com.liferay.portal.kernel.exception.PortalException {
544 try {
545 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
546 "getUserOrganizations",
547 _getUserOrganizationsParameterTypes15);
548
549 MethodHandler methodHandler = new MethodHandler(methodKey, userId);
550
551 Object returnObj = null;
552
553 try {
554 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
555 }
556 catch (Exception e) {
557 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
558 throw (com.liferay.portal.kernel.exception.PortalException)e;
559 }
560
561 throw new com.liferay.portal.kernel.exception.SystemException(e);
562 }
563
564 return (java.util.List<com.liferay.portal.model.Organization>)returnObj;
565 }
566 catch (com.liferay.portal.kernel.exception.SystemException se) {
567 _log.error(se, se);
568
569 throw se;
570 }
571 }
572
573 public static void setGroupOrganizations(HttpPrincipal httpPrincipal,
574 long groupId, long[] organizationIds)
575 throws com.liferay.portal.kernel.exception.PortalException {
576 try {
577 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
578 "setGroupOrganizations",
579 _setGroupOrganizationsParameterTypes16);
580
581 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
582 organizationIds);
583
584 try {
585 TunnelUtil.invoke(httpPrincipal, methodHandler);
586 }
587 catch (Exception e) {
588 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
589 throw (com.liferay.portal.kernel.exception.PortalException)e;
590 }
591
592 throw new com.liferay.portal.kernel.exception.SystemException(e);
593 }
594 }
595 catch (com.liferay.portal.kernel.exception.SystemException se) {
596 _log.error(se, se);
597
598 throw se;
599 }
600 }
601
602 public static void unsetGroupOrganizations(HttpPrincipal httpPrincipal,
603 long groupId, long[] organizationIds)
604 throws com.liferay.portal.kernel.exception.PortalException {
605 try {
606 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
607 "unsetGroupOrganizations",
608 _unsetGroupOrganizationsParameterTypes17);
609
610 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
611 organizationIds);
612
613 try {
614 TunnelUtil.invoke(httpPrincipal, methodHandler);
615 }
616 catch (Exception e) {
617 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
618 throw (com.liferay.portal.kernel.exception.PortalException)e;
619 }
620
621 throw new com.liferay.portal.kernel.exception.SystemException(e);
622 }
623 }
624 catch (com.liferay.portal.kernel.exception.SystemException se) {
625 _log.error(se, se);
626
627 throw se;
628 }
629 }
630
631 public static void unsetPasswordPolicyOrganizations(
632 HttpPrincipal httpPrincipal, long passwordPolicyId,
633 long[] organizationIds)
634 throws com.liferay.portal.kernel.exception.PortalException {
635 try {
636 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
637 "unsetPasswordPolicyOrganizations",
638 _unsetPasswordPolicyOrganizationsParameterTypes18);
639
640 MethodHandler methodHandler = new MethodHandler(methodKey,
641 passwordPolicyId, organizationIds);
642
643 try {
644 TunnelUtil.invoke(httpPrincipal, methodHandler);
645 }
646 catch (Exception e) {
647 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
648 throw (com.liferay.portal.kernel.exception.PortalException)e;
649 }
650
651 throw new com.liferay.portal.kernel.exception.SystemException(e);
652 }
653 }
654 catch (com.liferay.portal.kernel.exception.SystemException se) {
655 _log.error(se, se);
656
657 throw se;
658 }
659 }
660
661 public static com.liferay.portal.model.Organization updateOrganization(
662 HttpPrincipal httpPrincipal, long organizationId,
663 long parentOrganizationId, java.lang.String name,
664 java.lang.String type, boolean recursable, long regionId,
665 long countryId, long statusId, java.lang.String comments, boolean site,
666 java.util.List<com.liferay.portal.model.Address> addresses,
667 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
668 java.util.List<com.liferay.portal.model.OrgLabor> orgLabors,
669 java.util.List<com.liferay.portal.model.Phone> phones,
670 java.util.List<com.liferay.portal.model.Website> websites,
671 com.liferay.portal.service.ServiceContext serviceContext)
672 throws com.liferay.portal.kernel.exception.PortalException {
673 try {
674 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
675 "updateOrganization", _updateOrganizationParameterTypes19);
676
677 MethodHandler methodHandler = new MethodHandler(methodKey,
678 organizationId, parentOrganizationId, name, type,
679 recursable, regionId, countryId, statusId, comments, site,
680 addresses, emailAddresses, orgLabors, phones, websites,
681 serviceContext);
682
683 Object returnObj = null;
684
685 try {
686 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
687 }
688 catch (Exception e) {
689 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
690 throw (com.liferay.portal.kernel.exception.PortalException)e;
691 }
692
693 throw new com.liferay.portal.kernel.exception.SystemException(e);
694 }
695
696 return (com.liferay.portal.model.Organization)returnObj;
697 }
698 catch (com.liferay.portal.kernel.exception.SystemException se) {
699 _log.error(se, se);
700
701 throw se;
702 }
703 }
704
705 public static com.liferay.portal.model.Organization updateOrganization(
706 HttpPrincipal httpPrincipal, long organizationId,
707 long parentOrganizationId, java.lang.String name,
708 java.lang.String type, boolean recursable, long regionId,
709 long countryId, long statusId, java.lang.String comments, boolean site,
710 com.liferay.portal.service.ServiceContext serviceContext)
711 throws com.liferay.portal.kernel.exception.PortalException {
712 try {
713 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
714 "updateOrganization", _updateOrganizationParameterTypes20);
715
716 MethodHandler methodHandler = new MethodHandler(methodKey,
717 organizationId, parentOrganizationId, name, type,
718 recursable, regionId, countryId, statusId, comments, site,
719 serviceContext);
720
721 Object returnObj = null;
722
723 try {
724 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
725 }
726 catch (Exception e) {
727 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
728 throw (com.liferay.portal.kernel.exception.PortalException)e;
729 }
730
731 throw new com.liferay.portal.kernel.exception.SystemException(e);
732 }
733
734 return (com.liferay.portal.model.Organization)returnObj;
735 }
736 catch (com.liferay.portal.kernel.exception.SystemException se) {
737 _log.error(se, se);
738
739 throw se;
740 }
741 }
742
743 public static com.liferay.portal.model.Organization updateOrganization(
744 HttpPrincipal httpPrincipal, long organizationId,
745 long parentOrganizationId, java.lang.String name,
746 java.lang.String type, long regionId, long countryId, long statusId,
747 java.lang.String comments, boolean logo, byte[] logoBytes,
748 boolean site,
749 java.util.List<com.liferay.portal.model.Address> addresses,
750 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
751 java.util.List<com.liferay.portal.model.OrgLabor> orgLabors,
752 java.util.List<com.liferay.portal.model.Phone> phones,
753 java.util.List<com.liferay.portal.model.Website> websites,
754 com.liferay.portal.service.ServiceContext serviceContext)
755 throws com.liferay.portal.kernel.exception.PortalException {
756 try {
757 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
758 "updateOrganization", _updateOrganizationParameterTypes21);
759
760 MethodHandler methodHandler = new MethodHandler(methodKey,
761 organizationId, parentOrganizationId, name, type, regionId,
762 countryId, statusId, comments, logo, logoBytes, site,
763 addresses, emailAddresses, orgLabors, phones, websites,
764 serviceContext);
765
766 Object returnObj = null;
767
768 try {
769 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
770 }
771 catch (Exception e) {
772 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
773 throw (com.liferay.portal.kernel.exception.PortalException)e;
774 }
775
776 throw new com.liferay.portal.kernel.exception.SystemException(e);
777 }
778
779 return (com.liferay.portal.model.Organization)returnObj;
780 }
781 catch (com.liferay.portal.kernel.exception.SystemException se) {
782 _log.error(se, se);
783
784 throw se;
785 }
786 }
787
788 public static com.liferay.portal.model.Organization updateOrganization(
789 HttpPrincipal httpPrincipal, long organizationId,
790 long parentOrganizationId, java.lang.String name,
791 java.lang.String type, long regionId, long countryId, long statusId,
792 java.lang.String comments, boolean site,
793 java.util.List<com.liferay.portal.model.Address> addresses,
794 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
795 java.util.List<com.liferay.portal.model.OrgLabor> orgLabors,
796 java.util.List<com.liferay.portal.model.Phone> phones,
797 java.util.List<com.liferay.portal.model.Website> websites,
798 com.liferay.portal.service.ServiceContext serviceContext)
799 throws com.liferay.portal.kernel.exception.PortalException {
800 try {
801 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
802 "updateOrganization", _updateOrganizationParameterTypes22);
803
804 MethodHandler methodHandler = new MethodHandler(methodKey,
805 organizationId, parentOrganizationId, name, type, regionId,
806 countryId, statusId, comments, site, addresses,
807 emailAddresses, orgLabors, phones, websites, serviceContext);
808
809 Object returnObj = null;
810
811 try {
812 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
813 }
814 catch (Exception e) {
815 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
816 throw (com.liferay.portal.kernel.exception.PortalException)e;
817 }
818
819 throw new com.liferay.portal.kernel.exception.SystemException(e);
820 }
821
822 return (com.liferay.portal.model.Organization)returnObj;
823 }
824 catch (com.liferay.portal.kernel.exception.SystemException se) {
825 _log.error(se, se);
826
827 throw se;
828 }
829 }
830
831 public static com.liferay.portal.model.Organization updateOrganization(
832 HttpPrincipal httpPrincipal, long organizationId,
833 long parentOrganizationId, java.lang.String name,
834 java.lang.String type, long regionId, long countryId, long statusId,
835 java.lang.String comments, boolean site,
836 com.liferay.portal.service.ServiceContext serviceContext)
837 throws com.liferay.portal.kernel.exception.PortalException {
838 try {
839 MethodKey methodKey = new MethodKey(OrganizationServiceUtil.class,
840 "updateOrganization", _updateOrganizationParameterTypes23);
841
842 MethodHandler methodHandler = new MethodHandler(methodKey,
843 organizationId, parentOrganizationId, name, type, regionId,
844 countryId, statusId, comments, site, serviceContext);
845
846 Object returnObj = null;
847
848 try {
849 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
850 }
851 catch (Exception e) {
852 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
853 throw (com.liferay.portal.kernel.exception.PortalException)e;
854 }
855
856 throw new com.liferay.portal.kernel.exception.SystemException(e);
857 }
858
859 return (com.liferay.portal.model.Organization)returnObj;
860 }
861 catch (com.liferay.portal.kernel.exception.SystemException se) {
862 _log.error(se, se);
863
864 throw se;
865 }
866 }
867
868 private static Log _log = LogFactoryUtil.getLog(OrganizationServiceHttp.class);
869 private static final Class<?>[] _addGroupOrganizationsParameterTypes0 = new Class[] {
870 long.class, long[].class
871 };
872 private static final Class<?>[] _addOrganizationParameterTypes1 = new Class[] {
873 long.class, java.lang.String.class, java.lang.String.class,
874 boolean.class, long.class, long.class, long.class,
875 java.lang.String.class, boolean.class, java.util.List.class,
876 java.util.List.class, java.util.List.class, java.util.List.class,
877 java.util.List.class,
878 com.liferay.portal.service.ServiceContext.class
879 };
880 private static final Class<?>[] _addOrganizationParameterTypes2 = new Class[] {
881 long.class, java.lang.String.class, java.lang.String.class,
882 boolean.class, long.class, long.class, long.class,
883 java.lang.String.class, boolean.class,
884 com.liferay.portal.service.ServiceContext.class
885 };
886 private static final Class<?>[] _addOrganizationParameterTypes3 = new Class[] {
887 long.class, java.lang.String.class, java.lang.String.class,
888 long.class, long.class, long.class, java.lang.String.class,
889 boolean.class, java.util.List.class, java.util.List.class,
890 java.util.List.class, java.util.List.class, java.util.List.class,
891 com.liferay.portal.service.ServiceContext.class
892 };
893 private static final Class<?>[] _addOrganizationParameterTypes4 = new Class[] {
894 long.class, java.lang.String.class, java.lang.String.class,
895 long.class, long.class, long.class, java.lang.String.class,
896 boolean.class, com.liferay.portal.service.ServiceContext.class
897 };
898 private static final Class<?>[] _addPasswordPolicyOrganizationsParameterTypes5 =
899 new Class[] { long.class, long[].class };
900 private static final Class<?>[] _deleteLogoParameterTypes6 = new Class[] {
901 long.class
902 };
903 private static final Class<?>[] _deleteOrganizationParameterTypes7 = new Class[] {
904 long.class
905 };
906 private static final Class<?>[] _fetchOrganizationParameterTypes8 = new Class[] {
907 long.class
908 };
909 private static final Class<?>[] _getManageableOrganizationsParameterTypes9 = new Class[] {
910 java.lang.String.class, int.class
911 };
912 private static final Class<?>[] _getOrganizationParameterTypes10 = new Class[] {
913 long.class
914 };
915 private static final Class<?>[] _getOrganizationIdParameterTypes11 = new Class[] {
916 long.class, java.lang.String.class
917 };
918 private static final Class<?>[] _getOrganizationsParameterTypes12 = new Class[] {
919 long.class, long.class
920 };
921 private static final Class<?>[] _getOrganizationsParameterTypes13 = new Class[] {
922 long.class, long.class, int.class, int.class
923 };
924 private static final Class<?>[] _getOrganizationsCountParameterTypes14 = new Class[] {
925 long.class, long.class
926 };
927 private static final Class<?>[] _getUserOrganizationsParameterTypes15 = new Class[] {
928 long.class
929 };
930 private static final Class<?>[] _setGroupOrganizationsParameterTypes16 = new Class[] {
931 long.class, long[].class
932 };
933 private static final Class<?>[] _unsetGroupOrganizationsParameterTypes17 = new Class[] {
934 long.class, long[].class
935 };
936 private static final Class<?>[] _unsetPasswordPolicyOrganizationsParameterTypes18 =
937 new Class[] { long.class, long[].class };
938 private static final Class<?>[] _updateOrganizationParameterTypes19 = new Class[] {
939 long.class, long.class, java.lang.String.class,
940 java.lang.String.class, boolean.class, long.class, long.class,
941 long.class, java.lang.String.class, boolean.class,
942 java.util.List.class, java.util.List.class, java.util.List.class,
943 java.util.List.class, java.util.List.class,
944 com.liferay.portal.service.ServiceContext.class
945 };
946 private static final Class<?>[] _updateOrganizationParameterTypes20 = new Class[] {
947 long.class, long.class, java.lang.String.class,
948 java.lang.String.class, boolean.class, long.class, long.class,
949 long.class, java.lang.String.class, boolean.class,
950 com.liferay.portal.service.ServiceContext.class
951 };
952 private static final Class<?>[] _updateOrganizationParameterTypes21 = new Class[] {
953 long.class, long.class, java.lang.String.class,
954 java.lang.String.class, long.class, long.class, long.class,
955 java.lang.String.class, boolean.class, byte[].class, boolean.class,
956 java.util.List.class, java.util.List.class, java.util.List.class,
957 java.util.List.class, java.util.List.class,
958 com.liferay.portal.service.ServiceContext.class
959 };
960 private static final Class<?>[] _updateOrganizationParameterTypes22 = new Class[] {
961 long.class, long.class, java.lang.String.class,
962 java.lang.String.class, long.class, long.class, long.class,
963 java.lang.String.class, boolean.class, java.util.List.class,
964 java.util.List.class, java.util.List.class, java.util.List.class,
965 java.util.List.class,
966 com.liferay.portal.service.ServiceContext.class
967 };
968 private static final Class<?>[] _updateOrganizationParameterTypes23 = new Class[] {
969 long.class, long.class, java.lang.String.class,
970 java.lang.String.class, long.class, long.class, long.class,
971 java.lang.String.class, boolean.class,
972 com.liferay.portal.service.ServiceContext.class
973 };
974 }