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