001
014
015 package com.liferay.portal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class UserGroupRoleLocalServiceUtil {
038
043
044
051 public static com.liferay.portal.model.UserGroupRole addUserGroupRole(
052 com.liferay.portal.model.UserGroupRole userGroupRole)
053 throws com.liferay.portal.kernel.exception.SystemException {
054 return getService().addUserGroupRole(userGroupRole);
055 }
056
057
063 public static com.liferay.portal.model.UserGroupRole createUserGroupRole(
064 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK) {
065 return getService().createUserGroupRole(userGroupRolePK);
066 }
067
068
076 public static com.liferay.portal.model.UserGroupRole deleteUserGroupRole(
077 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().deleteUserGroupRole(userGroupRolePK);
081 }
082
083
090 public static com.liferay.portal.model.UserGroupRole deleteUserGroupRole(
091 com.liferay.portal.model.UserGroupRole userGroupRole)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().deleteUserGroupRole(userGroupRole);
094 }
095
096 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097 return getService().dynamicQuery();
098 }
099
100
107 @SuppressWarnings("rawtypes")
108 public static java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().dynamicQuery(dynamicQuery);
112 }
113
114
127 @SuppressWarnings("rawtypes")
128 public static java.util.List dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end) throws com.liferay.portal.kernel.exception.SystemException {
131 return getService().dynamicQuery(dynamicQuery, start, end);
132 }
133
134
148 @SuppressWarnings("rawtypes")
149 public static java.util.List dynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151 int end,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService()
155 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156 }
157
158
165 public static long dynamicQueryCount(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService().dynamicQueryCount(dynamicQuery);
169 }
170
171
179 public static long dynamicQueryCount(
180 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181 com.liferay.portal.kernel.dao.orm.Projection projection)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService().dynamicQueryCount(dynamicQuery, projection);
184 }
185
186 public static com.liferay.portal.model.UserGroupRole fetchUserGroupRole(
187 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getService().fetchUserGroupRole(userGroupRolePK);
190 }
191
192
200 public static com.liferay.portal.model.UserGroupRole getUserGroupRole(
201 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
202 throws com.liferay.portal.kernel.exception.PortalException,
203 com.liferay.portal.kernel.exception.SystemException {
204 return getService().getUserGroupRole(userGroupRolePK);
205 }
206
207 public static com.liferay.portal.model.PersistedModel getPersistedModel(
208 java.io.Serializable primaryKeyObj)
209 throws com.liferay.portal.kernel.exception.PortalException,
210 com.liferay.portal.kernel.exception.SystemException {
211 return getService().getPersistedModel(primaryKeyObj);
212 }
213
214
226 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
227 int start, int end)
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return getService().getUserGroupRoles(start, end);
230 }
231
232
238 public static int getUserGroupRolesCount()
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return getService().getUserGroupRolesCount();
241 }
242
243
250 public static com.liferay.portal.model.UserGroupRole updateUserGroupRole(
251 com.liferay.portal.model.UserGroupRole userGroupRole)
252 throws com.liferay.portal.kernel.exception.SystemException {
253 return getService().updateUserGroupRole(userGroupRole);
254 }
255
256
261 public static java.lang.String getBeanIdentifier() {
262 return getService().getBeanIdentifier();
263 }
264
265
270 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
271 getService().setBeanIdentifier(beanIdentifier);
272 }
273
274 public static java.util.List<com.liferay.portal.model.UserGroupRole> addUserGroupRoles(
275 long userId, long groupId, long[] roleIds)
276 throws com.liferay.portal.kernel.exception.SystemException {
277 return getService().addUserGroupRoles(userId, groupId, roleIds);
278 }
279
280 public static java.util.List<com.liferay.portal.model.UserGroupRole> addUserGroupRoles(
281 long[] userIds, long groupId, long roleId)
282 throws com.liferay.portal.kernel.exception.SystemException {
283 return getService().addUserGroupRoles(userIds, groupId, roleId);
284 }
285
286 public static void deleteUserGroupRoles(long userId, long groupId,
287 long[] roleIds)
288 throws com.liferay.portal.kernel.exception.SystemException {
289 getService().deleteUserGroupRoles(userId, groupId, roleIds);
290 }
291
292 public static void deleteUserGroupRoles(long userId, long[] groupIds)
293 throws com.liferay.portal.kernel.exception.SystemException {
294 getService().deleteUserGroupRoles(userId, groupIds);
295 }
296
297 public static void deleteUserGroupRoles(long[] userIds, long groupId)
298 throws com.liferay.portal.kernel.exception.SystemException {
299 getService().deleteUserGroupRoles(userIds, groupId);
300 }
301
302 public static void deleteUserGroupRoles(long[] userIds, long groupId,
303 int roleType)
304 throws com.liferay.portal.kernel.exception.SystemException {
305 getService().deleteUserGroupRoles(userIds, groupId, roleType);
306 }
307
308 public static void deleteUserGroupRoles(long[] userIds, long groupId,
309 long roleId) throws com.liferay.portal.kernel.exception.SystemException {
310 getService().deleteUserGroupRoles(userIds, groupId, roleId);
311 }
312
313 public static void deleteUserGroupRolesByGroupId(long groupId)
314 throws com.liferay.portal.kernel.exception.SystemException {
315 getService().deleteUserGroupRolesByGroupId(groupId);
316 }
317
318 public static void deleteUserGroupRolesByRoleId(long roleId)
319 throws com.liferay.portal.kernel.exception.SystemException {
320 getService().deleteUserGroupRolesByRoleId(roleId);
321 }
322
323 public static void deleteUserGroupRolesByUserId(long userId)
324 throws com.liferay.portal.kernel.exception.SystemException {
325 getService().deleteUserGroupRolesByUserId(userId);
326 }
327
328 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
329 long userId) throws com.liferay.portal.kernel.exception.SystemException {
330 return getService().getUserGroupRoles(userId);
331 }
332
333 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
334 long userId, long groupId)
335 throws com.liferay.portal.kernel.exception.SystemException {
336 return getService().getUserGroupRoles(userId, groupId);
337 }
338
339 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroup(
340 long groupId)
341 throws com.liferay.portal.kernel.exception.SystemException {
342 return getService().getUserGroupRolesByGroup(groupId);
343 }
344
345 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroupAndRole(
346 long groupId, long roleId)
347 throws com.liferay.portal.kernel.exception.SystemException {
348 return getService().getUserGroupRolesByGroupAndRole(groupId, roleId);
349 }
350
351 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByUserUserGroupAndGroup(
352 long userId, long groupId)
353 throws com.liferay.portal.kernel.exception.SystemException {
354 return getService()
355 .getUserGroupRolesByUserUserGroupAndGroup(userId, groupId);
356 }
357
358 public static boolean hasUserGroupRole(long userId, long groupId,
359 long roleId) throws com.liferay.portal.kernel.exception.SystemException {
360 return getService().hasUserGroupRole(userId, groupId, roleId);
361 }
362
363 public static boolean hasUserGroupRole(long userId, long groupId,
364 long roleId, boolean inherit)
365 throws com.liferay.portal.kernel.exception.SystemException {
366 return getService().hasUserGroupRole(userId, groupId, roleId, inherit);
367 }
368
369 public static boolean hasUserGroupRole(long userId, long groupId,
370 java.lang.String roleName)
371 throws com.liferay.portal.kernel.exception.PortalException,
372 com.liferay.portal.kernel.exception.SystemException {
373 return getService().hasUserGroupRole(userId, groupId, roleName);
374 }
375
376 public static boolean hasUserGroupRole(long userId, long groupId,
377 java.lang.String roleName, boolean inherit)
378 throws com.liferay.portal.kernel.exception.PortalException,
379 com.liferay.portal.kernel.exception.SystemException {
380 return getService().hasUserGroupRole(userId, groupId, roleName, inherit);
381 }
382
383 public static UserGroupRoleLocalService getService() {
384 if (_service == null) {
385 _service = (UserGroupRoleLocalService)PortalBeanLocatorUtil.locate(UserGroupRoleLocalService.class.getName());
386
387 ReferenceRegistry.registerReference(UserGroupRoleLocalServiceUtil.class,
388 "_service");
389 }
390
391 return _service;
392 }
393
394
397 public void setService(UserGroupRoleLocalService service) {
398 }
399
400 private static UserGroupRoleLocalService _service;
401 }