001
014
015 package com.liferay.portal.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019 import com.liferay.portal.kernel.util.MethodHandler;
020 import com.liferay.portal.kernel.util.MethodKey;
021 import com.liferay.portal.security.auth.HttpPrincipal;
022 import com.liferay.portal.service.GroupServiceUtil;
023
024
052 public class GroupServiceHttp {
053 public static com.liferay.portal.model.Group addGroup(
054 HttpPrincipal httpPrincipal, long parentGroupId, long liveGroupId,
055 java.lang.String name, java.lang.String description, int type,
056 boolean manualMembership, int membershipRestriction,
057 java.lang.String friendlyURL, boolean site, boolean active,
058 com.liferay.portal.service.ServiceContext serviceContext)
059 throws com.liferay.portal.kernel.exception.PortalException,
060 com.liferay.portal.kernel.exception.SystemException {
061 try {
062 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
063 "addGroup", _addGroupParameterTypes0);
064
065 MethodHandler methodHandler = new MethodHandler(methodKey,
066 parentGroupId, liveGroupId, name, description, type,
067 manualMembership, membershipRestriction, friendlyURL, site,
068 active, serviceContext);
069
070 Object returnObj = null;
071
072 try {
073 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
074 }
075 catch (Exception e) {
076 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
077 throw (com.liferay.portal.kernel.exception.PortalException)e;
078 }
079
080 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
081 throw (com.liferay.portal.kernel.exception.SystemException)e;
082 }
083
084 throw new com.liferay.portal.kernel.exception.SystemException(e);
085 }
086
087 return (com.liferay.portal.model.Group)returnObj;
088 }
089 catch (com.liferay.portal.kernel.exception.SystemException se) {
090 _log.error(se, se);
091
092 throw se;
093 }
094 }
095
096 public static com.liferay.portal.model.Group addGroup(
097 HttpPrincipal httpPrincipal, long parentGroupId, java.lang.String name,
098 java.lang.String description, int type, java.lang.String friendlyURL,
099 boolean site, boolean active,
100 com.liferay.portal.service.ServiceContext serviceContext)
101 throws com.liferay.portal.kernel.exception.PortalException,
102 com.liferay.portal.kernel.exception.SystemException {
103 try {
104 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
105 "addGroup", _addGroupParameterTypes1);
106
107 MethodHandler methodHandler = new MethodHandler(methodKey,
108 parentGroupId, name, description, type, friendlyURL, site,
109 active, serviceContext);
110
111 Object returnObj = null;
112
113 try {
114 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
115 }
116 catch (Exception e) {
117 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
118 throw (com.liferay.portal.kernel.exception.PortalException)e;
119 }
120
121 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
122 throw (com.liferay.portal.kernel.exception.SystemException)e;
123 }
124
125 throw new com.liferay.portal.kernel.exception.SystemException(e);
126 }
127
128 return (com.liferay.portal.model.Group)returnObj;
129 }
130 catch (com.liferay.portal.kernel.exception.SystemException se) {
131 _log.error(se, se);
132
133 throw se;
134 }
135 }
136
137 public static com.liferay.portal.model.Group addGroup(
138 HttpPrincipal httpPrincipal, java.lang.String name,
139 java.lang.String description, int type, java.lang.String friendlyURL,
140 boolean site, boolean active,
141 com.liferay.portal.service.ServiceContext serviceContext)
142 throws com.liferay.portal.kernel.exception.PortalException,
143 com.liferay.portal.kernel.exception.SystemException {
144 try {
145 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
146 "addGroup", _addGroupParameterTypes2);
147
148 MethodHandler methodHandler = new MethodHandler(methodKey, name,
149 description, type, friendlyURL, site, active, serviceContext);
150
151 Object returnObj = null;
152
153 try {
154 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
155 }
156 catch (Exception e) {
157 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
158 throw (com.liferay.portal.kernel.exception.PortalException)e;
159 }
160
161 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
162 throw (com.liferay.portal.kernel.exception.SystemException)e;
163 }
164
165 throw new com.liferay.portal.kernel.exception.SystemException(e);
166 }
167
168 return (com.liferay.portal.model.Group)returnObj;
169 }
170 catch (com.liferay.portal.kernel.exception.SystemException se) {
171 _log.error(se, se);
172
173 throw se;
174 }
175 }
176
177 public static void addRoleGroups(HttpPrincipal httpPrincipal, long roleId,
178 long[] groupIds)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException {
181 try {
182 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
183 "addRoleGroups", _addRoleGroupsParameterTypes3);
184
185 MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
186 groupIds);
187
188 try {
189 TunnelUtil.invoke(httpPrincipal, methodHandler);
190 }
191 catch (Exception e) {
192 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
193 throw (com.liferay.portal.kernel.exception.PortalException)e;
194 }
195
196 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
197 throw (com.liferay.portal.kernel.exception.SystemException)e;
198 }
199
200 throw new com.liferay.portal.kernel.exception.SystemException(e);
201 }
202 }
203 catch (com.liferay.portal.kernel.exception.SystemException se) {
204 _log.error(se, se);
205
206 throw se;
207 }
208 }
209
210 public static void checkRemoteStagingGroup(HttpPrincipal httpPrincipal,
211 long groupId)
212 throws com.liferay.portal.kernel.exception.PortalException,
213 com.liferay.portal.kernel.exception.SystemException {
214 try {
215 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
216 "checkRemoteStagingGroup",
217 _checkRemoteStagingGroupParameterTypes4);
218
219 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
220
221 try {
222 TunnelUtil.invoke(httpPrincipal, methodHandler);
223 }
224 catch (Exception e) {
225 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
226 throw (com.liferay.portal.kernel.exception.PortalException)e;
227 }
228
229 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
230 throw (com.liferay.portal.kernel.exception.SystemException)e;
231 }
232
233 throw new com.liferay.portal.kernel.exception.SystemException(e);
234 }
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 deleteGroup(HttpPrincipal httpPrincipal, long groupId)
244 throws com.liferay.portal.kernel.exception.PortalException,
245 com.liferay.portal.kernel.exception.SystemException {
246 try {
247 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
248 "deleteGroup", _deleteGroupParameterTypes5);
249
250 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
251
252 try {
253 TunnelUtil.invoke(httpPrincipal, methodHandler);
254 }
255 catch (Exception e) {
256 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
257 throw (com.liferay.portal.kernel.exception.PortalException)e;
258 }
259
260 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
261 throw (com.liferay.portal.kernel.exception.SystemException)e;
262 }
263
264 throw new com.liferay.portal.kernel.exception.SystemException(e);
265 }
266 }
267 catch (com.liferay.portal.kernel.exception.SystemException se) {
268 _log.error(se, se);
269
270 throw se;
271 }
272 }
273
274 public static void disableStaging(HttpPrincipal httpPrincipal, long groupId)
275 throws com.liferay.portal.kernel.exception.PortalException,
276 com.liferay.portal.kernel.exception.SystemException {
277 try {
278 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
279 "disableStaging", _disableStagingParameterTypes6);
280
281 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
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 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
292 throw (com.liferay.portal.kernel.exception.SystemException)e;
293 }
294
295 throw new com.liferay.portal.kernel.exception.SystemException(e);
296 }
297 }
298 catch (com.liferay.portal.kernel.exception.SystemException se) {
299 _log.error(se, se);
300
301 throw se;
302 }
303 }
304
305 public static void enableStaging(HttpPrincipal httpPrincipal, long groupId)
306 throws com.liferay.portal.kernel.exception.PortalException,
307 com.liferay.portal.kernel.exception.SystemException {
308 try {
309 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
310 "enableStaging", _enableStagingParameterTypes7);
311
312 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
313
314 try {
315 TunnelUtil.invoke(httpPrincipal, methodHandler);
316 }
317 catch (Exception e) {
318 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
319 throw (com.liferay.portal.kernel.exception.PortalException)e;
320 }
321
322 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
323 throw (com.liferay.portal.kernel.exception.SystemException)e;
324 }
325
326 throw new com.liferay.portal.kernel.exception.SystemException(e);
327 }
328 }
329 catch (com.liferay.portal.kernel.exception.SystemException se) {
330 _log.error(se, se);
331
332 throw se;
333 }
334 }
335
336 public static com.liferay.portal.model.Group getCompanyGroup(
337 HttpPrincipal httpPrincipal, long companyId)
338 throws com.liferay.portal.kernel.exception.PortalException,
339 com.liferay.portal.kernel.exception.SystemException {
340 try {
341 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
342 "getCompanyGroup", _getCompanyGroupParameterTypes8);
343
344 MethodHandler methodHandler = new MethodHandler(methodKey, companyId);
345
346 Object returnObj = null;
347
348 try {
349 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
350 }
351 catch (Exception e) {
352 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
353 throw (com.liferay.portal.kernel.exception.PortalException)e;
354 }
355
356 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
357 throw (com.liferay.portal.kernel.exception.SystemException)e;
358 }
359
360 throw new com.liferay.portal.kernel.exception.SystemException(e);
361 }
362
363 return (com.liferay.portal.model.Group)returnObj;
364 }
365 catch (com.liferay.portal.kernel.exception.SystemException se) {
366 _log.error(se, se);
367
368 throw se;
369 }
370 }
371
372 public static com.liferay.portal.model.Group getGroup(
373 HttpPrincipal httpPrincipal, long groupId)
374 throws com.liferay.portal.kernel.exception.PortalException,
375 com.liferay.portal.kernel.exception.SystemException {
376 try {
377 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
378 "getGroup", _getGroupParameterTypes9);
379
380 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
381
382 Object returnObj = null;
383
384 try {
385 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
386 }
387 catch (Exception e) {
388 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
389 throw (com.liferay.portal.kernel.exception.PortalException)e;
390 }
391
392 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
393 throw (com.liferay.portal.kernel.exception.SystemException)e;
394 }
395
396 throw new com.liferay.portal.kernel.exception.SystemException(e);
397 }
398
399 return (com.liferay.portal.model.Group)returnObj;
400 }
401 catch (com.liferay.portal.kernel.exception.SystemException se) {
402 _log.error(se, se);
403
404 throw se;
405 }
406 }
407
408 public static com.liferay.portal.model.Group getGroup(
409 HttpPrincipal httpPrincipal, long companyId, java.lang.String name)
410 throws com.liferay.portal.kernel.exception.PortalException,
411 com.liferay.portal.kernel.exception.SystemException {
412 try {
413 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
414 "getGroup", _getGroupParameterTypes10);
415
416 MethodHandler methodHandler = new MethodHandler(methodKey,
417 companyId, name);
418
419 Object returnObj = null;
420
421 try {
422 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
423 }
424 catch (Exception e) {
425 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
426 throw (com.liferay.portal.kernel.exception.PortalException)e;
427 }
428
429 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
430 throw (com.liferay.portal.kernel.exception.SystemException)e;
431 }
432
433 throw new com.liferay.portal.kernel.exception.SystemException(e);
434 }
435
436 return (com.liferay.portal.model.Group)returnObj;
437 }
438 catch (com.liferay.portal.kernel.exception.SystemException se) {
439 _log.error(se, se);
440
441 throw se;
442 }
443 }
444
445 public static java.util.List<com.liferay.portal.model.Group> getGroups(
446 HttpPrincipal httpPrincipal, long companyId, long parentGroupId,
447 boolean site)
448 throws com.liferay.portal.kernel.exception.PortalException,
449 com.liferay.portal.kernel.exception.SystemException {
450 try {
451 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
452 "getGroups", _getGroupsParameterTypes11);
453
454 MethodHandler methodHandler = new MethodHandler(methodKey,
455 companyId, parentGroupId, site);
456
457 Object returnObj = null;
458
459 try {
460 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
461 }
462 catch (Exception e) {
463 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
464 throw (com.liferay.portal.kernel.exception.PortalException)e;
465 }
466
467 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
468 throw (com.liferay.portal.kernel.exception.SystemException)e;
469 }
470
471 throw new com.liferay.portal.kernel.exception.SystemException(e);
472 }
473
474 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
475 }
476 catch (com.liferay.portal.kernel.exception.SystemException se) {
477 _log.error(se, se);
478
479 throw se;
480 }
481 }
482
483 public static java.util.List<com.liferay.portal.model.Group> getManageableSiteGroups(
484 HttpPrincipal httpPrincipal,
485 java.util.Collection<com.liferay.portal.model.Portlet> portlets, int max)
486 throws com.liferay.portal.kernel.exception.PortalException,
487 com.liferay.portal.kernel.exception.SystemException {
488 try {
489 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
490 "getManageableSiteGroups",
491 _getManageableSiteGroupsParameterTypes12);
492
493 MethodHandler methodHandler = new MethodHandler(methodKey,
494 portlets, max);
495
496 Object returnObj = null;
497
498 try {
499 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
500 }
501 catch (Exception e) {
502 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
503 throw (com.liferay.portal.kernel.exception.PortalException)e;
504 }
505
506 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
507 throw (com.liferay.portal.kernel.exception.SystemException)e;
508 }
509
510 throw new com.liferay.portal.kernel.exception.SystemException(e);
511 }
512
513 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
514 }
515 catch (com.liferay.portal.kernel.exception.SystemException se) {
516 _log.error(se, se);
517
518 throw se;
519 }
520 }
521
522 public static java.util.List<com.liferay.portal.model.Group> getManageableSites(
523 HttpPrincipal httpPrincipal,
524 java.util.Collection<com.liferay.portal.model.Portlet> portlets, int max)
525 throws com.liferay.portal.kernel.exception.PortalException,
526 com.liferay.portal.kernel.exception.SystemException {
527 try {
528 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
529 "getManageableSites", _getManageableSitesParameterTypes13);
530
531 MethodHandler methodHandler = new MethodHandler(methodKey,
532 portlets, max);
533
534 Object returnObj = null;
535
536 try {
537 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
538 }
539 catch (Exception e) {
540 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
541 throw (com.liferay.portal.kernel.exception.PortalException)e;
542 }
543
544 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
545 throw (com.liferay.portal.kernel.exception.SystemException)e;
546 }
547
548 throw new com.liferay.portal.kernel.exception.SystemException(e);
549 }
550
551 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
552 }
553 catch (com.liferay.portal.kernel.exception.SystemException se) {
554 _log.error(se, se);
555
556 throw se;
557 }
558 }
559
560 public static java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
561 HttpPrincipal httpPrincipal,
562 java.util.List<com.liferay.portal.model.Organization> organizations)
563 throws com.liferay.portal.kernel.exception.PortalException,
564 com.liferay.portal.kernel.exception.SystemException {
565 try {
566 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
567 "getOrganizationsGroups",
568 _getOrganizationsGroupsParameterTypes14);
569
570 MethodHandler methodHandler = new MethodHandler(methodKey,
571 organizations);
572
573 Object returnObj = null;
574
575 try {
576 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
577 }
578 catch (Exception e) {
579 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
580 throw (com.liferay.portal.kernel.exception.PortalException)e;
581 }
582
583 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
584 throw (com.liferay.portal.kernel.exception.SystemException)e;
585 }
586
587 throw new com.liferay.portal.kernel.exception.SystemException(e);
588 }
589
590 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
591 }
592 catch (com.liferay.portal.kernel.exception.SystemException se) {
593 _log.error(se, se);
594
595 throw se;
596 }
597 }
598
599 public static com.liferay.portal.model.Group getUserGroup(
600 HttpPrincipal httpPrincipal, long companyId, long userId)
601 throws com.liferay.portal.kernel.exception.PortalException,
602 com.liferay.portal.kernel.exception.SystemException {
603 try {
604 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
605 "getUserGroup", _getUserGroupParameterTypes15);
606
607 MethodHandler methodHandler = new MethodHandler(methodKey,
608 companyId, userId);
609
610 Object returnObj = null;
611
612 try {
613 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
614 }
615 catch (Exception e) {
616 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
617 throw (com.liferay.portal.kernel.exception.PortalException)e;
618 }
619
620 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
621 throw (com.liferay.portal.kernel.exception.SystemException)e;
622 }
623
624 throw new com.liferay.portal.kernel.exception.SystemException(e);
625 }
626
627 return (com.liferay.portal.model.Group)returnObj;
628 }
629 catch (com.liferay.portal.kernel.exception.SystemException se) {
630 _log.error(se, se);
631
632 throw se;
633 }
634 }
635
636 public static java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
637 HttpPrincipal httpPrincipal,
638 java.util.List<com.liferay.portal.model.UserGroup> userGroups)
639 throws com.liferay.portal.kernel.exception.PortalException,
640 com.liferay.portal.kernel.exception.SystemException {
641 try {
642 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
643 "getUserGroupsGroups", _getUserGroupsGroupsParameterTypes16);
644
645 MethodHandler methodHandler = new MethodHandler(methodKey,
646 userGroups);
647
648 Object returnObj = null;
649
650 try {
651 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
652 }
653 catch (Exception e) {
654 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
655 throw (com.liferay.portal.kernel.exception.PortalException)e;
656 }
657
658 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
659 throw (com.liferay.portal.kernel.exception.SystemException)e;
660 }
661
662 throw new com.liferay.portal.kernel.exception.SystemException(e);
663 }
664
665 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
666 }
667 catch (com.liferay.portal.kernel.exception.SystemException se) {
668 _log.error(se, se);
669
670 throw se;
671 }
672 }
673
674 public static java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
675 HttpPrincipal httpPrincipal, long userId, int start, int end)
676 throws com.liferay.portal.kernel.exception.PortalException,
677 com.liferay.portal.kernel.exception.SystemException {
678 try {
679 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
680 "getUserOrganizationsGroups",
681 _getUserOrganizationsGroupsParameterTypes17);
682
683 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
684 start, end);
685
686 Object returnObj = null;
687
688 try {
689 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
690 }
691 catch (Exception e) {
692 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
693 throw (com.liferay.portal.kernel.exception.PortalException)e;
694 }
695
696 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
697 throw (com.liferay.portal.kernel.exception.SystemException)e;
698 }
699
700 throw new com.liferay.portal.kernel.exception.SystemException(e);
701 }
702
703 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
704 }
705 catch (com.liferay.portal.kernel.exception.SystemException se) {
706 _log.error(se, se);
707
708 throw se;
709 }
710 }
711
712 public static java.util.List<com.liferay.portal.model.Group> getUserPlaces(
713 HttpPrincipal httpPrincipal, long userId,
714 java.lang.String[] classNames, boolean includeControlPanel, int max)
715 throws com.liferay.portal.kernel.exception.PortalException,
716 com.liferay.portal.kernel.exception.SystemException {
717 try {
718 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
719 "getUserPlaces", _getUserPlacesParameterTypes18);
720
721 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
722 classNames, includeControlPanel, max);
723
724 Object returnObj = null;
725
726 try {
727 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
728 }
729 catch (Exception e) {
730 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
731 throw (com.liferay.portal.kernel.exception.PortalException)e;
732 }
733
734 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
735 throw (com.liferay.portal.kernel.exception.SystemException)e;
736 }
737
738 throw new com.liferay.portal.kernel.exception.SystemException(e);
739 }
740
741 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
742 }
743 catch (com.liferay.portal.kernel.exception.SystemException se) {
744 _log.error(se, se);
745
746 throw se;
747 }
748 }
749
750 public static java.util.List<com.liferay.portal.model.Group> getUserPlaces(
751 HttpPrincipal httpPrincipal, long userId,
752 java.lang.String[] classNames, int max)
753 throws com.liferay.portal.kernel.exception.PortalException,
754 com.liferay.portal.kernel.exception.SystemException {
755 try {
756 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
757 "getUserPlaces", _getUserPlacesParameterTypes19);
758
759 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
760 classNames, max);
761
762 Object returnObj = null;
763
764 try {
765 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
766 }
767 catch (Exception e) {
768 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
769 throw (com.liferay.portal.kernel.exception.PortalException)e;
770 }
771
772 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
773 throw (com.liferay.portal.kernel.exception.SystemException)e;
774 }
775
776 throw new com.liferay.portal.kernel.exception.SystemException(e);
777 }
778
779 return (java.util.List<com.liferay.portal.model.Group>)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 java.util.List<com.liferay.portal.model.Group> getUserPlaces(
789 HttpPrincipal httpPrincipal, long userId,
790 java.lang.String[] classNames, java.lang.String name, boolean active,
791 boolean includeControlPanel, int start, int end)
792 throws com.liferay.portal.kernel.exception.PortalException,
793 com.liferay.portal.kernel.exception.SystemException {
794 try {
795 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
796 "getUserPlaces", _getUserPlacesParameterTypes20);
797
798 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
799 classNames, name, active, includeControlPanel, start, end);
800
801 Object returnObj = null;
802
803 try {
804 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
805 }
806 catch (Exception e) {
807 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
808 throw (com.liferay.portal.kernel.exception.PortalException)e;
809 }
810
811 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
812 throw (com.liferay.portal.kernel.exception.SystemException)e;
813 }
814
815 throw new com.liferay.portal.kernel.exception.SystemException(e);
816 }
817
818 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
819 }
820 catch (com.liferay.portal.kernel.exception.SystemException se) {
821 _log.error(se, se);
822
823 throw se;
824 }
825 }
826
827 public static java.util.List<com.liferay.portal.model.Group> getUserPlaces(
828 HttpPrincipal httpPrincipal, java.lang.String[] classNames, int max)
829 throws com.liferay.portal.kernel.exception.PortalException,
830 com.liferay.portal.kernel.exception.SystemException {
831 try {
832 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
833 "getUserPlaces", _getUserPlacesParameterTypes21);
834
835 MethodHandler methodHandler = new MethodHandler(methodKey,
836 classNames, max);
837
838 Object returnObj = null;
839
840 try {
841 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
842 }
843 catch (Exception e) {
844 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
845 throw (com.liferay.portal.kernel.exception.PortalException)e;
846 }
847
848 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
849 throw (com.liferay.portal.kernel.exception.SystemException)e;
850 }
851
852 throw new com.liferay.portal.kernel.exception.SystemException(e);
853 }
854
855 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
856 }
857 catch (com.liferay.portal.kernel.exception.SystemException se) {
858 _log.error(se, se);
859
860 throw se;
861 }
862 }
863
864 public static int getUserPlacesCount(HttpPrincipal httpPrincipal)
865 throws com.liferay.portal.kernel.exception.PortalException,
866 com.liferay.portal.kernel.exception.SystemException {
867 try {
868 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
869 "getUserPlacesCount", _getUserPlacesCountParameterTypes22);
870
871 MethodHandler methodHandler = new MethodHandler(methodKey);
872
873 Object returnObj = null;
874
875 try {
876 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
877 }
878 catch (Exception e) {
879 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
880 throw (com.liferay.portal.kernel.exception.PortalException)e;
881 }
882
883 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
884 throw (com.liferay.portal.kernel.exception.SystemException)e;
885 }
886
887 throw new com.liferay.portal.kernel.exception.SystemException(e);
888 }
889
890 return ((Integer)returnObj).intValue();
891 }
892 catch (com.liferay.portal.kernel.exception.SystemException se) {
893 _log.error(se, se);
894
895 throw se;
896 }
897 }
898
899 public static java.util.List<com.liferay.portal.model.Group> getUserSites(
900 HttpPrincipal httpPrincipal)
901 throws com.liferay.portal.kernel.exception.PortalException,
902 com.liferay.portal.kernel.exception.SystemException {
903 try {
904 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
905 "getUserSites", _getUserSitesParameterTypes23);
906
907 MethodHandler methodHandler = new MethodHandler(methodKey);
908
909 Object returnObj = null;
910
911 try {
912 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
913 }
914 catch (Exception e) {
915 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
916 throw (com.liferay.portal.kernel.exception.PortalException)e;
917 }
918
919 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
920 throw (com.liferay.portal.kernel.exception.SystemException)e;
921 }
922
923 throw new com.liferay.portal.kernel.exception.SystemException(e);
924 }
925
926 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
927 }
928 catch (com.liferay.portal.kernel.exception.SystemException se) {
929 _log.error(se, se);
930
931 throw se;
932 }
933 }
934
935 public static java.util.List<com.liferay.portal.model.Group> getUserSitesGroups(
936 HttpPrincipal httpPrincipal)
937 throws com.liferay.portal.kernel.exception.PortalException,
938 com.liferay.portal.kernel.exception.SystemException {
939 try {
940 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
941 "getUserSitesGroups", _getUserSitesGroupsParameterTypes24);
942
943 MethodHandler methodHandler = new MethodHandler(methodKey);
944
945 Object returnObj = null;
946
947 try {
948 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
949 }
950 catch (Exception e) {
951 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
952 throw (com.liferay.portal.kernel.exception.PortalException)e;
953 }
954
955 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
956 throw (com.liferay.portal.kernel.exception.SystemException)e;
957 }
958
959 throw new com.liferay.portal.kernel.exception.SystemException(e);
960 }
961
962 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
963 }
964 catch (com.liferay.portal.kernel.exception.SystemException se) {
965 _log.error(se, se);
966
967 throw se;
968 }
969 }
970
971 public static java.util.List<com.liferay.portal.model.Group> getUserSitesGroups(
972 HttpPrincipal httpPrincipal, long userId,
973 java.lang.String[] classNames, boolean includeControlPanel, int max)
974 throws com.liferay.portal.kernel.exception.PortalException,
975 com.liferay.portal.kernel.exception.SystemException {
976 try {
977 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
978 "getUserSitesGroups", _getUserSitesGroupsParameterTypes25);
979
980 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
981 classNames, includeControlPanel, max);
982
983 Object returnObj = null;
984
985 try {
986 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
987 }
988 catch (Exception e) {
989 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
990 throw (com.liferay.portal.kernel.exception.PortalException)e;
991 }
992
993 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
994 throw (com.liferay.portal.kernel.exception.SystemException)e;
995 }
996
997 throw new com.liferay.portal.kernel.exception.SystemException(e);
998 }
999
1000 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
1001 }
1002 catch (com.liferay.portal.kernel.exception.SystemException se) {
1003 _log.error(se, se);
1004
1005 throw se;
1006 }
1007 }
1008
1009 public static java.util.List<com.liferay.portal.model.Group> getUserSitesGroups(
1010 HttpPrincipal httpPrincipal, long userId,
1011 java.lang.String[] classNames, int max)
1012 throws com.liferay.portal.kernel.exception.PortalException,
1013 com.liferay.portal.kernel.exception.SystemException {
1014 try {
1015 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1016 "getUserSitesGroups", _getUserSitesGroupsParameterTypes26);
1017
1018 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1019 classNames, max);
1020
1021 Object returnObj = null;
1022
1023 try {
1024 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1025 }
1026 catch (Exception e) {
1027 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1028 throw (com.liferay.portal.kernel.exception.PortalException)e;
1029 }
1030
1031 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1032 throw (com.liferay.portal.kernel.exception.SystemException)e;
1033 }
1034
1035 throw new com.liferay.portal.kernel.exception.SystemException(e);
1036 }
1037
1038 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
1039 }
1040 catch (com.liferay.portal.kernel.exception.SystemException se) {
1041 _log.error(se, se);
1042
1043 throw se;
1044 }
1045 }
1046
1047 public static java.util.List<com.liferay.portal.model.Group> getUserSitesGroups(
1048 HttpPrincipal httpPrincipal, long userId,
1049 java.lang.String[] classNames, java.lang.String name, boolean active,
1050 boolean includeControlPanel, int start, int end)
1051 throws com.liferay.portal.kernel.exception.PortalException,
1052 com.liferay.portal.kernel.exception.SystemException {
1053 try {
1054 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1055 "getUserSitesGroups", _getUserSitesGroupsParameterTypes27);
1056
1057 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1058 classNames, name, active, includeControlPanel, start, end);
1059
1060 Object returnObj = null;
1061
1062 try {
1063 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1064 }
1065 catch (Exception e) {
1066 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1067 throw (com.liferay.portal.kernel.exception.PortalException)e;
1068 }
1069
1070 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1071 throw (com.liferay.portal.kernel.exception.SystemException)e;
1072 }
1073
1074 throw new com.liferay.portal.kernel.exception.SystemException(e);
1075 }
1076
1077 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
1078 }
1079 catch (com.liferay.portal.kernel.exception.SystemException se) {
1080 _log.error(se, se);
1081
1082 throw se;
1083 }
1084 }
1085
1086 public static java.util.List<com.liferay.portal.model.Group> getUserSitesGroups(
1087 HttpPrincipal httpPrincipal, java.lang.String[] classNames, int max)
1088 throws com.liferay.portal.kernel.exception.PortalException,
1089 com.liferay.portal.kernel.exception.SystemException {
1090 try {
1091 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1092 "getUserSitesGroups", _getUserSitesGroupsParameterTypes28);
1093
1094 MethodHandler methodHandler = new MethodHandler(methodKey,
1095 classNames, max);
1096
1097 Object returnObj = null;
1098
1099 try {
1100 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1101 }
1102 catch (Exception e) {
1103 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1104 throw (com.liferay.portal.kernel.exception.PortalException)e;
1105 }
1106
1107 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1108 throw (com.liferay.portal.kernel.exception.SystemException)e;
1109 }
1110
1111 throw new com.liferay.portal.kernel.exception.SystemException(e);
1112 }
1113
1114 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
1115 }
1116 catch (com.liferay.portal.kernel.exception.SystemException se) {
1117 _log.error(se, se);
1118
1119 throw se;
1120 }
1121 }
1122
1123 public static int getUserSitesGroupsCount(HttpPrincipal httpPrincipal)
1124 throws com.liferay.portal.kernel.exception.PortalException,
1125 com.liferay.portal.kernel.exception.SystemException {
1126 try {
1127 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1128 "getUserSitesGroupsCount",
1129 _getUserSitesGroupsCountParameterTypes29);
1130
1131 MethodHandler methodHandler = new MethodHandler(methodKey);
1132
1133 Object returnObj = null;
1134
1135 try {
1136 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1137 }
1138 catch (Exception e) {
1139 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1140 throw (com.liferay.portal.kernel.exception.PortalException)e;
1141 }
1142
1143 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1144 throw (com.liferay.portal.kernel.exception.SystemException)e;
1145 }
1146
1147 throw new com.liferay.portal.kernel.exception.SystemException(e);
1148 }
1149
1150 return ((Integer)returnObj).intValue();
1151 }
1152 catch (com.liferay.portal.kernel.exception.SystemException se) {
1153 _log.error(se, se);
1154
1155 throw se;
1156 }
1157 }
1158
1159 public static boolean hasUserGroup(HttpPrincipal httpPrincipal,
1160 long userId, long groupId)
1161 throws com.liferay.portal.kernel.exception.PortalException,
1162 com.liferay.portal.kernel.exception.SystemException {
1163 try {
1164 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1165 "hasUserGroup", _hasUserGroupParameterTypes30);
1166
1167 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1168 groupId);
1169
1170 Object returnObj = null;
1171
1172 try {
1173 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1174 }
1175 catch (Exception e) {
1176 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1177 throw (com.liferay.portal.kernel.exception.PortalException)e;
1178 }
1179
1180 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1181 throw (com.liferay.portal.kernel.exception.SystemException)e;
1182 }
1183
1184 throw new com.liferay.portal.kernel.exception.SystemException(e);
1185 }
1186
1187 return ((Boolean)returnObj).booleanValue();
1188 }
1189 catch (com.liferay.portal.kernel.exception.SystemException se) {
1190 _log.error(se, se);
1191
1192 throw se;
1193 }
1194 }
1195
1196 public static java.util.List<com.liferay.portal.model.Group> search(
1197 HttpPrincipal httpPrincipal, long companyId, java.lang.String name,
1198 java.lang.String description, java.lang.String[] params, int start,
1199 int end)
1200 throws com.liferay.portal.kernel.exception.PortalException,
1201 com.liferay.portal.kernel.exception.SystemException {
1202 try {
1203 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1204 "search", _searchParameterTypes31);
1205
1206 MethodHandler methodHandler = new MethodHandler(methodKey,
1207 companyId, name, description, params, start, end);
1208
1209 Object returnObj = null;
1210
1211 try {
1212 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1213 }
1214 catch (Exception e) {
1215 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1216 throw (com.liferay.portal.kernel.exception.PortalException)e;
1217 }
1218
1219 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1220 throw (com.liferay.portal.kernel.exception.SystemException)e;
1221 }
1222
1223 throw new com.liferay.portal.kernel.exception.SystemException(e);
1224 }
1225
1226 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
1227 }
1228 catch (com.liferay.portal.kernel.exception.SystemException se) {
1229 _log.error(se, se);
1230
1231 throw se;
1232 }
1233 }
1234
1235 public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
1236 java.lang.String name, java.lang.String description,
1237 java.lang.String[] params)
1238 throws com.liferay.portal.kernel.exception.SystemException {
1239 try {
1240 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1241 "searchCount", _searchCountParameterTypes32);
1242
1243 MethodHandler methodHandler = new MethodHandler(methodKey,
1244 companyId, name, description, params);
1245
1246 Object returnObj = null;
1247
1248 try {
1249 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1250 }
1251 catch (Exception e) {
1252 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1253 throw (com.liferay.portal.kernel.exception.SystemException)e;
1254 }
1255
1256 throw new com.liferay.portal.kernel.exception.SystemException(e);
1257 }
1258
1259 return ((Integer)returnObj).intValue();
1260 }
1261 catch (com.liferay.portal.kernel.exception.SystemException se) {
1262 _log.error(se, se);
1263
1264 throw se;
1265 }
1266 }
1267
1268 public static void setRoleGroups(HttpPrincipal httpPrincipal, long roleId,
1269 long[] groupIds)
1270 throws com.liferay.portal.kernel.exception.PortalException,
1271 com.liferay.portal.kernel.exception.SystemException {
1272 try {
1273 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1274 "setRoleGroups", _setRoleGroupsParameterTypes33);
1275
1276 MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
1277 groupIds);
1278
1279 try {
1280 TunnelUtil.invoke(httpPrincipal, methodHandler);
1281 }
1282 catch (Exception e) {
1283 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1284 throw (com.liferay.portal.kernel.exception.PortalException)e;
1285 }
1286
1287 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1288 throw (com.liferay.portal.kernel.exception.SystemException)e;
1289 }
1290
1291 throw new com.liferay.portal.kernel.exception.SystemException(e);
1292 }
1293 }
1294 catch (com.liferay.portal.kernel.exception.SystemException se) {
1295 _log.error(se, se);
1296
1297 throw se;
1298 }
1299 }
1300
1301 public static void unsetRoleGroups(HttpPrincipal httpPrincipal,
1302 long roleId, long[] groupIds)
1303 throws com.liferay.portal.kernel.exception.PortalException,
1304 com.liferay.portal.kernel.exception.SystemException {
1305 try {
1306 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1307 "unsetRoleGroups", _unsetRoleGroupsParameterTypes34);
1308
1309 MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
1310 groupIds);
1311
1312 try {
1313 TunnelUtil.invoke(httpPrincipal, methodHandler);
1314 }
1315 catch (Exception e) {
1316 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1317 throw (com.liferay.portal.kernel.exception.PortalException)e;
1318 }
1319
1320 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1321 throw (com.liferay.portal.kernel.exception.SystemException)e;
1322 }
1323
1324 throw new com.liferay.portal.kernel.exception.SystemException(e);
1325 }
1326 }
1327 catch (com.liferay.portal.kernel.exception.SystemException se) {
1328 _log.error(se, se);
1329
1330 throw se;
1331 }
1332 }
1333
1334 public static com.liferay.portal.model.Group updateFriendlyURL(
1335 HttpPrincipal httpPrincipal, long groupId, java.lang.String friendlyURL)
1336 throws com.liferay.portal.kernel.exception.PortalException,
1337 com.liferay.portal.kernel.exception.SystemException {
1338 try {
1339 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1340 "updateFriendlyURL", _updateFriendlyURLParameterTypes35);
1341
1342 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1343 friendlyURL);
1344
1345 Object returnObj = null;
1346
1347 try {
1348 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1349 }
1350 catch (Exception e) {
1351 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1352 throw (com.liferay.portal.kernel.exception.PortalException)e;
1353 }
1354
1355 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1356 throw (com.liferay.portal.kernel.exception.SystemException)e;
1357 }
1358
1359 throw new com.liferay.portal.kernel.exception.SystemException(e);
1360 }
1361
1362 return (com.liferay.portal.model.Group)returnObj;
1363 }
1364 catch (com.liferay.portal.kernel.exception.SystemException se) {
1365 _log.error(se, se);
1366
1367 throw se;
1368 }
1369 }
1370
1371 public static com.liferay.portal.model.Group updateGroup(
1372 HttpPrincipal httpPrincipal, long groupId, long parentGroupId,
1373 java.lang.String name, java.lang.String description, int type,
1374 boolean manualMembership, int membershipRestriction,
1375 java.lang.String friendlyURL, boolean active,
1376 com.liferay.portal.service.ServiceContext serviceContext)
1377 throws com.liferay.portal.kernel.exception.PortalException,
1378 com.liferay.portal.kernel.exception.SystemException {
1379 try {
1380 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1381 "updateGroup", _updateGroupParameterTypes36);
1382
1383 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1384 parentGroupId, name, description, type, manualMembership,
1385 membershipRestriction, friendlyURL, active, serviceContext);
1386
1387 Object returnObj = null;
1388
1389 try {
1390 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1391 }
1392 catch (Exception e) {
1393 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1394 throw (com.liferay.portal.kernel.exception.PortalException)e;
1395 }
1396
1397 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1398 throw (com.liferay.portal.kernel.exception.SystemException)e;
1399 }
1400
1401 throw new com.liferay.portal.kernel.exception.SystemException(e);
1402 }
1403
1404 return (com.liferay.portal.model.Group)returnObj;
1405 }
1406 catch (com.liferay.portal.kernel.exception.SystemException se) {
1407 _log.error(se, se);
1408
1409 throw se;
1410 }
1411 }
1412
1413 public static com.liferay.portal.model.Group updateGroup(
1414 HttpPrincipal httpPrincipal, long groupId, java.lang.String typeSettings)
1415 throws com.liferay.portal.kernel.exception.PortalException,
1416 com.liferay.portal.kernel.exception.SystemException {
1417 try {
1418 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1419 "updateGroup", _updateGroupParameterTypes37);
1420
1421 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1422 typeSettings);
1423
1424 Object returnObj = null;
1425
1426 try {
1427 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1428 }
1429 catch (Exception e) {
1430 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1431 throw (com.liferay.portal.kernel.exception.PortalException)e;
1432 }
1433
1434 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1435 throw (com.liferay.portal.kernel.exception.SystemException)e;
1436 }
1437
1438 throw new com.liferay.portal.kernel.exception.SystemException(e);
1439 }
1440
1441 return (com.liferay.portal.model.Group)returnObj;
1442 }
1443 catch (com.liferay.portal.kernel.exception.SystemException se) {
1444 _log.error(se, se);
1445
1446 throw se;
1447 }
1448 }
1449
1450 public static void updateStagedPortlets(HttpPrincipal httpPrincipal,
1451 long groupId, java.lang.String stagedPortletIds)
1452 throws com.liferay.portal.kernel.exception.PortalException,
1453 com.liferay.portal.kernel.exception.SystemException {
1454 try {
1455 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1456 "updateStagedPortlets",
1457 _updateStagedPortletsParameterTypes38);
1458
1459 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1460 stagedPortletIds);
1461
1462 try {
1463 TunnelUtil.invoke(httpPrincipal, methodHandler);
1464 }
1465 catch (Exception e) {
1466 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1467 throw (com.liferay.portal.kernel.exception.PortalException)e;
1468 }
1469
1470 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1471 throw (com.liferay.portal.kernel.exception.SystemException)e;
1472 }
1473
1474 throw new com.liferay.portal.kernel.exception.SystemException(e);
1475 }
1476 }
1477 catch (com.liferay.portal.kernel.exception.SystemException se) {
1478 _log.error(se, se);
1479
1480 throw se;
1481 }
1482 }
1483
1484 private static Log _log = LogFactoryUtil.getLog(GroupServiceHttp.class);
1485 private static final Class<?>[] _addGroupParameterTypes0 = new Class[] {
1486 long.class, long.class, java.lang.String.class,
1487 java.lang.String.class, int.class, boolean.class, int.class,
1488 java.lang.String.class, boolean.class, boolean.class,
1489 com.liferay.portal.service.ServiceContext.class
1490 };
1491 private static final Class<?>[] _addGroupParameterTypes1 = new Class[] {
1492 long.class, java.lang.String.class, java.lang.String.class,
1493 int.class, java.lang.String.class, boolean.class, boolean.class,
1494 com.liferay.portal.service.ServiceContext.class
1495 };
1496 private static final Class<?>[] _addGroupParameterTypes2 = new Class[] {
1497 java.lang.String.class, java.lang.String.class, int.class,
1498 java.lang.String.class, boolean.class, boolean.class,
1499 com.liferay.portal.service.ServiceContext.class
1500 };
1501 private static final Class<?>[] _addRoleGroupsParameterTypes3 = new Class[] {
1502 long.class, long[].class
1503 };
1504 private static final Class<?>[] _checkRemoteStagingGroupParameterTypes4 = new Class[] {
1505 long.class
1506 };
1507 private static final Class<?>[] _deleteGroupParameterTypes5 = new Class[] {
1508 long.class
1509 };
1510 private static final Class<?>[] _disableStagingParameterTypes6 = new Class[] {
1511 long.class
1512 };
1513 private static final Class<?>[] _enableStagingParameterTypes7 = new Class[] {
1514 long.class
1515 };
1516 private static final Class<?>[] _getCompanyGroupParameterTypes8 = new Class[] {
1517 long.class
1518 };
1519 private static final Class<?>[] _getGroupParameterTypes9 = new Class[] {
1520 long.class
1521 };
1522 private static final Class<?>[] _getGroupParameterTypes10 = new Class[] {
1523 long.class, java.lang.String.class
1524 };
1525 private static final Class<?>[] _getGroupsParameterTypes11 = new Class[] {
1526 long.class, long.class, boolean.class
1527 };
1528 private static final Class<?>[] _getManageableSiteGroupsParameterTypes12 = new Class[] {
1529 java.util.Collection.class, int.class
1530 };
1531 private static final Class<?>[] _getManageableSitesParameterTypes13 = new Class[] {
1532 java.util.Collection.class, int.class
1533 };
1534 private static final Class<?>[] _getOrganizationsGroupsParameterTypes14 = new Class[] {
1535 java.util.List.class
1536 };
1537 private static final Class<?>[] _getUserGroupParameterTypes15 = new Class[] {
1538 long.class, long.class
1539 };
1540 private static final Class<?>[] _getUserGroupsGroupsParameterTypes16 = new Class[] {
1541 java.util.List.class
1542 };
1543 private static final Class<?>[] _getUserOrganizationsGroupsParameterTypes17 = new Class[] {
1544 long.class, int.class, int.class
1545 };
1546 private static final Class<?>[] _getUserPlacesParameterTypes18 = new Class[] {
1547 long.class, java.lang.String[].class, boolean.class, int.class
1548 };
1549 private static final Class<?>[] _getUserPlacesParameterTypes19 = new Class[] {
1550 long.class, java.lang.String[].class, int.class
1551 };
1552 private static final Class<?>[] _getUserPlacesParameterTypes20 = new Class[] {
1553 long.class, java.lang.String[].class, java.lang.String.class,
1554 boolean.class, boolean.class, int.class, int.class
1555 };
1556 private static final Class<?>[] _getUserPlacesParameterTypes21 = new Class[] {
1557 java.lang.String[].class, int.class
1558 };
1559 private static final Class<?>[] _getUserPlacesCountParameterTypes22 = new Class[] {
1560
1561 };
1562 private static final Class<?>[] _getUserSitesParameterTypes23 = new Class[] { };
1563 private static final Class<?>[] _getUserSitesGroupsParameterTypes24 = new Class[] {
1564
1565 };
1566 private static final Class<?>[] _getUserSitesGroupsParameterTypes25 = new Class[] {
1567 long.class, java.lang.String[].class, boolean.class, int.class
1568 };
1569 private static final Class<?>[] _getUserSitesGroupsParameterTypes26 = new Class[] {
1570 long.class, java.lang.String[].class, int.class
1571 };
1572 private static final Class<?>[] _getUserSitesGroupsParameterTypes27 = new Class[] {
1573 long.class, java.lang.String[].class, java.lang.String.class,
1574 boolean.class, boolean.class, int.class, int.class
1575 };
1576 private static final Class<?>[] _getUserSitesGroupsParameterTypes28 = new Class[] {
1577 java.lang.String[].class, int.class
1578 };
1579 private static final Class<?>[] _getUserSitesGroupsCountParameterTypes29 = new Class[] {
1580
1581 };
1582 private static final Class<?>[] _hasUserGroupParameterTypes30 = new Class[] {
1583 long.class, long.class
1584 };
1585 private static final Class<?>[] _searchParameterTypes31 = new Class[] {
1586 long.class, java.lang.String.class, java.lang.String.class,
1587 java.lang.String[].class, int.class, int.class
1588 };
1589 private static final Class<?>[] _searchCountParameterTypes32 = new Class[] {
1590 long.class, java.lang.String.class, java.lang.String.class,
1591 java.lang.String[].class
1592 };
1593 private static final Class<?>[] _setRoleGroupsParameterTypes33 = new Class[] {
1594 long.class, long[].class
1595 };
1596 private static final Class<?>[] _unsetRoleGroupsParameterTypes34 = new Class[] {
1597 long.class, long[].class
1598 };
1599 private static final Class<?>[] _updateFriendlyURLParameterTypes35 = new Class[] {
1600 long.class, java.lang.String.class
1601 };
1602 private static final Class<?>[] _updateGroupParameterTypes36 = new Class[] {
1603 long.class, long.class, java.lang.String.class,
1604 java.lang.String.class, int.class, boolean.class, int.class,
1605 java.lang.String.class, boolean.class,
1606 com.liferay.portal.service.ServiceContext.class
1607 };
1608 private static final Class<?>[] _updateGroupParameterTypes37 = new Class[] {
1609 long.class, java.lang.String.class
1610 };
1611 private static final Class<?>[] _updateStagedPortletsParameterTypes38 = new Class[] {
1612 long.class, java.lang.String.class
1613 };
1614 }