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