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