1
22
23 package com.liferay.portal.service;
24
25
26
47 public class RoleLocalServiceUtil {
48 public static com.liferay.portal.model.Role addRole(
49 com.liferay.portal.model.Role role)
50 throws com.liferay.portal.SystemException {
51 return _service.addRole(role);
52 }
53
54 public static void deleteRole(long roleId)
55 throws com.liferay.portal.PortalException,
56 com.liferay.portal.SystemException {
57 _service.deleteRole(roleId);
58 }
59
60 public static void deleteRole(com.liferay.portal.model.Role role)
61 throws com.liferay.portal.SystemException {
62 _service.deleteRole(role);
63 }
64
65 public static java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.SystemException {
68 return _service.dynamicQuery(dynamicQuery);
69 }
70
71 public static java.util.List<Object> dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.SystemException {
74 return _service.dynamicQuery(dynamicQuery, start, end);
75 }
76
77 public static com.liferay.portal.model.Role getRole(long roleId)
78 throws com.liferay.portal.PortalException,
79 com.liferay.portal.SystemException {
80 return _service.getRole(roleId);
81 }
82
83 public static java.util.List<com.liferay.portal.model.Role> getRoles(
84 int start, int end) throws com.liferay.portal.SystemException {
85 return _service.getRoles(start, end);
86 }
87
88 public static int getRolesCount() throws com.liferay.portal.SystemException {
89 return _service.getRolesCount();
90 }
91
92 public static com.liferay.portal.model.Role updateRole(
93 com.liferay.portal.model.Role role)
94 throws com.liferay.portal.SystemException {
95 return _service.updateRole(role);
96 }
97
98 public static com.liferay.portal.model.Role addRole(long userId,
99 long companyId, java.lang.String name, java.lang.String description,
100 int type)
101 throws com.liferay.portal.PortalException,
102 com.liferay.portal.SystemException {
103 return _service.addRole(userId, companyId, name, description, type);
104 }
105
106 public static com.liferay.portal.model.Role addRole(long userId,
107 long companyId, java.lang.String name, java.lang.String description,
108 int type, java.lang.String className, long classPK)
109 throws com.liferay.portal.PortalException,
110 com.liferay.portal.SystemException {
111 return _service.addRole(userId, companyId, name, description, type,
112 className, classPK);
113 }
114
115 public static void addUserRoles(long userId, long[] roleIds)
116 throws com.liferay.portal.SystemException {
117 _service.addUserRoles(userId, roleIds);
118 }
119
120 public static void checkSystemRoles(long companyId)
121 throws com.liferay.portal.PortalException,
122 com.liferay.portal.SystemException {
123 _service.checkSystemRoles(companyId);
124 }
125
126 public static com.liferay.portal.model.Role getGroupRole(long companyId,
127 long groupId)
128 throws com.liferay.portal.PortalException,
129 com.liferay.portal.SystemException {
130 return _service.getGroupRole(companyId, groupId);
131 }
132
133 public static java.util.List<com.liferay.portal.model.Role> getGroupRoles(
134 long groupId) throws com.liferay.portal.SystemException {
135 return _service.getGroupRoles(groupId);
136 }
137
138 public static java.util.Map<String, java.util.List<String>> getResourceRoles(
139 long companyId, java.lang.String name, int scope,
140 java.lang.String primKey) throws com.liferay.portal.SystemException {
141 return _service.getResourceRoles(companyId, name, scope, primKey);
142 }
143
144 public static com.liferay.portal.model.Role getRole(long companyId,
145 java.lang.String name)
146 throws com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException {
148 return _service.getRole(companyId, name);
149 }
150
151 public static java.util.List<com.liferay.portal.model.Role> getRoles(
152 long companyId) throws com.liferay.portal.SystemException {
153 return _service.getRoles(companyId);
154 }
155
156 public static java.util.List<com.liferay.portal.model.Role> getUserGroupRoles(
157 long userId, long groupId) throws com.liferay.portal.SystemException {
158 return _service.getUserGroupRoles(userId, groupId);
159 }
160
161 public static java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
162 long userId, long groupId) throws com.liferay.portal.SystemException {
163 return _service.getUserRelatedRoles(userId, groupId);
164 }
165
166 public static java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
167 long userId, long[] groupIds) throws com.liferay.portal.SystemException {
168 return _service.getUserRelatedRoles(userId, groupIds);
169 }
170
171 public static java.util.List<com.liferay.portal.model.Role> getUserRelatedRoles(
172 long userId, java.util.List<com.liferay.portal.model.Group> groups)
173 throws com.liferay.portal.SystemException {
174 return _service.getUserRelatedRoles(userId, groups);
175 }
176
177 public static java.util.List<com.liferay.portal.model.Role> getUserRoles(
178 long userId) throws com.liferay.portal.SystemException {
179 return _service.getUserRoles(userId);
180 }
181
182 public static boolean hasUserRole(long userId, long roleId)
183 throws com.liferay.portal.SystemException {
184 return _service.hasUserRole(userId, roleId);
185 }
186
187 public static boolean hasUserRole(long userId, long companyId,
188 java.lang.String name, boolean inherited)
189 throws com.liferay.portal.PortalException,
190 com.liferay.portal.SystemException {
191 return _service.hasUserRole(userId, companyId, name, inherited);
192 }
193
194 public static boolean hasUserRoles(long userId, long companyId,
195 java.lang.String[] names, boolean inherited)
196 throws com.liferay.portal.PortalException,
197 com.liferay.portal.SystemException {
198 return _service.hasUserRoles(userId, companyId, names, inherited);
199 }
200
201 public static java.util.List<com.liferay.portal.model.Role> search(
202 long companyId, java.lang.String name, java.lang.String description,
203 java.lang.Integer type, int start, int end,
204 com.liferay.portal.kernel.util.OrderByComparator obc)
205 throws com.liferay.portal.SystemException {
206 return _service.search(companyId, name, description, type, start, end,
207 obc);
208 }
209
210 public static java.util.List<com.liferay.portal.model.Role> search(
211 long companyId, java.lang.String name, java.lang.String description,
212 java.lang.Integer type, java.util.LinkedHashMap<String, Object> params,
213 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
214 throws com.liferay.portal.SystemException {
215 return _service.search(companyId, name, description, type, params,
216 start, end, obc);
217 }
218
219 public static int searchCount(long companyId, java.lang.String name,
220 java.lang.String description, java.lang.Integer type)
221 throws com.liferay.portal.SystemException {
222 return _service.searchCount(companyId, name, description, type);
223 }
224
225 public static int searchCount(long companyId, java.lang.String name,
226 java.lang.String description, java.lang.Integer type,
227 java.util.LinkedHashMap<String, Object> params)
228 throws com.liferay.portal.SystemException {
229 return _service.searchCount(companyId, name, description, type, params);
230 }
231
232 public static void setUserRoles(long userId, long[] roleIds)
233 throws com.liferay.portal.SystemException {
234 _service.setUserRoles(userId, roleIds);
235 }
236
237 public static void unsetUserRoles(long userId, long[] roleIds)
238 throws com.liferay.portal.SystemException {
239 _service.unsetUserRoles(userId, roleIds);
240 }
241
242 public static com.liferay.portal.model.Role updateRole(long roleId,
243 java.lang.String name, java.lang.String description)
244 throws com.liferay.portal.PortalException,
245 com.liferay.portal.SystemException {
246 return _service.updateRole(roleId, name, description);
247 }
248
249 public static RoleLocalService getService() {
250 return _service;
251 }
252
253 public void setService(RoleLocalService service) {
254 _service = service;
255 }
256
257 private static RoleLocalService _service;
258 }