001
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.IntegerWrapper;
020 import com.liferay.portal.kernel.util.LongWrapper;
021 import com.liferay.portal.kernel.util.MethodWrapper;
022 import com.liferay.portal.kernel.util.NullWrapper;
023 import com.liferay.portal.security.auth.HttpPrincipal;
024 import com.liferay.portal.service.PermissionServiceUtil;
025
026
056 public class PermissionServiceHttp {
057 public static void checkPermission(HttpPrincipal httpPrincipal,
058 long groupId, long resourceId)
059 throws com.liferay.portal.kernel.exception.PortalException,
060 com.liferay.portal.kernel.exception.SystemException {
061 try {
062 Object paramObj0 = new LongWrapper(groupId);
063
064 Object paramObj1 = new LongWrapper(resourceId);
065
066 MethodWrapper methodWrapper = new MethodWrapper(PermissionServiceUtil.class.getName(),
067 "checkPermission", new Object[] { paramObj0, paramObj1 });
068
069 try {
070 TunnelUtil.invoke(httpPrincipal, methodWrapper);
071 }
072 catch (Exception e) {
073 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
074 throw (com.liferay.portal.kernel.exception.PortalException)e;
075 }
076
077 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
078 throw (com.liferay.portal.kernel.exception.SystemException)e;
079 }
080
081 throw new com.liferay.portal.kernel.exception.SystemException(e);
082 }
083 }
084 catch (com.liferay.portal.kernel.exception.SystemException se) {
085 _log.error(se, se);
086
087 throw se;
088 }
089 }
090
091 public static void checkPermission(HttpPrincipal httpPrincipal,
092 long groupId, java.lang.String name, long primKey)
093 throws com.liferay.portal.kernel.exception.PortalException,
094 com.liferay.portal.kernel.exception.SystemException {
095 try {
096 Object paramObj0 = new LongWrapper(groupId);
097
098 Object paramObj1 = name;
099
100 if (name == null) {
101 paramObj1 = new NullWrapper("java.lang.String");
102 }
103
104 Object paramObj2 = new LongWrapper(primKey);
105
106 MethodWrapper methodWrapper = new MethodWrapper(PermissionServiceUtil.class.getName(),
107 "checkPermission",
108 new Object[] { paramObj0, paramObj1, paramObj2 });
109
110 try {
111 TunnelUtil.invoke(httpPrincipal, methodWrapper);
112 }
113 catch (Exception e) {
114 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
115 throw (com.liferay.portal.kernel.exception.PortalException)e;
116 }
117
118 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
119 throw (com.liferay.portal.kernel.exception.SystemException)e;
120 }
121
122 throw new com.liferay.portal.kernel.exception.SystemException(e);
123 }
124 }
125 catch (com.liferay.portal.kernel.exception.SystemException se) {
126 _log.error(se, se);
127
128 throw se;
129 }
130 }
131
132 public static void checkPermission(HttpPrincipal httpPrincipal,
133 long groupId, java.lang.String name, java.lang.String primKey)
134 throws com.liferay.portal.kernel.exception.PortalException,
135 com.liferay.portal.kernel.exception.SystemException {
136 try {
137 Object paramObj0 = new LongWrapper(groupId);
138
139 Object paramObj1 = name;
140
141 if (name == null) {
142 paramObj1 = new NullWrapper("java.lang.String");
143 }
144
145 Object paramObj2 = primKey;
146
147 if (primKey == null) {
148 paramObj2 = new NullWrapper("java.lang.String");
149 }
150
151 MethodWrapper methodWrapper = new MethodWrapper(PermissionServiceUtil.class.getName(),
152 "checkPermission",
153 new Object[] { paramObj0, paramObj1, paramObj2 });
154
155 try {
156 TunnelUtil.invoke(httpPrincipal, methodWrapper);
157 }
158 catch (Exception e) {
159 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
160 throw (com.liferay.portal.kernel.exception.PortalException)e;
161 }
162
163 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
164 throw (com.liferay.portal.kernel.exception.SystemException)e;
165 }
166
167 throw new com.liferay.portal.kernel.exception.SystemException(e);
168 }
169 }
170 catch (com.liferay.portal.kernel.exception.SystemException se) {
171 _log.error(se, se);
172
173 throw se;
174 }
175 }
176
177 public static boolean hasGroupPermission(HttpPrincipal httpPrincipal,
178 long groupId, java.lang.String actionId, long resourceId)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 try {
181 Object paramObj0 = new LongWrapper(groupId);
182
183 Object paramObj1 = actionId;
184
185 if (actionId == null) {
186 paramObj1 = new NullWrapper("java.lang.String");
187 }
188
189 Object paramObj2 = new LongWrapper(resourceId);
190
191 MethodWrapper methodWrapper = new MethodWrapper(PermissionServiceUtil.class.getName(),
192 "hasGroupPermission",
193 new Object[] { paramObj0, paramObj1, paramObj2 });
194
195 Object returnObj = null;
196
197 try {
198 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
199 }
200 catch (Exception e) {
201 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
202 throw (com.liferay.portal.kernel.exception.SystemException)e;
203 }
204
205 throw new com.liferay.portal.kernel.exception.SystemException(e);
206 }
207
208 return ((Boolean)returnObj).booleanValue();
209 }
210 catch (com.liferay.portal.kernel.exception.SystemException se) {
211 _log.error(se, se);
212
213 throw se;
214 }
215 }
216
217 public static boolean hasUserPermission(HttpPrincipal httpPrincipal,
218 long userId, java.lang.String actionId, long resourceId)
219 throws com.liferay.portal.kernel.exception.SystemException {
220 try {
221 Object paramObj0 = new LongWrapper(userId);
222
223 Object paramObj1 = actionId;
224
225 if (actionId == null) {
226 paramObj1 = new NullWrapper("java.lang.String");
227 }
228
229 Object paramObj2 = new LongWrapper(resourceId);
230
231 MethodWrapper methodWrapper = new MethodWrapper(PermissionServiceUtil.class.getName(),
232 "hasUserPermission",
233 new Object[] { paramObj0, paramObj1, paramObj2 });
234
235 Object returnObj = null;
236
237 try {
238 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
239 }
240 catch (Exception e) {
241 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
242 throw (com.liferay.portal.kernel.exception.SystemException)e;
243 }
244
245 throw new com.liferay.portal.kernel.exception.SystemException(e);
246 }
247
248 return ((Boolean)returnObj).booleanValue();
249 }
250 catch (com.liferay.portal.kernel.exception.SystemException se) {
251 _log.error(se, se);
252
253 throw se;
254 }
255 }
256
257 public static boolean hasUserPermissions(HttpPrincipal httpPrincipal,
258 long userId, long groupId,
259 java.util.List<com.liferay.portal.model.Resource> resources,
260 java.lang.String actionId,
261 com.liferay.portal.security.permission.PermissionCheckerBag permissionCheckerBag)
262 throws com.liferay.portal.kernel.exception.PortalException,
263 com.liferay.portal.kernel.exception.SystemException {
264 try {
265 Object paramObj0 = new LongWrapper(userId);
266
267 Object paramObj1 = new LongWrapper(groupId);
268
269 Object paramObj2 = resources;
270
271 if (resources == null) {
272 paramObj2 = new NullWrapper("java.util.List");
273 }
274
275 Object paramObj3 = actionId;
276
277 if (actionId == null) {
278 paramObj3 = new NullWrapper("java.lang.String");
279 }
280
281 Object paramObj4 = permissionCheckerBag;
282
283 if (permissionCheckerBag == null) {
284 paramObj4 = new NullWrapper(
285 "com.liferay.portal.security.permission.PermissionCheckerBag");
286 }
287
288 MethodWrapper methodWrapper = new MethodWrapper(PermissionServiceUtil.class.getName(),
289 "hasUserPermissions",
290 new Object[] {
291 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
292 });
293
294 Object returnObj = null;
295
296 try {
297 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
298 }
299 catch (Exception e) {
300 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
301 throw (com.liferay.portal.kernel.exception.PortalException)e;
302 }
303
304 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
305 throw (com.liferay.portal.kernel.exception.SystemException)e;
306 }
307
308 throw new com.liferay.portal.kernel.exception.SystemException(e);
309 }
310
311 return ((Boolean)returnObj).booleanValue();
312 }
313 catch (com.liferay.portal.kernel.exception.SystemException se) {
314 _log.error(se, se);
315
316 throw se;
317 }
318 }
319
320 public static void setGroupPermissions(HttpPrincipal httpPrincipal,
321 long groupId, java.lang.String[] actionIds, long resourceId)
322 throws com.liferay.portal.kernel.exception.PortalException,
323 com.liferay.portal.kernel.exception.SystemException {
324 try {
325 Object paramObj0 = new LongWrapper(groupId);
326
327 Object paramObj1 = actionIds;
328
329 if (actionIds == null) {
330 paramObj1 = new NullWrapper("[Ljava.lang.String;");
331 }
332
333 Object paramObj2 = new LongWrapper(resourceId);
334
335 MethodWrapper methodWrapper = new MethodWrapper(PermissionServiceUtil.class.getName(),
336 "setGroupPermissions",
337 new Object[] { paramObj0, paramObj1, paramObj2 });
338
339 try {
340 TunnelUtil.invoke(httpPrincipal, methodWrapper);
341 }
342 catch (Exception e) {
343 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
344 throw (com.liferay.portal.kernel.exception.PortalException)e;
345 }
346
347 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
348 throw (com.liferay.portal.kernel.exception.SystemException)e;
349 }
350
351 throw new com.liferay.portal.kernel.exception.SystemException(e);
352 }
353 }
354 catch (com.liferay.portal.kernel.exception.SystemException se) {
355 _log.error(se, se);
356
357 throw se;
358 }
359 }
360
361 public static void setGroupPermissions(HttpPrincipal httpPrincipal,
362 java.lang.String className, java.lang.String classPK, long groupId,
363 java.lang.String[] actionIds, long resourceId)
364 throws com.liferay.portal.kernel.exception.PortalException,
365 com.liferay.portal.kernel.exception.SystemException {
366 try {
367 Object paramObj0 = className;
368
369 if (className == null) {
370 paramObj0 = new NullWrapper("java.lang.String");
371 }
372
373 Object paramObj1 = classPK;
374
375 if (classPK == null) {
376 paramObj1 = new NullWrapper("java.lang.String");
377 }
378
379 Object paramObj2 = new LongWrapper(groupId);
380
381 Object paramObj3 = actionIds;
382
383 if (actionIds == null) {
384 paramObj3 = new NullWrapper("[Ljava.lang.String;");
385 }
386
387 Object paramObj4 = new LongWrapper(resourceId);
388
389 MethodWrapper methodWrapper = new MethodWrapper(PermissionServiceUtil.class.getName(),
390 "setGroupPermissions",
391 new Object[] {
392 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
393 });
394
395 try {
396 TunnelUtil.invoke(httpPrincipal, methodWrapper);
397 }
398 catch (Exception e) {
399 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
400 throw (com.liferay.portal.kernel.exception.PortalException)e;
401 }
402
403 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
404 throw (com.liferay.portal.kernel.exception.SystemException)e;
405 }
406
407 throw new com.liferay.portal.kernel.exception.SystemException(e);
408 }
409 }
410 catch (com.liferay.portal.kernel.exception.SystemException se) {
411 _log.error(se, se);
412
413 throw se;
414 }
415 }
416
417 public static void setOrgGroupPermissions(HttpPrincipal httpPrincipal,
418 long organizationId, long groupId, java.lang.String[] actionIds,
419 long resourceId)
420 throws com.liferay.portal.kernel.exception.PortalException,
421 com.liferay.portal.kernel.exception.SystemException {
422 try {
423 Object paramObj0 = new LongWrapper(organizationId);
424
425 Object paramObj1 = new LongWrapper(groupId);
426
427 Object paramObj2 = actionIds;
428
429 if (actionIds == null) {
430 paramObj2 = new NullWrapper("[Ljava.lang.String;");
431 }
432
433 Object paramObj3 = new LongWrapper(resourceId);
434
435 MethodWrapper methodWrapper = new MethodWrapper(PermissionServiceUtil.class.getName(),
436 "setOrgGroupPermissions",
437 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
438
439 try {
440 TunnelUtil.invoke(httpPrincipal, methodWrapper);
441 }
442 catch (Exception e) {
443 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
444 throw (com.liferay.portal.kernel.exception.PortalException)e;
445 }
446
447 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
448 throw (com.liferay.portal.kernel.exception.SystemException)e;
449 }
450
451 throw new com.liferay.portal.kernel.exception.SystemException(e);
452 }
453 }
454 catch (com.liferay.portal.kernel.exception.SystemException se) {
455 _log.error(se, se);
456
457 throw se;
458 }
459 }
460
461 public static void setRolePermission(HttpPrincipal httpPrincipal,
462 long roleId, long groupId, java.lang.String name, int scope,
463 java.lang.String primKey, java.lang.String actionId)
464 throws com.liferay.portal.kernel.exception.PortalException,
465 com.liferay.portal.kernel.exception.SystemException {
466 try {
467 Object paramObj0 = new LongWrapper(roleId);
468
469 Object paramObj1 = new LongWrapper(groupId);
470
471 Object paramObj2 = name;
472
473 if (name == null) {
474 paramObj2 = new NullWrapper("java.lang.String");
475 }
476
477 Object paramObj3 = new IntegerWrapper(scope);
478
479 Object paramObj4 = primKey;
480
481 if (primKey == null) {
482 paramObj4 = new NullWrapper("java.lang.String");
483 }
484
485 Object paramObj5 = actionId;
486
487 if (actionId == null) {
488 paramObj5 = new NullWrapper("java.lang.String");
489 }
490
491 MethodWrapper methodWrapper = new MethodWrapper(PermissionServiceUtil.class.getName(),
492 "setRolePermission",
493 new Object[] {
494 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
495 paramObj5
496 });
497
498 try {
499 TunnelUtil.invoke(httpPrincipal, methodWrapper);
500 }
501 catch (Exception e) {
502 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
503 throw (com.liferay.portal.kernel.exception.PortalException)e;
504 }
505
506 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
507 throw (com.liferay.portal.kernel.exception.SystemException)e;
508 }
509
510 throw new com.liferay.portal.kernel.exception.SystemException(e);
511 }
512 }
513 catch (com.liferay.portal.kernel.exception.SystemException se) {
514 _log.error(se, se);
515
516 throw se;
517 }
518 }
519
520 public static void setRolePermissions(HttpPrincipal httpPrincipal,
521 long roleId, long groupId, java.lang.String[] actionIds, long resourceId)
522 throws com.liferay.portal.kernel.exception.PortalException,
523 com.liferay.portal.kernel.exception.SystemException {
524 try {
525 Object paramObj0 = new LongWrapper(roleId);
526
527 Object paramObj1 = new LongWrapper(groupId);
528
529 Object paramObj2 = actionIds;
530
531 if (actionIds == null) {
532 paramObj2 = new NullWrapper("[Ljava.lang.String;");
533 }
534
535 Object paramObj3 = new LongWrapper(resourceId);
536
537 MethodWrapper methodWrapper = new MethodWrapper(PermissionServiceUtil.class.getName(),
538 "setRolePermissions",
539 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
540
541 try {
542 TunnelUtil.invoke(httpPrincipal, methodWrapper);
543 }
544 catch (Exception e) {
545 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
546 throw (com.liferay.portal.kernel.exception.PortalException)e;
547 }
548
549 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
550 throw (com.liferay.portal.kernel.exception.SystemException)e;
551 }
552
553 throw new com.liferay.portal.kernel.exception.SystemException(e);
554 }
555 }
556 catch (com.liferay.portal.kernel.exception.SystemException se) {
557 _log.error(se, se);
558
559 throw se;
560 }
561 }
562
563 public static void setUserPermissions(HttpPrincipal httpPrincipal,
564 long userId, long groupId, java.lang.String[] actionIds, long resourceId)
565 throws com.liferay.portal.kernel.exception.PortalException,
566 com.liferay.portal.kernel.exception.SystemException {
567 try {
568 Object paramObj0 = new LongWrapper(userId);
569
570 Object paramObj1 = new LongWrapper(groupId);
571
572 Object paramObj2 = actionIds;
573
574 if (actionIds == null) {
575 paramObj2 = new NullWrapper("[Ljava.lang.String;");
576 }
577
578 Object paramObj3 = new LongWrapper(resourceId);
579
580 MethodWrapper methodWrapper = new MethodWrapper(PermissionServiceUtil.class.getName(),
581 "setUserPermissions",
582 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
583
584 try {
585 TunnelUtil.invoke(httpPrincipal, methodWrapper);
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 catch (com.liferay.portal.kernel.exception.SystemException se) {
600 _log.error(se, se);
601
602 throw se;
603 }
604 }
605
606 public static void unsetRolePermission(HttpPrincipal httpPrincipal,
607 long roleId, long groupId, long permissionId)
608 throws com.liferay.portal.kernel.exception.PortalException,
609 com.liferay.portal.kernel.exception.SystemException {
610 try {
611 Object paramObj0 = new LongWrapper(roleId);
612
613 Object paramObj1 = new LongWrapper(groupId);
614
615 Object paramObj2 = new LongWrapper(permissionId);
616
617 MethodWrapper methodWrapper = new MethodWrapper(PermissionServiceUtil.class.getName(),
618 "unsetRolePermission",
619 new Object[] { paramObj0, paramObj1, paramObj2 });
620
621 try {
622 TunnelUtil.invoke(httpPrincipal, methodWrapper);
623 }
624 catch (Exception e) {
625 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
626 throw (com.liferay.portal.kernel.exception.PortalException)e;
627 }
628
629 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
630 throw (com.liferay.portal.kernel.exception.SystemException)e;
631 }
632
633 throw new com.liferay.portal.kernel.exception.SystemException(e);
634 }
635 }
636 catch (com.liferay.portal.kernel.exception.SystemException se) {
637 _log.error(se, se);
638
639 throw se;
640 }
641 }
642
643 public static void unsetRolePermission(HttpPrincipal httpPrincipal,
644 long roleId, long groupId, java.lang.String name, int scope,
645 java.lang.String primKey, java.lang.String actionId)
646 throws com.liferay.portal.kernel.exception.PortalException,
647 com.liferay.portal.kernel.exception.SystemException {
648 try {
649 Object paramObj0 = new LongWrapper(roleId);
650
651 Object paramObj1 = new LongWrapper(groupId);
652
653 Object paramObj2 = name;
654
655 if (name == null) {
656 paramObj2 = new NullWrapper("java.lang.String");
657 }
658
659 Object paramObj3 = new IntegerWrapper(scope);
660
661 Object paramObj4 = primKey;
662
663 if (primKey == null) {
664 paramObj4 = new NullWrapper("java.lang.String");
665 }
666
667 Object paramObj5 = actionId;
668
669 if (actionId == null) {
670 paramObj5 = new NullWrapper("java.lang.String");
671 }
672
673 MethodWrapper methodWrapper = new MethodWrapper(PermissionServiceUtil.class.getName(),
674 "unsetRolePermission",
675 new Object[] {
676 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
677 paramObj5
678 });
679
680 try {
681 TunnelUtil.invoke(httpPrincipal, methodWrapper);
682 }
683 catch (Exception e) {
684 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
685 throw (com.liferay.portal.kernel.exception.PortalException)e;
686 }
687
688 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
689 throw (com.liferay.portal.kernel.exception.SystemException)e;
690 }
691
692 throw new com.liferay.portal.kernel.exception.SystemException(e);
693 }
694 }
695 catch (com.liferay.portal.kernel.exception.SystemException se) {
696 _log.error(se, se);
697
698 throw se;
699 }
700 }
701
702 public static void unsetRolePermissions(HttpPrincipal httpPrincipal,
703 long roleId, long groupId, java.lang.String name, int scope,
704 java.lang.String actionId)
705 throws com.liferay.portal.kernel.exception.PortalException,
706 com.liferay.portal.kernel.exception.SystemException {
707 try {
708 Object paramObj0 = new LongWrapper(roleId);
709
710 Object paramObj1 = new LongWrapper(groupId);
711
712 Object paramObj2 = name;
713
714 if (name == null) {
715 paramObj2 = new NullWrapper("java.lang.String");
716 }
717
718 Object paramObj3 = new IntegerWrapper(scope);
719
720 Object paramObj4 = actionId;
721
722 if (actionId == null) {
723 paramObj4 = new NullWrapper("java.lang.String");
724 }
725
726 MethodWrapper methodWrapper = new MethodWrapper(PermissionServiceUtil.class.getName(),
727 "unsetRolePermissions",
728 new Object[] {
729 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
730 });
731
732 try {
733 TunnelUtil.invoke(httpPrincipal, methodWrapper);
734 }
735 catch (Exception e) {
736 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
737 throw (com.liferay.portal.kernel.exception.PortalException)e;
738 }
739
740 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
741 throw (com.liferay.portal.kernel.exception.SystemException)e;
742 }
743
744 throw new com.liferay.portal.kernel.exception.SystemException(e);
745 }
746 }
747 catch (com.liferay.portal.kernel.exception.SystemException se) {
748 _log.error(se, se);
749
750 throw se;
751 }
752 }
753
754 public static void unsetUserPermissions(HttpPrincipal httpPrincipal,
755 long userId, long groupId, java.lang.String[] actionIds, long resourceId)
756 throws com.liferay.portal.kernel.exception.PortalException,
757 com.liferay.portal.kernel.exception.SystemException {
758 try {
759 Object paramObj0 = new LongWrapper(userId);
760
761 Object paramObj1 = new LongWrapper(groupId);
762
763 Object paramObj2 = actionIds;
764
765 if (actionIds == null) {
766 paramObj2 = new NullWrapper("[Ljava.lang.String;");
767 }
768
769 Object paramObj3 = new LongWrapper(resourceId);
770
771 MethodWrapper methodWrapper = new MethodWrapper(PermissionServiceUtil.class.getName(),
772 "unsetUserPermissions",
773 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
774
775 try {
776 TunnelUtil.invoke(httpPrincipal, methodWrapper);
777 }
778 catch (Exception e) {
779 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
780 throw (com.liferay.portal.kernel.exception.PortalException)e;
781 }
782
783 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
784 throw (com.liferay.portal.kernel.exception.SystemException)e;
785 }
786
787 throw new com.liferay.portal.kernel.exception.SystemException(e);
788 }
789 }
790 catch (com.liferay.portal.kernel.exception.SystemException se) {
791 _log.error(se, se);
792
793 throw se;
794 }
795 }
796
797 private static Log _log = LogFactoryUtil.getLog(PermissionServiceHttp.class);
798 }