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