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