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