001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class UserGroupRoleLocalServiceUtil {
035
040
041
048 public static com.liferay.portal.model.UserGroupRole addUserGroupRole(
049 com.liferay.portal.model.UserGroupRole userGroupRole)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addUserGroupRole(userGroupRole);
052 }
053
054
060 public static com.liferay.portal.model.UserGroupRole createUserGroupRole(
061 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK) {
062 return getService().createUserGroupRole(userGroupRolePK);
063 }
064
065
072 public static void deleteUserGroupRole(
073 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 getService().deleteUserGroupRole(userGroupRolePK);
077 }
078
079
085 public static void deleteUserGroupRole(
086 com.liferay.portal.model.UserGroupRole userGroupRole)
087 throws com.liferay.portal.kernel.exception.SystemException {
088 getService().deleteUserGroupRole(userGroupRole);
089 }
090
091
098 @SuppressWarnings("rawtypes")
099 public static java.util.List dynamicQuery(
100 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
101 throws com.liferay.portal.kernel.exception.SystemException {
102 return getService().dynamicQuery(dynamicQuery);
103 }
104
105
118 @SuppressWarnings("rawtypes")
119 public static java.util.List dynamicQuery(
120 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121 int end) throws com.liferay.portal.kernel.exception.SystemException {
122 return getService().dynamicQuery(dynamicQuery, start, end);
123 }
124
125
139 @SuppressWarnings("rawtypes")
140 public static java.util.List dynamicQuery(
141 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142 int end,
143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144 throws com.liferay.portal.kernel.exception.SystemException {
145 return getService()
146 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
147 }
148
149
156 public static long dynamicQueryCount(
157 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158 throws com.liferay.portal.kernel.exception.SystemException {
159 return getService().dynamicQueryCount(dynamicQuery);
160 }
161
162
170 public static com.liferay.portal.model.UserGroupRole getUserGroupRole(
171 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException {
174 return getService().getUserGroupRole(userGroupRolePK);
175 }
176
177 public static com.liferay.portal.model.PersistedModel getPersistedModel(
178 java.io.Serializable primaryKeyObj)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException {
181 return getService().getPersistedModel(primaryKeyObj);
182 }
183
184
196 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
197 int start, int end)
198 throws com.liferay.portal.kernel.exception.SystemException {
199 return getService().getUserGroupRoles(start, end);
200 }
201
202
208 public static int getUserGroupRolesCount()
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getService().getUserGroupRolesCount();
211 }
212
213
220 public static com.liferay.portal.model.UserGroupRole updateUserGroupRole(
221 com.liferay.portal.model.UserGroupRole userGroupRole)
222 throws com.liferay.portal.kernel.exception.SystemException {
223 return getService().updateUserGroupRole(userGroupRole);
224 }
225
226
234 public static com.liferay.portal.model.UserGroupRole updateUserGroupRole(
235 com.liferay.portal.model.UserGroupRole userGroupRole, boolean merge)
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getService().updateUserGroupRole(userGroupRole, merge);
238 }
239
240
245 public static java.lang.String getBeanIdentifier() {
246 return getService().getBeanIdentifier();
247 }
248
249
254 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
255 getService().setBeanIdentifier(beanIdentifier);
256 }
257
258 public static void addUserGroupRoles(long userId, long groupId,
259 long[] roleIds)
260 throws com.liferay.portal.kernel.exception.PortalException,
261 com.liferay.portal.kernel.exception.SystemException {
262 getService().addUserGroupRoles(userId, groupId, roleIds);
263 }
264
265 public static void addUserGroupRoles(long[] userIds, long groupId,
266 long roleId)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException {
269 getService().addUserGroupRoles(userIds, groupId, roleId);
270 }
271
272 public static void deleteUserGroupRoles(long userId, long groupId,
273 long[] roleIds)
274 throws com.liferay.portal.kernel.exception.SystemException {
275 getService().deleteUserGroupRoles(userId, groupId, roleIds);
276 }
277
278 public static void deleteUserGroupRoles(long userId, long[] groupIds)
279 throws com.liferay.portal.kernel.exception.SystemException {
280 getService().deleteUserGroupRoles(userId, groupIds);
281 }
282
283 public static void deleteUserGroupRoles(long[] userIds, long groupId)
284 throws com.liferay.portal.kernel.exception.SystemException {
285 getService().deleteUserGroupRoles(userIds, groupId);
286 }
287
288 public static void deleteUserGroupRoles(long[] userIds, long groupId,
289 long roleId) throws com.liferay.portal.kernel.exception.SystemException {
290 getService().deleteUserGroupRoles(userIds, groupId, roleId);
291 }
292
293 public static void deleteUserGroupRolesByGroupId(long groupId)
294 throws com.liferay.portal.kernel.exception.SystemException {
295 getService().deleteUserGroupRolesByGroupId(groupId);
296 }
297
298 public static void deleteUserGroupRolesByRoleId(long roleId)
299 throws com.liferay.portal.kernel.exception.SystemException {
300 getService().deleteUserGroupRolesByRoleId(roleId);
301 }
302
303 public static void deleteUserGroupRolesByUserId(long userId)
304 throws com.liferay.portal.kernel.exception.SystemException {
305 getService().deleteUserGroupRolesByUserId(userId);
306 }
307
308 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
309 long userId) throws com.liferay.portal.kernel.exception.SystemException {
310 return getService().getUserGroupRoles(userId);
311 }
312
313 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
314 long userId, long groupId)
315 throws com.liferay.portal.kernel.exception.SystemException {
316 return getService().getUserGroupRoles(userId, groupId);
317 }
318
319 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroupAndRole(
320 long groupId, long roleId)
321 throws com.liferay.portal.kernel.exception.SystemException {
322 return getService().getUserGroupRolesByGroupAndRole(groupId, roleId);
323 }
324
325 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByUserUserGroupAndGroup(
326 long userId, long groupId)
327 throws com.liferay.portal.kernel.exception.SystemException {
328 return getService()
329 .getUserGroupRolesByUserUserGroupAndGroup(userId, groupId);
330 }
331
332 public static boolean hasUserGroupRole(long userId, long groupId,
333 long roleId) throws com.liferay.portal.kernel.exception.SystemException {
334 return getService().hasUserGroupRole(userId, groupId, roleId);
335 }
336
337 public static boolean hasUserGroupRole(long userId, long groupId,
338 long roleId, boolean inherit)
339 throws com.liferay.portal.kernel.exception.SystemException {
340 return getService().hasUserGroupRole(userId, groupId, roleId, inherit);
341 }
342
343 public static boolean hasUserGroupRole(long userId, long groupId,
344 java.lang.String roleName)
345 throws com.liferay.portal.kernel.exception.PortalException,
346 com.liferay.portal.kernel.exception.SystemException {
347 return getService().hasUserGroupRole(userId, groupId, roleName);
348 }
349
350 public static boolean hasUserGroupRole(long userId, long groupId,
351 java.lang.String roleName, boolean inherit)
352 throws com.liferay.portal.kernel.exception.PortalException,
353 com.liferay.portal.kernel.exception.SystemException {
354 return getService().hasUserGroupRole(userId, groupId, roleName, inherit);
355 }
356
357 public static UserGroupRoleLocalService getService() {
358 if (_service == null) {
359 _service = (UserGroupRoleLocalService)PortalBeanLocatorUtil.locate(UserGroupRoleLocalService.class.getName());
360
361 ReferenceRegistry.registerReference(UserGroupRoleLocalServiceUtil.class,
362 "_service");
363 MethodCache.remove(UserGroupRoleLocalService.class);
364 }
365
366 return _service;
367 }
368
369 public void setService(UserGroupRoleLocalService service) {
370 MethodCache.remove(UserGroupRoleLocalService.class);
371
372 _service = service;
373
374 ReferenceRegistry.registerReference(UserGroupRoleLocalServiceUtil.class,
375 "_service");
376 MethodCache.remove(UserGroupRoleLocalService.class);
377 }
378
379 private static UserGroupRoleLocalService _service;
380 }