1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.service;
16  
17  /**
18   * <a href="ResourcePermissionServiceUtil.java.html"><b><i>View Source</i></b></a>
19   *
20   * <p>
21   * ServiceBuilder generated this class. Modifications in this class will be
22   * overwritten the next time is generated.
23   * </p>
24   *
25   * <p>
26   * This class is a wrapper for {@link ResourcePermissionService}.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       ResourcePermissionService
31   * @generated
32   */
33  public class ResourcePermissionServiceWrapper
34      implements ResourcePermissionService {
35      public ResourcePermissionServiceWrapper(
36          ResourcePermissionService resourcePermissionService) {
37          _resourcePermissionService = resourcePermissionService;
38      }
39  
40      public void addResourcePermission(long groupId, long companyId,
41          java.lang.String name, int scope, java.lang.String primKey,
42          long roleId, java.lang.String actionId)
43          throws com.liferay.portal.PortalException,
44              com.liferay.portal.SystemException {
45          _resourcePermissionService.addResourcePermission(groupId, companyId,
46              name, scope, primKey, roleId, actionId);
47      }
48  
49      public void setIndividualResourcePermissions(long groupId, long companyId,
50          java.lang.String name, java.lang.String primKey, long roleId,
51          java.lang.String[] actionIds)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          _resourcePermissionService.setIndividualResourcePermissions(groupId,
55              companyId, name, primKey, roleId, actionIds);
56      }
57  
58      public void removeResourcePermission(long groupId, long companyId,
59          java.lang.String name, int scope, java.lang.String primKey,
60          long roleId, java.lang.String actionId)
61          throws com.liferay.portal.PortalException,
62              com.liferay.portal.SystemException {
63          _resourcePermissionService.removeResourcePermission(groupId, companyId,
64              name, scope, primKey, roleId, actionId);
65      }
66  
67      public void removeResourcePermissions(long groupId, long companyId,
68          java.lang.String name, int scope, long roleId, java.lang.String actionId)
69          throws com.liferay.portal.PortalException,
70              com.liferay.portal.SystemException {
71          _resourcePermissionService.removeResourcePermissions(groupId,
72              companyId, name, scope, roleId, actionId);
73      }
74  
75      public ResourcePermissionService getWrappedResourcePermissionService() {
76          return _resourcePermissionService;
77      }
78  
79      private ResourcePermissionService _resourcePermissionService;
80  }