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 UserGroupGroupRoleLocalServiceUtil {
035
040
041
048 public static com.liferay.portal.model.UserGroupGroupRole addUserGroupGroupRole(
049 com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addUserGroupGroupRole(userGroupGroupRole);
052 }
053
054
060 public static com.liferay.portal.model.UserGroupGroupRole createUserGroupGroupRole(
061 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) {
062 return getService().createUserGroupGroupRole(userGroupGroupRolePK);
063 }
064
065
072 public static void deleteUserGroupGroupRole(
073 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 getService().deleteUserGroupGroupRole(userGroupGroupRolePK);
077 }
078
079
085 public static void deleteUserGroupGroupRole(
086 com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
087 throws com.liferay.portal.kernel.exception.SystemException {
088 getService().deleteUserGroupGroupRole(userGroupGroupRole);
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.UserGroupGroupRole fetchUserGroupGroupRole(
163 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getService().fetchUserGroupGroupRole(userGroupGroupRolePK);
166 }
167
168
176 public static com.liferay.portal.model.UserGroupGroupRole getUserGroupGroupRole(
177 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException {
180 return getService().getUserGroupGroupRole(userGroupGroupRolePK);
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.UserGroupGroupRole> getUserGroupGroupRoles(
203 int start, int end)
204 throws com.liferay.portal.kernel.exception.SystemException {
205 return getService().getUserGroupGroupRoles(start, end);
206 }
207
208
214 public static int getUserGroupGroupRolesCount()
215 throws com.liferay.portal.kernel.exception.SystemException {
216 return getService().getUserGroupGroupRolesCount();
217 }
218
219
226 public static com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
227 com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return getService().updateUserGroupGroupRole(userGroupGroupRole);
230 }
231
232
240 public static com.liferay.portal.model.UserGroupGroupRole updateUserGroupGroupRole(
241 com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole,
242 boolean merge)
243 throws com.liferay.portal.kernel.exception.SystemException {
244 return getService().updateUserGroupGroupRole(userGroupGroupRole, merge);
245 }
246
247
252 public static java.lang.String getBeanIdentifier() {
253 return getService().getBeanIdentifier();
254 }
255
256
261 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
262 getService().setBeanIdentifier(beanIdentifier);
263 }
264
265 public static void addUserGroupGroupRoles(long userGroupId, long groupId,
266 long[] roleIds)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException {
269 getService().addUserGroupGroupRoles(userGroupId, groupId, roleIds);
270 }
271
272 public static void addUserGroupGroupRoles(long[] userGroupIds,
273 long groupId, long roleId)
274 throws com.liferay.portal.kernel.exception.PortalException,
275 com.liferay.portal.kernel.exception.SystemException {
276 getService().addUserGroupGroupRoles(userGroupIds, groupId, roleId);
277 }
278
279 public static void deleteUserGroupGroupRoles(long userGroupId,
280 long groupId, long[] roleIds)
281 throws com.liferay.portal.kernel.exception.SystemException {
282 getService().deleteUserGroupGroupRoles(userGroupId, groupId, roleIds);
283 }
284
285 public static void deleteUserGroupGroupRoles(long userGroupId,
286 long[] groupIds)
287 throws com.liferay.portal.kernel.exception.SystemException {
288 getService().deleteUserGroupGroupRoles(userGroupId, groupIds);
289 }
290
291 public static void deleteUserGroupGroupRoles(long[] userGroupIds,
292 long groupId)
293 throws com.liferay.portal.kernel.exception.SystemException {
294 getService().deleteUserGroupGroupRoles(userGroupIds, groupId);
295 }
296
297 public static void deleteUserGroupGroupRoles(long[] userGroupIds,
298 long groupId, long roleId)
299 throws com.liferay.portal.kernel.exception.SystemException {
300 getService().deleteUserGroupGroupRoles(userGroupIds, groupId, roleId);
301 }
302
303 public static void deleteUserGroupGroupRolesByGroupId(long groupId)
304 throws com.liferay.portal.kernel.exception.SystemException {
305 getService().deleteUserGroupGroupRolesByGroupId(groupId);
306 }
307
308 public static void deleteUserGroupGroupRolesByRoleId(long roleId)
309 throws com.liferay.portal.kernel.exception.SystemException {
310 getService().deleteUserGroupGroupRolesByRoleId(roleId);
311 }
312
313 public static void deleteUserGroupGroupRolesByUserGroupId(long userGroupId)
314 throws com.liferay.portal.kernel.exception.SystemException {
315 getService().deleteUserGroupGroupRolesByUserGroupId(userGroupId);
316 }
317
318 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
319 long userGroupId)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 return getService().getUserGroupGroupRoles(userGroupId);
322 }
323
324 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRoles(
325 long userGroupId, long groupId)
326 throws com.liferay.portal.kernel.exception.SystemException {
327 return getService().getUserGroupGroupRoles(userGroupId, groupId);
328 }
329
330 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> getUserGroupGroupRolesByGroupAndRole(
331 long groupId, long roleId)
332 throws com.liferay.portal.kernel.exception.SystemException {
333 return getService().getUserGroupGroupRolesByGroupAndRole(groupId, roleId);
334 }
335
336 public static boolean hasUserGroupGroupRole(long userGroupId, long groupId,
337 long roleId) throws com.liferay.portal.kernel.exception.SystemException {
338 return getService().hasUserGroupGroupRole(userGroupId, groupId, roleId);
339 }
340
341 public static boolean hasUserGroupGroupRole(long userGroupId, long groupId,
342 java.lang.String roleName)
343 throws com.liferay.portal.kernel.exception.PortalException,
344 com.liferay.portal.kernel.exception.SystemException {
345 return getService().hasUserGroupGroupRole(userGroupId, groupId, roleName);
346 }
347
348 public static UserGroupGroupRoleLocalService getService() {
349 if (_service == null) {
350 _service = (UserGroupGroupRoleLocalService)PortalBeanLocatorUtil.locate(UserGroupGroupRoleLocalService.class.getName());
351
352 ReferenceRegistry.registerReference(UserGroupGroupRoleLocalServiceUtil.class,
353 "_service");
354 MethodCache.remove(UserGroupGroupRoleLocalService.class);
355 }
356
357 return _service;
358 }
359
360 public void setService(UserGroupGroupRoleLocalService service) {
361 MethodCache.remove(UserGroupGroupRoleLocalService.class);
362
363 _service = service;
364
365 ReferenceRegistry.registerReference(UserGroupGroupRoleLocalServiceUtil.class,
366 "_service");
367 MethodCache.remove(UserGroupGroupRoleLocalService.class);
368 }
369
370 private static UserGroupGroupRoleLocalService _service;
371 }