1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service;
16  
17  
18  /**
19   * <a href="ResourcePermissionServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link ResourcePermissionService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       ResourcePermissionService
32   * @generated
33   */
34  public class ResourcePermissionServiceWrapper
35      implements ResourcePermissionService {
36      public ResourcePermissionServiceWrapper(
37          ResourcePermissionService resourcePermissionService) {
38          _resourcePermissionService = resourcePermissionService;
39      }
40  
41      public void addResourcePermission(long groupId, long companyId,
42          java.lang.String name, int scope, java.lang.String primKey,
43          long roleId, java.lang.String actionId)
44          throws com.liferay.portal.kernel.exception.PortalException,
45              com.liferay.portal.kernel.exception.SystemException {
46          _resourcePermissionService.addResourcePermission(groupId, companyId,
47              name, scope, primKey, roleId, actionId);
48      }
49  
50      public void setIndividualResourcePermissions(long groupId, long companyId,
51          java.lang.String name, java.lang.String primKey, long roleId,
52          java.lang.String[] actionIds)
53          throws com.liferay.portal.kernel.exception.PortalException,
54              com.liferay.portal.kernel.exception.SystemException {
55          _resourcePermissionService.setIndividualResourcePermissions(groupId,
56              companyId, name, primKey, roleId, actionIds);
57      }
58  
59      public void removeResourcePermission(long groupId, long companyId,
60          java.lang.String name, int scope, java.lang.String primKey,
61          long roleId, java.lang.String actionId)
62          throws com.liferay.portal.kernel.exception.PortalException,
63              com.liferay.portal.kernel.exception.SystemException {
64          _resourcePermissionService.removeResourcePermission(groupId, companyId,
65              name, scope, primKey, roleId, actionId);
66      }
67  
68      public void removeResourcePermissions(long groupId, long companyId,
69          java.lang.String name, int scope, long roleId, java.lang.String actionId)
70          throws com.liferay.portal.kernel.exception.PortalException,
71              com.liferay.portal.kernel.exception.SystemException {
72          _resourcePermissionService.removeResourcePermissions(groupId,
73              companyId, name, scope, roleId, actionId);
74      }
75  
76      public ResourcePermissionService getWrappedResourcePermissionService() {
77          return _resourcePermissionService;
78      }
79  
80      private ResourcePermissionService _resourcePermissionService;
81  }