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.RoleServiceUtil;
023    
024    /**
025     * Provides the HTTP utility for the
026     * {@link com.liferay.portal.service.RoleServiceUtil} 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 RoleServiceSoap
048     * @see com.liferay.portal.security.auth.HttpPrincipal
049     * @see com.liferay.portal.service.RoleServiceUtil
050     * @generated
051     */
052    public class RoleServiceHttp {
053            public static com.liferay.portal.model.Role addRole(
054                    HttpPrincipal httpPrincipal, java.lang.String className, long classPK,
055                    java.lang.String name,
056                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
057                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
058                    int type, java.lang.String subtype,
059                    com.liferay.portal.service.ServiceContext serviceContext)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException {
062                    try {
063                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
064                                            "addRole", _addRoleParameterTypes0);
065    
066                            MethodHandler methodHandler = new MethodHandler(methodKey,
067                                            className, classPK, name, titleMap, descriptionMap, type,
068                                            subtype, 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.Role)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.Role addRole(
097                    HttpPrincipal httpPrincipal, java.lang.String name,
098                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
099                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
100                    int type)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException {
103                    try {
104                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
105                                            "addRole", _addRoleParameterTypes1);
106    
107                            MethodHandler methodHandler = new MethodHandler(methodKey, name,
108                                            titleMap, descriptionMap, type);
109    
110                            Object returnObj = null;
111    
112                            try {
113                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
114                            }
115                            catch (Exception e) {
116                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
117                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
118                                    }
119    
120                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
121                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
122                                    }
123    
124                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
125                            }
126    
127                            return (com.liferay.portal.model.Role)returnObj;
128                    }
129                    catch (com.liferay.portal.kernel.exception.SystemException se) {
130                            _log.error(se, se);
131    
132                            throw se;
133                    }
134            }
135    
136            public static void addUserRoles(HttpPrincipal httpPrincipal, long userId,
137                    long[] roleIds)
138                    throws com.liferay.portal.kernel.exception.PortalException,
139                            com.liferay.portal.kernel.exception.SystemException {
140                    try {
141                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
142                                            "addUserRoles", _addUserRolesParameterTypes2);
143    
144                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
145                                            roleIds);
146    
147                            try {
148                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
149                            }
150                            catch (Exception e) {
151                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
152                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
153                                    }
154    
155                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
156                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
157                                    }
158    
159                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
160                            }
161                    }
162                    catch (com.liferay.portal.kernel.exception.SystemException se) {
163                            _log.error(se, se);
164    
165                            throw se;
166                    }
167            }
168    
169            public static void deleteRole(HttpPrincipal httpPrincipal, long roleId)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    try {
173                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
174                                            "deleteRole", _deleteRoleParameterTypes3);
175    
176                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId);
177    
178                            try {
179                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
180                            }
181                            catch (Exception e) {
182                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
183                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
184                                    }
185    
186                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
187                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
188                                    }
189    
190                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
191                            }
192                    }
193                    catch (com.liferay.portal.kernel.exception.SystemException se) {
194                            _log.error(se, se);
195    
196                            throw se;
197                    }
198            }
199    
200            public static java.util.List<com.liferay.portal.model.Role> getGroupRoles(
201                    HttpPrincipal httpPrincipal, long groupId)
202                    throws com.liferay.portal.kernel.exception.PortalException,
203                            com.liferay.portal.kernel.exception.SystemException {
204                    try {
205                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
206                                            "getGroupRoles", _getGroupRolesParameterTypes4);
207    
208                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
209    
210                            Object returnObj = null;
211    
212                            try {
213                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
214                            }
215                            catch (Exception e) {
216                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
217                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
218                                    }
219    
220                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
221                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
222                                    }
223    
224                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
225                            }
226    
227                            return (java.util.List<com.liferay.portal.model.Role>)returnObj;
228                    }
229                    catch (com.liferay.portal.kernel.exception.SystemException se) {
230                            _log.error(se, se);
231    
232                            throw se;
233                    }
234            }
235    
236            public static com.liferay.portal.model.Role getRole(
237                    HttpPrincipal httpPrincipal, long roleId)
238                    throws com.liferay.portal.kernel.exception.PortalException,
239                            com.liferay.portal.kernel.exception.SystemException {
240                    try {
241                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
242                                            "getRole", _getRoleParameterTypes5);
243    
244                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId);
245    
246                            Object returnObj = null;
247    
248                            try {
249                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
250                            }
251                            catch (Exception e) {
252                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
253                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
254                                    }
255    
256                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
257                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
258                                    }
259    
260                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
261                            }
262    
263                            return (com.liferay.portal.model.Role)returnObj;
264                    }
265                    catch (com.liferay.portal.kernel.exception.SystemException se) {
266                            _log.error(se, se);
267    
268                            throw se;
269                    }
270            }
271    
272            public static com.liferay.portal.model.Role getRole(
273                    HttpPrincipal httpPrincipal, long companyId, java.lang.String name)
274                    throws com.liferay.portal.kernel.exception.PortalException,
275                            com.liferay.portal.kernel.exception.SystemException {
276                    try {
277                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
278                                            "getRole", _getRoleParameterTypes6);
279    
280                            MethodHandler methodHandler = new MethodHandler(methodKey,
281                                            companyId, name);
282    
283                            Object returnObj = null;
284    
285                            try {
286                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
287                            }
288                            catch (Exception e) {
289                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
290                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
291                                    }
292    
293                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
294                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
295                                    }
296    
297                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
298                            }
299    
300                            return (com.liferay.portal.model.Role)returnObj;
301                    }
302                    catch (com.liferay.portal.kernel.exception.SystemException se) {
303                            _log.error(se, se);
304    
305                            throw se;
306                    }
307            }
308    
309            public static java.util.List<com.liferay.portal.model.Role> getUserGroupGroupRoles(
310                    HttpPrincipal httpPrincipal, long userId, long groupId)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException {
313                    try {
314                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
315                                            "getUserGroupGroupRoles",
316                                            _getUserGroupGroupRolesParameterTypes7);
317    
318                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
319                                            groupId);
320    
321                            Object returnObj = null;
322    
323                            try {
324                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
325                            }
326                            catch (Exception e) {
327                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
328                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
329                                    }
330    
331                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
332                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
333                                    }
334    
335                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
336                            }
337    
338                            return (java.util.List<com.liferay.portal.model.Role>)returnObj;
339                    }
340                    catch (com.liferay.portal.kernel.exception.SystemException se) {
341                            _log.error(se, se);
342    
343                            throw se;
344                    }
345            }
346    
347            public static java.util.List<com.liferay.portal.model.Role> getUserGroupRoles(
348                    HttpPrincipal httpPrincipal, long userId, long groupId)
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException {
351                    try {
352                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
353                                            "getUserGroupRoles", _getUserGroupRolesParameterTypes8);
354    
355                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
356                                            groupId);
357    
358                            Object returnObj = null;
359    
360                            try {
361                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
362                            }
363                            catch (Exception e) {
364                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
365                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
366                                    }
367    
368                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
369                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
370                                    }
371    
372                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
373                            }
374    
375                            return (java.util.List<com.liferay.portal.model.Role>)returnObj;
376                    }
377                    catch (com.liferay.portal.kernel.exception.SystemException se) {
378                            _log.error(se, se);
379    
380                            throw se;
381                    }
382            }
383    
384            public static java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
385                    HttpPrincipal httpPrincipal, long userId,
386                    java.util.List<com.liferay.portal.model.Group> groups)
387                    throws com.liferay.portal.kernel.exception.PortalException,
388                            com.liferay.portal.kernel.exception.SystemException {
389                    try {
390                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
391                                            "getUserRelatedRoles", _getUserRelatedRolesParameterTypes9);
392    
393                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
394                                            groups);
395    
396                            Object returnObj = null;
397    
398                            try {
399                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
400                            }
401                            catch (Exception e) {
402                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
403                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
404                                    }
405    
406                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
407                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
408                                    }
409    
410                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
411                            }
412    
413                            return (java.util.List<com.liferay.portal.model.Role>)returnObj;
414                    }
415                    catch (com.liferay.portal.kernel.exception.SystemException se) {
416                            _log.error(se, se);
417    
418                            throw se;
419                    }
420            }
421    
422            public static java.util.List<com.liferay.portal.model.Role> getUserRoles(
423                    HttpPrincipal httpPrincipal, long userId)
424                    throws com.liferay.portal.kernel.exception.PortalException,
425                            com.liferay.portal.kernel.exception.SystemException {
426                    try {
427                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
428                                            "getUserRoles", _getUserRolesParameterTypes10);
429    
430                            MethodHandler methodHandler = new MethodHandler(methodKey, userId);
431    
432                            Object returnObj = null;
433    
434                            try {
435                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
436                            }
437                            catch (Exception e) {
438                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
439                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
440                                    }
441    
442                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
443                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
444                                    }
445    
446                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
447                            }
448    
449                            return (java.util.List<com.liferay.portal.model.Role>)returnObj;
450                    }
451                    catch (com.liferay.portal.kernel.exception.SystemException se) {
452                            _log.error(se, se);
453    
454                            throw se;
455                    }
456            }
457    
458            public static boolean hasUserRole(HttpPrincipal httpPrincipal, long userId,
459                    long companyId, java.lang.String name, boolean inherited)
460                    throws com.liferay.portal.kernel.exception.PortalException,
461                            com.liferay.portal.kernel.exception.SystemException {
462                    try {
463                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
464                                            "hasUserRole", _hasUserRoleParameterTypes11);
465    
466                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
467                                            companyId, name, inherited);
468    
469                            Object returnObj = null;
470    
471                            try {
472                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
473                            }
474                            catch (Exception e) {
475                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
476                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
477                                    }
478    
479                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
480                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
481                                    }
482    
483                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
484                            }
485    
486                            return ((Boolean)returnObj).booleanValue();
487                    }
488                    catch (com.liferay.portal.kernel.exception.SystemException se) {
489                            _log.error(se, se);
490    
491                            throw se;
492                    }
493            }
494    
495            public static boolean hasUserRoles(HttpPrincipal httpPrincipal,
496                    long userId, long companyId, java.lang.String[] names, boolean inherited)
497                    throws com.liferay.portal.kernel.exception.PortalException,
498                            com.liferay.portal.kernel.exception.SystemException {
499                    try {
500                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
501                                            "hasUserRoles", _hasUserRolesParameterTypes12);
502    
503                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
504                                            companyId, names, inherited);
505    
506                            Object returnObj = null;
507    
508                            try {
509                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
510                            }
511                            catch (Exception e) {
512                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
513                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
514                                    }
515    
516                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
517                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
518                                    }
519    
520                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
521                            }
522    
523                            return ((Boolean)returnObj).booleanValue();
524                    }
525                    catch (com.liferay.portal.kernel.exception.SystemException se) {
526                            _log.error(se, se);
527    
528                            throw se;
529                    }
530            }
531    
532            public static void unsetUserRoles(HttpPrincipal httpPrincipal, long userId,
533                    long[] roleIds)
534                    throws com.liferay.portal.kernel.exception.PortalException,
535                            com.liferay.portal.kernel.exception.SystemException {
536                    try {
537                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
538                                            "unsetUserRoles", _unsetUserRolesParameterTypes13);
539    
540                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
541                                            roleIds);
542    
543                            try {
544                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
545                            }
546                            catch (Exception e) {
547                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
548                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
549                                    }
550    
551                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
552                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
553                                    }
554    
555                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
556                            }
557                    }
558                    catch (com.liferay.portal.kernel.exception.SystemException se) {
559                            _log.error(se, se);
560    
561                            throw se;
562                    }
563            }
564    
565            public static com.liferay.portal.model.Role updateRole(
566                    HttpPrincipal httpPrincipal, long roleId, java.lang.String name,
567                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
568                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
569                    java.lang.String subtype,
570                    com.liferay.portal.service.ServiceContext serviceContext)
571                    throws com.liferay.portal.kernel.exception.PortalException,
572                            com.liferay.portal.kernel.exception.SystemException {
573                    try {
574                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
575                                            "updateRole", _updateRoleParameterTypes14);
576    
577                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
578                                            name, titleMap, descriptionMap, subtype, serviceContext);
579    
580                            Object returnObj = null;
581    
582                            try {
583                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
584                            }
585                            catch (Exception e) {
586                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
587                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
588                                    }
589    
590                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
591                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
592                                    }
593    
594                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
595                            }
596    
597                            return (com.liferay.portal.model.Role)returnObj;
598                    }
599                    catch (com.liferay.portal.kernel.exception.SystemException se) {
600                            _log.error(se, se);
601    
602                            throw se;
603                    }
604            }
605    
606            private static Log _log = LogFactoryUtil.getLog(RoleServiceHttp.class);
607            private static final Class<?>[] _addRoleParameterTypes0 = new Class[] {
608                            java.lang.String.class, long.class, java.lang.String.class,
609                            java.util.Map.class, java.util.Map.class, int.class,
610                            java.lang.String.class,
611                            com.liferay.portal.service.ServiceContext.class
612                    };
613            private static final Class<?>[] _addRoleParameterTypes1 = new Class[] {
614                            java.lang.String.class, java.util.Map.class, java.util.Map.class,
615                            int.class
616                    };
617            private static final Class<?>[] _addUserRolesParameterTypes2 = new Class[] {
618                            long.class, long[].class
619                    };
620            private static final Class<?>[] _deleteRoleParameterTypes3 = new Class[] {
621                            long.class
622                    };
623            private static final Class<?>[] _getGroupRolesParameterTypes4 = new Class[] {
624                            long.class
625                    };
626            private static final Class<?>[] _getRoleParameterTypes5 = new Class[] {
627                            long.class
628                    };
629            private static final Class<?>[] _getRoleParameterTypes6 = new Class[] {
630                            long.class, java.lang.String.class
631                    };
632            private static final Class<?>[] _getUserGroupGroupRolesParameterTypes7 = new Class[] {
633                            long.class, long.class
634                    };
635            private static final Class<?>[] _getUserGroupRolesParameterTypes8 = new Class[] {
636                            long.class, long.class
637                    };
638            private static final Class<?>[] _getUserRelatedRolesParameterTypes9 = new Class[] {
639                            long.class, java.util.List.class
640                    };
641            private static final Class<?>[] _getUserRolesParameterTypes10 = new Class[] {
642                            long.class
643                    };
644            private static final Class<?>[] _hasUserRoleParameterTypes11 = new Class[] {
645                            long.class, long.class, java.lang.String.class, boolean.class
646                    };
647            private static final Class<?>[] _hasUserRolesParameterTypes12 = new Class[] {
648                            long.class, long.class, java.lang.String[].class, boolean.class
649                    };
650            private static final Class<?>[] _unsetUserRolesParameterTypes13 = new Class[] {
651                            long.class, long[].class
652                    };
653            private static final Class<?>[] _updateRoleParameterTypes14 = new Class[] {
654                            long.class, java.lang.String.class, java.util.Map.class,
655                            java.util.Map.class, java.lang.String.class,
656                            com.liferay.portal.service.ServiceContext.class
657                    };
658    }