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