1
19
20 package com.liferay.portal.service.http;
21
22 import com.liferay.portal.kernel.log.Log;
23 import com.liferay.portal.kernel.log.LogFactoryUtil;
24 import com.liferay.portal.kernel.util.BooleanWrapper;
25 import com.liferay.portal.kernel.util.IntegerWrapper;
26 import com.liferay.portal.kernel.util.LongWrapper;
27 import com.liferay.portal.kernel.util.MethodWrapper;
28 import com.liferay.portal.kernel.util.NullWrapper;
29 import com.liferay.portal.security.auth.HttpPrincipal;
30 import com.liferay.portal.service.GroupServiceUtil;
31
32
71 public class GroupServiceHttp {
72 public static com.liferay.portal.model.Group addGroup(
73 HttpPrincipal httpPrincipal, java.lang.String name,
74 java.lang.String description, int type, java.lang.String friendlyURL,
75 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
76 throws com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException {
78 try {
79 Object paramObj0 = name;
80
81 if (name == null) {
82 paramObj0 = new NullWrapper("java.lang.String");
83 }
84
85 Object paramObj1 = description;
86
87 if (description == null) {
88 paramObj1 = new NullWrapper("java.lang.String");
89 }
90
91 Object paramObj2 = new IntegerWrapper(type);
92
93 Object paramObj3 = friendlyURL;
94
95 if (friendlyURL == null) {
96 paramObj3 = new NullWrapper("java.lang.String");
97 }
98
99 Object paramObj4 = new BooleanWrapper(active);
100
101 Object paramObj5 = serviceContext;
102
103 if (serviceContext == null) {
104 paramObj5 = new NullWrapper(
105 "com.liferay.portal.service.ServiceContext");
106 }
107
108 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
109 "addGroup",
110 new Object[] {
111 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
112 paramObj5
113 });
114
115 Object returnObj = null;
116
117 try {
118 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
119 }
120 catch (Exception e) {
121 if (e instanceof com.liferay.portal.PortalException) {
122 throw (com.liferay.portal.PortalException)e;
123 }
124
125 if (e instanceof com.liferay.portal.SystemException) {
126 throw (com.liferay.portal.SystemException)e;
127 }
128
129 throw new com.liferay.portal.SystemException(e);
130 }
131
132 return (com.liferay.portal.model.Group)returnObj;
133 }
134 catch (com.liferay.portal.SystemException se) {
135 _log.error(se, se);
136
137 throw se;
138 }
139 }
140
141 public static com.liferay.portal.model.Group addGroup(
142 HttpPrincipal httpPrincipal, long liveGroupId, java.lang.String name,
143 java.lang.String description, int type, java.lang.String friendlyURL,
144 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
145 throws com.liferay.portal.PortalException,
146 com.liferay.portal.SystemException {
147 try {
148 Object paramObj0 = new LongWrapper(liveGroupId);
149
150 Object paramObj1 = name;
151
152 if (name == null) {
153 paramObj1 = new NullWrapper("java.lang.String");
154 }
155
156 Object paramObj2 = description;
157
158 if (description == null) {
159 paramObj2 = new NullWrapper("java.lang.String");
160 }
161
162 Object paramObj3 = new IntegerWrapper(type);
163
164 Object paramObj4 = friendlyURL;
165
166 if (friendlyURL == null) {
167 paramObj4 = new NullWrapper("java.lang.String");
168 }
169
170 Object paramObj5 = new BooleanWrapper(active);
171
172 Object paramObj6 = serviceContext;
173
174 if (serviceContext == null) {
175 paramObj6 = new NullWrapper(
176 "com.liferay.portal.service.ServiceContext");
177 }
178
179 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
180 "addGroup",
181 new Object[] {
182 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
183 paramObj5, paramObj6
184 });
185
186 Object returnObj = null;
187
188 try {
189 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
190 }
191 catch (Exception e) {
192 if (e instanceof com.liferay.portal.PortalException) {
193 throw (com.liferay.portal.PortalException)e;
194 }
195
196 if (e instanceof com.liferay.portal.SystemException) {
197 throw (com.liferay.portal.SystemException)e;
198 }
199
200 throw new com.liferay.portal.SystemException(e);
201 }
202
203 return (com.liferay.portal.model.Group)returnObj;
204 }
205 catch (com.liferay.portal.SystemException se) {
206 _log.error(se, se);
207
208 throw se;
209 }
210 }
211
212 public static void addRoleGroups(HttpPrincipal httpPrincipal, long roleId,
213 long[] groupIds)
214 throws com.liferay.portal.PortalException,
215 com.liferay.portal.SystemException {
216 try {
217 Object paramObj0 = new LongWrapper(roleId);
218
219 Object paramObj1 = groupIds;
220
221 if (groupIds == null) {
222 paramObj1 = new NullWrapper("[J");
223 }
224
225 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
226 "addRoleGroups", new Object[] { paramObj0, paramObj1 });
227
228 try {
229 TunnelUtil.invoke(httpPrincipal, methodWrapper);
230 }
231 catch (Exception e) {
232 if (e instanceof com.liferay.portal.PortalException) {
233 throw (com.liferay.portal.PortalException)e;
234 }
235
236 if (e instanceof com.liferay.portal.SystemException) {
237 throw (com.liferay.portal.SystemException)e;
238 }
239
240 throw new com.liferay.portal.SystemException(e);
241 }
242 }
243 catch (com.liferay.portal.SystemException se) {
244 _log.error(se, se);
245
246 throw se;
247 }
248 }
249
250 public static void deleteGroup(HttpPrincipal httpPrincipal, long groupId)
251 throws com.liferay.portal.PortalException,
252 com.liferay.portal.SystemException {
253 try {
254 Object paramObj0 = new LongWrapper(groupId);
255
256 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
257 "deleteGroup", new Object[] { paramObj0 });
258
259 try {
260 TunnelUtil.invoke(httpPrincipal, methodWrapper);
261 }
262 catch (Exception e) {
263 if (e instanceof com.liferay.portal.PortalException) {
264 throw (com.liferay.portal.PortalException)e;
265 }
266
267 if (e instanceof com.liferay.portal.SystemException) {
268 throw (com.liferay.portal.SystemException)e;
269 }
270
271 throw new com.liferay.portal.SystemException(e);
272 }
273 }
274 catch (com.liferay.portal.SystemException se) {
275 _log.error(se, se);
276
277 throw se;
278 }
279 }
280
281 public static com.liferay.portal.model.Group getGroup(
282 HttpPrincipal httpPrincipal, long groupId)
283 throws com.liferay.portal.PortalException,
284 com.liferay.portal.SystemException {
285 try {
286 Object paramObj0 = new LongWrapper(groupId);
287
288 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
289 "getGroup", new Object[] { paramObj0 });
290
291 Object returnObj = null;
292
293 try {
294 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
295 }
296 catch (Exception e) {
297 if (e instanceof com.liferay.portal.PortalException) {
298 throw (com.liferay.portal.PortalException)e;
299 }
300
301 if (e instanceof com.liferay.portal.SystemException) {
302 throw (com.liferay.portal.SystemException)e;
303 }
304
305 throw new com.liferay.portal.SystemException(e);
306 }
307
308 return (com.liferay.portal.model.Group)returnObj;
309 }
310 catch (com.liferay.portal.SystemException se) {
311 _log.error(se, se);
312
313 throw se;
314 }
315 }
316
317 public static com.liferay.portal.model.Group getGroup(
318 HttpPrincipal httpPrincipal, long companyId, java.lang.String name)
319 throws com.liferay.portal.PortalException,
320 com.liferay.portal.SystemException {
321 try {
322 Object paramObj0 = new LongWrapper(companyId);
323
324 Object paramObj1 = name;
325
326 if (name == null) {
327 paramObj1 = new NullWrapper("java.lang.String");
328 }
329
330 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
331 "getGroup", new Object[] { paramObj0, paramObj1 });
332
333 Object returnObj = null;
334
335 try {
336 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
337 }
338 catch (Exception e) {
339 if (e instanceof com.liferay.portal.PortalException) {
340 throw (com.liferay.portal.PortalException)e;
341 }
342
343 if (e instanceof com.liferay.portal.SystemException) {
344 throw (com.liferay.portal.SystemException)e;
345 }
346
347 throw new com.liferay.portal.SystemException(e);
348 }
349
350 return (com.liferay.portal.model.Group)returnObj;
351 }
352 catch (com.liferay.portal.SystemException se) {
353 _log.error(se, se);
354
355 throw se;
356 }
357 }
358
359 public static java.util.List<com.liferay.portal.model.Group> getManageableGroups(
360 HttpPrincipal httpPrincipal, java.lang.String actionId, int max)
361 throws com.liferay.portal.PortalException,
362 com.liferay.portal.SystemException {
363 try {
364 Object paramObj0 = actionId;
365
366 if (actionId == null) {
367 paramObj0 = new NullWrapper("java.lang.String");
368 }
369
370 Object paramObj1 = new IntegerWrapper(max);
371
372 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
373 "getManageableGroups", new Object[] { paramObj0, paramObj1 });
374
375 Object returnObj = null;
376
377 try {
378 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
379 }
380 catch (Exception e) {
381 if (e instanceof com.liferay.portal.PortalException) {
382 throw (com.liferay.portal.PortalException)e;
383 }
384
385 if (e instanceof com.liferay.portal.SystemException) {
386 throw (com.liferay.portal.SystemException)e;
387 }
388
389 throw new com.liferay.portal.SystemException(e);
390 }
391
392 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
393 }
394 catch (com.liferay.portal.SystemException se) {
395 _log.error(se, se);
396
397 throw se;
398 }
399 }
400
401 public static java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
402 HttpPrincipal httpPrincipal,
403 java.util.List<com.liferay.portal.model.Organization> organizations)
404 throws com.liferay.portal.SystemException {
405 try {
406 Object paramObj0 = organizations;
407
408 if (organizations == null) {
409 paramObj0 = new NullWrapper("java.util.List");
410 }
411
412 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
413 "getOrganizationsGroups", new Object[] { paramObj0 });
414
415 Object returnObj = null;
416
417 try {
418 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
419 }
420 catch (Exception e) {
421 throw new com.liferay.portal.SystemException(e);
422 }
423
424 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
425 }
426 catch (com.liferay.portal.SystemException se) {
427 _log.error(se, se);
428
429 throw se;
430 }
431 }
432
433 public static com.liferay.portal.model.Group getUserGroup(
434 HttpPrincipal httpPrincipal, long companyId, long userId)
435 throws com.liferay.portal.PortalException,
436 com.liferay.portal.SystemException {
437 try {
438 Object paramObj0 = new LongWrapper(companyId);
439
440 Object paramObj1 = new LongWrapper(userId);
441
442 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
443 "getUserGroup", new Object[] { paramObj0, paramObj1 });
444
445 Object returnObj = null;
446
447 try {
448 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
449 }
450 catch (Exception e) {
451 if (e instanceof com.liferay.portal.PortalException) {
452 throw (com.liferay.portal.PortalException)e;
453 }
454
455 if (e instanceof com.liferay.portal.SystemException) {
456 throw (com.liferay.portal.SystemException)e;
457 }
458
459 throw new com.liferay.portal.SystemException(e);
460 }
461
462 return (com.liferay.portal.model.Group)returnObj;
463 }
464 catch (com.liferay.portal.SystemException se) {
465 _log.error(se, se);
466
467 throw se;
468 }
469 }
470
471 public static java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
472 HttpPrincipal httpPrincipal,
473 java.util.List<com.liferay.portal.model.UserGroup> userGroups)
474 throws com.liferay.portal.SystemException {
475 try {
476 Object paramObj0 = userGroups;
477
478 if (userGroups == null) {
479 paramObj0 = new NullWrapper("java.util.List");
480 }
481
482 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
483 "getUserGroupsGroups", new Object[] { paramObj0 });
484
485 Object returnObj = null;
486
487 try {
488 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
489 }
490 catch (Exception e) {
491 throw new com.liferay.portal.SystemException(e);
492 }
493
494 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
495 }
496 catch (com.liferay.portal.SystemException se) {
497 _log.error(se, se);
498
499 throw se;
500 }
501 }
502
503 public static java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
504 HttpPrincipal httpPrincipal, long userId, int start, int end)
505 throws com.liferay.portal.PortalException,
506 com.liferay.portal.SystemException {
507 try {
508 Object paramObj0 = new LongWrapper(userId);
509
510 Object paramObj1 = new IntegerWrapper(start);
511
512 Object paramObj2 = new IntegerWrapper(end);
513
514 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
515 "getUserOrganizationsGroups",
516 new Object[] { paramObj0, paramObj1, paramObj2 });
517
518 Object returnObj = null;
519
520 try {
521 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
522 }
523 catch (Exception e) {
524 if (e instanceof com.liferay.portal.PortalException) {
525 throw (com.liferay.portal.PortalException)e;
526 }
527
528 if (e instanceof com.liferay.portal.SystemException) {
529 throw (com.liferay.portal.SystemException)e;
530 }
531
532 throw new com.liferay.portal.SystemException(e);
533 }
534
535 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
536 }
537 catch (com.liferay.portal.SystemException se) {
538 _log.error(se, se);
539
540 throw se;
541 }
542 }
543
544 public static boolean hasUserGroup(HttpPrincipal httpPrincipal,
545 long userId, long groupId) throws com.liferay.portal.SystemException {
546 try {
547 Object paramObj0 = new LongWrapper(userId);
548
549 Object paramObj1 = new LongWrapper(groupId);
550
551 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
552 "hasUserGroup", new Object[] { paramObj0, paramObj1 });
553
554 Object returnObj = null;
555
556 try {
557 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
558 }
559 catch (Exception e) {
560 if (e instanceof com.liferay.portal.SystemException) {
561 throw (com.liferay.portal.SystemException)e;
562 }
563
564 throw new com.liferay.portal.SystemException(e);
565 }
566
567 return ((Boolean)returnObj).booleanValue();
568 }
569 catch (com.liferay.portal.SystemException se) {
570 _log.error(se, se);
571
572 throw se;
573 }
574 }
575
576 public static java.util.List<com.liferay.portal.model.Group> search(
577 HttpPrincipal httpPrincipal, long companyId, java.lang.String name,
578 java.lang.String description, java.lang.String[] params, int start,
579 int end) throws com.liferay.portal.SystemException {
580 try {
581 Object paramObj0 = new LongWrapper(companyId);
582
583 Object paramObj1 = name;
584
585 if (name == null) {
586 paramObj1 = new NullWrapper("java.lang.String");
587 }
588
589 Object paramObj2 = description;
590
591 if (description == null) {
592 paramObj2 = new NullWrapper("java.lang.String");
593 }
594
595 Object paramObj3 = params;
596
597 if (params == null) {
598 paramObj3 = new NullWrapper("[Ljava.lang.String;");
599 }
600
601 Object paramObj4 = new IntegerWrapper(start);
602
603 Object paramObj5 = new IntegerWrapper(end);
604
605 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
606 "search",
607 new Object[] {
608 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
609 paramObj5
610 });
611
612 Object returnObj = null;
613
614 try {
615 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
616 }
617 catch (Exception e) {
618 if (e instanceof com.liferay.portal.SystemException) {
619 throw (com.liferay.portal.SystemException)e;
620 }
621
622 throw new com.liferay.portal.SystemException(e);
623 }
624
625 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
626 }
627 catch (com.liferay.portal.SystemException se) {
628 _log.error(se, se);
629
630 throw se;
631 }
632 }
633
634 public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
635 java.lang.String name, java.lang.String description,
636 java.lang.String[] params) throws com.liferay.portal.SystemException {
637 try {
638 Object paramObj0 = new LongWrapper(companyId);
639
640 Object paramObj1 = name;
641
642 if (name == null) {
643 paramObj1 = new NullWrapper("java.lang.String");
644 }
645
646 Object paramObj2 = description;
647
648 if (description == null) {
649 paramObj2 = new NullWrapper("java.lang.String");
650 }
651
652 Object paramObj3 = params;
653
654 if (params == null) {
655 paramObj3 = new NullWrapper("[Ljava.lang.String;");
656 }
657
658 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
659 "searchCount",
660 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
661
662 Object returnObj = null;
663
664 try {
665 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
666 }
667 catch (Exception e) {
668 if (e instanceof com.liferay.portal.SystemException) {
669 throw (com.liferay.portal.SystemException)e;
670 }
671
672 throw new com.liferay.portal.SystemException(e);
673 }
674
675 return ((Integer)returnObj).intValue();
676 }
677 catch (com.liferay.portal.SystemException se) {
678 _log.error(se, se);
679
680 throw se;
681 }
682 }
683
684 public static void setRoleGroups(HttpPrincipal httpPrincipal, long roleId,
685 long[] groupIds)
686 throws com.liferay.portal.PortalException,
687 com.liferay.portal.SystemException {
688 try {
689 Object paramObj0 = new LongWrapper(roleId);
690
691 Object paramObj1 = groupIds;
692
693 if (groupIds == null) {
694 paramObj1 = new NullWrapper("[J");
695 }
696
697 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
698 "setRoleGroups", new Object[] { paramObj0, paramObj1 });
699
700 try {
701 TunnelUtil.invoke(httpPrincipal, methodWrapper);
702 }
703 catch (Exception e) {
704 if (e instanceof com.liferay.portal.PortalException) {
705 throw (com.liferay.portal.PortalException)e;
706 }
707
708 if (e instanceof com.liferay.portal.SystemException) {
709 throw (com.liferay.portal.SystemException)e;
710 }
711
712 throw new com.liferay.portal.SystemException(e);
713 }
714 }
715 catch (com.liferay.portal.SystemException se) {
716 _log.error(se, se);
717
718 throw se;
719 }
720 }
721
722 public static void unsetRoleGroups(HttpPrincipal httpPrincipal,
723 long roleId, long[] groupIds)
724 throws com.liferay.portal.PortalException,
725 com.liferay.portal.SystemException {
726 try {
727 Object paramObj0 = new LongWrapper(roleId);
728
729 Object paramObj1 = groupIds;
730
731 if (groupIds == null) {
732 paramObj1 = new NullWrapper("[J");
733 }
734
735 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
736 "unsetRoleGroups", new Object[] { paramObj0, paramObj1 });
737
738 try {
739 TunnelUtil.invoke(httpPrincipal, methodWrapper);
740 }
741 catch (Exception e) {
742 if (e instanceof com.liferay.portal.PortalException) {
743 throw (com.liferay.portal.PortalException)e;
744 }
745
746 if (e instanceof com.liferay.portal.SystemException) {
747 throw (com.liferay.portal.SystemException)e;
748 }
749
750 throw new com.liferay.portal.SystemException(e);
751 }
752 }
753 catch (com.liferay.portal.SystemException se) {
754 _log.error(se, se);
755
756 throw se;
757 }
758 }
759
760 public static com.liferay.portal.model.Group updateFriendlyURL(
761 HttpPrincipal httpPrincipal, long groupId, java.lang.String friendlyURL)
762 throws com.liferay.portal.PortalException,
763 com.liferay.portal.SystemException {
764 try {
765 Object paramObj0 = new LongWrapper(groupId);
766
767 Object paramObj1 = friendlyURL;
768
769 if (friendlyURL == null) {
770 paramObj1 = new NullWrapper("java.lang.String");
771 }
772
773 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
774 "updateFriendlyURL", new Object[] { paramObj0, paramObj1 });
775
776 Object returnObj = null;
777
778 try {
779 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
780 }
781 catch (Exception e) {
782 if (e instanceof com.liferay.portal.PortalException) {
783 throw (com.liferay.portal.PortalException)e;
784 }
785
786 if (e instanceof com.liferay.portal.SystemException) {
787 throw (com.liferay.portal.SystemException)e;
788 }
789
790 throw new com.liferay.portal.SystemException(e);
791 }
792
793 return (com.liferay.portal.model.Group)returnObj;
794 }
795 catch (com.liferay.portal.SystemException se) {
796 _log.error(se, se);
797
798 throw se;
799 }
800 }
801
802 public static com.liferay.portal.model.Group updateGroup(
803 HttpPrincipal httpPrincipal, long groupId, java.lang.String name,
804 java.lang.String description, int type, java.lang.String friendlyURL,
805 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
806 throws com.liferay.portal.PortalException,
807 com.liferay.portal.SystemException {
808 try {
809 Object paramObj0 = new LongWrapper(groupId);
810
811 Object paramObj1 = name;
812
813 if (name == null) {
814 paramObj1 = new NullWrapper("java.lang.String");
815 }
816
817 Object paramObj2 = description;
818
819 if (description == null) {
820 paramObj2 = new NullWrapper("java.lang.String");
821 }
822
823 Object paramObj3 = new IntegerWrapper(type);
824
825 Object paramObj4 = friendlyURL;
826
827 if (friendlyURL == null) {
828 paramObj4 = new NullWrapper("java.lang.String");
829 }
830
831 Object paramObj5 = new BooleanWrapper(active);
832
833 Object paramObj6 = serviceContext;
834
835 if (serviceContext == null) {
836 paramObj6 = new NullWrapper(
837 "com.liferay.portal.service.ServiceContext");
838 }
839
840 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
841 "updateGroup",
842 new Object[] {
843 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
844 paramObj5, paramObj6
845 });
846
847 Object returnObj = null;
848
849 try {
850 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
851 }
852 catch (Exception e) {
853 if (e instanceof com.liferay.portal.PortalException) {
854 throw (com.liferay.portal.PortalException)e;
855 }
856
857 if (e instanceof com.liferay.portal.SystemException) {
858 throw (com.liferay.portal.SystemException)e;
859 }
860
861 throw new com.liferay.portal.SystemException(e);
862 }
863
864 return (com.liferay.portal.model.Group)returnObj;
865 }
866 catch (com.liferay.portal.SystemException se) {
867 _log.error(se, se);
868
869 throw se;
870 }
871 }
872
873 public static com.liferay.portal.model.Group updateGroup(
874 HttpPrincipal httpPrincipal, long groupId, java.lang.String typeSettings)
875 throws com.liferay.portal.PortalException,
876 com.liferay.portal.SystemException {
877 try {
878 Object paramObj0 = new LongWrapper(groupId);
879
880 Object paramObj1 = typeSettings;
881
882 if (typeSettings == null) {
883 paramObj1 = new NullWrapper("java.lang.String");
884 }
885
886 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
887 "updateGroup", new Object[] { paramObj0, paramObj1 });
888
889 Object returnObj = null;
890
891 try {
892 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
893 }
894 catch (Exception e) {
895 if (e instanceof com.liferay.portal.PortalException) {
896 throw (com.liferay.portal.PortalException)e;
897 }
898
899 if (e instanceof com.liferay.portal.SystemException) {
900 throw (com.liferay.portal.SystemException)e;
901 }
902
903 throw new com.liferay.portal.SystemException(e);
904 }
905
906 return (com.liferay.portal.model.Group)returnObj;
907 }
908 catch (com.liferay.portal.SystemException se) {
909 _log.error(se, se);
910
911 throw se;
912 }
913 }
914
915 public static com.liferay.portal.model.Group updateWorkflow(
916 HttpPrincipal httpPrincipal, long groupId, boolean workflowEnabled,
917 int workflowStages, java.lang.String workflowRoleNames)
918 throws com.liferay.portal.PortalException,
919 com.liferay.portal.SystemException {
920 try {
921 Object paramObj0 = new LongWrapper(groupId);
922
923 Object paramObj1 = new BooleanWrapper(workflowEnabled);
924
925 Object paramObj2 = new IntegerWrapper(workflowStages);
926
927 Object paramObj3 = workflowRoleNames;
928
929 if (workflowRoleNames == null) {
930 paramObj3 = new NullWrapper("java.lang.String");
931 }
932
933 MethodWrapper methodWrapper = new MethodWrapper(GroupServiceUtil.class.getName(),
934 "updateWorkflow",
935 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
936
937 Object returnObj = null;
938
939 try {
940 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
941 }
942 catch (Exception e) {
943 if (e instanceof com.liferay.portal.PortalException) {
944 throw (com.liferay.portal.PortalException)e;
945 }
946
947 if (e instanceof com.liferay.portal.SystemException) {
948 throw (com.liferay.portal.SystemException)e;
949 }
950
951 throw new com.liferay.portal.SystemException(e);
952 }
953
954 return (com.liferay.portal.model.Group)returnObj;
955 }
956 catch (com.liferay.portal.SystemException se) {
957 _log.error(se, se);
958
959 throw se;
960 }
961 }
962
963 private static Log _log = LogFactoryUtil.getLog(GroupServiceHttp.class);
964 }