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