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