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, java.lang.String[] classNames, int max)
790 throws com.liferay.portal.kernel.exception.PortalException,
791 com.liferay.portal.kernel.exception.SystemException {
792 try {
793 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
794 "getUserPlaces", _getUserPlacesParameterTypes20);
795
796 MethodHandler methodHandler = new MethodHandler(methodKey,
797 classNames, max);
798
799 Object returnObj = null;
800
801 try {
802 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
803 }
804 catch (Exception e) {
805 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
806 throw (com.liferay.portal.kernel.exception.PortalException)e;
807 }
808
809 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
810 throw (com.liferay.portal.kernel.exception.SystemException)e;
811 }
812
813 throw new com.liferay.portal.kernel.exception.SystemException(e);
814 }
815
816 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
817 }
818 catch (com.liferay.portal.kernel.exception.SystemException se) {
819 _log.error(se, se);
820
821 throw se;
822 }
823 }
824
825 public static int getUserPlacesCount(HttpPrincipal httpPrincipal)
826 throws com.liferay.portal.kernel.exception.PortalException,
827 com.liferay.portal.kernel.exception.SystemException {
828 try {
829 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
830 "getUserPlacesCount", _getUserPlacesCountParameterTypes21);
831
832 MethodHandler methodHandler = new MethodHandler(methodKey);
833
834 Object returnObj = null;
835
836 try {
837 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
838 }
839 catch (Exception e) {
840 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
841 throw (com.liferay.portal.kernel.exception.PortalException)e;
842 }
843
844 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
845 throw (com.liferay.portal.kernel.exception.SystemException)e;
846 }
847
848 throw new com.liferay.portal.kernel.exception.SystemException(e);
849 }
850
851 return ((Integer)returnObj).intValue();
852 }
853 catch (com.liferay.portal.kernel.exception.SystemException se) {
854 _log.error(se, se);
855
856 throw se;
857 }
858 }
859
860 public static java.util.List<com.liferay.portal.model.Group> getUserSites(
861 HttpPrincipal httpPrincipal)
862 throws com.liferay.portal.kernel.exception.PortalException,
863 com.liferay.portal.kernel.exception.SystemException {
864 try {
865 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
866 "getUserSites", _getUserSitesParameterTypes22);
867
868 MethodHandler methodHandler = new MethodHandler(methodKey);
869
870 Object returnObj = null;
871
872 try {
873 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
874 }
875 catch (Exception e) {
876 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
877 throw (com.liferay.portal.kernel.exception.PortalException)e;
878 }
879
880 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
881 throw (com.liferay.portal.kernel.exception.SystemException)e;
882 }
883
884 throw new com.liferay.portal.kernel.exception.SystemException(e);
885 }
886
887 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
888 }
889 catch (com.liferay.portal.kernel.exception.SystemException se) {
890 _log.error(se, se);
891
892 throw se;
893 }
894 }
895
896 public static java.util.List<com.liferay.portal.model.Group> getUserSitesGroups(
897 HttpPrincipal httpPrincipal)
898 throws com.liferay.portal.kernel.exception.PortalException,
899 com.liferay.portal.kernel.exception.SystemException {
900 try {
901 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
902 "getUserSitesGroups", _getUserSitesGroupsParameterTypes23);
903
904 MethodHandler methodHandler = new MethodHandler(methodKey);
905
906 Object returnObj = null;
907
908 try {
909 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
910 }
911 catch (Exception e) {
912 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
913 throw (com.liferay.portal.kernel.exception.PortalException)e;
914 }
915
916 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
917 throw (com.liferay.portal.kernel.exception.SystemException)e;
918 }
919
920 throw new com.liferay.portal.kernel.exception.SystemException(e);
921 }
922
923 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
924 }
925 catch (com.liferay.portal.kernel.exception.SystemException se) {
926 _log.error(se, se);
927
928 throw se;
929 }
930 }
931
932 public static java.util.List<com.liferay.portal.model.Group> getUserSitesGroups(
933 HttpPrincipal httpPrincipal, long userId,
934 java.lang.String[] classNames, boolean includeControlPanel, int max)
935 throws com.liferay.portal.kernel.exception.PortalException,
936 com.liferay.portal.kernel.exception.SystemException {
937 try {
938 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
939 "getUserSitesGroups", _getUserSitesGroupsParameterTypes24);
940
941 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
942 classNames, includeControlPanel, max);
943
944 Object returnObj = null;
945
946 try {
947 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
948 }
949 catch (Exception e) {
950 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
951 throw (com.liferay.portal.kernel.exception.PortalException)e;
952 }
953
954 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
955 throw (com.liferay.portal.kernel.exception.SystemException)e;
956 }
957
958 throw new com.liferay.portal.kernel.exception.SystemException(e);
959 }
960
961 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
962 }
963 catch (com.liferay.portal.kernel.exception.SystemException se) {
964 _log.error(se, se);
965
966 throw se;
967 }
968 }
969
970 public static java.util.List<com.liferay.portal.model.Group> getUserSitesGroups(
971 HttpPrincipal httpPrincipal, long userId,
972 java.lang.String[] classNames, int max)
973 throws com.liferay.portal.kernel.exception.PortalException,
974 com.liferay.portal.kernel.exception.SystemException {
975 try {
976 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
977 "getUserSitesGroups", _getUserSitesGroupsParameterTypes25);
978
979 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
980 classNames, max);
981
982 Object returnObj = null;
983
984 try {
985 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
986 }
987 catch (Exception e) {
988 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
989 throw (com.liferay.portal.kernel.exception.PortalException)e;
990 }
991
992 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
993 throw (com.liferay.portal.kernel.exception.SystemException)e;
994 }
995
996 throw new com.liferay.portal.kernel.exception.SystemException(e);
997 }
998
999 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
1000 }
1001 catch (com.liferay.portal.kernel.exception.SystemException se) {
1002 _log.error(se, se);
1003
1004 throw se;
1005 }
1006 }
1007
1008 public static java.util.List<com.liferay.portal.model.Group> getUserSitesGroups(
1009 HttpPrincipal httpPrincipal, java.lang.String[] classNames, int max)
1010 throws com.liferay.portal.kernel.exception.PortalException,
1011 com.liferay.portal.kernel.exception.SystemException {
1012 try {
1013 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1014 "getUserSitesGroups", _getUserSitesGroupsParameterTypes26);
1015
1016 MethodHandler methodHandler = new MethodHandler(methodKey,
1017 classNames, max);
1018
1019 Object returnObj = null;
1020
1021 try {
1022 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1023 }
1024 catch (Exception e) {
1025 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1026 throw (com.liferay.portal.kernel.exception.PortalException)e;
1027 }
1028
1029 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1030 throw (com.liferay.portal.kernel.exception.SystemException)e;
1031 }
1032
1033 throw new com.liferay.portal.kernel.exception.SystemException(e);
1034 }
1035
1036 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
1037 }
1038 catch (com.liferay.portal.kernel.exception.SystemException se) {
1039 _log.error(se, se);
1040
1041 throw se;
1042 }
1043 }
1044
1045 public static int getUserSitesGroupsCount(HttpPrincipal httpPrincipal)
1046 throws com.liferay.portal.kernel.exception.PortalException,
1047 com.liferay.portal.kernel.exception.SystemException {
1048 try {
1049 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1050 "getUserSitesGroupsCount",
1051 _getUserSitesGroupsCountParameterTypes27);
1052
1053 MethodHandler methodHandler = new MethodHandler(methodKey);
1054
1055 Object returnObj = null;
1056
1057 try {
1058 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1059 }
1060 catch (Exception e) {
1061 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1062 throw (com.liferay.portal.kernel.exception.PortalException)e;
1063 }
1064
1065 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1066 throw (com.liferay.portal.kernel.exception.SystemException)e;
1067 }
1068
1069 throw new com.liferay.portal.kernel.exception.SystemException(e);
1070 }
1071
1072 return ((Integer)returnObj).intValue();
1073 }
1074 catch (com.liferay.portal.kernel.exception.SystemException se) {
1075 _log.error(se, se);
1076
1077 throw se;
1078 }
1079 }
1080
1081 public static boolean hasUserGroup(HttpPrincipal httpPrincipal,
1082 long userId, long groupId)
1083 throws com.liferay.portal.kernel.exception.PortalException,
1084 com.liferay.portal.kernel.exception.SystemException {
1085 try {
1086 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1087 "hasUserGroup", _hasUserGroupParameterTypes28);
1088
1089 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1090 groupId);
1091
1092 Object returnObj = null;
1093
1094 try {
1095 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1096 }
1097 catch (Exception e) {
1098 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1099 throw (com.liferay.portal.kernel.exception.PortalException)e;
1100 }
1101
1102 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1103 throw (com.liferay.portal.kernel.exception.SystemException)e;
1104 }
1105
1106 throw new com.liferay.portal.kernel.exception.SystemException(e);
1107 }
1108
1109 return ((Boolean)returnObj).booleanValue();
1110 }
1111 catch (com.liferay.portal.kernel.exception.SystemException se) {
1112 _log.error(se, se);
1113
1114 throw se;
1115 }
1116 }
1117
1118 public static java.util.List<com.liferay.portal.model.Group> search(
1119 HttpPrincipal httpPrincipal, long companyId, long[] classNameIds,
1120 java.lang.String keywords,
1121 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1122 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
1123 throws com.liferay.portal.kernel.exception.PortalException,
1124 com.liferay.portal.kernel.exception.SystemException {
1125 try {
1126 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1127 "search", _searchParameterTypes29);
1128
1129 MethodHandler methodHandler = new MethodHandler(methodKey,
1130 companyId, classNameIds, keywords, params, start, end, obc);
1131
1132 Object returnObj = null;
1133
1134 try {
1135 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1136 }
1137 catch (Exception e) {
1138 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1139 throw (com.liferay.portal.kernel.exception.PortalException)e;
1140 }
1141
1142 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1143 throw (com.liferay.portal.kernel.exception.SystemException)e;
1144 }
1145
1146 throw new com.liferay.portal.kernel.exception.SystemException(e);
1147 }
1148
1149 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
1150 }
1151 catch (com.liferay.portal.kernel.exception.SystemException se) {
1152 _log.error(se, se);
1153
1154 throw se;
1155 }
1156 }
1157
1158 public static java.util.List<com.liferay.portal.model.Group> search(
1159 HttpPrincipal httpPrincipal, long companyId, long[] classNameIds,
1160 java.lang.String name, java.lang.String description,
1161 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1162 boolean andOperator, int start, int end,
1163 com.liferay.portal.kernel.util.OrderByComparator obc)
1164 throws com.liferay.portal.kernel.exception.PortalException,
1165 com.liferay.portal.kernel.exception.SystemException {
1166 try {
1167 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1168 "search", _searchParameterTypes30);
1169
1170 MethodHandler methodHandler = new MethodHandler(methodKey,
1171 companyId, classNameIds, name, description, params,
1172 andOperator, start, end, obc);
1173
1174 Object returnObj = null;
1175
1176 try {
1177 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1178 }
1179 catch (Exception e) {
1180 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1181 throw (com.liferay.portal.kernel.exception.PortalException)e;
1182 }
1183
1184 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1185 throw (com.liferay.portal.kernel.exception.SystemException)e;
1186 }
1187
1188 throw new com.liferay.portal.kernel.exception.SystemException(e);
1189 }
1190
1191 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
1192 }
1193 catch (com.liferay.portal.kernel.exception.SystemException se) {
1194 _log.error(se, se);
1195
1196 throw se;
1197 }
1198 }
1199
1200 public static java.util.List<com.liferay.portal.model.Group> search(
1201 HttpPrincipal httpPrincipal, long companyId, java.lang.String name,
1202 java.lang.String description, java.lang.String[] params, int start,
1203 int end)
1204 throws com.liferay.portal.kernel.exception.PortalException,
1205 com.liferay.portal.kernel.exception.SystemException {
1206 try {
1207 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1208 "search", _searchParameterTypes31);
1209
1210 MethodHandler methodHandler = new MethodHandler(methodKey,
1211 companyId, name, description, params, start, end);
1212
1213 Object returnObj = null;
1214
1215 try {
1216 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1217 }
1218 catch (Exception e) {
1219 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1220 throw (com.liferay.portal.kernel.exception.PortalException)e;
1221 }
1222
1223 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1224 throw (com.liferay.portal.kernel.exception.SystemException)e;
1225 }
1226
1227 throw new com.liferay.portal.kernel.exception.SystemException(e);
1228 }
1229
1230 return (java.util.List<com.liferay.portal.model.Group>)returnObj;
1231 }
1232 catch (com.liferay.portal.kernel.exception.SystemException se) {
1233 _log.error(se, se);
1234
1235 throw se;
1236 }
1237 }
1238
1239 public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
1240 java.lang.String name, java.lang.String description,
1241 java.lang.String[] params)
1242 throws com.liferay.portal.kernel.exception.SystemException {
1243 try {
1244 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1245 "searchCount", _searchCountParameterTypes32);
1246
1247 MethodHandler methodHandler = new MethodHandler(methodKey,
1248 companyId, name, description, params);
1249
1250 Object returnObj = null;
1251
1252 try {
1253 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1254 }
1255 catch (Exception e) {
1256 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1257 throw (com.liferay.portal.kernel.exception.SystemException)e;
1258 }
1259
1260 throw new com.liferay.portal.kernel.exception.SystemException(e);
1261 }
1262
1263 return ((Integer)returnObj).intValue();
1264 }
1265 catch (com.liferay.portal.kernel.exception.SystemException se) {
1266 _log.error(se, se);
1267
1268 throw se;
1269 }
1270 }
1271
1272 public static void setRoleGroups(HttpPrincipal httpPrincipal, long roleId,
1273 long[] groupIds)
1274 throws com.liferay.portal.kernel.exception.PortalException,
1275 com.liferay.portal.kernel.exception.SystemException {
1276 try {
1277 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1278 "setRoleGroups", _setRoleGroupsParameterTypes33);
1279
1280 MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
1281 groupIds);
1282
1283 try {
1284 TunnelUtil.invoke(httpPrincipal, methodHandler);
1285 }
1286 catch (Exception e) {
1287 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1288 throw (com.liferay.portal.kernel.exception.PortalException)e;
1289 }
1290
1291 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1292 throw (com.liferay.portal.kernel.exception.SystemException)e;
1293 }
1294
1295 throw new com.liferay.portal.kernel.exception.SystemException(e);
1296 }
1297 }
1298 catch (com.liferay.portal.kernel.exception.SystemException se) {
1299 _log.error(se, se);
1300
1301 throw se;
1302 }
1303 }
1304
1305 public static void unsetRoleGroups(HttpPrincipal httpPrincipal,
1306 long roleId, long[] groupIds)
1307 throws com.liferay.portal.kernel.exception.PortalException,
1308 com.liferay.portal.kernel.exception.SystemException {
1309 try {
1310 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1311 "unsetRoleGroups", _unsetRoleGroupsParameterTypes34);
1312
1313 MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
1314 groupIds);
1315
1316 try {
1317 TunnelUtil.invoke(httpPrincipal, methodHandler);
1318 }
1319 catch (Exception e) {
1320 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1321 throw (com.liferay.portal.kernel.exception.PortalException)e;
1322 }
1323
1324 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1325 throw (com.liferay.portal.kernel.exception.SystemException)e;
1326 }
1327
1328 throw new com.liferay.portal.kernel.exception.SystemException(e);
1329 }
1330 }
1331 catch (com.liferay.portal.kernel.exception.SystemException se) {
1332 _log.error(se, se);
1333
1334 throw se;
1335 }
1336 }
1337
1338 public static com.liferay.portal.model.Group updateFriendlyURL(
1339 HttpPrincipal httpPrincipal, long groupId, java.lang.String friendlyURL)
1340 throws com.liferay.portal.kernel.exception.PortalException,
1341 com.liferay.portal.kernel.exception.SystemException {
1342 try {
1343 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1344 "updateFriendlyURL", _updateFriendlyURLParameterTypes35);
1345
1346 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1347 friendlyURL);
1348
1349 Object returnObj = null;
1350
1351 try {
1352 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1353 }
1354 catch (Exception e) {
1355 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1356 throw (com.liferay.portal.kernel.exception.PortalException)e;
1357 }
1358
1359 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1360 throw (com.liferay.portal.kernel.exception.SystemException)e;
1361 }
1362
1363 throw new com.liferay.portal.kernel.exception.SystemException(e);
1364 }
1365
1366 return (com.liferay.portal.model.Group)returnObj;
1367 }
1368 catch (com.liferay.portal.kernel.exception.SystemException se) {
1369 _log.error(se, se);
1370
1371 throw se;
1372 }
1373 }
1374
1375 public static com.liferay.portal.model.Group updateGroup(
1376 HttpPrincipal httpPrincipal, long groupId, long parentGroupId,
1377 java.lang.String name, java.lang.String description, int type,
1378 boolean manualMembership, int membershipRestriction,
1379 java.lang.String friendlyURL, boolean active,
1380 com.liferay.portal.service.ServiceContext serviceContext)
1381 throws com.liferay.portal.kernel.exception.PortalException,
1382 com.liferay.portal.kernel.exception.SystemException {
1383 try {
1384 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1385 "updateGroup", _updateGroupParameterTypes36);
1386
1387 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1388 parentGroupId, name, description, type, manualMembership,
1389 membershipRestriction, friendlyURL, active, serviceContext);
1390
1391 Object returnObj = null;
1392
1393 try {
1394 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1395 }
1396 catch (Exception e) {
1397 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1398 throw (com.liferay.portal.kernel.exception.PortalException)e;
1399 }
1400
1401 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1402 throw (com.liferay.portal.kernel.exception.SystemException)e;
1403 }
1404
1405 throw new com.liferay.portal.kernel.exception.SystemException(e);
1406 }
1407
1408 return (com.liferay.portal.model.Group)returnObj;
1409 }
1410 catch (com.liferay.portal.kernel.exception.SystemException se) {
1411 _log.error(se, se);
1412
1413 throw se;
1414 }
1415 }
1416
1417 public static com.liferay.portal.model.Group updateGroup(
1418 HttpPrincipal httpPrincipal, long groupId, java.lang.String typeSettings)
1419 throws com.liferay.portal.kernel.exception.PortalException,
1420 com.liferay.portal.kernel.exception.SystemException {
1421 try {
1422 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1423 "updateGroup", _updateGroupParameterTypes37);
1424
1425 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1426 typeSettings);
1427
1428 Object returnObj = null;
1429
1430 try {
1431 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1432 }
1433 catch (Exception e) {
1434 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1435 throw (com.liferay.portal.kernel.exception.PortalException)e;
1436 }
1437
1438 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1439 throw (com.liferay.portal.kernel.exception.SystemException)e;
1440 }
1441
1442 throw new com.liferay.portal.kernel.exception.SystemException(e);
1443 }
1444
1445 return (com.liferay.portal.model.Group)returnObj;
1446 }
1447 catch (com.liferay.portal.kernel.exception.SystemException se) {
1448 _log.error(se, se);
1449
1450 throw se;
1451 }
1452 }
1453
1454 public static void updateStagedPortlets(HttpPrincipal httpPrincipal,
1455 long groupId,
1456 java.util.Map<java.lang.String, java.lang.String> stagedPortletIds)
1457 throws com.liferay.portal.kernel.exception.PortalException,
1458 com.liferay.portal.kernel.exception.SystemException {
1459 try {
1460 MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1461 "updateStagedPortlets",
1462 _updateStagedPortletsParameterTypes38);
1463
1464 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1465 stagedPortletIds);
1466
1467 try {
1468 TunnelUtil.invoke(httpPrincipal, methodHandler);
1469 }
1470 catch (Exception e) {
1471 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1472 throw (com.liferay.portal.kernel.exception.PortalException)e;
1473 }
1474
1475 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1476 throw (com.liferay.portal.kernel.exception.SystemException)e;
1477 }
1478
1479 throw new com.liferay.portal.kernel.exception.SystemException(e);
1480 }
1481 }
1482 catch (com.liferay.portal.kernel.exception.SystemException se) {
1483 _log.error(se, se);
1484
1485 throw se;
1486 }
1487 }
1488
1489 private static Log _log = LogFactoryUtil.getLog(GroupServiceHttp.class);
1490 private static final Class<?>[] _addGroupParameterTypes0 = new Class[] {
1491 long.class, long.class, java.lang.String.class,
1492 java.lang.String.class, int.class, boolean.class, int.class,
1493 java.lang.String.class, boolean.class, boolean.class,
1494 com.liferay.portal.service.ServiceContext.class
1495 };
1496 private static final Class<?>[] _addGroupParameterTypes1 = new Class[] {
1497 long.class, java.lang.String.class, java.lang.String.class,
1498 int.class, java.lang.String.class, boolean.class, boolean.class,
1499 com.liferay.portal.service.ServiceContext.class
1500 };
1501 private static final Class<?>[] _addGroupParameterTypes2 = new Class[] {
1502 java.lang.String.class, java.lang.String.class, int.class,
1503 java.lang.String.class, boolean.class, boolean.class,
1504 com.liferay.portal.service.ServiceContext.class
1505 };
1506 private static final Class<?>[] _addRoleGroupsParameterTypes3 = new Class[] {
1507 long.class, long[].class
1508 };
1509 private static final Class<?>[] _checkRemoteStagingGroupParameterTypes4 = new Class[] {
1510 long.class
1511 };
1512 private static final Class<?>[] _deleteGroupParameterTypes5 = new Class[] {
1513 long.class
1514 };
1515 private static final Class<?>[] _disableStagingParameterTypes6 = new Class[] {
1516 long.class
1517 };
1518 private static final Class<?>[] _enableStagingParameterTypes7 = new Class[] {
1519 long.class
1520 };
1521 private static final Class<?>[] _getCompanyGroupParameterTypes8 = new Class[] {
1522 long.class
1523 };
1524 private static final Class<?>[] _getGroupParameterTypes9 = new Class[] {
1525 long.class
1526 };
1527 private static final Class<?>[] _getGroupParameterTypes10 = new Class[] {
1528 long.class, java.lang.String.class
1529 };
1530 private static final Class<?>[] _getGroupsParameterTypes11 = new Class[] {
1531 long.class, long.class, boolean.class
1532 };
1533 private static final Class<?>[] _getManageableSiteGroupsParameterTypes12 = new Class[] {
1534 java.util.Collection.class, int.class
1535 };
1536 private static final Class<?>[] _getManageableSitesParameterTypes13 = new Class[] {
1537 java.util.Collection.class, int.class
1538 };
1539 private static final Class<?>[] _getOrganizationsGroupsParameterTypes14 = new Class[] {
1540 java.util.List.class
1541 };
1542 private static final Class<?>[] _getUserGroupParameterTypes15 = new Class[] {
1543 long.class, long.class
1544 };
1545 private static final Class<?>[] _getUserGroupsGroupsParameterTypes16 = new Class[] {
1546 java.util.List.class
1547 };
1548 private static final Class<?>[] _getUserOrganizationsGroupsParameterTypes17 = new Class[] {
1549 long.class, int.class, int.class
1550 };
1551 private static final Class<?>[] _getUserPlacesParameterTypes18 = new Class[] {
1552 long.class, java.lang.String[].class, boolean.class, int.class
1553 };
1554 private static final Class<?>[] _getUserPlacesParameterTypes19 = new Class[] {
1555 long.class, java.lang.String[].class, int.class
1556 };
1557 private static final Class<?>[] _getUserPlacesParameterTypes20 = new Class[] {
1558 java.lang.String[].class, int.class
1559 };
1560 private static final Class<?>[] _getUserPlacesCountParameterTypes21 = new Class[] {
1561
1562 };
1563 private static final Class<?>[] _getUserSitesParameterTypes22 = new Class[] { };
1564 private static final Class<?>[] _getUserSitesGroupsParameterTypes23 = new Class[] {
1565
1566 };
1567 private static final Class<?>[] _getUserSitesGroupsParameterTypes24 = new Class[] {
1568 long.class, java.lang.String[].class, boolean.class, int.class
1569 };
1570 private static final Class<?>[] _getUserSitesGroupsParameterTypes25 = new Class[] {
1571 long.class, java.lang.String[].class, int.class
1572 };
1573 private static final Class<?>[] _getUserSitesGroupsParameterTypes26 = new Class[] {
1574 java.lang.String[].class, int.class
1575 };
1576 private static final Class<?>[] _getUserSitesGroupsCountParameterTypes27 = new Class[] {
1577
1578 };
1579 private static final Class<?>[] _hasUserGroupParameterTypes28 = new Class[] {
1580 long.class, long.class
1581 };
1582 private static final Class<?>[] _searchParameterTypes29 = new Class[] {
1583 long.class, long[].class, java.lang.String.class,
1584 java.util.LinkedHashMap.class, int.class, int.class,
1585 com.liferay.portal.kernel.util.OrderByComparator.class
1586 };
1587 private static final Class<?>[] _searchParameterTypes30 = new Class[] {
1588 long.class, long[].class, java.lang.String.class,
1589 java.lang.String.class, java.util.LinkedHashMap.class, boolean.class,
1590 int.class, int.class,
1591 com.liferay.portal.kernel.util.OrderByComparator.class
1592 };
1593 private static final Class<?>[] _searchParameterTypes31 = new Class[] {
1594 long.class, java.lang.String.class, java.lang.String.class,
1595 java.lang.String[].class, int.class, int.class
1596 };
1597 private static final Class<?>[] _searchCountParameterTypes32 = new Class[] {
1598 long.class, java.lang.String.class, java.lang.String.class,
1599 java.lang.String[].class
1600 };
1601 private static final Class<?>[] _setRoleGroupsParameterTypes33 = new Class[] {
1602 long.class, long[].class
1603 };
1604 private static final Class<?>[] _unsetRoleGroupsParameterTypes34 = new Class[] {
1605 long.class, long[].class
1606 };
1607 private static final Class<?>[] _updateFriendlyURLParameterTypes35 = new Class[] {
1608 long.class, java.lang.String.class
1609 };
1610 private static final Class<?>[] _updateGroupParameterTypes36 = new Class[] {
1611 long.class, long.class, java.lang.String.class,
1612 java.lang.String.class, int.class, boolean.class, int.class,
1613 java.lang.String.class, boolean.class,
1614 com.liferay.portal.service.ServiceContext.class
1615 };
1616 private static final Class<?>[] _updateGroupParameterTypes37 = new Class[] {
1617 long.class, java.lang.String.class
1618 };
1619 private static final Class<?>[] _updateStagedPortletsParameterTypes38 = new Class[] {
1620 long.class, java.util.Map.class
1621 };
1622 }