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