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