001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.http;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.log.Log;
020    import com.liferay.portal.kernel.log.LogFactoryUtil;
021    import com.liferay.portal.kernel.util.MethodHandler;
022    import com.liferay.portal.kernel.util.MethodKey;
023    import com.liferay.portal.security.auth.HttpPrincipal;
024    import com.liferay.portal.service.GroupServiceUtil;
025    
026    /**
027     * Provides the HTTP utility for the
028     * {@link com.liferay.portal.service.GroupServiceUtil} service utility. The
029     * static methods of this class calls the same methods of the service utility.
030     * However, the signatures are different because it requires an additional
031     * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
032     *
033     * <p>
034     * The benefits of using the HTTP utility is that it is fast and allows for
035     * tunneling without the cost of serializing to text. The drawback is that it
036     * only works with Java.
037     * </p>
038     *
039     * <p>
040     * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
041     * configure security.
042     * </p>
043     *
044     * <p>
045     * The HTTP utility is only generated for remote services.
046     * </p>
047     *
048     * @author Brian Wing Shun Chan
049     * @see GroupServiceSoap
050     * @see com.liferay.portal.security.auth.HttpPrincipal
051     * @see com.liferay.portal.service.GroupServiceUtil
052     * @generated
053     */
054    @ProviderType
055    public class GroupServiceHttp {
056            public static com.liferay.portal.model.Group addGroup(
057                    HttpPrincipal httpPrincipal, long parentGroupId, long liveGroupId,
058                    java.lang.String name, java.lang.String description, int type,
059                    boolean manualMembership, int membershipRestriction,
060                    java.lang.String friendlyURL, boolean site, boolean inheritContent,
061                    boolean active, com.liferay.portal.service.ServiceContext serviceContext)
062                    throws com.liferay.portal.kernel.exception.PortalException {
063                    try {
064                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
065                                            "addGroup", _addGroupParameterTypes0);
066    
067                            MethodHandler methodHandler = new MethodHandler(methodKey,
068                                            parentGroupId, liveGroupId, name, description, type,
069                                            manualMembership, membershipRestriction, friendlyURL, site,
070                                            inheritContent, active, serviceContext);
071    
072                            Object returnObj = null;
073    
074                            try {
075                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
076                            }
077                            catch (Exception e) {
078                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
079                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
080                                    }
081    
082                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
083                            }
084    
085                            return (com.liferay.portal.model.Group)returnObj;
086                    }
087                    catch (com.liferay.portal.kernel.exception.SystemException se) {
088                            _log.error(se, se);
089    
090                            throw se;
091                    }
092            }
093    
094            public static com.liferay.portal.model.Group addGroup(
095                    HttpPrincipal httpPrincipal, long parentGroupId, long liveGroupId,
096                    java.lang.String name, java.lang.String description, int type,
097                    boolean manualMembership, int membershipRestriction,
098                    java.lang.String friendlyURL, boolean site, boolean active,
099                    com.liferay.portal.service.ServiceContext serviceContext)
100                    throws com.liferay.portal.kernel.exception.PortalException {
101                    try {
102                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
103                                            "addGroup", _addGroupParameterTypes1);
104    
105                            MethodHandler methodHandler = new MethodHandler(methodKey,
106                                            parentGroupId, liveGroupId, name, description, type,
107                                            manualMembership, membershipRestriction, friendlyURL, site,
108                                            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                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
121                            }
122    
123                            return (com.liferay.portal.model.Group)returnObj;
124                    }
125                    catch (com.liferay.portal.kernel.exception.SystemException se) {
126                            _log.error(se, se);
127    
128                            throw se;
129                    }
130            }
131    
132            public static com.liferay.portal.model.Group addGroup(
133                    HttpPrincipal httpPrincipal, long parentGroupId, java.lang.String name,
134                    java.lang.String description, int type, java.lang.String friendlyURL,
135                    boolean site, boolean active,
136                    com.liferay.portal.service.ServiceContext serviceContext)
137                    throws com.liferay.portal.kernel.exception.PortalException {
138                    try {
139                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
140                                            "addGroup", _addGroupParameterTypes2);
141    
142                            MethodHandler methodHandler = new MethodHandler(methodKey,
143                                            parentGroupId, name, description, type, friendlyURL, site,
144                                            active, serviceContext);
145    
146                            Object returnObj = null;
147    
148                            try {
149                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
150                            }
151                            catch (Exception e) {
152                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
153                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
154                                    }
155    
156                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
157                            }
158    
159                            return (com.liferay.portal.model.Group)returnObj;
160                    }
161                    catch (com.liferay.portal.kernel.exception.SystemException se) {
162                            _log.error(se, se);
163    
164                            throw se;
165                    }
166            }
167    
168            public static com.liferay.portal.model.Group addGroup(
169                    HttpPrincipal httpPrincipal, java.lang.String name,
170                    java.lang.String description, int type, java.lang.String friendlyURL,
171                    boolean site, boolean active,
172                    com.liferay.portal.service.ServiceContext serviceContext)
173                    throws com.liferay.portal.kernel.exception.PortalException {
174                    try {
175                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
176                                            "addGroup", _addGroupParameterTypes3);
177    
178                            MethodHandler methodHandler = new MethodHandler(methodKey, name,
179                                            description, type, friendlyURL, site, active, serviceContext);
180    
181                            Object returnObj = null;
182    
183                            try {
184                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
185                            }
186                            catch (Exception e) {
187                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
188                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
189                                    }
190    
191                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
192                            }
193    
194                            return (com.liferay.portal.model.Group)returnObj;
195                    }
196                    catch (com.liferay.portal.kernel.exception.SystemException se) {
197                            _log.error(se, se);
198    
199                            throw se;
200                    }
201            }
202    
203            public static void addRoleGroups(HttpPrincipal httpPrincipal, long roleId,
204                    long[] groupIds)
205                    throws com.liferay.portal.kernel.exception.PortalException {
206                    try {
207                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
208                                            "addRoleGroups", _addRoleGroupsParameterTypes4);
209    
210                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
211                                            groupIds);
212    
213                            try {
214                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
215                            }
216                            catch (Exception e) {
217                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
218                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
219                                    }
220    
221                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
222                            }
223                    }
224                    catch (com.liferay.portal.kernel.exception.SystemException se) {
225                            _log.error(se, se);
226    
227                            throw se;
228                    }
229            }
230    
231            public static void checkRemoteStagingGroup(HttpPrincipal httpPrincipal,
232                    long groupId)
233                    throws com.liferay.portal.kernel.exception.PortalException {
234                    try {
235                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
236                                            "checkRemoteStagingGroup",
237                                            _checkRemoteStagingGroupParameterTypes5);
238    
239                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
240    
241                            try {
242                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
243                            }
244                            catch (Exception e) {
245                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
246                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
247                                    }
248    
249                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
250                            }
251                    }
252                    catch (com.liferay.portal.kernel.exception.SystemException se) {
253                            _log.error(se, se);
254    
255                            throw se;
256                    }
257            }
258    
259            public static void deleteGroup(HttpPrincipal httpPrincipal, long groupId)
260                    throws com.liferay.portal.kernel.exception.PortalException {
261                    try {
262                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
263                                            "deleteGroup", _deleteGroupParameterTypes6);
264    
265                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
266    
267                            try {
268                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
269                            }
270                            catch (Exception e) {
271                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
272                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
273                                    }
274    
275                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
276                            }
277                    }
278                    catch (com.liferay.portal.kernel.exception.SystemException se) {
279                            _log.error(se, se);
280    
281                            throw se;
282                    }
283            }
284    
285            public static void disableStaging(HttpPrincipal httpPrincipal, long groupId)
286                    throws com.liferay.portal.kernel.exception.PortalException {
287                    try {
288                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
289                                            "disableStaging", _disableStagingParameterTypes7);
290    
291                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
292    
293                            try {
294                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
295                            }
296                            catch (Exception e) {
297                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
298                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
299                                    }
300    
301                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
302                            }
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 void enableStaging(HttpPrincipal httpPrincipal, long groupId)
312                    throws com.liferay.portal.kernel.exception.PortalException {
313                    try {
314                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
315                                            "enableStaging", _enableStagingParameterTypes8);
316    
317                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
318    
319                            try {
320                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
321                            }
322                            catch (Exception e) {
323                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
324                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
325                                    }
326    
327                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
328                            }
329                    }
330                    catch (com.liferay.portal.kernel.exception.SystemException se) {
331                            _log.error(se, se);
332    
333                            throw se;
334                    }
335            }
336    
337            public static com.liferay.portal.model.Group getCompanyGroup(
338                    HttpPrincipal httpPrincipal, long companyId)
339                    throws com.liferay.portal.kernel.exception.PortalException {
340                    try {
341                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
342                                            "getCompanyGroup", _getCompanyGroupParameterTypes9);
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                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
357                            }
358    
359                            return (com.liferay.portal.model.Group)returnObj;
360                    }
361                    catch (com.liferay.portal.kernel.exception.SystemException se) {
362                            _log.error(se, se);
363    
364                            throw se;
365                    }
366            }
367    
368            public static com.liferay.portal.model.Group getGroup(
369                    HttpPrincipal httpPrincipal, long groupId)
370                    throws com.liferay.portal.kernel.exception.PortalException {
371                    try {
372                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
373                                            "getGroup", _getGroupParameterTypes10);
374    
375                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
376    
377                            Object returnObj = null;
378    
379                            try {
380                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
381                            }
382                            catch (Exception e) {
383                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
384                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
385                                    }
386    
387                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
388                            }
389    
390                            return (com.liferay.portal.model.Group)returnObj;
391                    }
392                    catch (com.liferay.portal.kernel.exception.SystemException se) {
393                            _log.error(se, se);
394    
395                            throw se;
396                    }
397            }
398    
399            public static com.liferay.portal.model.Group getGroup(
400                    HttpPrincipal httpPrincipal, long companyId, java.lang.String name)
401                    throws com.liferay.portal.kernel.exception.PortalException {
402                    try {
403                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
404                                            "getGroup", _getGroupParameterTypes11);
405    
406                            MethodHandler methodHandler = new MethodHandler(methodKey,
407                                            companyId, name);
408    
409                            Object returnObj = null;
410    
411                            try {
412                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
413                            }
414                            catch (Exception e) {
415                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
416                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
417                                    }
418    
419                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
420                            }
421    
422                            return (com.liferay.portal.model.Group)returnObj;
423                    }
424                    catch (com.liferay.portal.kernel.exception.SystemException se) {
425                            _log.error(se, se);
426    
427                            throw se;
428                    }
429            }
430    
431            public static java.util.List<com.liferay.portal.model.Group> getGroups(
432                    HttpPrincipal httpPrincipal, long companyId, long parentGroupId,
433                    boolean site)
434                    throws com.liferay.portal.kernel.exception.PortalException {
435                    try {
436                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
437                                            "getGroups", _getGroupsParameterTypes12);
438    
439                            MethodHandler methodHandler = new MethodHandler(methodKey,
440                                            companyId, parentGroupId, site);
441    
442                            Object returnObj = null;
443    
444                            try {
445                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
446                            }
447                            catch (Exception e) {
448                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
449                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
450                                    }
451    
452                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
453                            }
454    
455                            return (java.util.List<com.liferay.portal.model.Group>)returnObj;
456                    }
457                    catch (com.liferay.portal.kernel.exception.SystemException se) {
458                            _log.error(se, se);
459    
460                            throw se;
461                    }
462            }
463    
464            public static java.util.List<com.liferay.portal.model.Group> getManageableSiteGroups(
465                    HttpPrincipal httpPrincipal,
466                    java.util.Collection<com.liferay.portal.model.Portlet> portlets, int max)
467                    throws com.liferay.portal.kernel.exception.PortalException {
468                    try {
469                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
470                                            "getManageableSiteGroups",
471                                            _getManageableSiteGroupsParameterTypes13);
472    
473                            MethodHandler methodHandler = new MethodHandler(methodKey,
474                                            portlets, max);
475    
476                            Object returnObj = null;
477    
478                            try {
479                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
480                            }
481                            catch (Exception e) {
482                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
483                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
484                                    }
485    
486                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
487                            }
488    
489                            return (java.util.List<com.liferay.portal.model.Group>)returnObj;
490                    }
491                    catch (com.liferay.portal.kernel.exception.SystemException se) {
492                            _log.error(se, se);
493    
494                            throw se;
495                    }
496            }
497    
498            public static java.util.List<com.liferay.portal.model.Group> getManageableSites(
499                    HttpPrincipal httpPrincipal,
500                    java.util.Collection<com.liferay.portal.model.Portlet> portlets, int max)
501                    throws com.liferay.portal.kernel.exception.PortalException {
502                    try {
503                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
504                                            "getManageableSites", _getManageableSitesParameterTypes14);
505    
506                            MethodHandler methodHandler = new MethodHandler(methodKey,
507                                            portlets, max);
508    
509                            Object returnObj = null;
510    
511                            try {
512                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
513                            }
514                            catch (Exception e) {
515                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
516                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
517                                    }
518    
519                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
520                            }
521    
522                            return (java.util.List<com.liferay.portal.model.Group>)returnObj;
523                    }
524                    catch (com.liferay.portal.kernel.exception.SystemException se) {
525                            _log.error(se, se);
526    
527                            throw se;
528                    }
529            }
530    
531            public static java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(
532                    HttpPrincipal httpPrincipal,
533                    java.util.List<com.liferay.portal.model.Organization> organizations)
534                    throws com.liferay.portal.kernel.exception.PortalException {
535                    try {
536                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
537                                            "getOrganizationsGroups",
538                                            _getOrganizationsGroupsParameterTypes15);
539    
540                            MethodHandler methodHandler = new MethodHandler(methodKey,
541                                            organizations);
542    
543                            Object returnObj = null;
544    
545                            try {
546                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
547                            }
548                            catch (Exception e) {
549                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
550                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
551                                    }
552    
553                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
554                            }
555    
556                            return (java.util.List<com.liferay.portal.model.Group>)returnObj;
557                    }
558                    catch (com.liferay.portal.kernel.exception.SystemException se) {
559                            _log.error(se, se);
560    
561                            throw se;
562                    }
563            }
564    
565            public static com.liferay.portal.model.Group getUserGroup(
566                    HttpPrincipal httpPrincipal, long companyId, long userId)
567                    throws com.liferay.portal.kernel.exception.PortalException {
568                    try {
569                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
570                                            "getUserGroup", _getUserGroupParameterTypes16);
571    
572                            MethodHandler methodHandler = new MethodHandler(methodKey,
573                                            companyId, userId);
574    
575                            Object returnObj = null;
576    
577                            try {
578                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
579                            }
580                            catch (Exception e) {
581                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
582                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
583                                    }
584    
585                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
586                            }
587    
588                            return (com.liferay.portal.model.Group)returnObj;
589                    }
590                    catch (com.liferay.portal.kernel.exception.SystemException se) {
591                            _log.error(se, se);
592    
593                            throw se;
594                    }
595            }
596    
597            public static java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(
598                    HttpPrincipal httpPrincipal,
599                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
600                    throws com.liferay.portal.kernel.exception.PortalException {
601                    try {
602                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
603                                            "getUserGroupsGroups", _getUserGroupsGroupsParameterTypes17);
604    
605                            MethodHandler methodHandler = new MethodHandler(methodKey,
606                                            userGroups);
607    
608                            Object returnObj = null;
609    
610                            try {
611                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
612                            }
613                            catch (Exception e) {
614                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
615                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
616                                    }
617    
618                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
619                            }
620    
621                            return (java.util.List<com.liferay.portal.model.Group>)returnObj;
622                    }
623                    catch (com.liferay.portal.kernel.exception.SystemException se) {
624                            _log.error(se, se);
625    
626                            throw se;
627                    }
628            }
629    
630            public static java.util.List<com.liferay.portal.model.Group> getUserOrganizationsGroups(
631                    HttpPrincipal httpPrincipal, long userId, int start, int end)
632                    throws com.liferay.portal.kernel.exception.PortalException {
633                    try {
634                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
635                                            "getUserOrganizationsGroups",
636                                            _getUserOrganizationsGroupsParameterTypes18);
637    
638                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
639                                            start, end);
640    
641                            Object returnObj = null;
642    
643                            try {
644                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
645                            }
646                            catch (Exception e) {
647                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
648                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
649                                    }
650    
651                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
652                            }
653    
654                            return (java.util.List<com.liferay.portal.model.Group>)returnObj;
655                    }
656                    catch (com.liferay.portal.kernel.exception.SystemException se) {
657                            _log.error(se, se);
658    
659                            throw se;
660                    }
661            }
662    
663            public static java.util.List<com.liferay.portal.model.Group> getUserPlaces(
664                    HttpPrincipal httpPrincipal, long userId,
665                    java.lang.String[] classNames, boolean includeControlPanel, int max)
666                    throws com.liferay.portal.kernel.exception.PortalException {
667                    try {
668                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
669                                            "getUserPlaces", _getUserPlacesParameterTypes19);
670    
671                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
672                                            classNames, includeControlPanel, max);
673    
674                            Object returnObj = null;
675    
676                            try {
677                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
678                            }
679                            catch (Exception e) {
680                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
681                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
682                                    }
683    
684                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
685                            }
686    
687                            return (java.util.List<com.liferay.portal.model.Group>)returnObj;
688                    }
689                    catch (com.liferay.portal.kernel.exception.SystemException se) {
690                            _log.error(se, se);
691    
692                            throw se;
693                    }
694            }
695    
696            public static java.util.List<com.liferay.portal.model.Group> getUserPlaces(
697                    HttpPrincipal httpPrincipal, long userId,
698                    java.lang.String[] classNames, int max)
699                    throws com.liferay.portal.kernel.exception.PortalException {
700                    try {
701                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
702                                            "getUserPlaces", _getUserPlacesParameterTypes20);
703    
704                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
705                                            classNames, max);
706    
707                            Object returnObj = null;
708    
709                            try {
710                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
711                            }
712                            catch (Exception e) {
713                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
714                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
715                                    }
716    
717                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
718                            }
719    
720                            return (java.util.List<com.liferay.portal.model.Group>)returnObj;
721                    }
722                    catch (com.liferay.portal.kernel.exception.SystemException se) {
723                            _log.error(se, se);
724    
725                            throw se;
726                    }
727            }
728    
729            public static java.util.List<com.liferay.portal.model.Group> getUserPlaces(
730                    HttpPrincipal httpPrincipal, java.lang.String[] classNames, int max)
731                    throws com.liferay.portal.kernel.exception.PortalException {
732                    try {
733                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
734                                            "getUserPlaces", _getUserPlacesParameterTypes21);
735    
736                            MethodHandler methodHandler = new MethodHandler(methodKey,
737                                            classNames, max);
738    
739                            Object returnObj = null;
740    
741                            try {
742                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
743                            }
744                            catch (Exception e) {
745                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
746                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
747                                    }
748    
749                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
750                            }
751    
752                            return (java.util.List<com.liferay.portal.model.Group>)returnObj;
753                    }
754                    catch (com.liferay.portal.kernel.exception.SystemException se) {
755                            _log.error(se, se);
756    
757                            throw se;
758                    }
759            }
760    
761            public static int getUserPlacesCount(HttpPrincipal httpPrincipal)
762                    throws com.liferay.portal.kernel.exception.PortalException {
763                    try {
764                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
765                                            "getUserPlacesCount", _getUserPlacesCountParameterTypes22);
766    
767                            MethodHandler methodHandler = new MethodHandler(methodKey);
768    
769                            Object returnObj = null;
770    
771                            try {
772                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
773                            }
774                            catch (Exception e) {
775                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
776                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
777                                    }
778    
779                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
780                            }
781    
782                            return ((Integer)returnObj).intValue();
783                    }
784                    catch (com.liferay.portal.kernel.exception.SystemException se) {
785                            _log.error(se, se);
786    
787                            throw se;
788                    }
789            }
790    
791            public static java.util.List<com.liferay.portal.model.Group> getUserSites(
792                    HttpPrincipal httpPrincipal)
793                    throws com.liferay.portal.kernel.exception.PortalException {
794                    try {
795                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
796                                            "getUserSites", _getUserSitesParameterTypes23);
797    
798                            MethodHandler methodHandler = new MethodHandler(methodKey);
799    
800                            Object returnObj = null;
801    
802                            try {
803                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
804                            }
805                            catch (Exception e) {
806                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
807                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
808                                    }
809    
810                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
811                            }
812    
813                            return (java.util.List<com.liferay.portal.model.Group>)returnObj;
814                    }
815                    catch (com.liferay.portal.kernel.exception.SystemException se) {
816                            _log.error(se, se);
817    
818                            throw se;
819                    }
820            }
821    
822            public static java.util.List<com.liferay.portal.model.Group> getUserSitesGroups(
823                    HttpPrincipal httpPrincipal)
824                    throws com.liferay.portal.kernel.exception.PortalException {
825                    try {
826                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
827                                            "getUserSitesGroups", _getUserSitesGroupsParameterTypes24);
828    
829                            MethodHandler methodHandler = new MethodHandler(methodKey);
830    
831                            Object returnObj = null;
832    
833                            try {
834                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
835                            }
836                            catch (Exception e) {
837                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
838                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
839                                    }
840    
841                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
842                            }
843    
844                            return (java.util.List<com.liferay.portal.model.Group>)returnObj;
845                    }
846                    catch (com.liferay.portal.kernel.exception.SystemException se) {
847                            _log.error(se, se);
848    
849                            throw se;
850                    }
851            }
852    
853            public static java.util.List<com.liferay.portal.model.Group> getUserSitesGroups(
854                    HttpPrincipal httpPrincipal, long userId,
855                    java.lang.String[] classNames, boolean includeControlPanel, int max)
856                    throws com.liferay.portal.kernel.exception.PortalException {
857                    try {
858                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
859                                            "getUserSitesGroups", _getUserSitesGroupsParameterTypes25);
860    
861                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
862                                            classNames, includeControlPanel, max);
863    
864                            Object returnObj = null;
865    
866                            try {
867                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
868                            }
869                            catch (Exception e) {
870                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
871                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
872                                    }
873    
874                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
875                            }
876    
877                            return (java.util.List<com.liferay.portal.model.Group>)returnObj;
878                    }
879                    catch (com.liferay.portal.kernel.exception.SystemException se) {
880                            _log.error(se, se);
881    
882                            throw se;
883                    }
884            }
885    
886            public static java.util.List<com.liferay.portal.model.Group> getUserSitesGroups(
887                    HttpPrincipal httpPrincipal, long userId,
888                    java.lang.String[] classNames, int max)
889                    throws com.liferay.portal.kernel.exception.PortalException {
890                    try {
891                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
892                                            "getUserSitesGroups", _getUserSitesGroupsParameterTypes26);
893    
894                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
895                                            classNames, max);
896    
897                            Object returnObj = null;
898    
899                            try {
900                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
901                            }
902                            catch (Exception e) {
903                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
904                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
905                                    }
906    
907                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
908                            }
909    
910                            return (java.util.List<com.liferay.portal.model.Group>)returnObj;
911                    }
912                    catch (com.liferay.portal.kernel.exception.SystemException se) {
913                            _log.error(se, se);
914    
915                            throw se;
916                    }
917            }
918    
919            public static java.util.List<com.liferay.portal.model.Group> getUserSitesGroups(
920                    HttpPrincipal httpPrincipal, java.lang.String[] classNames, int max)
921                    throws com.liferay.portal.kernel.exception.PortalException {
922                    try {
923                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
924                                            "getUserSitesGroups", _getUserSitesGroupsParameterTypes27);
925    
926                            MethodHandler methodHandler = new MethodHandler(methodKey,
927                                            classNames, max);
928    
929                            Object returnObj = null;
930    
931                            try {
932                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
933                            }
934                            catch (Exception e) {
935                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
936                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
937                                    }
938    
939                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
940                            }
941    
942                            return (java.util.List<com.liferay.portal.model.Group>)returnObj;
943                    }
944                    catch (com.liferay.portal.kernel.exception.SystemException se) {
945                            _log.error(se, se);
946    
947                            throw se;
948                    }
949            }
950    
951            public static int getUserSitesGroupsCount(HttpPrincipal httpPrincipal)
952                    throws com.liferay.portal.kernel.exception.PortalException {
953                    try {
954                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
955                                            "getUserSitesGroupsCount",
956                                            _getUserSitesGroupsCountParameterTypes28);
957    
958                            MethodHandler methodHandler = new MethodHandler(methodKey);
959    
960                            Object returnObj = null;
961    
962                            try {
963                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
964                            }
965                            catch (Exception e) {
966                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
967                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
968                                    }
969    
970                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
971                            }
972    
973                            return ((Integer)returnObj).intValue();
974                    }
975                    catch (com.liferay.portal.kernel.exception.SystemException se) {
976                            _log.error(se, se);
977    
978                            throw se;
979                    }
980            }
981    
982            public static boolean hasUserGroup(HttpPrincipal httpPrincipal,
983                    long userId, long groupId)
984                    throws com.liferay.portal.kernel.exception.PortalException {
985                    try {
986                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
987                                            "hasUserGroup", _hasUserGroupParameterTypes29);
988    
989                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
990                                            groupId);
991    
992                            Object returnObj = null;
993    
994                            try {
995                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
996                            }
997                            catch (Exception e) {
998                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
999                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1000                                    }
1001    
1002                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1003                            }
1004    
1005                            return ((Boolean)returnObj).booleanValue();
1006                    }
1007                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1008                            _log.error(se, se);
1009    
1010                            throw se;
1011                    }
1012            }
1013    
1014            public static java.util.List<com.liferay.portal.model.Group> search(
1015                    HttpPrincipal httpPrincipal, long companyId, long[] classNameIds,
1016                    java.lang.String keywords,
1017                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1018                    int start, int end,
1019                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> obc)
1020                    throws com.liferay.portal.kernel.exception.PortalException {
1021                    try {
1022                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1023                                            "search", _searchParameterTypes30);
1024    
1025                            MethodHandler methodHandler = new MethodHandler(methodKey,
1026                                            companyId, classNameIds, keywords, params, start, end, obc);
1027    
1028                            Object returnObj = null;
1029    
1030                            try {
1031                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1032                            }
1033                            catch (Exception e) {
1034                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1035                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1036                                    }
1037    
1038                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1039                            }
1040    
1041                            return (java.util.List<com.liferay.portal.model.Group>)returnObj;
1042                    }
1043                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1044                            _log.error(se, se);
1045    
1046                            throw se;
1047                    }
1048            }
1049    
1050            public static java.util.List<com.liferay.portal.model.Group> search(
1051                    HttpPrincipal httpPrincipal, long companyId, long[] classNameIds,
1052                    java.lang.String name, java.lang.String description,
1053                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1054                    boolean andOperator, int start, int end,
1055                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> obc)
1056                    throws com.liferay.portal.kernel.exception.PortalException {
1057                    try {
1058                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1059                                            "search", _searchParameterTypes31);
1060    
1061                            MethodHandler methodHandler = new MethodHandler(methodKey,
1062                                            companyId, classNameIds, name, description, params,
1063                                            andOperator, start, end, obc);
1064    
1065                            Object returnObj = null;
1066    
1067                            try {
1068                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1069                            }
1070                            catch (Exception e) {
1071                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1072                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1073                                    }
1074    
1075                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1076                            }
1077    
1078                            return (java.util.List<com.liferay.portal.model.Group>)returnObj;
1079                    }
1080                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1081                            _log.error(se, se);
1082    
1083                            throw se;
1084                    }
1085            }
1086    
1087            public static java.util.List<com.liferay.portal.model.Group> search(
1088                    HttpPrincipal httpPrincipal, long companyId, java.lang.String name,
1089                    java.lang.String description, java.lang.String[] params, int start,
1090                    int end) throws com.liferay.portal.kernel.exception.PortalException {
1091                    try {
1092                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1093                                            "search", _searchParameterTypes32);
1094    
1095                            MethodHandler methodHandler = new MethodHandler(methodKey,
1096                                            companyId, name, description, params, start, end);
1097    
1098                            Object returnObj = null;
1099    
1100                            try {
1101                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1102                            }
1103                            catch (Exception e) {
1104                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1105                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1106                                    }
1107    
1108                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1109                            }
1110    
1111                            return (java.util.List<com.liferay.portal.model.Group>)returnObj;
1112                    }
1113                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1114                            _log.error(se, se);
1115    
1116                            throw se;
1117                    }
1118            }
1119    
1120            public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
1121                    java.lang.String name, java.lang.String description,
1122                    java.lang.String[] params) {
1123                    try {
1124                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1125                                            "searchCount", _searchCountParameterTypes33);
1126    
1127                            MethodHandler methodHandler = new MethodHandler(methodKey,
1128                                            companyId, name, description, params);
1129    
1130                            Object returnObj = null;
1131    
1132                            try {
1133                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1134                            }
1135                            catch (Exception e) {
1136                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1137                            }
1138    
1139                            return ((Integer)returnObj).intValue();
1140                    }
1141                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1142                            _log.error(se, se);
1143    
1144                            throw se;
1145                    }
1146            }
1147    
1148            public static void setRoleGroups(HttpPrincipal httpPrincipal, long roleId,
1149                    long[] groupIds)
1150                    throws com.liferay.portal.kernel.exception.PortalException {
1151                    try {
1152                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1153                                            "setRoleGroups", _setRoleGroupsParameterTypes34);
1154    
1155                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
1156                                            groupIds);
1157    
1158                            try {
1159                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1160                            }
1161                            catch (Exception e) {
1162                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1163                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1164                                    }
1165    
1166                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1167                            }
1168                    }
1169                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1170                            _log.error(se, se);
1171    
1172                            throw se;
1173                    }
1174            }
1175    
1176            public static void unsetRoleGroups(HttpPrincipal httpPrincipal,
1177                    long roleId, long[] groupIds)
1178                    throws com.liferay.portal.kernel.exception.PortalException {
1179                    try {
1180                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1181                                            "unsetRoleGroups", _unsetRoleGroupsParameterTypes35);
1182    
1183                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
1184                                            groupIds);
1185    
1186                            try {
1187                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1188                            }
1189                            catch (Exception e) {
1190                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1191                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1192                                    }
1193    
1194                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1195                            }
1196                    }
1197                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1198                            _log.error(se, se);
1199    
1200                            throw se;
1201                    }
1202            }
1203    
1204            public static com.liferay.portal.model.Group updateFriendlyURL(
1205                    HttpPrincipal httpPrincipal, long groupId, java.lang.String friendlyURL)
1206                    throws com.liferay.portal.kernel.exception.PortalException {
1207                    try {
1208                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1209                                            "updateFriendlyURL", _updateFriendlyURLParameterTypes36);
1210    
1211                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1212                                            friendlyURL);
1213    
1214                            Object returnObj = null;
1215    
1216                            try {
1217                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1218                            }
1219                            catch (Exception e) {
1220                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1221                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1222                                    }
1223    
1224                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1225                            }
1226    
1227                            return (com.liferay.portal.model.Group)returnObj;
1228                    }
1229                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1230                            _log.error(se, se);
1231    
1232                            throw se;
1233                    }
1234            }
1235    
1236            public static com.liferay.portal.model.Group updateGroup(
1237                    HttpPrincipal httpPrincipal, long groupId, long parentGroupId,
1238                    java.lang.String name, java.lang.String description, int type,
1239                    boolean manualMembership, int membershipRestriction,
1240                    java.lang.String friendlyURL, boolean inheritContent, boolean active,
1241                    com.liferay.portal.service.ServiceContext serviceContext)
1242                    throws com.liferay.portal.kernel.exception.PortalException {
1243                    try {
1244                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1245                                            "updateGroup", _updateGroupParameterTypes37);
1246    
1247                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1248                                            parentGroupId, name, description, type, manualMembership,
1249                                            membershipRestriction, friendlyURL, inheritContent, active,
1250                                            serviceContext);
1251    
1252                            Object returnObj = null;
1253    
1254                            try {
1255                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1256                            }
1257                            catch (Exception e) {
1258                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1259                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1260                                    }
1261    
1262                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1263                            }
1264    
1265                            return (com.liferay.portal.model.Group)returnObj;
1266                    }
1267                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1268                            _log.error(se, se);
1269    
1270                            throw se;
1271                    }
1272            }
1273    
1274            public static com.liferay.portal.model.Group updateGroup(
1275                    HttpPrincipal httpPrincipal, long groupId, java.lang.String typeSettings)
1276                    throws com.liferay.portal.kernel.exception.PortalException {
1277                    try {
1278                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1279                                            "updateGroup", _updateGroupParameterTypes38);
1280    
1281                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1282                                            typeSettings);
1283    
1284                            Object returnObj = null;
1285    
1286                            try {
1287                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1288                            }
1289                            catch (Exception e) {
1290                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1291                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1292                                    }
1293    
1294                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1295                            }
1296    
1297                            return (com.liferay.portal.model.Group)returnObj;
1298                    }
1299                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1300                            _log.error(se, se);
1301    
1302                            throw se;
1303                    }
1304            }
1305    
1306            public static void updateStagedPortlets(HttpPrincipal httpPrincipal,
1307                    long groupId,
1308                    java.util.Map<java.lang.String, java.lang.String> stagedPortletIds)
1309                    throws com.liferay.portal.kernel.exception.PortalException {
1310                    try {
1311                            MethodKey methodKey = new MethodKey(GroupServiceUtil.class,
1312                                            "updateStagedPortlets",
1313                                            _updateStagedPortletsParameterTypes39);
1314    
1315                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1316                                            stagedPortletIds);
1317    
1318                            try {
1319                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
1320                            }
1321                            catch (Exception e) {
1322                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1323                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
1324                                    }
1325    
1326                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
1327                            }
1328                    }
1329                    catch (com.liferay.portal.kernel.exception.SystemException se) {
1330                            _log.error(se, se);
1331    
1332                            throw se;
1333                    }
1334            }
1335    
1336            private static Log _log = LogFactoryUtil.getLog(GroupServiceHttp.class);
1337            private static final Class<?>[] _addGroupParameterTypes0 = new Class[] {
1338                            long.class, long.class, java.lang.String.class,
1339                            java.lang.String.class, int.class, boolean.class, int.class,
1340                            java.lang.String.class, boolean.class, boolean.class, boolean.class,
1341                            com.liferay.portal.service.ServiceContext.class
1342                    };
1343            private static final Class<?>[] _addGroupParameterTypes1 = new Class[] {
1344                            long.class, long.class, java.lang.String.class,
1345                            java.lang.String.class, int.class, boolean.class, int.class,
1346                            java.lang.String.class, boolean.class, boolean.class,
1347                            com.liferay.portal.service.ServiceContext.class
1348                    };
1349            private static final Class<?>[] _addGroupParameterTypes2 = new Class[] {
1350                            long.class, java.lang.String.class, java.lang.String.class,
1351                            int.class, java.lang.String.class, boolean.class, boolean.class,
1352                            com.liferay.portal.service.ServiceContext.class
1353                    };
1354            private static final Class<?>[] _addGroupParameterTypes3 = new Class[] {
1355                            java.lang.String.class, java.lang.String.class, int.class,
1356                            java.lang.String.class, boolean.class, boolean.class,
1357                            com.liferay.portal.service.ServiceContext.class
1358                    };
1359            private static final Class<?>[] _addRoleGroupsParameterTypes4 = new Class[] {
1360                            long.class, long[].class
1361                    };
1362            private static final Class<?>[] _checkRemoteStagingGroupParameterTypes5 = new Class[] {
1363                            long.class
1364                    };
1365            private static final Class<?>[] _deleteGroupParameterTypes6 = new Class[] {
1366                            long.class
1367                    };
1368            private static final Class<?>[] _disableStagingParameterTypes7 = new Class[] {
1369                            long.class
1370                    };
1371            private static final Class<?>[] _enableStagingParameterTypes8 = new Class[] {
1372                            long.class
1373                    };
1374            private static final Class<?>[] _getCompanyGroupParameterTypes9 = new Class[] {
1375                            long.class
1376                    };
1377            private static final Class<?>[] _getGroupParameterTypes10 = new Class[] {
1378                            long.class
1379                    };
1380            private static final Class<?>[] _getGroupParameterTypes11 = new Class[] {
1381                            long.class, java.lang.String.class
1382                    };
1383            private static final Class<?>[] _getGroupsParameterTypes12 = new Class[] {
1384                            long.class, long.class, boolean.class
1385                    };
1386            private static final Class<?>[] _getManageableSiteGroupsParameterTypes13 = new Class[] {
1387                            java.util.Collection.class, int.class
1388                    };
1389            private static final Class<?>[] _getManageableSitesParameterTypes14 = new Class[] {
1390                            java.util.Collection.class, int.class
1391                    };
1392            private static final Class<?>[] _getOrganizationsGroupsParameterTypes15 = new Class[] {
1393                            java.util.List.class
1394                    };
1395            private static final Class<?>[] _getUserGroupParameterTypes16 = new Class[] {
1396                            long.class, long.class
1397                    };
1398            private static final Class<?>[] _getUserGroupsGroupsParameterTypes17 = new Class[] {
1399                            java.util.List.class
1400                    };
1401            private static final Class<?>[] _getUserOrganizationsGroupsParameterTypes18 = new Class[] {
1402                            long.class, int.class, int.class
1403                    };
1404            private static final Class<?>[] _getUserPlacesParameterTypes19 = new Class[] {
1405                            long.class, java.lang.String[].class, boolean.class, int.class
1406                    };
1407            private static final Class<?>[] _getUserPlacesParameterTypes20 = new Class[] {
1408                            long.class, java.lang.String[].class, int.class
1409                    };
1410            private static final Class<?>[] _getUserPlacesParameterTypes21 = new Class[] {
1411                            java.lang.String[].class, int.class
1412                    };
1413            private static final Class<?>[] _getUserPlacesCountParameterTypes22 = new Class[] {
1414                            
1415                    };
1416            private static final Class<?>[] _getUserSitesParameterTypes23 = new Class[] {  };
1417            private static final Class<?>[] _getUserSitesGroupsParameterTypes24 = new Class[] {
1418                            
1419                    };
1420            private static final Class<?>[] _getUserSitesGroupsParameterTypes25 = new Class[] {
1421                            long.class, java.lang.String[].class, boolean.class, int.class
1422                    };
1423            private static final Class<?>[] _getUserSitesGroupsParameterTypes26 = new Class[] {
1424                            long.class, java.lang.String[].class, int.class
1425                    };
1426            private static final Class<?>[] _getUserSitesGroupsParameterTypes27 = new Class[] {
1427                            java.lang.String[].class, int.class
1428                    };
1429            private static final Class<?>[] _getUserSitesGroupsCountParameterTypes28 = new Class[] {
1430                            
1431                    };
1432            private static final Class<?>[] _hasUserGroupParameterTypes29 = new Class[] {
1433                            long.class, long.class
1434                    };
1435            private static final Class<?>[] _searchParameterTypes30 = new Class[] {
1436                            long.class, long[].class, java.lang.String.class,
1437                            java.util.LinkedHashMap.class, int.class, int.class,
1438                            com.liferay.portal.kernel.util.OrderByComparator.class
1439                    };
1440            private static final Class<?>[] _searchParameterTypes31 = new Class[] {
1441                            long.class, long[].class, java.lang.String.class,
1442                            java.lang.String.class, java.util.LinkedHashMap.class, boolean.class,
1443                            int.class, int.class,
1444                            com.liferay.portal.kernel.util.OrderByComparator.class
1445                    };
1446            private static final Class<?>[] _searchParameterTypes32 = new Class[] {
1447                            long.class, java.lang.String.class, java.lang.String.class,
1448                            java.lang.String[].class, int.class, int.class
1449                    };
1450            private static final Class<?>[] _searchCountParameterTypes33 = new Class[] {
1451                            long.class, java.lang.String.class, java.lang.String.class,
1452                            java.lang.String[].class
1453                    };
1454            private static final Class<?>[] _setRoleGroupsParameterTypes34 = new Class[] {
1455                            long.class, long[].class
1456                    };
1457            private static final Class<?>[] _unsetRoleGroupsParameterTypes35 = new Class[] {
1458                            long.class, long[].class
1459                    };
1460            private static final Class<?>[] _updateFriendlyURLParameterTypes36 = new Class[] {
1461                            long.class, java.lang.String.class
1462                    };
1463            private static final Class<?>[] _updateGroupParameterTypes37 = new Class[] {
1464                            long.class, long.class, java.lang.String.class,
1465                            java.lang.String.class, int.class, boolean.class, int.class,
1466                            java.lang.String.class, boolean.class, boolean.class,
1467                            com.liferay.portal.service.ServiceContext.class
1468                    };
1469            private static final Class<?>[] _updateGroupParameterTypes38 = new Class[] {
1470                            long.class, java.lang.String.class
1471                    };
1472            private static final Class<?>[] _updateStagedPortletsParameterTypes39 = new Class[] {
1473                            long.class, java.util.Map.class
1474                    };
1475    }