1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public class GroupUtil {
32 public static com.liferay.portal.model.Group create(long groupId) {
33 return getPersistence().create(groupId);
34 }
35
36 public static com.liferay.portal.model.Group remove(long groupId)
37 throws com.liferay.portal.SystemException,
38 com.liferay.portal.NoSuchGroupException {
39 return getPersistence().remove(groupId);
40 }
41
42 public static com.liferay.portal.model.Group remove(
43 com.liferay.portal.model.Group group)
44 throws com.liferay.portal.SystemException {
45 return getPersistence().remove(group);
46 }
47
48
51 public static com.liferay.portal.model.Group update(
52 com.liferay.portal.model.Group group)
53 throws com.liferay.portal.SystemException {
54 return getPersistence().update(group);
55 }
56
57
70 public static com.liferay.portal.model.Group update(
71 com.liferay.portal.model.Group group, boolean merge)
72 throws com.liferay.portal.SystemException {
73 return getPersistence().update(group, merge);
74 }
75
76 public static com.liferay.portal.model.Group updateImpl(
77 com.liferay.portal.model.Group group, boolean merge)
78 throws com.liferay.portal.SystemException {
79 return getPersistence().updateImpl(group, merge);
80 }
81
82 public static com.liferay.portal.model.Group findByPrimaryKey(long groupId)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portal.NoSuchGroupException {
85 return getPersistence().findByPrimaryKey(groupId);
86 }
87
88 public static com.liferay.portal.model.Group fetchByPrimaryKey(long groupId)
89 throws com.liferay.portal.SystemException {
90 return getPersistence().fetchByPrimaryKey(groupId);
91 }
92
93 public static com.liferay.portal.model.Group findByLiveGroupId(
94 long liveGroupId)
95 throws com.liferay.portal.SystemException,
96 com.liferay.portal.NoSuchGroupException {
97 return getPersistence().findByLiveGroupId(liveGroupId);
98 }
99
100 public static com.liferay.portal.model.Group fetchByLiveGroupId(
101 long liveGroupId) throws com.liferay.portal.SystemException {
102 return getPersistence().fetchByLiveGroupId(liveGroupId);
103 }
104
105 public static com.liferay.portal.model.Group findByC_N(long companyId,
106 java.lang.String name)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portal.NoSuchGroupException {
109 return getPersistence().findByC_N(companyId, name);
110 }
111
112 public static com.liferay.portal.model.Group fetchByC_N(long companyId,
113 java.lang.String name) throws com.liferay.portal.SystemException {
114 return getPersistence().fetchByC_N(companyId, name);
115 }
116
117 public static com.liferay.portal.model.Group findByC_F(long companyId,
118 java.lang.String friendlyURL)
119 throws com.liferay.portal.SystemException,
120 com.liferay.portal.NoSuchGroupException {
121 return getPersistence().findByC_F(companyId, friendlyURL);
122 }
123
124 public static com.liferay.portal.model.Group fetchByC_F(long companyId,
125 java.lang.String friendlyURL) throws com.liferay.portal.SystemException {
126 return getPersistence().fetchByC_F(companyId, friendlyURL);
127 }
128
129 public static com.liferay.portal.model.Group findByC_C_C(long companyId,
130 long classNameId, long classPK)
131 throws com.liferay.portal.SystemException,
132 com.liferay.portal.NoSuchGroupException {
133 return getPersistence().findByC_C_C(companyId, classNameId, classPK);
134 }
135
136 public static com.liferay.portal.model.Group fetchByC_C_C(long companyId,
137 long classNameId, long classPK)
138 throws com.liferay.portal.SystemException {
139 return getPersistence().fetchByC_C_C(companyId, classNameId, classPK);
140 }
141
142 public static java.util.List<com.liferay.portal.model.Group> findWithDynamicQuery(
143 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
144 throws com.liferay.portal.SystemException {
145 return getPersistence().findWithDynamicQuery(queryInitializer);
146 }
147
148 public static java.util.List<com.liferay.portal.model.Group> findWithDynamicQuery(
149 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
150 int begin, int end) throws com.liferay.portal.SystemException {
151 return getPersistence()
152 .findWithDynamicQuery(queryInitializer, begin, end);
153 }
154
155 public static java.util.List<com.liferay.portal.model.Group> findAll()
156 throws com.liferay.portal.SystemException {
157 return getPersistence().findAll();
158 }
159
160 public static java.util.List<com.liferay.portal.model.Group> findAll(
161 int begin, int end) throws com.liferay.portal.SystemException {
162 return getPersistence().findAll(begin, end);
163 }
164
165 public static java.util.List<com.liferay.portal.model.Group> findAll(
166 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
167 throws com.liferay.portal.SystemException {
168 return getPersistence().findAll(begin, end, obc);
169 }
170
171 public static void removeByLiveGroupId(long liveGroupId)
172 throws com.liferay.portal.SystemException,
173 com.liferay.portal.NoSuchGroupException {
174 getPersistence().removeByLiveGroupId(liveGroupId);
175 }
176
177 public static void removeByC_N(long companyId, java.lang.String name)
178 throws com.liferay.portal.SystemException,
179 com.liferay.portal.NoSuchGroupException {
180 getPersistence().removeByC_N(companyId, name);
181 }
182
183 public static void removeByC_F(long companyId, java.lang.String friendlyURL)
184 throws com.liferay.portal.SystemException,
185 com.liferay.portal.NoSuchGroupException {
186 getPersistence().removeByC_F(companyId, friendlyURL);
187 }
188
189 public static void removeByC_C_C(long companyId, long classNameId,
190 long classPK)
191 throws com.liferay.portal.SystemException,
192 com.liferay.portal.NoSuchGroupException {
193 getPersistence().removeByC_C_C(companyId, classNameId, classPK);
194 }
195
196 public static void removeAll() throws com.liferay.portal.SystemException {
197 getPersistence().removeAll();
198 }
199
200 public static int countByLiveGroupId(long liveGroupId)
201 throws com.liferay.portal.SystemException {
202 return getPersistence().countByLiveGroupId(liveGroupId);
203 }
204
205 public static int countByC_N(long companyId, java.lang.String name)
206 throws com.liferay.portal.SystemException {
207 return getPersistence().countByC_N(companyId, name);
208 }
209
210 public static int countByC_F(long companyId, java.lang.String friendlyURL)
211 throws com.liferay.portal.SystemException {
212 return getPersistence().countByC_F(companyId, friendlyURL);
213 }
214
215 public static int countByC_C_C(long companyId, long classNameId,
216 long classPK) throws com.liferay.portal.SystemException {
217 return getPersistence().countByC_C_C(companyId, classNameId, classPK);
218 }
219
220 public static int countAll() throws com.liferay.portal.SystemException {
221 return getPersistence().countAll();
222 }
223
224 public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
225 long pk)
226 throws com.liferay.portal.SystemException,
227 com.liferay.portal.NoSuchGroupException {
228 return getPersistence().getOrganizations(pk);
229 }
230
231 public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
232 long pk, int begin, int end)
233 throws com.liferay.portal.SystemException,
234 com.liferay.portal.NoSuchGroupException {
235 return getPersistence().getOrganizations(pk, begin, end);
236 }
237
238 public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
239 long pk, int begin, int end,
240 com.liferay.portal.kernel.util.OrderByComparator obc)
241 throws com.liferay.portal.SystemException,
242 com.liferay.portal.NoSuchGroupException {
243 return getPersistence().getOrganizations(pk, begin, end, obc);
244 }
245
246 public static int getOrganizationsSize(long pk)
247 throws com.liferay.portal.SystemException {
248 return getPersistence().getOrganizationsSize(pk);
249 }
250
251 public static boolean containsOrganization(long pk, long organizationPK)
252 throws com.liferay.portal.SystemException {
253 return getPersistence().containsOrganization(pk, organizationPK);
254 }
255
256 public static boolean containsOrganizations(long pk)
257 throws com.liferay.portal.SystemException {
258 return getPersistence().containsOrganizations(pk);
259 }
260
261 public static void addOrganization(long pk, long organizationPK)
262 throws com.liferay.portal.SystemException,
263 com.liferay.portal.NoSuchGroupException,
264 com.liferay.portal.NoSuchOrganizationException {
265 getPersistence().addOrganization(pk, organizationPK);
266 }
267
268 public static void addOrganization(long pk,
269 com.liferay.portal.model.Organization organization)
270 throws com.liferay.portal.SystemException,
271 com.liferay.portal.NoSuchGroupException,
272 com.liferay.portal.NoSuchOrganizationException {
273 getPersistence().addOrganization(pk, organization);
274 }
275
276 public static void addOrganizations(long pk, long[] organizationPKs)
277 throws com.liferay.portal.SystemException,
278 com.liferay.portal.NoSuchGroupException,
279 com.liferay.portal.NoSuchOrganizationException {
280 getPersistence().addOrganizations(pk, organizationPKs);
281 }
282
283 public static void addOrganizations(long pk,
284 java.util.List<com.liferay.portal.model.Organization> organizations)
285 throws com.liferay.portal.SystemException,
286 com.liferay.portal.NoSuchGroupException,
287 com.liferay.portal.NoSuchOrganizationException {
288 getPersistence().addOrganizations(pk, organizations);
289 }
290
291 public static void clearOrganizations(long pk)
292 throws com.liferay.portal.SystemException,
293 com.liferay.portal.NoSuchGroupException {
294 getPersistence().clearOrganizations(pk);
295 }
296
297 public static void removeOrganization(long pk, long organizationPK)
298 throws com.liferay.portal.SystemException,
299 com.liferay.portal.NoSuchGroupException,
300 com.liferay.portal.NoSuchOrganizationException {
301 getPersistence().removeOrganization(pk, organizationPK);
302 }
303
304 public static void removeOrganization(long pk,
305 com.liferay.portal.model.Organization organization)
306 throws com.liferay.portal.SystemException,
307 com.liferay.portal.NoSuchGroupException,
308 com.liferay.portal.NoSuchOrganizationException {
309 getPersistence().removeOrganization(pk, organization);
310 }
311
312 public static void removeOrganizations(long pk, long[] organizationPKs)
313 throws com.liferay.portal.SystemException,
314 com.liferay.portal.NoSuchGroupException,
315 com.liferay.portal.NoSuchOrganizationException {
316 getPersistence().removeOrganizations(pk, organizationPKs);
317 }
318
319 public static void removeOrganizations(long pk,
320 java.util.List<com.liferay.portal.model.Organization> organizations)
321 throws com.liferay.portal.SystemException,
322 com.liferay.portal.NoSuchGroupException,
323 com.liferay.portal.NoSuchOrganizationException {
324 getPersistence().removeOrganizations(pk, organizations);
325 }
326
327 public static void setOrganizations(long pk, long[] organizationPKs)
328 throws com.liferay.portal.SystemException,
329 com.liferay.portal.NoSuchGroupException,
330 com.liferay.portal.NoSuchOrganizationException {
331 getPersistence().setOrganizations(pk, organizationPKs);
332 }
333
334 public static void setOrganizations(long pk,
335 java.util.List<com.liferay.portal.model.Organization> organizations)
336 throws com.liferay.portal.SystemException,
337 com.liferay.portal.NoSuchGroupException,
338 com.liferay.portal.NoSuchOrganizationException {
339 getPersistence().setOrganizations(pk, organizations);
340 }
341
342 public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
343 long pk)
344 throws com.liferay.portal.SystemException,
345 com.liferay.portal.NoSuchGroupException {
346 return getPersistence().getPermissions(pk);
347 }
348
349 public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
350 long pk, int begin, int end)
351 throws com.liferay.portal.SystemException,
352 com.liferay.portal.NoSuchGroupException {
353 return getPersistence().getPermissions(pk, begin, end);
354 }
355
356 public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
357 long pk, int begin, int end,
358 com.liferay.portal.kernel.util.OrderByComparator obc)
359 throws com.liferay.portal.SystemException,
360 com.liferay.portal.NoSuchGroupException {
361 return getPersistence().getPermissions(pk, begin, end, obc);
362 }
363
364 public static int getPermissionsSize(long pk)
365 throws com.liferay.portal.SystemException {
366 return getPersistence().getPermissionsSize(pk);
367 }
368
369 public static boolean containsPermission(long pk, long permissionPK)
370 throws com.liferay.portal.SystemException {
371 return getPersistence().containsPermission(pk, permissionPK);
372 }
373
374 public static boolean containsPermissions(long pk)
375 throws com.liferay.portal.SystemException {
376 return getPersistence().containsPermissions(pk);
377 }
378
379 public static void addPermission(long pk, long permissionPK)
380 throws com.liferay.portal.SystemException,
381 com.liferay.portal.NoSuchPermissionException,
382 com.liferay.portal.NoSuchGroupException {
383 getPersistence().addPermission(pk, permissionPK);
384 }
385
386 public static void addPermission(long pk,
387 com.liferay.portal.model.Permission permission)
388 throws com.liferay.portal.SystemException,
389 com.liferay.portal.NoSuchPermissionException,
390 com.liferay.portal.NoSuchGroupException {
391 getPersistence().addPermission(pk, permission);
392 }
393
394 public static void addPermissions(long pk, long[] permissionPKs)
395 throws com.liferay.portal.SystemException,
396 com.liferay.portal.NoSuchPermissionException,
397 com.liferay.portal.NoSuchGroupException {
398 getPersistence().addPermissions(pk, permissionPKs);
399 }
400
401 public static void addPermissions(long pk,
402 java.util.List<com.liferay.portal.model.Permission> permissions)
403 throws com.liferay.portal.SystemException,
404 com.liferay.portal.NoSuchPermissionException,
405 com.liferay.portal.NoSuchGroupException {
406 getPersistence().addPermissions(pk, permissions);
407 }
408
409 public static void clearPermissions(long pk)
410 throws com.liferay.portal.SystemException,
411 com.liferay.portal.NoSuchGroupException {
412 getPersistence().clearPermissions(pk);
413 }
414
415 public static void removePermission(long pk, long permissionPK)
416 throws com.liferay.portal.SystemException,
417 com.liferay.portal.NoSuchPermissionException,
418 com.liferay.portal.NoSuchGroupException {
419 getPersistence().removePermission(pk, permissionPK);
420 }
421
422 public static void removePermission(long pk,
423 com.liferay.portal.model.Permission permission)
424 throws com.liferay.portal.SystemException,
425 com.liferay.portal.NoSuchPermissionException,
426 com.liferay.portal.NoSuchGroupException {
427 getPersistence().removePermission(pk, permission);
428 }
429
430 public static void removePermissions(long pk, long[] permissionPKs)
431 throws com.liferay.portal.SystemException,
432 com.liferay.portal.NoSuchPermissionException,
433 com.liferay.portal.NoSuchGroupException {
434 getPersistence().removePermissions(pk, permissionPKs);
435 }
436
437 public static void removePermissions(long pk,
438 java.util.List<com.liferay.portal.model.Permission> permissions)
439 throws com.liferay.portal.SystemException,
440 com.liferay.portal.NoSuchPermissionException,
441 com.liferay.portal.NoSuchGroupException {
442 getPersistence().removePermissions(pk, permissions);
443 }
444
445 public static void setPermissions(long pk, long[] permissionPKs)
446 throws com.liferay.portal.SystemException,
447 com.liferay.portal.NoSuchPermissionException,
448 com.liferay.portal.NoSuchGroupException {
449 getPersistence().setPermissions(pk, permissionPKs);
450 }
451
452 public static void setPermissions(long pk,
453 java.util.List<com.liferay.portal.model.Permission> permissions)
454 throws com.liferay.portal.SystemException,
455 com.liferay.portal.NoSuchPermissionException,
456 com.liferay.portal.NoSuchGroupException {
457 getPersistence().setPermissions(pk, permissions);
458 }
459
460 public static java.util.List<com.liferay.portal.model.Role> getRoles(
461 long pk)
462 throws com.liferay.portal.SystemException,
463 com.liferay.portal.NoSuchGroupException {
464 return getPersistence().getRoles(pk);
465 }
466
467 public static java.util.List<com.liferay.portal.model.Role> getRoles(
468 long pk, int begin, int end)
469 throws com.liferay.portal.SystemException,
470 com.liferay.portal.NoSuchGroupException {
471 return getPersistence().getRoles(pk, begin, end);
472 }
473
474 public static java.util.List<com.liferay.portal.model.Role> getRoles(
475 long pk, int begin, int end,
476 com.liferay.portal.kernel.util.OrderByComparator obc)
477 throws com.liferay.portal.SystemException,
478 com.liferay.portal.NoSuchGroupException {
479 return getPersistence().getRoles(pk, begin, end, obc);
480 }
481
482 public static int getRolesSize(long pk)
483 throws com.liferay.portal.SystemException {
484 return getPersistence().getRolesSize(pk);
485 }
486
487 public static boolean containsRole(long pk, long rolePK)
488 throws com.liferay.portal.SystemException {
489 return getPersistence().containsRole(pk, rolePK);
490 }
491
492 public static boolean containsRoles(long pk)
493 throws com.liferay.portal.SystemException {
494 return getPersistence().containsRoles(pk);
495 }
496
497 public static void addRole(long pk, long rolePK)
498 throws com.liferay.portal.SystemException,
499 com.liferay.portal.NoSuchRoleException,
500 com.liferay.portal.NoSuchGroupException {
501 getPersistence().addRole(pk, rolePK);
502 }
503
504 public static void addRole(long pk, com.liferay.portal.model.Role role)
505 throws com.liferay.portal.SystemException,
506 com.liferay.portal.NoSuchRoleException,
507 com.liferay.portal.NoSuchGroupException {
508 getPersistence().addRole(pk, role);
509 }
510
511 public static void addRoles(long pk, long[] rolePKs)
512 throws com.liferay.portal.SystemException,
513 com.liferay.portal.NoSuchRoleException,
514 com.liferay.portal.NoSuchGroupException {
515 getPersistence().addRoles(pk, rolePKs);
516 }
517
518 public static void addRoles(long pk,
519 java.util.List<com.liferay.portal.model.Role> roles)
520 throws com.liferay.portal.SystemException,
521 com.liferay.portal.NoSuchRoleException,
522 com.liferay.portal.NoSuchGroupException {
523 getPersistence().addRoles(pk, roles);
524 }
525
526 public static void clearRoles(long pk)
527 throws com.liferay.portal.SystemException,
528 com.liferay.portal.NoSuchGroupException {
529 getPersistence().clearRoles(pk);
530 }
531
532 public static void removeRole(long pk, long rolePK)
533 throws com.liferay.portal.SystemException,
534 com.liferay.portal.NoSuchRoleException,
535 com.liferay.portal.NoSuchGroupException {
536 getPersistence().removeRole(pk, rolePK);
537 }
538
539 public static void removeRole(long pk, com.liferay.portal.model.Role role)
540 throws com.liferay.portal.SystemException,
541 com.liferay.portal.NoSuchRoleException,
542 com.liferay.portal.NoSuchGroupException {
543 getPersistence().removeRole(pk, role);
544 }
545
546 public static void removeRoles(long pk, long[] rolePKs)
547 throws com.liferay.portal.SystemException,
548 com.liferay.portal.NoSuchRoleException,
549 com.liferay.portal.NoSuchGroupException {
550 getPersistence().removeRoles(pk, rolePKs);
551 }
552
553 public static void removeRoles(long pk,
554 java.util.List<com.liferay.portal.model.Role> roles)
555 throws com.liferay.portal.SystemException,
556 com.liferay.portal.NoSuchRoleException,
557 com.liferay.portal.NoSuchGroupException {
558 getPersistence().removeRoles(pk, roles);
559 }
560
561 public static void setRoles(long pk, long[] rolePKs)
562 throws com.liferay.portal.SystemException,
563 com.liferay.portal.NoSuchRoleException,
564 com.liferay.portal.NoSuchGroupException {
565 getPersistence().setRoles(pk, rolePKs);
566 }
567
568 public static void setRoles(long pk,
569 java.util.List<com.liferay.portal.model.Role> roles)
570 throws com.liferay.portal.SystemException,
571 com.liferay.portal.NoSuchRoleException,
572 com.liferay.portal.NoSuchGroupException {
573 getPersistence().setRoles(pk, roles);
574 }
575
576 public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
577 long pk)
578 throws com.liferay.portal.SystemException,
579 com.liferay.portal.NoSuchGroupException {
580 return getPersistence().getUserGroups(pk);
581 }
582
583 public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
584 long pk, int begin, int end)
585 throws com.liferay.portal.SystemException,
586 com.liferay.portal.NoSuchGroupException {
587 return getPersistence().getUserGroups(pk, begin, end);
588 }
589
590 public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
591 long pk, int begin, int end,
592 com.liferay.portal.kernel.util.OrderByComparator obc)
593 throws com.liferay.portal.SystemException,
594 com.liferay.portal.NoSuchGroupException {
595 return getPersistence().getUserGroups(pk, begin, end, obc);
596 }
597
598 public static int getUserGroupsSize(long pk)
599 throws com.liferay.portal.SystemException {
600 return getPersistence().getUserGroupsSize(pk);
601 }
602
603 public static boolean containsUserGroup(long pk, long userGroupPK)
604 throws com.liferay.portal.SystemException {
605 return getPersistence().containsUserGroup(pk, userGroupPK);
606 }
607
608 public static boolean containsUserGroups(long pk)
609 throws com.liferay.portal.SystemException {
610 return getPersistence().containsUserGroups(pk);
611 }
612
613 public static void addUserGroup(long pk, long userGroupPK)
614 throws com.liferay.portal.SystemException,
615 com.liferay.portal.NoSuchGroupException,
616 com.liferay.portal.NoSuchUserGroupException {
617 getPersistence().addUserGroup(pk, userGroupPK);
618 }
619
620 public static void addUserGroup(long pk,
621 com.liferay.portal.model.UserGroup userGroup)
622 throws com.liferay.portal.SystemException,
623 com.liferay.portal.NoSuchGroupException,
624 com.liferay.portal.NoSuchUserGroupException {
625 getPersistence().addUserGroup(pk, userGroup);
626 }
627
628 public static void addUserGroups(long pk, long[] userGroupPKs)
629 throws com.liferay.portal.SystemException,
630 com.liferay.portal.NoSuchGroupException,
631 com.liferay.portal.NoSuchUserGroupException {
632 getPersistence().addUserGroups(pk, userGroupPKs);
633 }
634
635 public static void addUserGroups(long pk,
636 java.util.List<com.liferay.portal.model.UserGroup> userGroups)
637 throws com.liferay.portal.SystemException,
638 com.liferay.portal.NoSuchGroupException,
639 com.liferay.portal.NoSuchUserGroupException {
640 getPersistence().addUserGroups(pk, userGroups);
641 }
642
643 public static void clearUserGroups(long pk)
644 throws com.liferay.portal.SystemException,
645 com.liferay.portal.NoSuchGroupException {
646 getPersistence().clearUserGroups(pk);
647 }
648
649 public static void removeUserGroup(long pk, long userGroupPK)
650 throws com.liferay.portal.SystemException,
651 com.liferay.portal.NoSuchGroupException,
652 com.liferay.portal.NoSuchUserGroupException {
653 getPersistence().removeUserGroup(pk, userGroupPK);
654 }
655
656 public static void removeUserGroup(long pk,
657 com.liferay.portal.model.UserGroup userGroup)
658 throws com.liferay.portal.SystemException,
659 com.liferay.portal.NoSuchGroupException,
660 com.liferay.portal.NoSuchUserGroupException {
661 getPersistence().removeUserGroup(pk, userGroup);
662 }
663
664 public static void removeUserGroups(long pk, long[] userGroupPKs)
665 throws com.liferay.portal.SystemException,
666 com.liferay.portal.NoSuchGroupException,
667 com.liferay.portal.NoSuchUserGroupException {
668 getPersistence().removeUserGroups(pk, userGroupPKs);
669 }
670
671 public static void removeUserGroups(long pk,
672 java.util.List<com.liferay.portal.model.UserGroup> userGroups)
673 throws com.liferay.portal.SystemException,
674 com.liferay.portal.NoSuchGroupException,
675 com.liferay.portal.NoSuchUserGroupException {
676 getPersistence().removeUserGroups(pk, userGroups);
677 }
678
679 public static void setUserGroups(long pk, long[] userGroupPKs)
680 throws com.liferay.portal.SystemException,
681 com.liferay.portal.NoSuchGroupException,
682 com.liferay.portal.NoSuchUserGroupException {
683 getPersistence().setUserGroups(pk, userGroupPKs);
684 }
685
686 public static void setUserGroups(long pk,
687 java.util.List<com.liferay.portal.model.UserGroup> userGroups)
688 throws com.liferay.portal.SystemException,
689 com.liferay.portal.NoSuchGroupException,
690 com.liferay.portal.NoSuchUserGroupException {
691 getPersistence().setUserGroups(pk, userGroups);
692 }
693
694 public static java.util.List<com.liferay.portal.model.User> getUsers(
695 long pk)
696 throws com.liferay.portal.SystemException,
697 com.liferay.portal.NoSuchGroupException {
698 return getPersistence().getUsers(pk);
699 }
700
701 public static java.util.List<com.liferay.portal.model.User> getUsers(
702 long pk, int begin, int end)
703 throws com.liferay.portal.SystemException,
704 com.liferay.portal.NoSuchGroupException {
705 return getPersistence().getUsers(pk, begin, end);
706 }
707
708 public static java.util.List<com.liferay.portal.model.User> getUsers(
709 long pk, int begin, int end,
710 com.liferay.portal.kernel.util.OrderByComparator obc)
711 throws com.liferay.portal.SystemException,
712 com.liferay.portal.NoSuchGroupException {
713 return getPersistence().getUsers(pk, begin, end, obc);
714 }
715
716 public static int getUsersSize(long pk)
717 throws com.liferay.portal.SystemException {
718 return getPersistence().getUsersSize(pk);
719 }
720
721 public static boolean containsUser(long pk, long userPK)
722 throws com.liferay.portal.SystemException {
723 return getPersistence().containsUser(pk, userPK);
724 }
725
726 public static boolean containsUsers(long pk)
727 throws com.liferay.portal.SystemException {
728 return getPersistence().containsUsers(pk);
729 }
730
731 public static void addUser(long pk, long userPK)
732 throws com.liferay.portal.SystemException,
733 com.liferay.portal.NoSuchGroupException,
734 com.liferay.portal.NoSuchUserException {
735 getPersistence().addUser(pk, userPK);
736 }
737
738 public static void addUser(long pk, com.liferay.portal.model.User user)
739 throws com.liferay.portal.SystemException,
740 com.liferay.portal.NoSuchGroupException,
741 com.liferay.portal.NoSuchUserException {
742 getPersistence().addUser(pk, user);
743 }
744
745 public static void addUsers(long pk, long[] userPKs)
746 throws com.liferay.portal.SystemException,
747 com.liferay.portal.NoSuchGroupException,
748 com.liferay.portal.NoSuchUserException {
749 getPersistence().addUsers(pk, userPKs);
750 }
751
752 public static void addUsers(long pk,
753 java.util.List<com.liferay.portal.model.User> users)
754 throws com.liferay.portal.SystemException,
755 com.liferay.portal.NoSuchGroupException,
756 com.liferay.portal.NoSuchUserException {
757 getPersistence().addUsers(pk, users);
758 }
759
760 public static void clearUsers(long pk)
761 throws com.liferay.portal.SystemException,
762 com.liferay.portal.NoSuchGroupException {
763 getPersistence().clearUsers(pk);
764 }
765
766 public static void removeUser(long pk, long userPK)
767 throws com.liferay.portal.SystemException,
768 com.liferay.portal.NoSuchGroupException,
769 com.liferay.portal.NoSuchUserException {
770 getPersistence().removeUser(pk, userPK);
771 }
772
773 public static void removeUser(long pk, com.liferay.portal.model.User user)
774 throws com.liferay.portal.SystemException,
775 com.liferay.portal.NoSuchGroupException,
776 com.liferay.portal.NoSuchUserException {
777 getPersistence().removeUser(pk, user);
778 }
779
780 public static void removeUsers(long pk, long[] userPKs)
781 throws com.liferay.portal.SystemException,
782 com.liferay.portal.NoSuchGroupException,
783 com.liferay.portal.NoSuchUserException {
784 getPersistence().removeUsers(pk, userPKs);
785 }
786
787 public static void removeUsers(long pk,
788 java.util.List<com.liferay.portal.model.User> users)
789 throws com.liferay.portal.SystemException,
790 com.liferay.portal.NoSuchGroupException,
791 com.liferay.portal.NoSuchUserException {
792 getPersistence().removeUsers(pk, users);
793 }
794
795 public static void setUsers(long pk, long[] userPKs)
796 throws com.liferay.portal.SystemException,
797 com.liferay.portal.NoSuchGroupException,
798 com.liferay.portal.NoSuchUserException {
799 getPersistence().setUsers(pk, userPKs);
800 }
801
802 public static void setUsers(long pk,
803 java.util.List<com.liferay.portal.model.User> users)
804 throws com.liferay.portal.SystemException,
805 com.liferay.portal.NoSuchGroupException,
806 com.liferay.portal.NoSuchUserException {
807 getPersistence().setUsers(pk, users);
808 }
809
810 public static GroupPersistence getPersistence() {
811 return _getUtil()._persistence;
812 }
813
814 public void setPersistence(GroupPersistence persistence) {
815 _persistence = persistence;
816 }
817
818 private static GroupUtil _getUtil() {
819 if (_util == null) {
820 _util = (GroupUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
821 }
822
823 return _util;
824 }
825
826 private static final String _UTIL = GroupUtil.class.getName();
827 private static GroupUtil _util;
828 private GroupPersistence _persistence;
829 }