001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
036 public class UserGroupRoleLocalServiceUtil {
037
044 public static com.liferay.portal.model.UserGroupRole addUserGroupRole(
045 com.liferay.portal.model.UserGroupRole userGroupRole)
046 throws com.liferay.portal.kernel.exception.SystemException {
047 return getService().addUserGroupRole(userGroupRole);
048 }
049
050
056 public static com.liferay.portal.model.UserGroupRole createUserGroupRole(
057 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK) {
058 return getService().createUserGroupRole(userGroupRolePK);
059 }
060
061
068 public static void deleteUserGroupRole(
069 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException {
072 getService().deleteUserGroupRole(userGroupRolePK);
073 }
074
075
081 public static void deleteUserGroupRole(
082 com.liferay.portal.model.UserGroupRole userGroupRole)
083 throws com.liferay.portal.kernel.exception.SystemException {
084 getService().deleteUserGroupRole(userGroupRole);
085 }
086
087
094 @SuppressWarnings("rawtypes")
095 public static java.util.List dynamicQuery(
096 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
097 throws com.liferay.portal.kernel.exception.SystemException {
098 return getService().dynamicQuery(dynamicQuery);
099 }
100
101
114 @SuppressWarnings("rawtypes")
115 public static java.util.List dynamicQuery(
116 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
117 int end) throws com.liferay.portal.kernel.exception.SystemException {
118 return getService().dynamicQuery(dynamicQuery, start, end);
119 }
120
121
135 @SuppressWarnings("rawtypes")
136 public static java.util.List dynamicQuery(
137 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
138 int end,
139 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140 throws com.liferay.portal.kernel.exception.SystemException {
141 return getService()
142 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
143 }
144
145
152 public static long dynamicQueryCount(
153 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
154 throws com.liferay.portal.kernel.exception.SystemException {
155 return getService().dynamicQueryCount(dynamicQuery);
156 }
157
158
166 public static com.liferay.portal.model.UserGroupRole getUserGroupRole(
167 com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException {
170 return getService().getUserGroupRole(userGroupRolePK);
171 }
172
173
185 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
186 int start, int end)
187 throws com.liferay.portal.kernel.exception.SystemException {
188 return getService().getUserGroupRoles(start, end);
189 }
190
191
197 public static int getUserGroupRolesCount()
198 throws com.liferay.portal.kernel.exception.SystemException {
199 return getService().getUserGroupRolesCount();
200 }
201
202
209 public static com.liferay.portal.model.UserGroupRole updateUserGroupRole(
210 com.liferay.portal.model.UserGroupRole userGroupRole)
211 throws com.liferay.portal.kernel.exception.SystemException {
212 return getService().updateUserGroupRole(userGroupRole);
213 }
214
215
223 public static com.liferay.portal.model.UserGroupRole updateUserGroupRole(
224 com.liferay.portal.model.UserGroupRole userGroupRole, boolean merge)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getService().updateUserGroupRole(userGroupRole, merge);
227 }
228
229 public static void addUserGroupRoles(long userId, long groupId,
230 long[] roleIds)
231 throws com.liferay.portal.kernel.exception.PortalException,
232 com.liferay.portal.kernel.exception.SystemException {
233 getService().addUserGroupRoles(userId, groupId, roleIds);
234 }
235
236 public static void addUserGroupRoles(long[] userIds, long groupId,
237 long roleId)
238 throws com.liferay.portal.kernel.exception.PortalException,
239 com.liferay.portal.kernel.exception.SystemException {
240 getService().addUserGroupRoles(userIds, groupId, roleId);
241 }
242
243 public static void deleteUserGroupRoles(long userId, long groupId,
244 long[] roleIds)
245 throws com.liferay.portal.kernel.exception.SystemException {
246 getService().deleteUserGroupRoles(userId, groupId, roleIds);
247 }
248
249 public static void deleteUserGroupRoles(long userId, long[] groupIds)
250 throws com.liferay.portal.kernel.exception.SystemException {
251 getService().deleteUserGroupRoles(userId, groupIds);
252 }
253
254 public static void deleteUserGroupRoles(long[] userIds, long groupId)
255 throws com.liferay.portal.kernel.exception.SystemException {
256 getService().deleteUserGroupRoles(userIds, groupId);
257 }
258
259 public static void deleteUserGroupRoles(long[] userIds, long groupId,
260 long roleId) throws com.liferay.portal.kernel.exception.SystemException {
261 getService().deleteUserGroupRoles(userIds, groupId, roleId);
262 }
263
264 public static void deleteUserGroupRolesByGroupId(long groupId)
265 throws com.liferay.portal.kernel.exception.SystemException {
266 getService().deleteUserGroupRolesByGroupId(groupId);
267 }
268
269 public static void deleteUserGroupRolesByRoleId(long roleId)
270 throws com.liferay.portal.kernel.exception.SystemException {
271 getService().deleteUserGroupRolesByRoleId(roleId);
272 }
273
274 public static void deleteUserGroupRolesByUserId(long userId)
275 throws com.liferay.portal.kernel.exception.SystemException {
276 getService().deleteUserGroupRolesByUserId(userId);
277 }
278
279 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
280 long userId) throws com.liferay.portal.kernel.exception.SystemException {
281 return getService().getUserGroupRoles(userId);
282 }
283
284 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRoles(
285 long userId, long groupId)
286 throws com.liferay.portal.kernel.exception.SystemException {
287 return getService().getUserGroupRoles(userId, groupId);
288 }
289
290 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByGroupAndRole(
291 long groupId, long roleId)
292 throws com.liferay.portal.kernel.exception.SystemException {
293 return getService().getUserGroupRolesByGroupAndRole(groupId, roleId);
294 }
295
296 public static java.util.List<com.liferay.portal.model.UserGroupRole> getUserGroupRolesByUserUserGroupAndGroup(
297 long userId, long groupId)
298 throws com.liferay.portal.kernel.exception.SystemException {
299 return getService()
300 .getUserGroupRolesByUserUserGroupAndGroup(userId, groupId);
301 }
302
303 public static boolean hasUserGroupRole(long userId, long groupId,
304 long roleId) throws com.liferay.portal.kernel.exception.SystemException {
305 return getService().hasUserGroupRole(userId, groupId, roleId);
306 }
307
308 public static boolean hasUserGroupRole(long userId, long groupId,
309 long roleId, boolean inherit)
310 throws com.liferay.portal.kernel.exception.SystemException {
311 return getService().hasUserGroupRole(userId, groupId, roleId, inherit);
312 }
313
314 public static boolean hasUserGroupRole(long userId, long groupId,
315 java.lang.String roleName)
316 throws com.liferay.portal.kernel.exception.PortalException,
317 com.liferay.portal.kernel.exception.SystemException {
318 return getService().hasUserGroupRole(userId, groupId, roleName);
319 }
320
321 public static boolean hasUserGroupRole(long userId, long groupId,
322 java.lang.String roleName, boolean inherit)
323 throws com.liferay.portal.kernel.exception.PortalException,
324 com.liferay.portal.kernel.exception.SystemException {
325 return getService().hasUserGroupRole(userId, groupId, roleName, inherit);
326 }
327
328 public static UserGroupRoleLocalService getService() {
329 if (_service == null) {
330 _service = (UserGroupRoleLocalService)PortalBeanLocatorUtil.locate(UserGroupRoleLocalService.class.getName());
331 }
332
333 return _service;
334 }
335
336 public void setService(UserGroupRoleLocalService service) {
337 _service = service;
338 }
339
340 private static UserGroupRoleLocalService _service;
341 }