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