1
14
15 package com.liferay.portal.service;
16
17
18
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 }