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="PermissionServiceUtil.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 PermissionService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       PermissionService
32   * @generated
33   */
34  public class PermissionServiceWrapper implements PermissionService {
35      public PermissionServiceWrapper(PermissionService permissionService) {
36          _permissionService = permissionService;
37      }
38  
39      public void checkPermission(long groupId, long resourceId)
40          throws com.liferay.portal.PortalException,
41              com.liferay.portal.SystemException {
42          _permissionService.checkPermission(groupId, resourceId);
43      }
44  
45      public void checkPermission(long groupId, java.lang.String name,
46          long primKey)
47          throws com.liferay.portal.PortalException,
48              com.liferay.portal.SystemException {
49          _permissionService.checkPermission(groupId, name, primKey);
50      }
51  
52      public void checkPermission(long groupId, java.lang.String name,
53          java.lang.String primKey)
54          throws com.liferay.portal.PortalException,
55              com.liferay.portal.SystemException {
56          _permissionService.checkPermission(groupId, name, primKey);
57      }
58  
59      public boolean hasGroupPermission(long groupId, java.lang.String actionId,
60          long resourceId) throws com.liferay.portal.SystemException {
61          return _permissionService.hasGroupPermission(groupId, actionId,
62              resourceId);
63      }
64  
65      public boolean hasUserPermission(long userId, java.lang.String actionId,
66          long resourceId) throws com.liferay.portal.SystemException {
67          return _permissionService.hasUserPermission(userId, actionId, resourceId);
68      }
69  
70      public boolean hasUserPermissions(long userId, long groupId,
71          java.util.List<com.liferay.portal.model.Resource> resources,
72          java.lang.String actionId,
73          com.liferay.portal.security.permission.PermissionCheckerBag permissionCheckerBag)
74          throws com.liferay.portal.PortalException,
75              com.liferay.portal.SystemException {
76          return _permissionService.hasUserPermissions(userId, groupId,
77              resources, actionId, permissionCheckerBag);
78      }
79  
80      public void setGroupPermissions(long groupId, java.lang.String[] actionIds,
81          long resourceId)
82          throws com.liferay.portal.PortalException,
83              com.liferay.portal.SystemException {
84          _permissionService.setGroupPermissions(groupId, actionIds, resourceId);
85      }
86  
87      public void setGroupPermissions(java.lang.String className,
88          java.lang.String classPK, long groupId, java.lang.String[] actionIds,
89          long resourceId)
90          throws com.liferay.portal.PortalException,
91              com.liferay.portal.SystemException {
92          _permissionService.setGroupPermissions(className, classPK, groupId,
93              actionIds, resourceId);
94      }
95  
96      public void setOrgGroupPermissions(long organizationId, long groupId,
97          java.lang.String[] actionIds, long resourceId)
98          throws com.liferay.portal.PortalException,
99              com.liferay.portal.SystemException {
100         _permissionService.setOrgGroupPermissions(organizationId, groupId,
101             actionIds, resourceId);
102     }
103 
104     public void setRolePermission(long roleId, long groupId,
105         java.lang.String name, int scope, java.lang.String primKey,
106         java.lang.String actionId)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException {
109         _permissionService.setRolePermission(roleId, groupId, name, scope,
110             primKey, actionId);
111     }
112 
113     public void setRolePermissions(long roleId, long groupId,
114         java.lang.String[] actionIds, long resourceId)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException {
117         _permissionService.setRolePermissions(roleId, groupId, actionIds,
118             resourceId);
119     }
120 
121     public void setUserPermissions(long userId, long groupId,
122         java.lang.String[] actionIds, long resourceId)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException {
125         _permissionService.setUserPermissions(userId, groupId, actionIds,
126             resourceId);
127     }
128 
129     public void unsetRolePermission(long roleId, long groupId, long permissionId)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException {
132         _permissionService.unsetRolePermission(roleId, groupId, permissionId);
133     }
134 
135     public void unsetRolePermission(long roleId, long groupId,
136         java.lang.String name, int scope, java.lang.String primKey,
137         java.lang.String actionId)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException {
140         _permissionService.unsetRolePermission(roleId, groupId, name, scope,
141             primKey, actionId);
142     }
143 
144     public void unsetRolePermissions(long roleId, long groupId,
145         java.lang.String name, int scope, java.lang.String actionId)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException {
148         _permissionService.unsetRolePermissions(roleId, groupId, name, scope,
149             actionId);
150     }
151 
152     public void unsetUserPermissions(long userId, long groupId,
153         java.lang.String[] actionIds, long resourceId)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException {
156         _permissionService.unsetUserPermissions(userId, groupId, actionIds,
157             resourceId);
158     }
159 
160     public PermissionService getWrappedPermissionService() {
161         return _permissionService;
162     }
163 
164     private PermissionService _permissionService;
165 }