001    /**
002     * Copyright (c) 2000-2011 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            public PermissionLocalServiceWrapper(
028                    PermissionLocalService permissionLocalService) {
029                    _permissionLocalService = permissionLocalService;
030            }
031    
032            /**
033            * Adds the permission to the database. Also notifies the appropriate model listeners.
034            *
035            * @param permission the permission
036            * @return the permission that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portal.model.Permission addPermission(
040                    com.liferay.portal.model.Permission permission)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _permissionLocalService.addPermission(permission);
043            }
044    
045            /**
046            * Creates a new permission with the primary key. Does not add the permission to the database.
047            *
048            * @param permissionId the primary key for the new permission
049            * @return the new permission
050            */
051            public com.liferay.portal.model.Permission createPermission(
052                    long permissionId) {
053                    return _permissionLocalService.createPermission(permissionId);
054            }
055    
056            /**
057            * Deletes the permission with the primary key from the database. Also notifies the appropriate model listeners.
058            *
059            * @param permissionId the primary key of the permission
060            * @throws PortalException if a permission with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            public void deletePermission(long permissionId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    _permissionLocalService.deletePermission(permissionId);
067            }
068    
069            /**
070            * Deletes the permission from the database. Also notifies the appropriate model listeners.
071            *
072            * @param permission the permission
073            * @throws SystemException if a system exception occurred
074            */
075            public void deletePermission(com.liferay.portal.model.Permission permission)
076                    throws com.liferay.portal.kernel.exception.SystemException {
077                    _permissionLocalService.deletePermission(permission);
078            }
079    
080            /**
081            * Performs a dynamic query on the database and returns the matching rows.
082            *
083            * @param dynamicQuery the dynamic query
084            * @return the matching rows
085            * @throws SystemException if a system exception occurred
086            */
087            @SuppressWarnings("rawtypes")
088            public java.util.List dynamicQuery(
089                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
090                    throws com.liferay.portal.kernel.exception.SystemException {
091                    return _permissionLocalService.dynamicQuery(dynamicQuery);
092            }
093    
094            /**
095            * Performs a dynamic query on the database and returns a range of the matching rows.
096            *
097            * <p>
098            * 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.
099            * </p>
100            *
101            * @param dynamicQuery the dynamic query
102            * @param start the lower bound of the range of model instances
103            * @param end the upper bound of the range of model instances (not inclusive)
104            * @return the range of matching rows
105            * @throws SystemException if a system exception occurred
106            */
107            @SuppressWarnings("rawtypes")
108            public java.util.List dynamicQuery(
109                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
110                    int end) throws com.liferay.portal.kernel.exception.SystemException {
111                    return _permissionLocalService.dynamicQuery(dynamicQuery, start, end);
112            }
113    
114            /**
115            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
116            *
117            * <p>
118            * 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.
119            * </p>
120            *
121            * @param dynamicQuery the dynamic query
122            * @param start the lower bound of the range of model instances
123            * @param end the upper bound of the range of model instances (not inclusive)
124            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
125            * @return the ordered range of matching rows
126            * @throws SystemException if a system exception occurred
127            */
128            @SuppressWarnings("rawtypes")
129            public java.util.List dynamicQuery(
130                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131                    int end,
132                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return _permissionLocalService.dynamicQuery(dynamicQuery, start, end,
135                            orderByComparator);
136            }
137    
138            /**
139            * Returns the number of rows that match the dynamic query.
140            *
141            * @param dynamicQuery the dynamic query
142            * @return the number of rows that match the dynamic query
143            * @throws SystemException if a system exception occurred
144            */
145            public long dynamicQueryCount(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147                    throws com.liferay.portal.kernel.exception.SystemException {
148                    return _permissionLocalService.dynamicQueryCount(dynamicQuery);
149            }
150    
151            /**
152            * Returns the permission with the primary key.
153            *
154            * @param permissionId the primary key of the permission
155            * @return the permission
156            * @throws PortalException if a permission with the primary key could not be found
157            * @throws SystemException if a system exception occurred
158            */
159            public com.liferay.portal.model.Permission getPermission(long permissionId)
160                    throws com.liferay.portal.kernel.exception.PortalException,
161                            com.liferay.portal.kernel.exception.SystemException {
162                    return _permissionLocalService.getPermission(permissionId);
163            }
164    
165            public com.liferay.portal.model.PersistedModel getPersistedModel(
166                    java.io.Serializable primaryKeyObj)
167                    throws com.liferay.portal.kernel.exception.PortalException,
168                            com.liferay.portal.kernel.exception.SystemException {
169                    return _permissionLocalService.getPersistedModel(primaryKeyObj);
170            }
171    
172            /**
173            * Returns a range of all the permissions.
174            *
175            * <p>
176            * 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.
177            * </p>
178            *
179            * @param start the lower bound of the range of permissions
180            * @param end the upper bound of the range of permissions (not inclusive)
181            * @return the range of permissions
182            * @throws SystemException if a system exception occurred
183            */
184            public java.util.List<com.liferay.portal.model.Permission> getPermissions(
185                    int start, int end)
186                    throws com.liferay.portal.kernel.exception.SystemException {
187                    return _permissionLocalService.getPermissions(start, end);
188            }
189    
190            /**
191            * Returns the number of permissions.
192            *
193            * @return the number of permissions
194            * @throws SystemException if a system exception occurred
195            */
196            public int getPermissionsCount()
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return _permissionLocalService.getPermissionsCount();
199            }
200    
201            /**
202            * Updates the permission in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
203            *
204            * @param permission the permission
205            * @return the permission that was updated
206            * @throws SystemException if a system exception occurred
207            */
208            public com.liferay.portal.model.Permission updatePermission(
209                    com.liferay.portal.model.Permission permission)
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return _permissionLocalService.updatePermission(permission);
212            }
213    
214            /**
215            * Updates the permission in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
216            *
217            * @param permission the permission
218            * @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.
219            * @return the permission that was updated
220            * @throws SystemException if a system exception occurred
221            */
222            public com.liferay.portal.model.Permission updatePermission(
223                    com.liferay.portal.model.Permission permission, boolean merge)
224                    throws com.liferay.portal.kernel.exception.SystemException {
225                    return _permissionLocalService.updatePermission(permission, merge);
226            }
227    
228            /**
229            * Returns the Spring bean ID for this bean.
230            *
231            * @return the Spring bean ID for this bean
232            */
233            public java.lang.String getBeanIdentifier() {
234                    return _permissionLocalService.getBeanIdentifier();
235            }
236    
237            /**
238            * Sets the Spring bean ID for this bean.
239            *
240            * @param beanIdentifier the Spring bean ID for this bean
241            */
242            public void setBeanIdentifier(java.lang.String beanIdentifier) {
243                    _permissionLocalService.setBeanIdentifier(beanIdentifier);
244            }
245    
246            /**
247            * Adds a permission to perform the action on the resource.
248            *
249            * <p>
250            * This method will retrieve the permission of the company, action, and
251            * resource with the primary keys. The method creates the permission if it
252            * fails to retrieve it.
253            * </p>
254            *
255            * @param companyId the primary key of the company
256            * @param actionId the action's ID
257            * @param resourceId the primary key of the resource
258            * @return the permission of the company, action, and resource with the
259            primary keys
260            * @throws SystemException if a system exception occurred
261            */
262            public com.liferay.portal.model.Permission addPermission(long companyId,
263                    java.lang.String actionId, long resourceId)
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    return _permissionLocalService.addPermission(companyId, actionId,
266                            resourceId);
267            }
268    
269            /**
270            * Adds permissions to perform the actions on the resource.
271            *
272            * <p>
273            * This method will retrieve the permissions of the company, actions, and
274            * resource with the primary keys. The method creates any permissions it
275            * fails to retrieve.
276            * </p>
277            *
278            * @param companyId the primary key of the company
279            * @param actionIds the primary keys of the actions
280            * @param resourceId the primary key of the resource
281            * @return the permissions to perform the actions on the resource
282            * @throws SystemException if a system exception occurred
283            */
284            public java.util.List<com.liferay.portal.model.Permission> addPermissions(
285                    long companyId, java.util.List<java.lang.String> actionIds,
286                    long resourceId)
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    return _permissionLocalService.addPermissions(companyId, actionIds,
289                            resourceId);
290            }
291    
292            /**
293            * Adds permissions to perform either the portlet resource actions or model
294            * resource actions on the resource.
295            *
296            * <p>
297            * This method will retrieve the permissions of the company, actions, and
298            * resource with the primary keys. The method creates any permissions it
299            * fails to retrieve.
300            * </p>
301            *
302            * @param companyId the primary key of the company
303            * @param name the resource name
304            * @param resourceId the primary key of the resource
305            * @param portletActions whether to retrieve the action primary keys from
306            the portlet or the model resource
307            * @return the permissions to perform the actions on the resource
308            * @throws SystemException if a system exception occurred
309            */
310            public java.util.List<com.liferay.portal.model.Permission> addPermissions(
311                    long companyId, java.lang.String name, long resourceId,
312                    boolean portletActions)
313                    throws com.liferay.portal.kernel.exception.SystemException {
314                    return _permissionLocalService.addPermissions(companyId, name,
315                            resourceId, portletActions);
316            }
317    
318            /**
319            * Adds user permissions to perform the actions on the resource.
320            *
321            * @param userId the primary key of the user
322            * @param actionIds the primary keys of the actions
323            * @param resourceId the primary key of the resource
324            * @throws PortalException if a user with the primary key could not be
325            found
326            * @throws SystemException if a system exception occurred
327            */
328            public void addUserPermissions(long userId, java.lang.String[] actionIds,
329                    long resourceId)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    _permissionLocalService.addUserPermissions(userId, actionIds, resourceId);
333            }
334    
335            /**
336            * Checks to see if the actions are permitted on the named resource.
337            *
338            * @param name the resource name
339            * @param actionIds the primary keys of the actions
340            * @throws PortalException if the resource company or name could not be
341            found or were invalid
342            * @throws SystemException if a system exception occurred
343            */
344            public void checkPermissions(java.lang.String name,
345                    java.util.List<java.lang.String> actionIds)
346                    throws com.liferay.portal.kernel.exception.PortalException,
347                            com.liferay.portal.kernel.exception.SystemException {
348                    _permissionLocalService.checkPermissions(name, actionIds);
349            }
350    
351            /**
352            * Returns the IDs of all the actions belonging to the permissions.
353            *
354            * @param permissions the permissions
355            * @return the IDs of all the actions belonging to the permissions
356            */
357            public java.util.List<java.lang.String> getActions(
358                    java.util.List<com.liferay.portal.model.Permission> permissions) {
359                    return _permissionLocalService.getActions(permissions);
360            }
361    
362            /**
363            * Returns all the group's permissions on the resource.
364            *
365            * @param groupId the primary key of the group
366            * @param resourceId the primary key of the resource
367            * @return the group's permissions on the resource
368            * @throws SystemException if a system exception occurred
369            */
370            public java.util.List<com.liferay.portal.model.Permission> getGroupPermissions(
371                    long groupId, long resourceId)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return _permissionLocalService.getGroupPermissions(groupId, resourceId);
374            }
375    
376            /**
377            * Returns all the group's permissions on the named resource with the scope
378            * and primKey.
379            *
380            * @param groupId the primary key of the group
381            * @param companyId the primary key of the company
382            * @param name the resource name
383            * @param scope the resource scope
384            * @param primKey the resource primKey
385            * @return the group's permissions on the named resource with the scope and
386            primKey
387            * @throws SystemException if a system exception occurred
388            */
389            public java.util.List<com.liferay.portal.model.Permission> getGroupPermissions(
390                    long groupId, long companyId, java.lang.String name, int scope,
391                    java.lang.String primKey)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return _permissionLocalService.getGroupPermissions(groupId, companyId,
394                            name, scope, primKey);
395            }
396    
397            /**
398            * Returns the primary key of the latest permission created.
399            *
400            * @return the primary key of the latest permission created
401            * @throws SystemException if a system exception occurred
402            */
403            public long getLatestPermissionId()
404                    throws com.liferay.portal.kernel.exception.SystemException {
405                    return _permissionLocalService.getLatestPermissionId();
406            }
407    
408            /**
409            * Returns all the permissions of the organization's group with respect to
410            * the resource.
411            *
412            * @param organizationId the primary key of the organization
413            * @param groupId the primary key of the group
414            * @param resourceId the primary key of the resource
415            * @return the permissions of the organization's group with respect to the
416            resource
417            * @throws SystemException if a system exception occurred
418            */
419            public java.util.List<com.liferay.portal.model.Permission> getOrgGroupPermissions(
420                    long organizationId, long groupId, long resourceId)
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    return _permissionLocalService.getOrgGroupPermissions(organizationId,
423                            groupId, resourceId);
424            }
425    
426            /**
427            * Returns all the permissions to perform the actions on the resource,
428            * creating new permissions for any permissions not found.
429            *
430            * @param companyId the primary key of the company
431            * @param actionIds the primary keys of the actions
432            * @param resourceId the primary key of the resource
433            * @return the permissions to perform the actions on the resource
434            * @throws SystemException if a system exception occurred
435            * @see #addPermission(long, String, long)
436            */
437            public java.util.List<com.liferay.portal.model.Permission> getPermissions(
438                    long companyId, java.lang.String[] actionIds, long resourceId)
439                    throws com.liferay.portal.kernel.exception.SystemException {
440                    return _permissionLocalService.getPermissions(companyId, actionIds,
441                            resourceId);
442            }
443    
444            /**
445            * Returns all the role's permissions.
446            *
447            * @param roleId the primary key of the role
448            * @return the role's permissions
449            * @throws SystemException if a system exception occurred
450            */
451            public java.util.List<com.liferay.portal.model.Permission> getRolePermissions(
452                    long roleId) throws com.liferay.portal.kernel.exception.SystemException {
453                    return _permissionLocalService.getRolePermissions(roleId);
454            }
455    
456            /**
457            * Returns all the role's permissions on the resource.
458            *
459            * @param roleId the primary key of the role
460            * @param resourceId the primary key of the resource
461            * @return the role's permissions on the resource
462            * @throws SystemException if a system exception occurred
463            */
464            public java.util.List<com.liferay.portal.model.Permission> getRolePermissions(
465                    long roleId, long resourceId)
466                    throws com.liferay.portal.kernel.exception.SystemException {
467                    return _permissionLocalService.getRolePermissions(roleId, resourceId);
468            }
469    
470            /**
471            * Returns all the user's permissions.
472            *
473            * @param userId the primary key of the user
474            * @return the user's permissions
475            * @throws SystemException if a system exception occurred
476            */
477            public java.util.List<com.liferay.portal.model.Permission> getUserPermissions(
478                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
479                    return _permissionLocalService.getUserPermissions(userId);
480            }
481    
482            /**
483            * Returns all the user's permissions on the resource.
484            *
485            * @param userId the primary key of the user
486            * @param resourceId the primary key of the resource
487            * @return the user's permissions on the resource
488            * @throws SystemException if a system exception occurred
489            */
490            public java.util.List<com.liferay.portal.model.Permission> getUserPermissions(
491                    long userId, long resourceId)
492                    throws com.liferay.portal.kernel.exception.SystemException {
493                    return _permissionLocalService.getUserPermissions(userId, resourceId);
494            }
495    
496            /**
497            * Returns all the user's permissions on the named resource with the scope
498            * and primKey.
499            *
500            * @param userId the primary key of the user
501            * @param companyId the primary key of the company
502            * @param name the resource name
503            * @param scope the resource scope
504            * @param primKey the resource primKey
505            * @return the user permissions of the resource name, scope, and primKey
506            * @throws SystemException if a system exception occurred
507            */
508            public java.util.List<com.liferay.portal.model.Permission> getUserPermissions(
509                    long userId, long companyId, java.lang.String name, int scope,
510                    java.lang.String primKey)
511                    throws com.liferay.portal.kernel.exception.SystemException {
512                    return _permissionLocalService.getUserPermissions(userId, companyId,
513                            name, scope, primKey);
514            }
515    
516            /**
517            * Returns <code>true</code> if the group has permission to perform the
518            * action on the resource.
519            *
520            * @param groupId the primary key of the group
521            * @param actionId the action's ID
522            * @param resourceId the primary key of the resource
523            * @return <code>true</code> if the group has permission to perform the
524            action on the resource; <code>false</code> otherwise
525            * @throws SystemException if a system exception occurred
526            */
527            public boolean hasGroupPermission(long groupId, java.lang.String actionId,
528                    long resourceId)
529                    throws com.liferay.portal.kernel.exception.SystemException {
530                    return _permissionLocalService.hasGroupPermission(groupId, actionId,
531                            resourceId);
532            }
533    
534            /**
535            * Returns <code>true</code> if the role has permission to perform the
536            * action on the named resource with the scope.
537            *
538            * @param roleId the primary key of the role
539            * @param companyId the primary key of the company
540            * @param name the resource name
541            * @param scope the resource scope
542            * @param actionId the action's ID
543            * @return <code>true</code> if the role has permission to perform the
544            action on the named resource with the scope; <code>false</code>
545            otherwise
546            * @throws SystemException if a system exception occurred
547            */
548            public boolean hasRolePermission(long roleId, long companyId,
549                    java.lang.String name, int scope, java.lang.String actionId)
550                    throws com.liferay.portal.kernel.exception.SystemException {
551                    return _permissionLocalService.hasRolePermission(roleId, companyId,
552                            name, scope, actionId);
553            }
554    
555            /**
556            * Returns <code>true</code> if the role has permission to perform the
557            * action on the named resource with the scope and primKey.
558            *
559            * @param roleId the primary key of the role
560            * @param companyId the primary key of the company
561            * @param name the resource name
562            * @param scope the resource scope
563            * @param primKey the resource primKey
564            * @param actionId the action's ID
565            * @return <code>true</code> if the role has permission to perform the
566            action on the named resource with the scope and primKey;
567            <code>false</code> otherwise
568            * @throws SystemException if a system exception occurred
569            */
570            public boolean hasRolePermission(long roleId, long companyId,
571                    java.lang.String name, int scope, java.lang.String primKey,
572                    java.lang.String actionId)
573                    throws com.liferay.portal.kernel.exception.SystemException {
574                    return _permissionLocalService.hasRolePermission(roleId, companyId,
575                            name, scope, primKey, actionId);
576            }
577    
578            /**
579            * Returns <code>true</code> if the user has permission to perform the
580            * action on the resource.
581            *
582            * @param userId the primary key of the user
583            * @param actionId the action's ID
584            * @param resourceId the primary key of the resource
585            * @return <code>true</code> if the user has permission to perform the
586            action on the resource; <code>false</code> otherwise
587            * @throws SystemException if a system exception occurred
588            */
589            public boolean hasUserPermission(long userId, java.lang.String actionId,
590                    long resourceId)
591                    throws com.liferay.portal.kernel.exception.SystemException {
592                    return _permissionLocalService.hasUserPermission(userId, actionId,
593                            resourceId);
594            }
595    
596            /**
597            * Returns <code>true</code> if the user has permission to perform the
598            * action on the resources.
599            *
600            * <p>
601            * This method does not support resources managed by the resource block
602            * system.
603            * </p>
604            *
605            * @param userId the primary key of the user
606            * @param groupId the primary key of the group containing the resource
607            * @param resources representations of the resource at each scope level
608            returned by {@link
609            com.liferay.portal.security.permission.AdvancedPermissionChecker#getResources(
610            long, long, String, String, String)}
611            * @param actionId the action's ID
612            * @param permissionCheckerBag the permission checker bag
613            * @return <code>true</code> if the user has permission to perform the
614            action on the resources; <code>false</code> otherwise
615            * @throws PortalException if a resource action based on any one of the
616            resources and the action ID could not be found
617            * @throws SystemException if a system exception occurred
618            */
619            public boolean hasUserPermissions(long userId, long groupId,
620                    java.util.List<com.liferay.portal.model.Resource> resources,
621                    java.lang.String actionId,
622                    com.liferay.portal.security.permission.PermissionCheckerBag permissionCheckerBag)
623                    throws com.liferay.portal.kernel.exception.PortalException,
624                            com.liferay.portal.kernel.exception.SystemException {
625                    return _permissionLocalService.hasUserPermissions(userId, groupId,
626                            resources, actionId, permissionCheckerBag);
627            }
628    
629            /**
630            * Sets the container wide permissions of either the role or the default
631            * user of each company to perform the actions on the named resource.
632            *
633            * @param name the resource name
634            * @param roleName the role name. Supported role names include {@link
635            com.liferay.portal.model.RoleConstants#ORGANIZATION_USER},
636            {@link com.liferay.portal.model.RoleConstants#OWNER}, and {@link
637            com.liferay.portal.model.RoleConstants#SITE_MEMBER}.
638            * @param actionId the action's ID
639            * @throws PortalException if a matching role could not be found or if a
640            default user for the company could not be found
641            * @throws SystemException if a system exception occurred
642            */
643            public void setContainerResourcePermissions(java.lang.String name,
644                    java.lang.String roleName, java.lang.String actionId)
645                    throws com.liferay.portal.kernel.exception.PortalException,
646                            com.liferay.portal.kernel.exception.SystemException {
647                    _permissionLocalService.setContainerResourcePermissions(name, roleName,
648                            actionId);
649            }
650    
651            /**
652            * Sets the group's permissions to perform the actions on the resource,
653            * replacing the group's existing permissions on the resource.
654            *
655            * @param groupId the primary key of the group
656            * @param actionIds the primary keys of the actions
657            * @param resourceId the primary key of the resource
658            * @throws PortalException if a group with the primary key could not be
659            found
660            * @throws SystemException if a system exception occurred
661            */
662            public void setGroupPermissions(long groupId, java.lang.String[] actionIds,
663                    long resourceId)
664                    throws com.liferay.portal.kernel.exception.PortalException,
665                            com.liferay.portal.kernel.exception.SystemException {
666                    _permissionLocalService.setGroupPermissions(groupId, actionIds,
667                            resourceId);
668            }
669    
670            /**
671            * Sets the entity's group permissions to perform the actions on the
672            * resource, replacing the entity's existing group permissions on the
673            * resource. Only {@link com.liferay.portal.model.Organization} and {@link
674            * com.liferay.portal.model.UserGroup} class entities are supported.
675            *
676            * @param className the class name of an organization or user group
677            * @param classPK the primary key of the class
678            * @param groupId the primary key of the group
679            * @param actionIds the primary keys of the actions
680            * @param resourceId the primary key of the resource
681            * @throws PortalException if an entity with the class name and primary key
682            could not be found or if the entity's associated group could not
683            be found
684            * @throws SystemException if a system exception occurred
685            */
686            public void setGroupPermissions(java.lang.String className,
687                    java.lang.String classPK, long groupId, java.lang.String[] actionIds,
688                    long resourceId)
689                    throws com.liferay.portal.kernel.exception.PortalException,
690                            com.liferay.portal.kernel.exception.SystemException {
691                    _permissionLocalService.setGroupPermissions(className, classPK,
692                            groupId, actionIds, resourceId);
693            }
694    
695            /**
696            * Sets the organization's group permissions to perform the actions on the
697            * resource, replacing the organization's existing group permissions on the
698            * resource.
699            *
700            * @param organizationId the primary key of the organization
701            * @param groupId the primary key of the group in which to scope the
702            permissions
703            * @param actionIds the primary keys of the actions
704            * @param resourceId the primary key of the resource
705            * @throws PortalException if an organization with the primary key could
706            not be found
707            * @throws SystemException if a system exception occurred
708            */
709            public void setOrgGroupPermissions(long organizationId, long groupId,
710                    java.lang.String[] actionIds, long resourceId)
711                    throws com.liferay.portal.kernel.exception.PortalException,
712                            com.liferay.portal.kernel.exception.SystemException {
713                    _permissionLocalService.setOrgGroupPermissions(organizationId, groupId,
714                            actionIds, resourceId);
715            }
716    
717            /**
718            * Sets the role's permissions to perform the action on the named resource,
719            * replacing the role's existing permissions on the resource.
720            *
721            * @param roleId the primary key of the role
722            * @param companyId the primary key of the company
723            * @param name the resource name
724            * @param scope the resource scope
725            * @param primKey the resource primKey
726            * @param actionId the action's ID
727            * @throws PortalException if the scope was {@link
728            com.liferay.portal.model.ResourceConstants#SCOPE_INDIVIDUAL}
729            * @throws SystemException if a system exception occurred
730            */
731            public void setRolePermission(long roleId, long companyId,
732                    java.lang.String name, int scope, java.lang.String primKey,
733                    java.lang.String actionId)
734                    throws com.liferay.portal.kernel.exception.PortalException,
735                            com.liferay.portal.kernel.exception.SystemException {
736                    _permissionLocalService.setRolePermission(roleId, companyId, name,
737                            scope, primKey, actionId);
738            }
739    
740            /**
741            * Sets the role's permissions to perform the actions on the named
742            * resource, replacing the role's existing permission for each of these
743            * actions on the resource.
744            *
745            * @param roleId the primary key of the role
746            * @param companyId the primary key of the company
747            * @param name the resource name
748            * @param scope the resource scope
749            * @param primKey the resource primKey
750            * @param actionIds the primary keys of the actions
751            * @throws PortalException if the scope was {@link
752            com.liferay.portal.model.ResourceConstants#SCOPE_INDIVIDUAL}
753            * @throws SystemException if a system exception occurred
754            */
755            public void setRolePermissions(long roleId, long companyId,
756                    java.lang.String name, int scope, java.lang.String primKey,
757                    java.lang.String[] actionIds)
758                    throws com.liferay.portal.kernel.exception.PortalException,
759                            com.liferay.portal.kernel.exception.SystemException {
760                    _permissionLocalService.setRolePermissions(roleId, companyId, name,
761                            scope, primKey, actionIds);
762            }
763    
764            /**
765            * Sets the role's permissions to perform the actions on the resource,
766            * replacing the role's existing permissions on the resource.
767            *
768            * @param roleId the primary key of the role
769            * @param actionIds the primary keys of the actions
770            * @param resourceId the primary key of the resource
771            * @throws PortalException if a role with the primary key could not be
772            found
773            * @throws SystemException if a system exception occurred
774            */
775            public void setRolePermissions(long roleId, java.lang.String[] actionIds,
776                    long resourceId)
777                    throws com.liferay.portal.kernel.exception.PortalException,
778                            com.liferay.portal.kernel.exception.SystemException {
779                    _permissionLocalService.setRolePermissions(roleId, actionIds, resourceId);
780            }
781    
782            /**
783            * Sets the permissions of each role to perform respective actions on the
784            * resource, replacing the existing permissions of each role on the
785            * resource.
786            *
787            * @param companyId the primary key of the company
788            * @param roleIdsToActionIds the map of roles to their new actions on the
789            resource
790            * @param resourceId the primary key of the resource
791            * @throws SystemException if a system exception occurred
792            */
793            public void setRolesPermissions(long companyId,
794                    java.util.Map<java.lang.Long, java.lang.String[]> roleIdsToActionIds,
795                    long resourceId)
796                    throws com.liferay.portal.kernel.exception.SystemException {
797                    _permissionLocalService.setRolesPermissions(companyId,
798                            roleIdsToActionIds, resourceId);
799            }
800    
801            /**
802            * Sets the permissions of each role to perform respective actions on the
803            * named resource, replacing the existing permissions of each role on the
804            * resource.
805            *
806            * @param companyId the primary key of the company
807            * @param roleIdsToActionIds the map of roles to their new actions on the
808            resource
809            * @param name the resource name
810            * @param scope the resource scope
811            * @param primKey the resource primKey
812            * @throws SystemException if a system exception occurred
813            */
814            public void setRolesPermissions(long companyId,
815                    java.util.Map<java.lang.Long, java.lang.String[]> roleIdsToActionIds,
816                    java.lang.String name, int scope, java.lang.String primKey)
817                    throws com.liferay.portal.kernel.exception.SystemException {
818                    _permissionLocalService.setRolesPermissions(companyId,
819                            roleIdsToActionIds, name, scope, primKey);
820            }
821    
822            /**
823            * Sets the user's permissions to perform the actions on the resource,
824            * replacing the user's existing permissions on the resource.
825            *
826            * @param userId the primary key of the user
827            * @param actionIds the primary keys of the actions
828            * @param resourceId the primary key of the resource
829            * @throws PortalException if a user with the primary key could not be
830            found
831            * @throws SystemException if a system exception occurred
832            */
833            public void setUserPermissions(long userId, java.lang.String[] actionIds,
834                    long resourceId)
835                    throws com.liferay.portal.kernel.exception.PortalException,
836                            com.liferay.portal.kernel.exception.SystemException {
837                    _permissionLocalService.setUserPermissions(userId, actionIds, resourceId);
838            }
839    
840            /**
841            * Removes the permission from the role.
842            *
843            * @param roleId the primary key of the role
844            * @param permissionId the primary key of the permission
845            * @throws SystemException if a system exception occurred
846            */
847            public void unsetRolePermission(long roleId, long permissionId)
848                    throws com.liferay.portal.kernel.exception.SystemException {
849                    _permissionLocalService.unsetRolePermission(roleId, permissionId);
850            }
851    
852            /**
853            * Removes the role's permissions to perform the action on the named
854            * resource with the scope and primKey.
855            *
856            * @param roleId the primary key of the role
857            * @param companyId the primary key of the company
858            * @param name the resource name
859            * @param scope the resource scope
860            * @param primKey the resource primKey
861            * @param actionId the action's ID
862            * @throws SystemException if a system exception occurred
863            */
864            public void unsetRolePermission(long roleId, long companyId,
865                    java.lang.String name, int scope, java.lang.String primKey,
866                    java.lang.String actionId)
867                    throws com.liferay.portal.kernel.exception.SystemException {
868                    _permissionLocalService.unsetRolePermission(roleId, companyId, name,
869                            scope, primKey, actionId);
870            }
871    
872            /**
873            * Removes the role's permissions to perform the action on the named
874            * resource.
875            *
876            * @param roleId the primary key of the role
877            * @param companyId the primary key of the company
878            * @param name the resource name
879            * @param scope the resource scope
880            * @param actionId the action's ID
881            * @throws SystemException if a system exception occurred
882            */
883            public void unsetRolePermissions(long roleId, long companyId,
884                    java.lang.String name, int scope, java.lang.String actionId)
885                    throws com.liferay.portal.kernel.exception.SystemException {
886                    _permissionLocalService.unsetRolePermissions(roleId, companyId, name,
887                            scope, actionId);
888            }
889    
890            /**
891            * Removes the user's permissions to perform the actions on the resource.
892            *
893            * @param userId the primary key of the user
894            * @param actionIds the primary keys of the actions
895            * @param resourceId the primary key of the resource
896            * @throws SystemException if a system exception occurred
897            */
898            public void unsetUserPermissions(long userId, java.lang.String[] actionIds,
899                    long resourceId)
900                    throws com.liferay.portal.kernel.exception.SystemException {
901                    _permissionLocalService.unsetUserPermissions(userId, actionIds,
902                            resourceId);
903            }
904    
905            public PermissionLocalService getWrappedPermissionLocalService() {
906                    return _permissionLocalService;
907            }
908    
909            public void setWrappedPermissionLocalService(
910                    PermissionLocalService permissionLocalService) {
911                    _permissionLocalService = permissionLocalService;
912            }
913    
914            private PermissionLocalService _permissionLocalService;
915    }