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     * <p>
026     * This class provides a HTTP utility for the
027     * {@link com.liferay.portal.service.RoleServiceUtil} service utility. The
028     * static methods of this class calls the same methods of the service utility.
029     * However, the signatures are different because it requires an additional
030     * {@link com.liferay.portal.security.auth.HttpPrincipal} parameter.
031     * </p>
032     *
033     * <p>
034     * The benefits of using the HTTP utility is that it is fast and allows for
035     * tunneling without the cost of serializing to text. The drawback is that it
036     * only works with Java.
037     * </p>
038     *
039     * <p>
040     * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
041     * configure security.
042     * </p>
043     *
044     * <p>
045     * The HTTP utility is only generated for remote services.
046     * </p>
047     *
048     * @author    Brian Wing Shun Chan
049     * @see       RoleServiceSoap
050     * @see       com.liferay.portal.security.auth.HttpPrincipal
051     * @see       com.liferay.portal.service.RoleServiceUtil
052     * @generated
053     */
054    public class RoleServiceHttp {
055            public static com.liferay.portal.model.Role addRole(
056                    HttpPrincipal httpPrincipal, java.lang.String className, long classPK,
057                    java.lang.String name,
058                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
059                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
060                    int type, java.lang.String subType)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException {
063                    try {
064                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class.getName(),
065                                            "addRole", _addRoleParameterTypes0);
066    
067                            MethodHandler methodHandler = new MethodHandler(methodKey,
068                                            className, classPK, name, titleMap, descriptionMap, type,
069                                            subType);
070    
071                            Object returnObj = null;
072    
073                            try {
074                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
075                            }
076                            catch (Exception e) {
077                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
078                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
079                                    }
080    
081                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
082                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
083                                    }
084    
085                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
086                            }
087    
088                            return (com.liferay.portal.model.Role)returnObj;
089                    }
090                    catch (com.liferay.portal.kernel.exception.SystemException se) {
091                            _log.error(se, se);
092    
093                            throw se;
094                    }
095            }
096    
097            public static com.liferay.portal.model.Role addRole(
098                    HttpPrincipal httpPrincipal, java.lang.String name,
099                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
100                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
101                    int type)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException {
104                    try {
105                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class.getName(),
106                                            "addRole", _addRoleParameterTypes1);
107    
108                            MethodHandler methodHandler = new MethodHandler(methodKey, name,
109                                            titleMap, descriptionMap, type);
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.Role)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 void addUserRoles(HttpPrincipal httpPrincipal, long userId,
138                    long[] roleIds)
139                    throws com.liferay.portal.kernel.exception.PortalException,
140                            com.liferay.portal.kernel.exception.SystemException {
141                    try {
142                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class.getName(),
143                                            "addUserRoles", _addUserRolesParameterTypes2);
144    
145                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
146                                            roleIds);
147    
148                            try {
149                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
150                            }
151                            catch (Exception e) {
152                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
153                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
154                                    }
155    
156                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
157                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
158                                    }
159    
160                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
161                            }
162                    }
163                    catch (com.liferay.portal.kernel.exception.SystemException se) {
164                            _log.error(se, se);
165    
166                            throw se;
167                    }
168            }
169    
170            public static void deleteRole(HttpPrincipal httpPrincipal, long roleId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    try {
174                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class.getName(),
175                                            "deleteRole", _deleteRoleParameterTypes3);
176    
177                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId);
178    
179                            try {
180                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
181                            }
182                            catch (Exception e) {
183                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
184                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
185                                    }
186    
187                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
188                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
189                                    }
190    
191                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
192                            }
193                    }
194                    catch (com.liferay.portal.kernel.exception.SystemException se) {
195                            _log.error(se, se);
196    
197                            throw se;
198                    }
199            }
200    
201            public static java.util.List<com.liferay.portal.model.Role> getGroupRoles(
202                    HttpPrincipal httpPrincipal, long groupId)
203                    throws com.liferay.portal.kernel.exception.PortalException,
204                            com.liferay.portal.kernel.exception.SystemException {
205                    try {
206                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class.getName(),
207                                            "getGroupRoles", _getGroupRolesParameterTypes4);
208    
209                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
210    
211                            Object returnObj = null;
212    
213                            try {
214                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
215                            }
216                            catch (Exception e) {
217                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
218                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
219                                    }
220    
221                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
222                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
223                                    }
224    
225                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
226                            }
227    
228                            return (java.util.List<com.liferay.portal.model.Role>)returnObj;
229                    }
230                    catch (com.liferay.portal.kernel.exception.SystemException se) {
231                            _log.error(se, se);
232    
233                            throw se;
234                    }
235            }
236    
237            public static com.liferay.portal.model.Role getRole(
238                    HttpPrincipal httpPrincipal, long roleId)
239                    throws com.liferay.portal.kernel.exception.PortalException,
240                            com.liferay.portal.kernel.exception.SystemException {
241                    try {
242                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class.getName(),
243                                            "getRole", _getRoleParameterTypes5);
244    
245                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId);
246    
247                            Object returnObj = null;
248    
249                            try {
250                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
251                            }
252                            catch (Exception e) {
253                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
254                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
255                                    }
256    
257                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
258                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
259                                    }
260    
261                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
262                            }
263    
264                            return (com.liferay.portal.model.Role)returnObj;
265                    }
266                    catch (com.liferay.portal.kernel.exception.SystemException se) {
267                            _log.error(se, se);
268    
269                            throw se;
270                    }
271            }
272    
273            public static com.liferay.portal.model.Role getRole(
274                    HttpPrincipal httpPrincipal, long companyId, java.lang.String name)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException {
277                    try {
278                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class.getName(),
279                                            "getRole", _getRoleParameterTypes6);
280    
281                            MethodHandler methodHandler = new MethodHandler(methodKey,
282                                            companyId, name);
283    
284                            Object returnObj = null;
285    
286                            try {
287                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
288                            }
289                            catch (Exception e) {
290                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
291                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
292                                    }
293    
294                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
295                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
296                                    }
297    
298                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
299                            }
300    
301                            return (com.liferay.portal.model.Role)returnObj;
302                    }
303                    catch (com.liferay.portal.kernel.exception.SystemException se) {
304                            _log.error(se, se);
305    
306                            throw se;
307                    }
308            }
309    
310            public static java.util.List<com.liferay.portal.model.Role> getUserGroupGroupRoles(
311                    HttpPrincipal httpPrincipal, long userId, long groupId)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    try {
315                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class.getName(),
316                                            "getUserGroupGroupRoles",
317                                            _getUserGroupGroupRolesParameterTypes7);
318    
319                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
320                                            groupId);
321    
322                            Object returnObj = null;
323    
324                            try {
325                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
326                            }
327                            catch (Exception e) {
328                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
329                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
330                                    }
331    
332                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
333                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
334                                    }
335    
336                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
337                            }
338    
339                            return (java.util.List<com.liferay.portal.model.Role>)returnObj;
340                    }
341                    catch (com.liferay.portal.kernel.exception.SystemException se) {
342                            _log.error(se, se);
343    
344                            throw se;
345                    }
346            }
347    
348            public static java.util.List<com.liferay.portal.model.Role> getUserGroupRoles(
349                    HttpPrincipal httpPrincipal, long userId, long groupId)
350                    throws com.liferay.portal.kernel.exception.PortalException,
351                            com.liferay.portal.kernel.exception.SystemException {
352                    try {
353                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class.getName(),
354                                            "getUserGroupRoles", _getUserGroupRolesParameterTypes8);
355    
356                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
357                                            groupId);
358    
359                            Object returnObj = null;
360    
361                            try {
362                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
363                            }
364                            catch (Exception e) {
365                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
366                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
367                                    }
368    
369                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
370                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
371                                    }
372    
373                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
374                            }
375    
376                            return (java.util.List<com.liferay.portal.model.Role>)returnObj;
377                    }
378                    catch (com.liferay.portal.kernel.exception.SystemException se) {
379                            _log.error(se, se);
380    
381                            throw se;
382                    }
383            }
384    
385            public static java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
386                    HttpPrincipal httpPrincipal, long userId,
387                    java.util.List<com.liferay.portal.model.Group> groups)
388                    throws com.liferay.portal.kernel.exception.PortalException,
389                            com.liferay.portal.kernel.exception.SystemException {
390                    try {
391                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class.getName(),
392                                            "getUserRelatedRoles", _getUserRelatedRolesParameterTypes9);
393    
394                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
395                                            groups);
396    
397                            Object returnObj = null;
398    
399                            try {
400                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
401                            }
402                            catch (Exception e) {
403                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
404                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
405                                    }
406    
407                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
408                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
409                                    }
410    
411                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
412                            }
413    
414                            return (java.util.List<com.liferay.portal.model.Role>)returnObj;
415                    }
416                    catch (com.liferay.portal.kernel.exception.SystemException se) {
417                            _log.error(se, se);
418    
419                            throw se;
420                    }
421            }
422    
423            public static java.util.List<com.liferay.portal.model.Role> getUserRoles(
424                    HttpPrincipal httpPrincipal, long userId)
425                    throws com.liferay.portal.kernel.exception.PortalException,
426                            com.liferay.portal.kernel.exception.SystemException {
427                    try {
428                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class.getName(),
429                                            "getUserRoles", _getUserRolesParameterTypes10);
430    
431                            MethodHandler methodHandler = new MethodHandler(methodKey, userId);
432    
433                            Object returnObj = null;
434    
435                            try {
436                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
437                            }
438                            catch (Exception e) {
439                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
440                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
441                                    }
442    
443                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
444                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
445                                    }
446    
447                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
448                            }
449    
450                            return (java.util.List<com.liferay.portal.model.Role>)returnObj;
451                    }
452                    catch (com.liferay.portal.kernel.exception.SystemException se) {
453                            _log.error(se, se);
454    
455                            throw se;
456                    }
457            }
458    
459            public static boolean hasUserRole(HttpPrincipal httpPrincipal, long userId,
460                    long companyId, java.lang.String name, boolean inherited)
461                    throws com.liferay.portal.kernel.exception.PortalException,
462                            com.liferay.portal.kernel.exception.SystemException {
463                    try {
464                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class.getName(),
465                                            "hasUserRole", _hasUserRoleParameterTypes11);
466    
467                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
468                                            companyId, name, inherited);
469    
470                            Object returnObj = null;
471    
472                            try {
473                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
474                            }
475                            catch (Exception e) {
476                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
477                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
478                                    }
479    
480                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
481                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
482                                    }
483    
484                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
485                            }
486    
487                            return ((Boolean)returnObj).booleanValue();
488                    }
489                    catch (com.liferay.portal.kernel.exception.SystemException se) {
490                            _log.error(se, se);
491    
492                            throw se;
493                    }
494            }
495    
496            public static boolean hasUserRoles(HttpPrincipal httpPrincipal,
497                    long userId, long companyId, java.lang.String[] names, boolean inherited)
498                    throws com.liferay.portal.kernel.exception.PortalException,
499                            com.liferay.portal.kernel.exception.SystemException {
500                    try {
501                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class.getName(),
502                                            "hasUserRoles", _hasUserRolesParameterTypes12);
503    
504                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
505                                            companyId, names, inherited);
506    
507                            Object returnObj = null;
508    
509                            try {
510                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
511                            }
512                            catch (Exception e) {
513                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
514                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
515                                    }
516    
517                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
518                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
519                                    }
520    
521                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
522                            }
523    
524                            return ((Boolean)returnObj).booleanValue();
525                    }
526                    catch (com.liferay.portal.kernel.exception.SystemException se) {
527                            _log.error(se, se);
528    
529                            throw se;
530                    }
531            }
532    
533            public static void unsetUserRoles(HttpPrincipal httpPrincipal, long userId,
534                    long[] roleIds)
535                    throws com.liferay.portal.kernel.exception.PortalException,
536                            com.liferay.portal.kernel.exception.SystemException {
537                    try {
538                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class.getName(),
539                                            "unsetUserRoles", _unsetUserRolesParameterTypes13);
540    
541                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
542                                            roleIds);
543    
544                            try {
545                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
546                            }
547                            catch (Exception e) {
548                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
549                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
550                                    }
551    
552                                    if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
553                                            throw (com.liferay.portal.kernel.exception.SystemException)e;
554                                    }
555    
556                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
557                            }
558                    }
559                    catch (com.liferay.portal.kernel.exception.SystemException se) {
560                            _log.error(se, se);
561    
562                            throw se;
563                    }
564            }
565    
566            public static com.liferay.portal.model.Role updateRole(
567                    HttpPrincipal httpPrincipal, long roleId, java.lang.String name,
568                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
569                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
570                    java.lang.String subtype)
571                    throws com.liferay.portal.kernel.exception.PortalException,
572                            com.liferay.portal.kernel.exception.SystemException {
573                    try {
574                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class.getName(),
575                                            "updateRole", _updateRoleParameterTypes14);
576    
577                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
578                                            name, titleMap, descriptionMap, subtype);
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                    };
612            private static final Class<?>[] _addRoleParameterTypes1 = new Class[] {
613                            java.lang.String.class, java.util.Map.class, java.util.Map.class,
614                            int.class
615                    };
616            private static final Class<?>[] _addUserRolesParameterTypes2 = new Class[] {
617                            long.class, long[].class
618                    };
619            private static final Class<?>[] _deleteRoleParameterTypes3 = new Class[] {
620                            long.class
621                    };
622            private static final Class<?>[] _getGroupRolesParameterTypes4 = new Class[] {
623                            long.class
624                    };
625            private static final Class<?>[] _getRoleParameterTypes5 = new Class[] {
626                            long.class
627                    };
628            private static final Class<?>[] _getRoleParameterTypes6 = new Class[] {
629                            long.class, java.lang.String.class
630                    };
631            private static final Class<?>[] _getUserGroupGroupRolesParameterTypes7 = new Class[] {
632                            long.class, long.class
633                    };
634            private static final Class<?>[] _getUserGroupRolesParameterTypes8 = new Class[] {
635                            long.class, long.class
636                    };
637            private static final Class<?>[] _getUserRelatedRolesParameterTypes9 = new Class[] {
638                            long.class, java.util.List.class
639                    };
640            private static final Class<?>[] _getUserRolesParameterTypes10 = new Class[] {
641                            long.class
642                    };
643            private static final Class<?>[] _hasUserRoleParameterTypes11 = new Class[] {
644                            long.class, long.class, java.lang.String.class, boolean.class
645                    };
646            private static final Class<?>[] _hasUserRolesParameterTypes12 = new Class[] {
647                            long.class, long.class, java.lang.String[].class, boolean.class
648                    };
649            private static final Class<?>[] _unsetUserRolesParameterTypes13 = new Class[] {
650                            long.class, long[].class
651                    };
652            private static final Class<?>[] _updateRoleParameterTypes14 = new Class[] {
653                            long.class, java.lang.String.class, java.util.Map.class,
654                            java.util.Map.class, java.lang.String.class
655                    };
656    }