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