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