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