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;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link PermissionLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       PermissionLocalService
024     * @generated
025     */
026    public class PermissionLocalServiceWrapper implements PermissionLocalService,
027            ServiceWrapper<PermissionLocalService> {
028            public PermissionLocalServiceWrapper(
029                    PermissionLocalService permissionLocalService) {
030                    _permissionLocalService = permissionLocalService;
031            }
032    
033            /**
034            * Adds the permission to the database. Also notifies the appropriate model listeners.
035            *
036            * @param permission the permission
037            * @return the permission that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portal.model.Permission addPermission(
041                    com.liferay.portal.model.Permission permission)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _permissionLocalService.addPermission(permission);
044            }
045    
046            /**
047            * Creates a new permission with the primary key. Does not add the permission to the database.
048            *
049            * @param permissionId the primary key for the new permission
050            * @return the new permission
051            */
052            public com.liferay.portal.model.Permission createPermission(
053                    long permissionId) {
054                    return _permissionLocalService.createPermission(permissionId);
055            }
056    
057            /**
058            * Deletes the permission with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param permissionId the primary key of the permission
061            * @return the permission that was removed
062            * @throws PortalException if a permission with the primary key could not be found
063            * @throws SystemException if a system exception occurred
064            */
065            public com.liferay.portal.model.Permission deletePermission(
066                    long permissionId)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    return _permissionLocalService.deletePermission(permissionId);
070            }
071    
072            /**
073            * Deletes the permission from the database. Also notifies the appropriate model listeners.
074            *
075            * @param permission the permission
076            * @return the permission that was removed
077            * @throws SystemException if a system exception occurred
078            */
079            public com.liferay.portal.model.Permission deletePermission(
080                    com.liferay.portal.model.Permission permission)
081                    throws com.liferay.portal.kernel.exception.SystemException {
082                    return _permissionLocalService.deletePermission(permission);
083            }
084    
085            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
086                    return _permissionLocalService.dynamicQuery();
087            }
088    
089            /**
090            * Performs a dynamic query on the database and returns the matching rows.
091            *
092            * @param dynamicQuery the dynamic query
093            * @return the matching rows
094            * @throws SystemException if a system exception occurred
095            */
096            @SuppressWarnings("rawtypes")
097            public java.util.List dynamicQuery(
098                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
099                    throws com.liferay.portal.kernel.exception.SystemException {
100                    return _permissionLocalService.dynamicQuery(dynamicQuery);
101            }
102    
103            /**
104            * Performs a dynamic query on the database and returns a range of the matching rows.
105            *
106            * <p>
107            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
108            * </p>
109            *
110            * @param dynamicQuery the dynamic query
111            * @param start the lower bound of the range of model instances
112            * @param end the upper bound of the range of model instances (not inclusive)
113            * @return the range of matching rows
114            * @throws SystemException if a system exception occurred
115            */
116            @SuppressWarnings("rawtypes")
117            public java.util.List dynamicQuery(
118                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
119                    int end) throws com.liferay.portal.kernel.exception.SystemException {
120                    return _permissionLocalService.dynamicQuery(dynamicQuery, start, end);
121            }
122    
123            /**
124            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
125            *
126            * <p>
127            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
128            * </p>
129            *
130            * @param dynamicQuery the dynamic query
131            * @param start the lower bound of the range of model instances
132            * @param end the upper bound of the range of model instances (not inclusive)
133            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
134            * @return the ordered range of matching rows
135            * @throws SystemException if a system exception occurred
136            */
137            @SuppressWarnings("rawtypes")
138            public java.util.List dynamicQuery(
139                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
140                    int end,
141                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142                    throws com.liferay.portal.kernel.exception.SystemException {
143                    return _permissionLocalService.dynamicQuery(dynamicQuery, start, end,
144                            orderByComparator);
145            }
146    
147            /**
148            * Returns the number of rows that match the dynamic query.
149            *
150            * @param dynamicQuery the dynamic query
151            * @return the number of rows that match the dynamic query
152            * @throws SystemException if a system exception occurred
153            */
154            public long dynamicQueryCount(
155                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
156                    throws com.liferay.portal.kernel.exception.SystemException {
157                    return _permissionLocalService.dynamicQueryCount(dynamicQuery);
158            }
159    
160            public com.liferay.portal.model.Permission fetchPermission(
161                    long permissionId)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return _permissionLocalService.fetchPermission(permissionId);
164            }
165    
166            /**
167            * Returns the permission with the primary key.
168            *
169            * @param permissionId the primary key of the permission
170            * @return the permission
171            * @throws PortalException if a permission with the primary key could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public com.liferay.portal.model.Permission getPermission(long permissionId)
175                    throws com.liferay.portal.kernel.exception.PortalException,
176                            com.liferay.portal.kernel.exception.SystemException {
177                    return _permissionLocalService.getPermission(permissionId);
178            }
179    
180            public com.liferay.portal.model.PersistedModel getPersistedModel(
181                    java.io.Serializable primaryKeyObj)
182                    throws com.liferay.portal.kernel.exception.PortalException,
183                            com.liferay.portal.kernel.exception.SystemException {
184                    return _permissionLocalService.getPersistedModel(primaryKeyObj);
185            }
186    
187            /**
188            * Returns a range of all the permissions.
189            *
190            * <p>
191            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
192            * </p>
193            *
194            * @param start the lower bound of the range of permissions
195            * @param end the upper bound of the range of permissions (not inclusive)
196            * @return the range of permissions
197            * @throws SystemException if a system exception occurred
198            */
199            public java.util.List<com.liferay.portal.model.Permission> getPermissions(
200                    int start, int end)
201                    throws com.liferay.portal.kernel.exception.SystemException {
202                    return _permissionLocalService.getPermissions(start, end);
203            }
204    
205            /**
206            * Returns the number of permissions.
207            *
208            * @return the number of permissions
209            * @throws SystemException if a system exception occurred
210            */
211            public int getPermissionsCount()
212                    throws com.liferay.portal.kernel.exception.SystemException {
213                    return _permissionLocalService.getPermissionsCount();
214            }
215    
216            /**
217            * Updates the permission in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
218            *
219            * @param permission the permission
220            * @return the permission that was updated
221            * @throws SystemException if a system exception occurred
222            */
223            public com.liferay.portal.model.Permission updatePermission(
224                    com.liferay.portal.model.Permission permission)
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return _permissionLocalService.updatePermission(permission);
227            }
228    
229            /**
230            * Updates the permission in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
231            *
232            * @param permission the permission
233            * @param merge whether to merge the permission with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
234            * @return the permission that was updated
235            * @throws SystemException if a system exception occurred
236            */
237            public com.liferay.portal.model.Permission updatePermission(
238                    com.liferay.portal.model.Permission permission, boolean merge)
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    return _permissionLocalService.updatePermission(permission, merge);
241            }
242    
243            /**
244            * @throws SystemException if a system exception occurred
245            */
246            public void addGroupPermission(long groupId, long permissionId)
247                    throws com.liferay.portal.kernel.exception.SystemException {
248                    _permissionLocalService.addGroupPermission(groupId, permissionId);
249            }
250    
251            /**
252            * @throws SystemException if a system exception occurred
253            */
254            public void addGroupPermission(long groupId,
255                    com.liferay.portal.model.Permission permission)
256                    throws com.liferay.portal.kernel.exception.SystemException {
257                    _permissionLocalService.addGroupPermission(groupId, permission);
258            }
259    
260            /**
261            * @throws SystemException if a system exception occurred
262            */
263            public void addGroupPermissions(long groupId, long[] permissionIds)
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    _permissionLocalService.addGroupPermissions(groupId, permissionIds);
266            }
267    
268            /**
269            * @throws SystemException if a system exception occurred
270            */
271            public void addGroupPermissions(long groupId,
272                    java.util.List<com.liferay.portal.model.Permission> Permissions)
273                    throws com.liferay.portal.kernel.exception.SystemException {
274                    _permissionLocalService.addGroupPermissions(groupId, Permissions);
275            }
276    
277            /**
278            * @throws SystemException if a system exception occurred
279            */
280            public void clearGroupPermissions(long groupId)
281                    throws com.liferay.portal.kernel.exception.SystemException {
282                    _permissionLocalService.clearGroupPermissions(groupId);
283            }
284    
285            /**
286            * @throws SystemException if a system exception occurred
287            */
288            public void deleteGroupPermission(long groupId, long permissionId)
289                    throws com.liferay.portal.kernel.exception.SystemException {
290                    _permissionLocalService.deleteGroupPermission(groupId, permissionId);
291            }
292    
293            /**
294            * @throws SystemException if a system exception occurred
295            */
296            public void deleteGroupPermission(long groupId,
297                    com.liferay.portal.model.Permission permission)
298                    throws com.liferay.portal.kernel.exception.SystemException {
299                    _permissionLocalService.deleteGroupPermission(groupId, permission);
300            }
301    
302            /**
303            * @throws SystemException if a system exception occurred
304            */
305            public void deleteGroupPermissions(long groupId, long[] permissionIds)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    _permissionLocalService.deleteGroupPermissions(groupId, permissionIds);
308            }
309    
310            /**
311            * @throws SystemException if a system exception occurred
312            */
313            public void deleteGroupPermissions(long groupId,
314                    java.util.List<com.liferay.portal.model.Permission> Permissions)
315                    throws com.liferay.portal.kernel.exception.SystemException {
316                    _permissionLocalService.deleteGroupPermissions(groupId, Permissions);
317            }
318    
319            /**
320            * @throws SystemException if a system exception occurred
321            */
322            public java.util.List<com.liferay.portal.model.Permission> getGroupPermissions(
323                    long groupId)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return _permissionLocalService.getGroupPermissions(groupId);
326            }
327    
328            /**
329            * @throws SystemException if a system exception occurred
330            */
331            public java.util.List<com.liferay.portal.model.Permission> getGroupPermissions(
332                    long groupId, int start, int end)
333                    throws com.liferay.portal.kernel.exception.SystemException {
334                    return _permissionLocalService.getGroupPermissions(groupId, start, end);
335            }
336    
337            /**
338            * @throws SystemException if a system exception occurred
339            */
340            public java.util.List<com.liferay.portal.model.Permission> getGroupPermissions(
341                    long groupId, int start, int end,
342                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return _permissionLocalService.getGroupPermissions(groupId, start, end,
345                            orderByComparator);
346            }
347    
348            /**
349            * @throws SystemException if a system exception occurred
350            */
351            public int getGroupPermissionsCount(long groupId)
352                    throws com.liferay.portal.kernel.exception.SystemException {
353                    return _permissionLocalService.getGroupPermissionsCount(groupId);
354            }
355    
356            /**
357            * @throws SystemException if a system exception occurred
358            */
359            public boolean hasGroupPermission(long groupId, long permissionId)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return _permissionLocalService.hasGroupPermission(groupId, permissionId);
362            }
363    
364            /**
365            * @throws SystemException if a system exception occurred
366            */
367            public boolean hasGroupPermissions(long groupId)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return _permissionLocalService.hasGroupPermissions(groupId);
370            }
371    
372            /**
373            * @throws SystemException if a system exception occurred
374            */
375            public void setGroupPermissions(long groupId, long[] permissionIds)
376                    throws com.liferay.portal.kernel.exception.SystemException {
377                    _permissionLocalService.setGroupPermissions(groupId, permissionIds);
378            }
379    
380            /**
381            * @throws SystemException if a system exception occurred
382            */
383            public void addRolePermission(long roleId, long permissionId)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    _permissionLocalService.addRolePermission(roleId, permissionId);
386            }
387    
388            /**
389            * @throws SystemException if a system exception occurred
390            */
391            public void addRolePermission(long roleId,
392                    com.liferay.portal.model.Permission permission)
393                    throws com.liferay.portal.kernel.exception.SystemException {
394                    _permissionLocalService.addRolePermission(roleId, permission);
395            }
396    
397            /**
398            * @throws SystemException if a system exception occurred
399            */
400            public void addRolePermissions(long roleId, long[] permissionIds)
401                    throws com.liferay.portal.kernel.exception.SystemException {
402                    _permissionLocalService.addRolePermissions(roleId, permissionIds);
403            }
404    
405            /**
406            * @throws SystemException if a system exception occurred
407            */
408            public void addRolePermissions(long roleId,
409                    java.util.List<com.liferay.portal.model.Permission> Permissions)
410                    throws com.liferay.portal.kernel.exception.SystemException {
411                    _permissionLocalService.addRolePermissions(roleId, Permissions);
412            }
413    
414            /**
415            * @throws SystemException if a system exception occurred
416            */
417            public void clearRolePermissions(long roleId)
418                    throws com.liferay.portal.kernel.exception.SystemException {
419                    _permissionLocalService.clearRolePermissions(roleId);
420            }
421    
422            /**
423            * @throws SystemException if a system exception occurred
424            */
425            public void deleteRolePermission(long roleId, long permissionId)
426                    throws com.liferay.portal.kernel.exception.SystemException {
427                    _permissionLocalService.deleteRolePermission(roleId, permissionId);
428            }
429    
430            /**
431            * @throws SystemException if a system exception occurred
432            */
433            public void deleteRolePermission(long roleId,
434                    com.liferay.portal.model.Permission permission)
435                    throws com.liferay.portal.kernel.exception.SystemException {
436                    _permissionLocalService.deleteRolePermission(roleId, permission);
437            }
438    
439            /**
440            * @throws SystemException if a system exception occurred
441            */
442            public void deleteRolePermissions(long roleId, long[] permissionIds)
443                    throws com.liferay.portal.kernel.exception.SystemException {
444                    _permissionLocalService.deleteRolePermissions(roleId, permissionIds);
445            }
446    
447            /**
448            * @throws SystemException if a system exception occurred
449            */
450            public void deleteRolePermissions(long roleId,
451                    java.util.List<com.liferay.portal.model.Permission> Permissions)
452                    throws com.liferay.portal.kernel.exception.SystemException {
453                    _permissionLocalService.deleteRolePermissions(roleId, Permissions);
454            }
455    
456            /**
457            * @throws SystemException if a system exception occurred
458            */
459            public java.util.List<com.liferay.portal.model.Permission> getRolePermissions(
460                    long roleId) throws com.liferay.portal.kernel.exception.SystemException {
461                    return _permissionLocalService.getRolePermissions(roleId);
462            }
463    
464            /**
465            * @throws SystemException if a system exception occurred
466            */
467            public java.util.List<com.liferay.portal.model.Permission> getRolePermissions(
468                    long roleId, int start, int end)
469                    throws com.liferay.portal.kernel.exception.SystemException {
470                    return _permissionLocalService.getRolePermissions(roleId, start, end);
471            }
472    
473            /**
474            * @throws SystemException if a system exception occurred
475            */
476            public java.util.List<com.liferay.portal.model.Permission> getRolePermissions(
477                    long roleId, int start, int end,
478                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
479                    throws com.liferay.portal.kernel.exception.SystemException {
480                    return _permissionLocalService.getRolePermissions(roleId, start, end,
481                            orderByComparator);
482            }
483    
484            /**
485            * @throws SystemException if a system exception occurred
486            */
487            public int getRolePermissionsCount(long roleId)
488                    throws com.liferay.portal.kernel.exception.SystemException {
489                    return _permissionLocalService.getRolePermissionsCount(roleId);
490            }
491    
492            /**
493            * @throws SystemException if a system exception occurred
494            */
495            public boolean hasRolePermission(long roleId, long permissionId)
496                    throws com.liferay.portal.kernel.exception.SystemException {
497                    return _permissionLocalService.hasRolePermission(roleId, permissionId);
498            }
499    
500            /**
501            * @throws SystemException if a system exception occurred
502            */
503            public boolean hasRolePermissions(long roleId)
504                    throws com.liferay.portal.kernel.exception.SystemException {
505                    return _permissionLocalService.hasRolePermissions(roleId);
506            }
507    
508            /**
509            * @throws SystemException if a system exception occurred
510            */
511            public void setRolePermissions(long roleId, long[] permissionIds)
512                    throws com.liferay.portal.kernel.exception.SystemException {
513                    _permissionLocalService.setRolePermissions(roleId, permissionIds);
514            }
515    
516            /**
517            * @throws SystemException if a system exception occurred
518            */
519            public void addUserPermission(long userId, long permissionId)
520                    throws com.liferay.portal.kernel.exception.SystemException {
521                    _permissionLocalService.addUserPermission(userId, permissionId);
522            }
523    
524            /**
525            * @throws SystemException if a system exception occurred
526            */
527            public void addUserPermission(long userId,
528                    com.liferay.portal.model.Permission permission)
529                    throws com.liferay.portal.kernel.exception.SystemException {
530                    _permissionLocalService.addUserPermission(userId, permission);
531            }
532    
533            /**
534            * @throws SystemException if a system exception occurred
535            */
536            public void addUserPermissions(long userId, long[] permissionIds)
537                    throws com.liferay.portal.kernel.exception.SystemException {
538                    _permissionLocalService.addUserPermissions(userId, permissionIds);
539            }
540    
541            /**
542            * @throws SystemException if a system exception occurred
543            */
544            public void addUserPermissions(long userId,
545                    java.util.List<com.liferay.portal.model.Permission> Permissions)
546                    throws com.liferay.portal.kernel.exception.SystemException {
547                    _permissionLocalService.addUserPermissions(userId, Permissions);
548            }
549    
550            /**
551            * @throws SystemException if a system exception occurred
552            */
553            public void clearUserPermissions(long userId)
554                    throws com.liferay.portal.kernel.exception.SystemException {
555                    _permissionLocalService.clearUserPermissions(userId);
556            }
557    
558            /**
559            * @throws SystemException if a system exception occurred
560            */
561            public void deleteUserPermission(long userId, long permissionId)
562                    throws com.liferay.portal.kernel.exception.SystemException {
563                    _permissionLocalService.deleteUserPermission(userId, permissionId);
564            }
565    
566            /**
567            * @throws SystemException if a system exception occurred
568            */
569            public void deleteUserPermission(long userId,
570                    com.liferay.portal.model.Permission permission)
571                    throws com.liferay.portal.kernel.exception.SystemException {
572                    _permissionLocalService.deleteUserPermission(userId, permission);
573            }
574    
575            /**
576            * @throws SystemException if a system exception occurred
577            */
578            public void deleteUserPermissions(long userId, long[] permissionIds)
579                    throws com.liferay.portal.kernel.exception.SystemException {
580                    _permissionLocalService.deleteUserPermissions(userId, permissionIds);
581            }
582    
583            /**
584            * @throws SystemException if a system exception occurred
585            */
586            public void deleteUserPermissions(long userId,
587                    java.util.List<com.liferay.portal.model.Permission> Permissions)
588                    throws com.liferay.portal.kernel.exception.SystemException {
589                    _permissionLocalService.deleteUserPermissions(userId, Permissions);
590            }
591    
592            /**
593            * @throws SystemException if a system exception occurred
594            */
595            public java.util.List<com.liferay.portal.model.Permission> getUserPermissions(
596                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
597                    return _permissionLocalService.getUserPermissions(userId);
598            }
599    
600            /**
601            * @throws SystemException if a system exception occurred
602            */
603            public java.util.List<com.liferay.portal.model.Permission> getUserPermissions(
604                    long userId, int start, int end)
605                    throws com.liferay.portal.kernel.exception.SystemException {
606                    return _permissionLocalService.getUserPermissions(userId, start, end);
607            }
608    
609            /**
610            * @throws SystemException if a system exception occurred
611            */
612            public java.util.List<com.liferay.portal.model.Permission> getUserPermissions(
613                    long userId, int start, int end,
614                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
615                    throws com.liferay.portal.kernel.exception.SystemException {
616                    return _permissionLocalService.getUserPermissions(userId, start, end,
617                            orderByComparator);
618            }
619    
620            /**
621            * @throws SystemException if a system exception occurred
622            */
623            public int getUserPermissionsCount(long userId)
624                    throws com.liferay.portal.kernel.exception.SystemException {
625                    return _permissionLocalService.getUserPermissionsCount(userId);
626            }
627    
628            /**
629            * @throws SystemException if a system exception occurred
630            */
631            public boolean hasUserPermission(long userId, long permissionId)
632                    throws com.liferay.portal.kernel.exception.SystemException {
633                    return _permissionLocalService.hasUserPermission(userId, permissionId);
634            }
635    
636            /**
637            * @throws SystemException if a system exception occurred
638            */
639            public boolean hasUserPermissions(long userId)
640                    throws com.liferay.portal.kernel.exception.SystemException {
641                    return _permissionLocalService.hasUserPermissions(userId);
642            }
643    
644            /**
645            * @throws SystemException if a system exception occurred
646            */
647            public void setUserPermissions(long userId, long[] permissionIds)
648                    throws com.liferay.portal.kernel.exception.SystemException {
649                    _permissionLocalService.setUserPermissions(userId, permissionIds);
650            }
651    
652            /**
653            * Returns the Spring bean ID for this bean.
654            *
655            * @return the Spring bean ID for this bean
656            */
657            public java.lang.String getBeanIdentifier() {
658                    return _permissionLocalService.getBeanIdentifier();
659            }
660    
661            /**
662            * Sets the Spring bean ID for this bean.
663            *
664            * @param beanIdentifier the Spring bean ID for this bean
665            */
666            public void setBeanIdentifier(java.lang.String beanIdentifier) {
667                    _permissionLocalService.setBeanIdentifier(beanIdentifier);
668            }
669    
670            /**
671            * Adds a permission to perform the action on the resource.
672            *
673            * <p>
674            * This method will retrieve the permission of the company, action, and
675            * resource with the primary keys. The method creates the permission if it
676            * fails to retrieve it.
677            * </p>
678            *
679            * @param companyId the primary key of the company
680            * @param actionId the action's ID
681            * @param resourceId the primary key of the resource
682            * @return the permission of the company, action, and resource with the
683            primary keys
684            * @throws SystemException if a system exception occurred
685            */
686            public com.liferay.portal.model.Permission addPermission(long companyId,
687                    java.lang.String actionId, long resourceId)
688                    throws com.liferay.portal.kernel.exception.SystemException {
689                    return _permissionLocalService.addPermission(companyId, actionId,
690                            resourceId);
691            }
692    
693            /**
694            * Adds permissions to perform the actions on the resource.
695            *
696            * <p>
697            * This method will retrieve the permissions of the company, actions, and
698            * resource with the primary keys. The method creates any permissions it
699            * fails to retrieve.
700            * </p>
701            *
702            * @param companyId the primary key of the company
703            * @param actionIds the primary keys of the actions
704            * @param resourceId the primary key of the resource
705            * @return the permissions to perform the actions on the resource
706            * @throws SystemException if a system exception occurred
707            */
708            public java.util.List<com.liferay.portal.model.Permission> addPermissions(
709                    long companyId, java.util.List<java.lang.String> actionIds,
710                    long resourceId)
711                    throws com.liferay.portal.kernel.exception.SystemException {
712                    return _permissionLocalService.addPermissions(companyId, actionIds,
713                            resourceId);
714            }
715    
716            /**
717            * Adds permissions to perform either the portlet resource actions or model
718            * resource actions on the resource.
719            *
720            * <p>
721            * This method will retrieve the permissions of the company, actions, and
722            * resource with the primary keys. The method creates any permissions it
723            * fails to retrieve.
724            * </p>
725            *
726            * @param companyId the primary key of the company
727            * @param name the resource name
728            * @param resourceId the primary key of the resource
729            * @param portletActions whether to retrieve the action primary keys from
730            the portlet or the model resource
731            * @return the permissions to perform the actions on the resource
732            * @throws SystemException if a system exception occurred
733            */
734            public java.util.List<com.liferay.portal.model.Permission> addPermissions(
735                    long companyId, java.lang.String name, long resourceId,
736                    boolean portletActions)
737                    throws com.liferay.portal.kernel.exception.SystemException {
738                    return _permissionLocalService.addPermissions(companyId, name,
739                            resourceId, portletActions);
740            }
741    
742            /**
743            * Adds user permissions to perform the actions on the resource.
744            *
745            * @param userId the primary key of the user
746            * @param actionIds the primary keys of the actions
747            * @param resourceId the primary key of the resource
748            * @throws PortalException if a user with the primary key could not be found
749            * @throws SystemException if a system exception occurred
750            */
751            public void addUserPermissions(long userId, java.lang.String[] actionIds,
752                    long resourceId)
753                    throws com.liferay.portal.kernel.exception.PortalException,
754                            com.liferay.portal.kernel.exception.SystemException {
755                    _permissionLocalService.addUserPermissions(userId, actionIds, resourceId);
756            }
757    
758            /**
759            * Checks to see if the actions are permitted on the named resource.
760            *
761            * @param name the resource name
762            * @param actionIds the primary keys of the actions
763            * @throws PortalException if the resource company or name could not be
764            found or were invalid
765            * @throws SystemException if a system exception occurred
766            */
767            public void checkPermissions(java.lang.String name,
768                    java.util.List<java.lang.String> actionIds)
769                    throws com.liferay.portal.kernel.exception.PortalException,
770                            com.liferay.portal.kernel.exception.SystemException {
771                    _permissionLocalService.checkPermissions(name, actionIds);
772            }
773    
774            /**
775            * Returns the IDs of all the actions belonging to the permissions.
776            *
777            * @param permissions the permissions
778            * @return the IDs of all the actions belonging to the permissions
779            */
780            public java.util.List<java.lang.String> getActions(
781                    java.util.List<com.liferay.portal.model.Permission> permissions) {
782                    return _permissionLocalService.getActions(permissions);
783            }
784    
785            /**
786            * Returns all the group's permissions on the resource.
787            *
788            * @param groupId the primary key of the group
789            * @param resourceId the primary key of the resource
790            * @return the group's permissions on the resource
791            * @throws SystemException if a system exception occurred
792            */
793            public java.util.List<com.liferay.portal.model.Permission> getGroupPermissions(
794                    long groupId, long resourceId)
795                    throws com.liferay.portal.kernel.exception.SystemException {
796                    return _permissionLocalService.getGroupPermissions(groupId, resourceId);
797            }
798    
799            /**
800            * Returns all the group's permissions on the named resource with the scope
801            * and primKey.
802            *
803            * @param groupId the primary key of the group
804            * @param companyId the primary key of the company
805            * @param name the resource name
806            * @param scope the resource scope
807            * @param primKey the resource primKey
808            * @return the group's permissions on the named resource with the scope and
809            primKey
810            * @throws SystemException if a system exception occurred
811            */
812            public java.util.List<com.liferay.portal.model.Permission> getGroupPermissions(
813                    long groupId, long companyId, java.lang.String name, int scope,
814                    java.lang.String primKey)
815                    throws com.liferay.portal.kernel.exception.SystemException {
816                    return _permissionLocalService.getGroupPermissions(groupId, companyId,
817                            name, scope, primKey);
818            }
819    
820            /**
821            * Returns the primary key of the latest permission created.
822            *
823            * @return the primary key of the latest permission created
824            * @throws SystemException if a system exception occurred
825            */
826            public long getLatestPermissionId()
827                    throws com.liferay.portal.kernel.exception.SystemException {
828                    return _permissionLocalService.getLatestPermissionId();
829            }
830    
831            /**
832            * Returns all the permissions of the organization's group with respect to
833            * the resource.
834            *
835            * @param organizationId the primary key of the organization
836            * @param groupId the primary key of the group
837            * @param resourceId the primary key of the resource
838            * @return the permissions of the organization's group with respect to the
839            resource
840            * @throws SystemException if a system exception occurred
841            */
842            public java.util.List<com.liferay.portal.model.Permission> getOrgGroupPermissions(
843                    long organizationId, long groupId, long resourceId)
844                    throws com.liferay.portal.kernel.exception.SystemException {
845                    return _permissionLocalService.getOrgGroupPermissions(organizationId,
846                            groupId, resourceId);
847            }
848    
849            /**
850            * Returns all the permissions to perform the actions on the resource,
851            * creating new permissions for any permissions not found.
852            *
853            * @param companyId the primary key of the company
854            * @param actionIds the primary keys of the actions
855            * @param resourceId the primary key of the resource
856            * @return the permissions to perform the actions on the resource
857            * @throws SystemException if a system exception occurred
858            * @see #addPermission(long, String, long)
859            */
860            public java.util.List<com.liferay.portal.model.Permission> getPermissions(
861                    long companyId, java.lang.String[] actionIds, long resourceId)
862                    throws com.liferay.portal.kernel.exception.SystemException {
863                    return _permissionLocalService.getPermissions(companyId, actionIds,
864                            resourceId);
865            }
866    
867            public java.util.List<com.liferay.portal.model.Permission> getRolePermissions(
868                    long roleId, int[] scopes)
869                    throws com.liferay.portal.kernel.exception.SystemException {
870                    return _permissionLocalService.getRolePermissions(roleId, scopes);
871            }
872    
873            /**
874            * Returns all the role's permissions on the resource.
875            *
876            * @param roleId the primary key of the role
877            * @param resourceId the primary key of the resource
878            * @return the role's permissions on the resource
879            * @throws SystemException if a system exception occurred
880            */
881            public java.util.List<com.liferay.portal.model.Permission> getRolePermissions(
882                    long roleId, long resourceId)
883                    throws com.liferay.portal.kernel.exception.SystemException {
884                    return _permissionLocalService.getRolePermissions(roleId, resourceId);
885            }
886    
887            /**
888            * Returns all the user's permissions on the resource.
889            *
890            * @param userId the primary key of the user
891            * @param resourceId the primary key of the resource
892            * @return the user's permissions on the resource
893            * @throws SystemException if a system exception occurred
894            */
895            public java.util.List<com.liferay.portal.model.Permission> getUserPermissions(
896                    long userId, long resourceId)
897                    throws com.liferay.portal.kernel.exception.SystemException {
898                    return _permissionLocalService.getUserPermissions(userId, resourceId);
899            }
900    
901            /**
902            * Returns all the user's permissions on the named resource with the scope
903            * and primKey.
904            *
905            * @param userId the primary key of the user
906            * @param companyId the primary key of the company
907            * @param name the resource name
908            * @param scope the resource scope
909            * @param primKey the resource primKey
910            * @return the user permissions of the resource name, scope, and primKey
911            * @throws SystemException if a system exception occurred
912            */
913            public java.util.List<com.liferay.portal.model.Permission> getUserPermissions(
914                    long userId, long companyId, java.lang.String name, int scope,
915                    java.lang.String primKey)
916                    throws com.liferay.portal.kernel.exception.SystemException {
917                    return _permissionLocalService.getUserPermissions(userId, companyId,
918                            name, scope, primKey);
919            }
920    
921            /**
922            * Returns <code>true</code> if the group has permission to perform the
923            * action on the resource.
924            *
925            * @param groupId the primary key of the group
926            * @param actionId the action's ID
927            * @param resourceId the primary key of the resource
928            * @return <code>true</code> if the group has permission to perform the
929            action on the resource; <code>false</code> otherwise
930            * @throws SystemException if a system exception occurred
931            */
932            public boolean hasGroupPermission(long groupId, java.lang.String actionId,
933                    long resourceId)
934                    throws com.liferay.portal.kernel.exception.SystemException {
935                    return _permissionLocalService.hasGroupPermission(groupId, actionId,
936                            resourceId);
937            }
938    
939            /**
940            * Returns <code>true</code> if the role has permission to perform the
941            * action on the named resource with the scope.
942            *
943            * @param roleId the primary key of the role
944            * @param companyId the primary key of the company
945            * @param name the resource name
946            * @param scope the resource scope
947            * @param actionId the action's ID
948            * @return <code>true</code> if the role has permission to perform the
949            action on the named resource with the scope; <code>false</code>
950            otherwise
951            * @throws SystemException if a system exception occurred
952            */
953            public boolean hasRolePermission(long roleId, long companyId,
954                    java.lang.String name, int scope, java.lang.String actionId)
955                    throws com.liferay.portal.kernel.exception.SystemException {
956                    return _permissionLocalService.hasRolePermission(roleId, companyId,
957                            name, scope, actionId);
958            }
959    
960            /**
961            * Returns <code>true</code> if the role has permission to perform the
962            * action on the named resource with the scope and primKey.
963            *
964            * @param roleId the primary key of the role
965            * @param companyId the primary key of the company
966            * @param name the resource name
967            * @param scope the resource scope
968            * @param primKey the resource primKey
969            * @param actionId the action's ID
970            * @return <code>true</code> if the role has permission to perform the
971            action on the named resource with the scope and primKey;
972            <code>false</code> otherwise
973            * @throws SystemException if a system exception occurred
974            */
975            public boolean hasRolePermission(long roleId, long companyId,
976                    java.lang.String name, int scope, java.lang.String primKey,
977                    java.lang.String actionId)
978                    throws com.liferay.portal.kernel.exception.SystemException {
979                    return _permissionLocalService.hasRolePermission(roleId, companyId,
980                            name, scope, primKey, actionId);
981            }
982    
983            /**
984            * Returns <code>true</code> if the user has permission to perform the
985            * action on the resource.
986            *
987            * @param userId the primary key of the user
988            * @param actionId the action's ID
989            * @param resourceId the primary key of the resource
990            * @return <code>true</code> if the user has permission to perform the
991            action on the resource; <code>false</code> otherwise
992            * @throws SystemException if a system exception occurred
993            */
994            public boolean hasUserPermission(long userId, java.lang.String actionId,
995                    long resourceId)
996                    throws com.liferay.portal.kernel.exception.SystemException {
997                    return _permissionLocalService.hasUserPermission(userId, actionId,
998                            resourceId);
999            }
1000    
1001            /**
1002            * Returns <code>true</code> if the user has permission to perform the
1003            * action on the resources.
1004            *
1005            * <p>
1006            * This method does not support resources managed by the resource block
1007            * system.
1008            * </p>
1009            *
1010            * @param userId the primary key of the user
1011            * @param groupId the primary key of the group containing the resource
1012            * @param resources representations of the resource at each scope level
1013            returned by {@link
1014            com.liferay.portal.security.permission.AdvancedPermissionChecker#getResources(
1015            long, long, String, String, String)}
1016            * @param actionId the action's ID
1017            * @param permissionCheckerBag the permission checker bag
1018            * @return <code>true</code> if the user has permission to perform the
1019            action on the resources; <code>false</code> otherwise
1020            * @throws PortalException if a resource action based on any one of the
1021            resources and the action ID could not be found
1022            * @throws SystemException if a system exception occurred
1023            */
1024            public boolean hasUserPermissions(long userId, long groupId,
1025                    java.util.List<com.liferay.portal.model.Resource> resources,
1026                    java.lang.String actionId,
1027                    com.liferay.portal.security.permission.PermissionCheckerBag permissionCheckerBag)
1028                    throws com.liferay.portal.kernel.exception.PortalException,
1029                            com.liferay.portal.kernel.exception.SystemException {
1030                    return _permissionLocalService.hasUserPermissions(userId, groupId,
1031                            resources, actionId, permissionCheckerBag);
1032            }
1033    
1034            /**
1035            * Sets the container wide permissions of either the role or the default
1036            * user of each company to perform the actions on the named resource.
1037            *
1038            * @param name the resource name
1039            * @param roleName the role name. Supported role names include {@link
1040            com.liferay.portal.model.RoleConstants#ORGANIZATION_USER}, {@link
1041            com.liferay.portal.model.RoleConstants#OWNER}, and {@link
1042            com.liferay.portal.model.RoleConstants#SITE_MEMBER}.
1043            * @param actionId the action's ID
1044            * @throws PortalException if a matching role could not be found or if a
1045            default user for the company could not be found
1046            * @throws SystemException if a system exception occurred
1047            */
1048            public void setContainerResourcePermissions(java.lang.String name,
1049                    java.lang.String roleName, java.lang.String actionId)
1050                    throws com.liferay.portal.kernel.exception.PortalException,
1051                            com.liferay.portal.kernel.exception.SystemException {
1052                    _permissionLocalService.setContainerResourcePermissions(name, roleName,
1053                            actionId);
1054            }
1055    
1056            /**
1057            * Sets the group's permissions to perform the actions on the resource,
1058            * replacing the group's existing permissions on the resource.
1059            *
1060            * @param groupId the primary key of the group
1061            * @param actionIds the primary keys of the actions
1062            * @param resourceId the primary key of the resource
1063            * @throws PortalException if a group with the primary key could not be
1064            found
1065            * @throws SystemException if a system exception occurred
1066            */
1067            public void setGroupPermissions(long groupId, java.lang.String[] actionIds,
1068                    long resourceId)
1069                    throws com.liferay.portal.kernel.exception.PortalException,
1070                            com.liferay.portal.kernel.exception.SystemException {
1071                    _permissionLocalService.setGroupPermissions(groupId, actionIds,
1072                            resourceId);
1073            }
1074    
1075            /**
1076            * Sets the entity's group permissions to perform the actions on the
1077            * resource, replacing the entity's existing group permissions on the
1078            * resource. Only {@link com.liferay.portal.model.Organization} and {@link
1079            * com.liferay.portal.model.UserGroup} class entities are supported.
1080            *
1081            * @param className the class name of an organization or user group
1082            * @param classPK the primary key of the class
1083            * @param groupId the primary key of the group
1084            * @param actionIds the primary keys of the actions
1085            * @param resourceId the primary key of the resource
1086            * @throws PortalException if an entity with the class name and primary key
1087            could not be found or if the entity's associated group could not
1088            be found
1089            * @throws SystemException if a system exception occurred
1090            */
1091            public void setGroupPermissions(java.lang.String className,
1092                    java.lang.String classPK, long groupId, java.lang.String[] actionIds,
1093                    long resourceId)
1094                    throws com.liferay.portal.kernel.exception.PortalException,
1095                            com.liferay.portal.kernel.exception.SystemException {
1096                    _permissionLocalService.setGroupPermissions(className, classPK,
1097                            groupId, actionIds, resourceId);
1098            }
1099    
1100            /**
1101            * Sets the organization's group permissions to perform the actions on the
1102            * resource, replacing the organization's existing group permissions on the
1103            * resource.
1104            *
1105            * @param organizationId the primary key of the organization
1106            * @param groupId the primary key of the group in which to scope the
1107            permissions
1108            * @param actionIds the primary keys of the actions
1109            * @param resourceId the primary key of the resource
1110            * @throws PortalException if an organization with the primary key could not
1111            be found
1112            * @throws SystemException if a system exception occurred
1113            */
1114            public void setOrgGroupPermissions(long organizationId, long groupId,
1115                    java.lang.String[] actionIds, long resourceId)
1116                    throws com.liferay.portal.kernel.exception.PortalException,
1117                            com.liferay.portal.kernel.exception.SystemException {
1118                    _permissionLocalService.setOrgGroupPermissions(organizationId, groupId,
1119                            actionIds, resourceId);
1120            }
1121    
1122            /**
1123            * Sets the role's permissions to perform the action on the named resource,
1124            * replacing the role's existing permissions on the resource.
1125            *
1126            * @param roleId the primary key of the role
1127            * @param companyId the primary key of the company
1128            * @param name the resource name
1129            * @param scope the resource scope
1130            * @param primKey the resource primKey
1131            * @param actionId the action's ID
1132            * @throws PortalException if the scope was {@link
1133            com.liferay.portal.model.ResourceConstants#SCOPE_INDIVIDUAL}
1134            * @throws SystemException if a system exception occurred
1135            */
1136            public void setRolePermission(long roleId, long companyId,
1137                    java.lang.String name, int scope, java.lang.String primKey,
1138                    java.lang.String actionId)
1139                    throws com.liferay.portal.kernel.exception.PortalException,
1140                            com.liferay.portal.kernel.exception.SystemException {
1141                    _permissionLocalService.setRolePermission(roleId, companyId, name,
1142                            scope, primKey, actionId);
1143            }
1144    
1145            /**
1146            * Sets the role's permissions to perform the actions on the named resource,
1147            * replacing the role's existing permission for each of these actions on the
1148            * resource.
1149            *
1150            * @param roleId the primary key of the role
1151            * @param companyId the primary key of the company
1152            * @param name the resource name
1153            * @param scope the resource scope
1154            * @param primKey the resource primKey
1155            * @param actionIds the primary keys of the actions
1156            * @throws PortalException if the scope was {@link
1157            com.liferay.portal.model.ResourceConstants#SCOPE_INDIVIDUAL}
1158            * @throws SystemException if a system exception occurred
1159            */
1160            public void setRolePermissions(long roleId, long companyId,
1161                    java.lang.String name, int scope, java.lang.String primKey,
1162                    java.lang.String[] actionIds)
1163                    throws com.liferay.portal.kernel.exception.PortalException,
1164                            com.liferay.portal.kernel.exception.SystemException {
1165                    _permissionLocalService.setRolePermissions(roleId, companyId, name,
1166                            scope, primKey, actionIds);
1167            }
1168    
1169            /**
1170            * Sets the role's permissions to perform the actions on the resource,
1171            * replacing the role's existing permissions on the resource.
1172            *
1173            * @param roleId the primary key of the role
1174            * @param actionIds the primary keys of the actions
1175            * @param resourceId the primary key of the resource
1176            * @throws PortalException if a role with the primary key could not be found
1177            * @throws SystemException if a system exception occurred
1178            */
1179            public void setRolePermissions(long roleId, java.lang.String[] actionIds,
1180                    long resourceId)
1181                    throws com.liferay.portal.kernel.exception.PortalException,
1182                            com.liferay.portal.kernel.exception.SystemException {
1183                    _permissionLocalService.setRolePermissions(roleId, actionIds, resourceId);
1184            }
1185    
1186            /**
1187            * Sets the permissions of each role to perform respective actions on the
1188            * resource, replacing the existing permissions of each role on the
1189            * resource.
1190            *
1191            * @param companyId the primary key of the company
1192            * @param roleIdsToActionIds the map of roles to their new actions on the
1193            resource
1194            * @param resourceId the primary key of the resource
1195            * @throws SystemException if a system exception occurred
1196            */
1197            public void setRolesPermissions(long companyId,
1198                    java.util.Map<java.lang.Long, java.lang.String[]> roleIdsToActionIds,
1199                    long resourceId)
1200                    throws com.liferay.portal.kernel.exception.SystemException {
1201                    _permissionLocalService.setRolesPermissions(companyId,
1202                            roleIdsToActionIds, resourceId);
1203            }
1204    
1205            /**
1206            * Sets the permissions of each role to perform respective actions on the
1207            * named resource, replacing the existing permissions of each role on the
1208            * resource.
1209            *
1210            * @param companyId the primary key of the company
1211            * @param roleIdsToActionIds the map of roles to their new actions on the
1212            resource
1213            * @param name the resource name
1214            * @param scope the resource scope
1215            * @param primKey the resource primKey
1216            * @throws SystemException if a system exception occurred
1217            */
1218            public void setRolesPermissions(long companyId,
1219                    java.util.Map<java.lang.Long, java.lang.String[]> roleIdsToActionIds,
1220                    java.lang.String name, int scope, java.lang.String primKey)
1221                    throws com.liferay.portal.kernel.exception.SystemException {
1222                    _permissionLocalService.setRolesPermissions(companyId,
1223                            roleIdsToActionIds, name, scope, primKey);
1224            }
1225    
1226            /**
1227            * Sets the user's permissions to perform the actions on the resource,
1228            * replacing the user's existing permissions on the resource.
1229            *
1230            * @param userId the primary key of the user
1231            * @param actionIds the primary keys of the actions
1232            * @param resourceId the primary key of the resource
1233            * @throws PortalException if a user with the primary key could not be found
1234            * @throws SystemException if a system exception occurred
1235            */
1236            public void setUserPermissions(long userId, java.lang.String[] actionIds,
1237                    long resourceId)
1238                    throws com.liferay.portal.kernel.exception.PortalException,
1239                            com.liferay.portal.kernel.exception.SystemException {
1240                    _permissionLocalService.setUserPermissions(userId, actionIds, resourceId);
1241            }
1242    
1243            /**
1244            * Removes the permission from the role.
1245            *
1246            * @param roleId the primary key of the role
1247            * @param permissionId the primary key of the permission
1248            * @throws SystemException if a system exception occurred
1249            */
1250            public void unsetRolePermission(long roleId, long permissionId)
1251                    throws com.liferay.portal.kernel.exception.SystemException {
1252                    _permissionLocalService.unsetRolePermission(roleId, permissionId);
1253            }
1254    
1255            /**
1256            * Removes the role's permissions to perform the action on the named
1257            * resource with the scope and primKey.
1258            *
1259            * @param roleId the primary key of the role
1260            * @param companyId the primary key of the company
1261            * @param name the resource name
1262            * @param scope the resource scope
1263            * @param primKey the resource primKey
1264            * @param actionId the action's ID
1265            * @throws SystemException if a system exception occurred
1266            */
1267            public void unsetRolePermission(long roleId, long companyId,
1268                    java.lang.String name, int scope, java.lang.String primKey,
1269                    java.lang.String actionId)
1270                    throws com.liferay.portal.kernel.exception.SystemException {
1271                    _permissionLocalService.unsetRolePermission(roleId, companyId, name,
1272                            scope, primKey, actionId);
1273            }
1274    
1275            /**
1276            * Removes the role's permissions to perform the action on the named
1277            * resource.
1278            *
1279            * @param roleId the primary key of the role
1280            * @param companyId the primary key of the company
1281            * @param name the resource name
1282            * @param scope the resource scope
1283            * @param actionId the action's ID
1284            * @throws SystemException if a system exception occurred
1285            */
1286            public void unsetRolePermissions(long roleId, long companyId,
1287                    java.lang.String name, int scope, java.lang.String actionId)
1288                    throws com.liferay.portal.kernel.exception.SystemException {
1289                    _permissionLocalService.unsetRolePermissions(roleId, companyId, name,
1290                            scope, actionId);
1291            }
1292    
1293            /**
1294            * Removes the user's permissions to perform the actions on the resource.
1295            *
1296            * @param userId the primary key of the user
1297            * @param actionIds the primary keys of the actions
1298            * @param resourceId the primary key of the resource
1299            * @throws SystemException if a system exception occurred
1300            */
1301            public void unsetUserPermissions(long userId, java.lang.String[] actionIds,
1302                    long resourceId)
1303                    throws com.liferay.portal.kernel.exception.SystemException {
1304                    _permissionLocalService.unsetUserPermissions(userId, actionIds,
1305                            resourceId);
1306            }
1307    
1308            /**
1309             * @deprecated Renamed to {@link #getWrappedService}
1310             */
1311            public PermissionLocalService getWrappedPermissionLocalService() {
1312                    return _permissionLocalService;
1313            }
1314    
1315            /**
1316             * @deprecated Renamed to {@link #setWrappedService}
1317             */
1318            public void setWrappedPermissionLocalService(
1319                    PermissionLocalService permissionLocalService) {
1320                    _permissionLocalService = permissionLocalService;
1321            }
1322    
1323            public PermissionLocalService getWrappedService() {
1324                    return _permissionLocalService;
1325            }
1326    
1327            public void setWrappedService(PermissionLocalService permissionLocalService) {
1328                    _permissionLocalService = permissionLocalService;
1329            }
1330    
1331            private PermissionLocalService _permissionLocalService;
1332    }