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="RoleServiceUtil.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 RoleService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       RoleService
40   * @generated
41   */
42  public class RoleServiceWrapper implements RoleService {
43      public RoleServiceWrapper(RoleService roleService) {
44          _roleService = roleService;
45      }
46  
47      public com.liferay.portal.model.Role addRole(java.lang.String name,
48          java.lang.String description, int type)
49          throws com.liferay.portal.PortalException,
50              com.liferay.portal.SystemException {
51          return _roleService.addRole(name, description, type);
52      }
53  
54      public void addUserRoles(long userId, long[] roleIds)
55          throws com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException {
57          _roleService.addUserRoles(userId, roleIds);
58      }
59  
60      public void deleteRole(long roleId)
61          throws com.liferay.portal.PortalException,
62              com.liferay.portal.SystemException {
63          _roleService.deleteRole(roleId);
64      }
65  
66      public com.liferay.portal.model.Role getGroupRole(long companyId,
67          long groupId)
68          throws com.liferay.portal.PortalException,
69              com.liferay.portal.SystemException {
70          return _roleService.getGroupRole(companyId, groupId);
71      }
72  
73      public java.util.List<com.liferay.portal.model.Role> getGroupRoles(
74          long groupId) throws com.liferay.portal.SystemException {
75          return _roleService.getGroupRoles(groupId);
76      }
77  
78      public com.liferay.portal.model.Role getRole(long roleId)
79          throws com.liferay.portal.PortalException,
80              com.liferay.portal.SystemException {
81          return _roleService.getRole(roleId);
82      }
83  
84      public com.liferay.portal.model.Role getRole(long companyId,
85          java.lang.String name)
86          throws com.liferay.portal.PortalException,
87              com.liferay.portal.SystemException {
88          return _roleService.getRole(companyId, name);
89      }
90  
91      public java.util.List<com.liferay.portal.model.Role> getUserGroupGroupRoles(
92          long userId, long groupId) throws com.liferay.portal.SystemException {
93          return _roleService.getUserGroupGroupRoles(userId, groupId);
94      }
95  
96      public java.util.List<com.liferay.portal.model.Role> getUserGroupRoles(
97          long userId, long groupId) throws com.liferay.portal.SystemException {
98          return _roleService.getUserGroupRoles(userId, groupId);
99      }
100 
101     public java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
102         long userId, java.util.List<com.liferay.portal.model.Group> groups)
103         throws com.liferay.portal.SystemException {
104         return _roleService.getUserRelatedRoles(userId, groups);
105     }
106 
107     public java.util.List<com.liferay.portal.model.Role> getUserRoles(
108         long userId) throws com.liferay.portal.SystemException {
109         return _roleService.getUserRoles(userId);
110     }
111 
112     public boolean hasUserRole(long userId, long companyId,
113         java.lang.String name, boolean inherited)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException {
116         return _roleService.hasUserRole(userId, companyId, name, inherited);
117     }
118 
119     public boolean hasUserRoles(long userId, long companyId,
120         java.lang.String[] names, boolean inherited)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException {
123         return _roleService.hasUserRoles(userId, companyId, names, inherited);
124     }
125 
126     public void unsetUserRoles(long userId, long[] roleIds)
127         throws com.liferay.portal.PortalException,
128             com.liferay.portal.SystemException {
129         _roleService.unsetUserRoles(userId, roleIds);
130     }
131 
132     public com.liferay.portal.model.Role updateRole(long roleId,
133         java.lang.String name,
134         java.util.Map<java.util.Locale, String> localeTitlesMap,
135         java.lang.String description, java.lang.String subtype)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException {
138         return _roleService.updateRole(roleId, name, localeTitlesMap,
139             description, subtype);
140     }
141 
142     public RoleService getWrappedRoleService() {
143         return _roleService;
144     }
145 
146     private RoleService _roleService;
147 }