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