001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class UserGroupRoleLocalServiceUtil {
034
039
040
047 public static com.liferay.portal.model.UserGroupRole addUserGroupRole(
048 com.liferay.portal.model.UserGroupRole userGroupRole)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addUserGroupRole(userGroupRole);
051 }
052
053
059 public static com.liferay.portal.model.UserGroupRole createUserGroupRole(
060 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK) {
061 return getService().createUserGroupRole(userGroupRolePK);
062 }
063
064
072 public static com.liferay.portal.model.UserGroupRole 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 return getService().deleteUserGroupRole(userGroupRolePK);
077 }
078
079
086 public static com.liferay.portal.model.UserGroupRole deleteUserGroupRole(
087 com.liferay.portal.model.UserGroupRole userGroupRole)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteUserGroupRole(userGroupRole);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portal.model.UserGroupRole fetchUserGroupRole(
168 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchUserGroupRole(userGroupRolePK);
171 }
172
173
181 public static com.liferay.portal.model.UserGroupRole getUserGroupRole(
182 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getUserGroupRole(userGroupRolePK);
186 }
187
188 public static com.liferay.portal.model.PersistedModel getPersistedModel(
189 java.io.Serializable primaryKeyObj)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService().getPersistedModel(primaryKeyObj);
193 }
194
195
207 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
208 int start, int end)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getService().getUserGroupRoles(start, end);
211 }
212
213
219 public static int getUserGroupRolesCount()
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getService().getUserGroupRolesCount();
222 }
223
224
231 public static com.liferay.portal.model.UserGroupRole updateUserGroupRole(
232 com.liferay.portal.model.UserGroupRole userGroupRole)
233 throws com.liferay.portal.kernel.exception.SystemException {
234 return getService().updateUserGroupRole(userGroupRole);
235 }
236
237
242 public static java.lang.String getBeanIdentifier() {
243 return getService().getBeanIdentifier();
244 }
245
246
251 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
252 getService().setBeanIdentifier(beanIdentifier);
253 }
254
255 public static java.util.List<com.liferay.portal.model.UserGroupRole> addUserGroupRoles(
256 long userId, long groupId, long[] roleIds)
257 throws com.liferay.portal.kernel.exception.SystemException {
258 return getService().addUserGroupRoles(userId, groupId, roleIds);
259 }
260
261 public static java.util.List<com.liferay.portal.model.UserGroupRole> addUserGroupRoles(
262 long[] userIds, long groupId, long roleId)
263 throws com.liferay.portal.kernel.exception.SystemException {
264 return getService().addUserGroupRoles(userIds, groupId, roleId);
265 }
266
267 public static void deleteUserGroupRoles(long userId, long groupId,
268 long[] roleIds)
269 throws com.liferay.portal.kernel.exception.SystemException {
270 getService().deleteUserGroupRoles(userId, groupId, roleIds);
271 }
272
273 public static void deleteUserGroupRoles(long userId, long[] groupIds)
274 throws com.liferay.portal.kernel.exception.SystemException {
275 getService().deleteUserGroupRoles(userId, groupIds);
276 }
277
278 public static void deleteUserGroupRoles(long[] userIds, long groupId)
279 throws com.liferay.portal.kernel.exception.SystemException {
280 getService().deleteUserGroupRoles(userIds, groupId);
281 }
282
283 public static void deleteUserGroupRoles(long[] userIds, long groupId,
284 int roleType)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 getService().deleteUserGroupRoles(userIds, groupId, roleType);
287 }
288
289 public static void deleteUserGroupRoles(long[] userIds, long groupId,
290 long roleId) throws com.liferay.portal.kernel.exception.SystemException {
291 getService().deleteUserGroupRoles(userIds, groupId, roleId);
292 }
293
294 public static void deleteUserGroupRolesByGroupId(long groupId)
295 throws com.liferay.portal.kernel.exception.SystemException {
296 getService().deleteUserGroupRolesByGroupId(groupId);
297 }
298
299 public static void deleteUserGroupRolesByRoleId(long roleId)
300 throws com.liferay.portal.kernel.exception.SystemException {
301 getService().deleteUserGroupRolesByRoleId(roleId);
302 }
303
304 public static void deleteUserGroupRolesByUserId(long userId)
305 throws com.liferay.portal.kernel.exception.SystemException {
306 getService().deleteUserGroupRolesByUserId(userId);
307 }
308
309 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
310 long userId) throws com.liferay.portal.kernel.exception.SystemException {
311 return getService().getUserGroupRoles(userId);
312 }
313
314 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
315 long userId, long groupId)
316 throws com.liferay.portal.kernel.exception.SystemException {
317 return getService().getUserGroupRoles(userId, groupId);
318 }
319
320 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroup(
321 long groupId)
322 throws com.liferay.portal.kernel.exception.SystemException {
323 return getService().getUserGroupRolesByGroup(groupId);
324 }
325
326 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroupAndRole(
327 long groupId, long roleId)
328 throws com.liferay.portal.kernel.exception.SystemException {
329 return getService().getUserGroupRolesByGroupAndRole(groupId, roleId);
330 }
331
332 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByUserUserGroupAndGroup(
333 long userId, long groupId)
334 throws com.liferay.portal.kernel.exception.SystemException {
335 return getService()
336 .getUserGroupRolesByUserUserGroupAndGroup(userId, groupId);
337 }
338
339 public static boolean hasUserGroupRole(long userId, long groupId,
340 long roleId) throws com.liferay.portal.kernel.exception.SystemException {
341 return getService().hasUserGroupRole(userId, groupId, roleId);
342 }
343
344 public static boolean hasUserGroupRole(long userId, long groupId,
345 long roleId, boolean inherit)
346 throws com.liferay.portal.kernel.exception.SystemException {
347 return getService().hasUserGroupRole(userId, groupId, roleId, inherit);
348 }
349
350 public static boolean hasUserGroupRole(long userId, long groupId,
351 java.lang.String roleName)
352 throws com.liferay.portal.kernel.exception.PortalException,
353 com.liferay.portal.kernel.exception.SystemException {
354 return getService().hasUserGroupRole(userId, groupId, roleName);
355 }
356
357 public static boolean hasUserGroupRole(long userId, long groupId,
358 java.lang.String roleName, boolean inherit)
359 throws com.liferay.portal.kernel.exception.PortalException,
360 com.liferay.portal.kernel.exception.SystemException {
361 return getService().hasUserGroupRole(userId, groupId, roleName, inherit);
362 }
363
364 public static UserGroupRoleLocalService getService() {
365 if (_service == null) {
366 _service = (UserGroupRoleLocalService)PortalBeanLocatorUtil.locate(UserGroupRoleLocalService.class.getName());
367
368 ReferenceRegistry.registerReference(UserGroupRoleLocalServiceUtil.class,
369 "_service");
370 }
371
372 return _service;
373 }
374
375
378 public void setService(UserGroupRoleLocalService service) {
379 }
380
381 private static UserGroupRoleLocalService _service;
382 }