1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service;
24  
25  
26  /**
27   * <a href="PermissionServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class is a wrapper for {@link PermissionService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       PermissionService
40   * @generated
41   */
42  public class PermissionServiceWrapper implements PermissionService {
43      public PermissionServiceWrapper(PermissionService permissionService) {
44          _permissionService = permissionService;
45      }
46  
47      public void checkPermission(long groupId, long resourceId)
48          throws com.liferay.portal.PortalException,
49              com.liferay.portal.SystemException {
50          _permissionService.checkPermission(groupId, resourceId);
51      }
52  
53      public void checkPermission(long groupId, java.lang.String name,
54          long primKey)
55          throws com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException {
57          _permissionService.checkPermission(groupId, name, primKey);
58      }
59  
60      public void checkPermission(long groupId, java.lang.String name,
61          java.lang.String primKey)
62          throws com.liferay.portal.PortalException,
63              com.liferay.portal.SystemException {
64          _permissionService.checkPermission(groupId, name, primKey);
65      }
66  
67      public boolean hasGroupPermission(long groupId, java.lang.String actionId,
68          long resourceId) throws com.liferay.portal.SystemException {
69          return _permissionService.hasGroupPermission(groupId, actionId,
70              resourceId);
71      }
72  
73      public boolean hasUserPermission(long userId, java.lang.String actionId,
74          long resourceId) throws com.liferay.portal.SystemException {
75          return _permissionService.hasUserPermission(userId, actionId, resourceId);
76      }
77  
78      public boolean hasUserPermissions(long userId, long groupId,
79          java.util.List<com.liferay.portal.model.Resource> resources,
80          java.lang.String actionId,
81          com.liferay.portal.security.permission.PermissionCheckerBag permissionCheckerBag)
82          throws com.liferay.portal.PortalException,
83              com.liferay.portal.SystemException {
84          return _permissionService.hasUserPermissions(userId, groupId,
85              resources, actionId, permissionCheckerBag);
86      }
87  
88      public void setGroupPermissions(long groupId, java.lang.String[] actionIds,
89          long resourceId)
90          throws com.liferay.portal.PortalException,
91              com.liferay.portal.SystemException {
92          _permissionService.setGroupPermissions(groupId, actionIds, resourceId);
93      }
94  
95      public void setGroupPermissions(java.lang.String className,
96          java.lang.String classPK, long groupId, java.lang.String[] actionIds,
97          long resourceId)
98          throws com.liferay.portal.PortalException,
99              com.liferay.portal.SystemException {
100         _permissionService.setGroupPermissions(className, classPK, groupId,
101             actionIds, resourceId);
102     }
103 
104     public void setOrgGroupPermissions(long organizationId, long groupId,
105         java.lang.String[] actionIds, long resourceId)
106         throws com.liferay.portal.PortalException,
107             com.liferay.portal.SystemException {
108         _permissionService.setOrgGroupPermissions(organizationId, groupId,
109             actionIds, resourceId);
110     }
111 
112     public void setRolePermission(long roleId, long groupId,
113         java.lang.String name, int scope, java.lang.String primKey,
114         java.lang.String actionId)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException {
117         _permissionService.setRolePermission(roleId, groupId, name, scope,
118             primKey, actionId);
119     }
120 
121     public void setRolePermissions(long roleId, long groupId,
122         java.lang.String[] actionIds, long resourceId)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException {
125         _permissionService.setRolePermissions(roleId, groupId, actionIds,
126             resourceId);
127     }
128 
129     public void setUserPermissions(long userId, long groupId,
130         java.lang.String[] actionIds, long resourceId)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException {
133         _permissionService.setUserPermissions(userId, groupId, actionIds,
134             resourceId);
135     }
136 
137     public void unsetRolePermission(long roleId, long groupId, long permissionId)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException {
140         _permissionService.unsetRolePermission(roleId, groupId, permissionId);
141     }
142 
143     public void unsetRolePermission(long roleId, long groupId,
144         java.lang.String name, int scope, java.lang.String primKey,
145         java.lang.String actionId)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException {
148         _permissionService.unsetRolePermission(roleId, groupId, name, scope,
149             primKey, actionId);
150     }
151 
152     public void unsetRolePermissions(long roleId, long groupId,
153         java.lang.String name, int scope, java.lang.String actionId)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException {
156         _permissionService.unsetRolePermissions(roleId, groupId, name, scope,
157             actionId);
158     }
159 
160     public void unsetUserPermissions(long userId, long groupId,
161         java.lang.String[] actionIds, long resourceId)
162         throws com.liferay.portal.PortalException,
163             com.liferay.portal.SystemException {
164         _permissionService.unsetUserPermissions(userId, groupId, actionIds,
165             resourceId);
166     }
167 
168     public PermissionService getWrappedPermissionService() {
169         return _permissionService;
170     }
171 
172     private PermissionService _permissionService;
173 }