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 public static com.liferay.portal.model.UserGroupRole fetchUserGroupRole(
163 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getService().fetchUserGroupRole(userGroupRolePK);
166 }
167
168
176 public static com.liferay.portal.model.UserGroupRole getUserGroupRole(
177 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException {
180 return getService().getUserGroupRole(userGroupRolePK);
181 }
182
183 public static com.liferay.portal.model.PersistedModel getPersistedModel(
184 java.io.Serializable primaryKeyObj)
185 throws com.liferay.portal.kernel.exception.PortalException,
186 com.liferay.portal.kernel.exception.SystemException {
187 return getService().getPersistedModel(primaryKeyObj);
188 }
189
190
202 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
203 int start, int end)
204 throws com.liferay.portal.kernel.exception.SystemException {
205 return getService().getUserGroupRoles(start, end);
206 }
207
208
214 public static int getUserGroupRolesCount()
215 throws com.liferay.portal.kernel.exception.SystemException {
216 return getService().getUserGroupRolesCount();
217 }
218
219
226 public static com.liferay.portal.model.UserGroupRole updateUserGroupRole(
227 com.liferay.portal.model.UserGroupRole userGroupRole)
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return getService().updateUserGroupRole(userGroupRole);
230 }
231
232
240 public static com.liferay.portal.model.UserGroupRole updateUserGroupRole(
241 com.liferay.portal.model.UserGroupRole userGroupRole, boolean merge)
242 throws com.liferay.portal.kernel.exception.SystemException {
243 return getService().updateUserGroupRole(userGroupRole, merge);
244 }
245
246
251 public static java.lang.String getBeanIdentifier() {
252 return getService().getBeanIdentifier();
253 }
254
255
260 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
261 getService().setBeanIdentifier(beanIdentifier);
262 }
263
264 public static void addUserGroupRoles(long userId, long groupId,
265 long[] roleIds)
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException {
268 getService().addUserGroupRoles(userId, groupId, roleIds);
269 }
270
271 public static void addUserGroupRoles(long[] userIds, long groupId,
272 long roleId)
273 throws com.liferay.portal.kernel.exception.PortalException,
274 com.liferay.portal.kernel.exception.SystemException {
275 getService().addUserGroupRoles(userIds, groupId, roleId);
276 }
277
278 public static void deleteUserGroupRoles(long userId, long groupId,
279 long[] roleIds)
280 throws com.liferay.portal.kernel.exception.SystemException {
281 getService().deleteUserGroupRoles(userId, groupId, roleIds);
282 }
283
284 public static void deleteUserGroupRoles(long userId, long[] groupIds)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 getService().deleteUserGroupRoles(userId, groupIds);
287 }
288
289 public static void deleteUserGroupRoles(long[] userIds, long groupId)
290 throws com.liferay.portal.kernel.exception.SystemException {
291 getService().deleteUserGroupRoles(userIds, groupId);
292 }
293
294 public static void deleteUserGroupRoles(long[] userIds, long groupId,
295 long roleId) throws com.liferay.portal.kernel.exception.SystemException {
296 getService().deleteUserGroupRoles(userIds, groupId, roleId);
297 }
298
299 public static void deleteUserGroupRolesByGroupId(long groupId)
300 throws com.liferay.portal.kernel.exception.SystemException {
301 getService().deleteUserGroupRolesByGroupId(groupId);
302 }
303
304 public static void deleteUserGroupRolesByRoleId(long roleId)
305 throws com.liferay.portal.kernel.exception.SystemException {
306 getService().deleteUserGroupRolesByRoleId(roleId);
307 }
308
309 public static void deleteUserGroupRolesByUserId(long userId)
310 throws com.liferay.portal.kernel.exception.SystemException {
311 getService().deleteUserGroupRolesByUserId(userId);
312 }
313
314 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
315 long userId) throws com.liferay.portal.kernel.exception.SystemException {
316 return getService().getUserGroupRoles(userId);
317 }
318
319 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
320 long userId, long groupId)
321 throws com.liferay.portal.kernel.exception.SystemException {
322 return getService().getUserGroupRoles(userId, groupId);
323 }
324
325 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroupAndRole(
326 long groupId, long roleId)
327 throws com.liferay.portal.kernel.exception.SystemException {
328 return getService().getUserGroupRolesByGroupAndRole(groupId, roleId);
329 }
330
331 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByUserUserGroupAndGroup(
332 long userId, long groupId)
333 throws com.liferay.portal.kernel.exception.SystemException {
334 return getService()
335 .getUserGroupRolesByUserUserGroupAndGroup(userId, groupId);
336 }
337
338 public static boolean hasUserGroupRole(long userId, long groupId,
339 long roleId) throws com.liferay.portal.kernel.exception.SystemException {
340 return getService().hasUserGroupRole(userId, groupId, roleId);
341 }
342
343 public static boolean hasUserGroupRole(long userId, long groupId,
344 long roleId, boolean inherit)
345 throws com.liferay.portal.kernel.exception.SystemException {
346 return getService().hasUserGroupRole(userId, groupId, roleId, inherit);
347 }
348
349 public static boolean hasUserGroupRole(long userId, long groupId,
350 java.lang.String roleName)
351 throws com.liferay.portal.kernel.exception.PortalException,
352 com.liferay.portal.kernel.exception.SystemException {
353 return getService().hasUserGroupRole(userId, groupId, roleName);
354 }
355
356 public static boolean hasUserGroupRole(long userId, long groupId,
357 java.lang.String roleName, boolean inherit)
358 throws com.liferay.portal.kernel.exception.PortalException,
359 com.liferay.portal.kernel.exception.SystemException {
360 return getService().hasUserGroupRole(userId, groupId, roleName, inherit);
361 }
362
363 public static UserGroupRoleLocalService getService() {
364 if (_service == null) {
365 _service = (UserGroupRoleLocalService)PortalBeanLocatorUtil.locate(UserGroupRoleLocalService.class.getName());
366
367 ReferenceRegistry.registerReference(UserGroupRoleLocalServiceUtil.class,
368 "_service");
369 MethodCache.remove(UserGroupRoleLocalService.class);
370 }
371
372 return _service;
373 }
374
375 public void setService(UserGroupRoleLocalService service) {
376 MethodCache.remove(UserGroupRoleLocalService.class);
377
378 _service = service;
379
380 ReferenceRegistry.registerReference(UserGroupRoleLocalServiceUtil.class,
381 "_service");
382 MethodCache.remove(UserGroupRoleLocalService.class);
383 }
384
385 private static UserGroupRoleLocalService _service;
386 }