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