001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.http;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.log.Log;
020    import com.liferay.portal.kernel.log.LogFactoryUtil;
021    import com.liferay.portal.kernel.security.auth.HttpPrincipal;
022    import com.liferay.portal.kernel.util.MethodHandler;
023    import com.liferay.portal.kernel.util.MethodKey;
024    import com.liferay.portal.service.RoleServiceUtil;
025    
026    /**
027     * Provides the HTTP utility for the
028     * {@link RoleServiceUtil} service utility. The
029     * static methods of this class calls the same methods of the service utility.
030     * However, the signatures are different because it requires an additional
031     * {@link HttpPrincipal} parameter.
032     *
033     * <p>
034     * The benefits of using the HTTP utility is that it is fast and allows for
035     * tunneling without the cost of serializing to text. The drawback is that it
036     * only works with Java.
037     * </p>
038     *
039     * <p>
040     * Set the property <b>tunnel.servlet.hosts.allowed</b> in portal.properties to
041     * configure security.
042     * </p>
043     *
044     * <p>
045     * The HTTP utility is only generated for remote services.
046     * </p>
047     *
048     * @author Brian Wing Shun Chan
049     * @see RoleServiceSoap
050     * @see HttpPrincipal
051     * @see RoleServiceUtil
052     * @generated
053     */
054    @ProviderType
055    public class RoleServiceHttp {
056            public static com.liferay.portal.model.Role addRole(
057                    HttpPrincipal httpPrincipal, java.lang.String className, long classPK,
058                    java.lang.String name,
059                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
060                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
061                    int type, java.lang.String subtype,
062                    com.liferay.portal.service.ServiceContext serviceContext)
063                    throws com.liferay.portal.kernel.exception.PortalException {
064                    try {
065                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
066                                            "addRole", _addRoleParameterTypes0);
067    
068                            MethodHandler methodHandler = new MethodHandler(methodKey,
069                                            className, classPK, name, titleMap, descriptionMap, type,
070                                            subtype, serviceContext);
071    
072                            Object returnObj = null;
073    
074                            try {
075                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
076                            }
077                            catch (Exception e) {
078                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
079                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
080                                    }
081    
082                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
083                            }
084    
085                            return (com.liferay.portal.model.Role)returnObj;
086                    }
087                    catch (com.liferay.portal.kernel.exception.SystemException se) {
088                            _log.error(se, se);
089    
090                            throw se;
091                    }
092            }
093    
094            public static void addUserRoles(HttpPrincipal httpPrincipal, long userId,
095                    long[] roleIds)
096                    throws com.liferay.portal.kernel.exception.PortalException {
097                    try {
098                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
099                                            "addUserRoles", _addUserRolesParameterTypes1);
100    
101                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
102                                            roleIds);
103    
104                            try {
105                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
106                            }
107                            catch (Exception e) {
108                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
109                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
110                                    }
111    
112                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
113                            }
114                    }
115                    catch (com.liferay.portal.kernel.exception.SystemException se) {
116                            _log.error(se, se);
117    
118                            throw se;
119                    }
120            }
121    
122            public static void deleteRole(HttpPrincipal httpPrincipal, long roleId)
123                    throws com.liferay.portal.kernel.exception.PortalException {
124                    try {
125                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
126                                            "deleteRole", _deleteRoleParameterTypes2);
127    
128                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId);
129    
130                            try {
131                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
132                            }
133                            catch (Exception e) {
134                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
135                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
136                                    }
137    
138                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
139                            }
140                    }
141                    catch (com.liferay.portal.kernel.exception.SystemException se) {
142                            _log.error(se, se);
143    
144                            throw se;
145                    }
146            }
147    
148            public static com.liferay.portal.model.Role fetchRole(
149                    HttpPrincipal httpPrincipal, long roleId)
150                    throws com.liferay.portal.kernel.exception.PortalException {
151                    try {
152                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
153                                            "fetchRole", _fetchRoleParameterTypes3);
154    
155                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId);
156    
157                            Object returnObj = null;
158    
159                            try {
160                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
161                            }
162                            catch (Exception e) {
163                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
164                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
165                                    }
166    
167                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
168                            }
169    
170                            return (com.liferay.portal.model.Role)returnObj;
171                    }
172                    catch (com.liferay.portal.kernel.exception.SystemException se) {
173                            _log.error(se, se);
174    
175                            throw se;
176                    }
177            }
178    
179            public static java.util.List<com.liferay.portal.model.Role> getGroupRoles(
180                    HttpPrincipal httpPrincipal, long groupId)
181                    throws com.liferay.portal.kernel.exception.PortalException {
182                    try {
183                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
184                                            "getGroupRoles", _getGroupRolesParameterTypes4);
185    
186                            MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
187    
188                            Object returnObj = null;
189    
190                            try {
191                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
192                            }
193                            catch (Exception e) {
194                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
195                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
196                                    }
197    
198                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
199                            }
200    
201                            return (java.util.List<com.liferay.portal.model.Role>)returnObj;
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 com.liferay.portal.model.Role getRole(
211                    HttpPrincipal httpPrincipal, long roleId)
212                    throws com.liferay.portal.kernel.exception.PortalException {
213                    try {
214                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
215                                            "getRole", _getRoleParameterTypes5);
216    
217                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId);
218    
219                            Object returnObj = null;
220    
221                            try {
222                                    returnObj = 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                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
230                            }
231    
232                            return (com.liferay.portal.model.Role)returnObj;
233                    }
234                    catch (com.liferay.portal.kernel.exception.SystemException se) {
235                            _log.error(se, se);
236    
237                            throw se;
238                    }
239            }
240    
241            public static com.liferay.portal.model.Role getRole(
242                    HttpPrincipal httpPrincipal, long companyId, java.lang.String name)
243                    throws com.liferay.portal.kernel.exception.PortalException {
244                    try {
245                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
246                                            "getRole", _getRoleParameterTypes6);
247    
248                            MethodHandler methodHandler = new MethodHandler(methodKey,
249                                            companyId, name);
250    
251                            Object returnObj = null;
252    
253                            try {
254                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
255                            }
256                            catch (Exception e) {
257                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
258                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
259                                    }
260    
261                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
262                            }
263    
264                            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 java.util.List<com.liferay.portal.model.Role> getRoles(
274                    HttpPrincipal httpPrincipal, int type, java.lang.String subtype)
275                    throws com.liferay.portal.kernel.exception.PortalException {
276                    try {
277                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
278                                            "getRoles", _getRolesParameterTypes7);
279    
280                            MethodHandler methodHandler = new MethodHandler(methodKey, type,
281                                            subtype);
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                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
294                            }
295    
296                            return (java.util.List<com.liferay.portal.model.Role>)returnObj;
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 java.util.List<com.liferay.portal.model.Role> getRoles(
306                    HttpPrincipal httpPrincipal, long companyId, int[] types)
307                    throws com.liferay.portal.kernel.exception.PortalException {
308                    try {
309                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
310                                            "getRoles", _getRolesParameterTypes8);
311    
312                            MethodHandler methodHandler = new MethodHandler(methodKey,
313                                            companyId, types);
314    
315                            Object returnObj = null;
316    
317                            try {
318                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
319                            }
320                            catch (Exception e) {
321                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
322                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
323                                    }
324    
325                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
326                            }
327    
328                            return (java.util.List<com.liferay.portal.model.Role>)returnObj;
329                    }
330                    catch (com.liferay.portal.kernel.exception.SystemException se) {
331                            _log.error(se, se);
332    
333                            throw se;
334                    }
335            }
336    
337            public static java.util.List<com.liferay.portal.model.Role> getUserGroupGroupRoles(
338                    HttpPrincipal httpPrincipal, long userId, long groupId)
339                    throws com.liferay.portal.kernel.exception.PortalException {
340                    try {
341                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
342                                            "getUserGroupGroupRoles",
343                                            _getUserGroupGroupRolesParameterTypes9);
344    
345                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
346                                            groupId);
347    
348                            Object returnObj = null;
349    
350                            try {
351                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
352                            }
353                            catch (Exception e) {
354                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
355                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
356                                    }
357    
358                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
359                            }
360    
361                            return (java.util.List<com.liferay.portal.model.Role>)returnObj;
362                    }
363                    catch (com.liferay.portal.kernel.exception.SystemException se) {
364                            _log.error(se, se);
365    
366                            throw se;
367                    }
368            }
369    
370            public static java.util.List<com.liferay.portal.model.Role> getUserGroupRoles(
371                    HttpPrincipal httpPrincipal, long userId, long groupId)
372                    throws com.liferay.portal.kernel.exception.PortalException {
373                    try {
374                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
375                                            "getUserGroupRoles", _getUserGroupRolesParameterTypes10);
376    
377                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
378                                            groupId);
379    
380                            Object returnObj = null;
381    
382                            try {
383                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
384                            }
385                            catch (Exception e) {
386                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
387                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
388                                    }
389    
390                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
391                            }
392    
393                            return (java.util.List<com.liferay.portal.model.Role>)returnObj;
394                    }
395                    catch (com.liferay.portal.kernel.exception.SystemException se) {
396                            _log.error(se, se);
397    
398                            throw se;
399                    }
400            }
401    
402            public static java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
403                    HttpPrincipal httpPrincipal, long userId,
404                    java.util.List<com.liferay.portal.model.Group> groups)
405                    throws com.liferay.portal.kernel.exception.PortalException {
406                    try {
407                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
408                                            "getUserRelatedRoles", _getUserRelatedRolesParameterTypes11);
409    
410                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
411                                            groups);
412    
413                            Object returnObj = null;
414    
415                            try {
416                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
417                            }
418                            catch (Exception e) {
419                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
420                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
421                                    }
422    
423                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
424                            }
425    
426                            return (java.util.List<com.liferay.portal.model.Role>)returnObj;
427                    }
428                    catch (com.liferay.portal.kernel.exception.SystemException se) {
429                            _log.error(se, se);
430    
431                            throw se;
432                    }
433            }
434    
435            public static java.util.List<com.liferay.portal.model.Role> getUserRoles(
436                    HttpPrincipal httpPrincipal, long userId)
437                    throws com.liferay.portal.kernel.exception.PortalException {
438                    try {
439                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
440                                            "getUserRoles", _getUserRolesParameterTypes12);
441    
442                            MethodHandler methodHandler = new MethodHandler(methodKey, userId);
443    
444                            Object returnObj = null;
445    
446                            try {
447                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
448                            }
449                            catch (Exception e) {
450                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
451                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
452                                    }
453    
454                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
455                            }
456    
457                            return (java.util.List<com.liferay.portal.model.Role>)returnObj;
458                    }
459                    catch (com.liferay.portal.kernel.exception.SystemException se) {
460                            _log.error(se, se);
461    
462                            throw se;
463                    }
464            }
465    
466            public static boolean hasUserRole(HttpPrincipal httpPrincipal, long userId,
467                    long companyId, java.lang.String name, boolean inherited)
468                    throws com.liferay.portal.kernel.exception.PortalException {
469                    try {
470                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
471                                            "hasUserRole", _hasUserRoleParameterTypes13);
472    
473                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
474                                            companyId, name, inherited);
475    
476                            Object returnObj = null;
477    
478                            try {
479                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
480                            }
481                            catch (Exception e) {
482                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
483                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
484                                    }
485    
486                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
487                            }
488    
489                            return ((Boolean)returnObj).booleanValue();
490                    }
491                    catch (com.liferay.portal.kernel.exception.SystemException se) {
492                            _log.error(se, se);
493    
494                            throw se;
495                    }
496            }
497    
498            public static boolean hasUserRoles(HttpPrincipal httpPrincipal,
499                    long userId, long companyId, java.lang.String[] names, boolean inherited)
500                    throws com.liferay.portal.kernel.exception.PortalException {
501                    try {
502                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
503                                            "hasUserRoles", _hasUserRolesParameterTypes14);
504    
505                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
506                                            companyId, names, inherited);
507    
508                            Object returnObj = null;
509    
510                            try {
511                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
512                            }
513                            catch (Exception e) {
514                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
515                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
516                                    }
517    
518                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
519                            }
520    
521                            return ((Boolean)returnObj).booleanValue();
522                    }
523                    catch (com.liferay.portal.kernel.exception.SystemException se) {
524                            _log.error(se, se);
525    
526                            throw se;
527                    }
528            }
529    
530            public static java.util.List<com.liferay.portal.model.Role> search(
531                    HttpPrincipal httpPrincipal, long companyId, java.lang.String keywords,
532                    java.lang.Integer[] types,
533                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
534                    int start, int end,
535                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Role> obc) {
536                    try {
537                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
538                                            "search", _searchParameterTypes15);
539    
540                            MethodHandler methodHandler = new MethodHandler(methodKey,
541                                            companyId, keywords, types, params, start, end, obc);
542    
543                            Object returnObj = null;
544    
545                            try {
546                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
547                            }
548                            catch (Exception e) {
549                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
550                            }
551    
552                            return (java.util.List<com.liferay.portal.model.Role>)returnObj;
553                    }
554                    catch (com.liferay.portal.kernel.exception.SystemException se) {
555                            _log.error(se, se);
556    
557                            throw se;
558                    }
559            }
560    
561            public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
562                    java.lang.String keywords, java.lang.Integer[] types,
563                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) {
564                    try {
565                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
566                                            "searchCount", _searchCountParameterTypes16);
567    
568                            MethodHandler methodHandler = new MethodHandler(methodKey,
569                                            companyId, keywords, types, params);
570    
571                            Object returnObj = null;
572    
573                            try {
574                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
575                            }
576                            catch (Exception e) {
577                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
578                            }
579    
580                            return ((Integer)returnObj).intValue();
581                    }
582                    catch (com.liferay.portal.kernel.exception.SystemException se) {
583                            _log.error(se, se);
584    
585                            throw se;
586                    }
587            }
588    
589            public static void unsetUserRoles(HttpPrincipal httpPrincipal, long userId,
590                    long[] roleIds)
591                    throws com.liferay.portal.kernel.exception.PortalException {
592                    try {
593                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
594                                            "unsetUserRoles", _unsetUserRolesParameterTypes17);
595    
596                            MethodHandler methodHandler = new MethodHandler(methodKey, userId,
597                                            roleIds);
598    
599                            try {
600                                    TunnelUtil.invoke(httpPrincipal, methodHandler);
601                            }
602                            catch (Exception e) {
603                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
604                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
605                                    }
606    
607                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
608                            }
609                    }
610                    catch (com.liferay.portal.kernel.exception.SystemException se) {
611                            _log.error(se, se);
612    
613                            throw se;
614                    }
615            }
616    
617            public static com.liferay.portal.model.Role updateRole(
618                    HttpPrincipal httpPrincipal, long roleId, java.lang.String name,
619                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
620                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
621                    java.lang.String subtype,
622                    com.liferay.portal.service.ServiceContext serviceContext)
623                    throws com.liferay.portal.kernel.exception.PortalException {
624                    try {
625                            MethodKey methodKey = new MethodKey(RoleServiceUtil.class,
626                                            "updateRole", _updateRoleParameterTypes18);
627    
628                            MethodHandler methodHandler = new MethodHandler(methodKey, roleId,
629                                            name, titleMap, descriptionMap, subtype, serviceContext);
630    
631                            Object returnObj = null;
632    
633                            try {
634                                    returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
635                            }
636                            catch (Exception e) {
637                                    if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
638                                            throw (com.liferay.portal.kernel.exception.PortalException)e;
639                                    }
640    
641                                    throw new com.liferay.portal.kernel.exception.SystemException(e);
642                            }
643    
644                            return (com.liferay.portal.model.Role)returnObj;
645                    }
646                    catch (com.liferay.portal.kernel.exception.SystemException se) {
647                            _log.error(se, se);
648    
649                            throw se;
650                    }
651            }
652    
653            private static Log _log = LogFactoryUtil.getLog(RoleServiceHttp.class);
654            private static final Class<?>[] _addRoleParameterTypes0 = new Class[] {
655                            java.lang.String.class, long.class, java.lang.String.class,
656                            java.util.Map.class, java.util.Map.class, int.class,
657                            java.lang.String.class,
658                            com.liferay.portal.service.ServiceContext.class
659                    };
660            private static final Class<?>[] _addUserRolesParameterTypes1 = new Class[] {
661                            long.class, long[].class
662                    };
663            private static final Class<?>[] _deleteRoleParameterTypes2 = new Class[] {
664                            long.class
665                    };
666            private static final Class<?>[] _fetchRoleParameterTypes3 = new Class[] {
667                            long.class
668                    };
669            private static final Class<?>[] _getGroupRolesParameterTypes4 = new Class[] {
670                            long.class
671                    };
672            private static final Class<?>[] _getRoleParameterTypes5 = new Class[] {
673                            long.class
674                    };
675            private static final Class<?>[] _getRoleParameterTypes6 = new Class[] {
676                            long.class, java.lang.String.class
677                    };
678            private static final Class<?>[] _getRolesParameterTypes7 = new Class[] {
679                            int.class, java.lang.String.class
680                    };
681            private static final Class<?>[] _getRolesParameterTypes8 = new Class[] {
682                            long.class, int[].class
683                    };
684            private static final Class<?>[] _getUserGroupGroupRolesParameterTypes9 = new Class[] {
685                            long.class, long.class
686                    };
687            private static final Class<?>[] _getUserGroupRolesParameterTypes10 = new Class[] {
688                            long.class, long.class
689                    };
690            private static final Class<?>[] _getUserRelatedRolesParameterTypes11 = new Class[] {
691                            long.class, java.util.List.class
692                    };
693            private static final Class<?>[] _getUserRolesParameterTypes12 = new Class[] {
694                            long.class
695                    };
696            private static final Class<?>[] _hasUserRoleParameterTypes13 = new Class[] {
697                            long.class, long.class, java.lang.String.class, boolean.class
698                    };
699            private static final Class<?>[] _hasUserRolesParameterTypes14 = new Class[] {
700                            long.class, long.class, java.lang.String[].class, boolean.class
701                    };
702            private static final Class<?>[] _searchParameterTypes15 = new Class[] {
703                            long.class, java.lang.String.class, java.lang.Integer[].class,
704                            java.util.LinkedHashMap.class, int.class, int.class,
705                            com.liferay.portal.kernel.util.OrderByComparator.class
706                    };
707            private static final Class<?>[] _searchCountParameterTypes16 = new Class[] {
708                            long.class, java.lang.String.class, java.lang.Integer[].class,
709                            java.util.LinkedHashMap.class
710                    };
711            private static final Class<?>[] _unsetUserRolesParameterTypes17 = new Class[] {
712                            long.class, long[].class
713                    };
714            private static final Class<?>[] _updateRoleParameterTypes18 = new Class[] {
715                            long.class, java.lang.String.class, java.util.Map.class,
716                            java.util.Map.class, java.lang.String.class,
717                            com.liferay.portal.service.ServiceContext.class
718                    };
719    }