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