1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portal.service.persistence;
21  
22  /**
23   * <a href="GroupUtil.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   *
27   */
28  public class GroupUtil {
29      public static com.liferay.portal.model.Group create(long groupId) {
30          return getPersistence().create(groupId);
31      }
32  
33      public static com.liferay.portal.model.Group remove(long groupId)
34          throws com.liferay.portal.NoSuchGroupException,
35              com.liferay.portal.SystemException {
36          return getPersistence().remove(groupId);
37      }
38  
39      public static com.liferay.portal.model.Group remove(
40          com.liferay.portal.model.Group group)
41          throws com.liferay.portal.SystemException {
42          return getPersistence().remove(group);
43      }
44  
45      /**
46       * @deprecated Use <code>update(Group group, boolean merge)</code>.
47       */
48      public static com.liferay.portal.model.Group update(
49          com.liferay.portal.model.Group group)
50          throws com.liferay.portal.SystemException {
51          return getPersistence().update(group);
52      }
53  
54      /**
55       * Add, update, or merge, the entity. This method also calls the model
56       * listeners to trigger the proper events associated with adding, deleting,
57       * or updating an entity.
58       *
59       * @param        group the entity to add, update, or merge
60       * @param        merge boolean value for whether to merge the entity. The
61       *                default value is false. Setting merge to true is more
62       *                expensive and should only be true when group is
63       *                transient. See LEP-5473 for a detailed discussion of this
64       *                method.
65       * @return        true if the portlet can be displayed via Ajax
66       */
67      public static com.liferay.portal.model.Group update(
68          com.liferay.portal.model.Group group, boolean merge)
69          throws com.liferay.portal.SystemException {
70          return getPersistence().update(group, merge);
71      }
72  
73      public static com.liferay.portal.model.Group updateImpl(
74          com.liferay.portal.model.Group group, boolean merge)
75          throws com.liferay.portal.SystemException {
76          return getPersistence().updateImpl(group, merge);
77      }
78  
79      public static com.liferay.portal.model.Group findByPrimaryKey(long groupId)
80          throws com.liferay.portal.NoSuchGroupException,
81              com.liferay.portal.SystemException {
82          return getPersistence().findByPrimaryKey(groupId);
83      }
84  
85      public static com.liferay.portal.model.Group fetchByPrimaryKey(long groupId)
86          throws com.liferay.portal.SystemException {
87          return getPersistence().fetchByPrimaryKey(groupId);
88      }
89  
90      public static com.liferay.portal.model.Group findByLiveGroupId(
91          long liveGroupId)
92          throws com.liferay.portal.NoSuchGroupException,
93              com.liferay.portal.SystemException {
94          return getPersistence().findByLiveGroupId(liveGroupId);
95      }
96  
97      public static com.liferay.portal.model.Group fetchByLiveGroupId(
98          long liveGroupId) throws com.liferay.portal.SystemException {
99          return getPersistence().fetchByLiveGroupId(liveGroupId);
100     }
101 
102     public static com.liferay.portal.model.Group findByC_N(long companyId,
103         java.lang.String name)
104         throws com.liferay.portal.NoSuchGroupException,
105             com.liferay.portal.SystemException {
106         return getPersistence().findByC_N(companyId, name);
107     }
108 
109     public static com.liferay.portal.model.Group fetchByC_N(long companyId,
110         java.lang.String name) throws com.liferay.portal.SystemException {
111         return getPersistence().fetchByC_N(companyId, name);
112     }
113 
114     public static com.liferay.portal.model.Group findByC_F(long companyId,
115         java.lang.String friendlyURL)
116         throws com.liferay.portal.NoSuchGroupException,
117             com.liferay.portal.SystemException {
118         return getPersistence().findByC_F(companyId, friendlyURL);
119     }
120 
121     public static com.liferay.portal.model.Group fetchByC_F(long companyId,
122         java.lang.String friendlyURL) throws com.liferay.portal.SystemException {
123         return getPersistence().fetchByC_F(companyId, friendlyURL);
124     }
125 
126     public static com.liferay.portal.model.Group findByC_C_C(long companyId,
127         long classNameId, long classPK)
128         throws com.liferay.portal.NoSuchGroupException,
129             com.liferay.portal.SystemException {
130         return getPersistence().findByC_C_C(companyId, classNameId, classPK);
131     }
132 
133     public static com.liferay.portal.model.Group fetchByC_C_C(long companyId,
134         long classNameId, long classPK)
135         throws com.liferay.portal.SystemException {
136         return getPersistence().fetchByC_C_C(companyId, classNameId, classPK);
137     }
138 
139     public static java.util.List<Object> findWithDynamicQuery(
140         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
141         throws com.liferay.portal.SystemException {
142         return getPersistence().findWithDynamicQuery(dynamicQuery);
143     }
144 
145     public static java.util.List<Object> findWithDynamicQuery(
146         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147         int end) throws com.liferay.portal.SystemException {
148         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
149     }
150 
151     public static java.util.List<com.liferay.portal.model.Group> findAll()
152         throws com.liferay.portal.SystemException {
153         return getPersistence().findAll();
154     }
155 
156     public static java.util.List<com.liferay.portal.model.Group> findAll(
157         int start, int end) throws com.liferay.portal.SystemException {
158         return getPersistence().findAll(start, end);
159     }
160 
161     public static java.util.List<com.liferay.portal.model.Group> findAll(
162         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.SystemException {
164         return getPersistence().findAll(start, end, obc);
165     }
166 
167     public static void removeByLiveGroupId(long liveGroupId)
168         throws com.liferay.portal.NoSuchGroupException,
169             com.liferay.portal.SystemException {
170         getPersistence().removeByLiveGroupId(liveGroupId);
171     }
172 
173     public static void removeByC_N(long companyId, java.lang.String name)
174         throws com.liferay.portal.NoSuchGroupException,
175             com.liferay.portal.SystemException {
176         getPersistence().removeByC_N(companyId, name);
177     }
178 
179     public static void removeByC_F(long companyId, java.lang.String friendlyURL)
180         throws com.liferay.portal.NoSuchGroupException,
181             com.liferay.portal.SystemException {
182         getPersistence().removeByC_F(companyId, friendlyURL);
183     }
184 
185     public static void removeByC_C_C(long companyId, long classNameId,
186         long classPK)
187         throws com.liferay.portal.NoSuchGroupException,
188             com.liferay.portal.SystemException {
189         getPersistence().removeByC_C_C(companyId, classNameId, classPK);
190     }
191 
192     public static void removeAll() throws com.liferay.portal.SystemException {
193         getPersistence().removeAll();
194     }
195 
196     public static int countByLiveGroupId(long liveGroupId)
197         throws com.liferay.portal.SystemException {
198         return getPersistence().countByLiveGroupId(liveGroupId);
199     }
200 
201     public static int countByC_N(long companyId, java.lang.String name)
202         throws com.liferay.portal.SystemException {
203         return getPersistence().countByC_N(companyId, name);
204     }
205 
206     public static int countByC_F(long companyId, java.lang.String friendlyURL)
207         throws com.liferay.portal.SystemException {
208         return getPersistence().countByC_F(companyId, friendlyURL);
209     }
210 
211     public static int countByC_C_C(long companyId, long classNameId,
212         long classPK) throws com.liferay.portal.SystemException {
213         return getPersistence().countByC_C_C(companyId, classNameId, classPK);
214     }
215 
216     public static int countAll() throws com.liferay.portal.SystemException {
217         return getPersistence().countAll();
218     }
219 
220     public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
221         long pk) throws com.liferay.portal.SystemException {
222         return getPersistence().getOrganizations(pk);
223     }
224 
225     public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
226         long pk, int start, int end) throws com.liferay.portal.SystemException {
227         return getPersistence().getOrganizations(pk, start, end);
228     }
229 
230     public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
231         long pk, int start, int end,
232         com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.SystemException {
234         return getPersistence().getOrganizations(pk, start, end, obc);
235     }
236 
237     public static int getOrganizationsSize(long pk)
238         throws com.liferay.portal.SystemException {
239         return getPersistence().getOrganizationsSize(pk);
240     }
241 
242     public static boolean containsOrganization(long pk, long organizationPK)
243         throws com.liferay.portal.SystemException {
244         return getPersistence().containsOrganization(pk, organizationPK);
245     }
246 
247     public static boolean containsOrganizations(long pk)
248         throws com.liferay.portal.SystemException {
249         return getPersistence().containsOrganizations(pk);
250     }
251 
252     public static void addOrganization(long pk, long organizationPK)
253         throws com.liferay.portal.SystemException {
254         getPersistence().addOrganization(pk, organizationPK);
255     }
256 
257     public static void addOrganization(long pk,
258         com.liferay.portal.model.Organization organization)
259         throws com.liferay.portal.SystemException {
260         getPersistence().addOrganization(pk, organization);
261     }
262 
263     public static void addOrganizations(long pk, long[] organizationPKs)
264         throws com.liferay.portal.SystemException {
265         getPersistence().addOrganizations(pk, organizationPKs);
266     }
267 
268     public static void addOrganizations(long pk,
269         java.util.List<com.liferay.portal.model.Organization> organizations)
270         throws com.liferay.portal.SystemException {
271         getPersistence().addOrganizations(pk, organizations);
272     }
273 
274     public static void clearOrganizations(long pk)
275         throws com.liferay.portal.SystemException {
276         getPersistence().clearOrganizations(pk);
277     }
278 
279     public static void removeOrganization(long pk, long organizationPK)
280         throws com.liferay.portal.SystemException {
281         getPersistence().removeOrganization(pk, organizationPK);
282     }
283 
284     public static void removeOrganization(long pk,
285         com.liferay.portal.model.Organization organization)
286         throws com.liferay.portal.SystemException {
287         getPersistence().removeOrganization(pk, organization);
288     }
289 
290     public static void removeOrganizations(long pk, long[] organizationPKs)
291         throws com.liferay.portal.SystemException {
292         getPersistence().removeOrganizations(pk, organizationPKs);
293     }
294 
295     public static void removeOrganizations(long pk,
296         java.util.List<com.liferay.portal.model.Organization> organizations)
297         throws com.liferay.portal.SystemException {
298         getPersistence().removeOrganizations(pk, organizations);
299     }
300 
301     public static void setOrganizations(long pk, long[] organizationPKs)
302         throws com.liferay.portal.SystemException {
303         getPersistence().setOrganizations(pk, organizationPKs);
304     }
305 
306     public static void setOrganizations(long pk,
307         java.util.List<com.liferay.portal.model.Organization> organizations)
308         throws com.liferay.portal.SystemException {
309         getPersistence().setOrganizations(pk, organizations);
310     }
311 
312     public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
313         long pk) throws com.liferay.portal.SystemException {
314         return getPersistence().getPermissions(pk);
315     }
316 
317     public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
318         long pk, int start, int end) throws com.liferay.portal.SystemException {
319         return getPersistence().getPermissions(pk, start, end);
320     }
321 
322     public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
323         long pk, int start, int end,
324         com.liferay.portal.kernel.util.OrderByComparator obc)
325         throws com.liferay.portal.SystemException {
326         return getPersistence().getPermissions(pk, start, end, obc);
327     }
328 
329     public static int getPermissionsSize(long pk)
330         throws com.liferay.portal.SystemException {
331         return getPersistence().getPermissionsSize(pk);
332     }
333 
334     public static boolean containsPermission(long pk, long permissionPK)
335         throws com.liferay.portal.SystemException {
336         return getPersistence().containsPermission(pk, permissionPK);
337     }
338 
339     public static boolean containsPermissions(long pk)
340         throws com.liferay.portal.SystemException {
341         return getPersistence().containsPermissions(pk);
342     }
343 
344     public static void addPermission(long pk, long permissionPK)
345         throws com.liferay.portal.SystemException {
346         getPersistence().addPermission(pk, permissionPK);
347     }
348 
349     public static void addPermission(long pk,
350         com.liferay.portal.model.Permission permission)
351         throws com.liferay.portal.SystemException {
352         getPersistence().addPermission(pk, permission);
353     }
354 
355     public static void addPermissions(long pk, long[] permissionPKs)
356         throws com.liferay.portal.SystemException {
357         getPersistence().addPermissions(pk, permissionPKs);
358     }
359 
360     public static void addPermissions(long pk,
361         java.util.List<com.liferay.portal.model.Permission> permissions)
362         throws com.liferay.portal.SystemException {
363         getPersistence().addPermissions(pk, permissions);
364     }
365 
366     public static void clearPermissions(long pk)
367         throws com.liferay.portal.SystemException {
368         getPersistence().clearPermissions(pk);
369     }
370 
371     public static void removePermission(long pk, long permissionPK)
372         throws com.liferay.portal.SystemException {
373         getPersistence().removePermission(pk, permissionPK);
374     }
375 
376     public static void removePermission(long pk,
377         com.liferay.portal.model.Permission permission)
378         throws com.liferay.portal.SystemException {
379         getPersistence().removePermission(pk, permission);
380     }
381 
382     public static void removePermissions(long pk, long[] permissionPKs)
383         throws com.liferay.portal.SystemException {
384         getPersistence().removePermissions(pk, permissionPKs);
385     }
386 
387     public static void removePermissions(long pk,
388         java.util.List<com.liferay.portal.model.Permission> permissions)
389         throws com.liferay.portal.SystemException {
390         getPersistence().removePermissions(pk, permissions);
391     }
392 
393     public static void setPermissions(long pk, long[] permissionPKs)
394         throws com.liferay.portal.SystemException {
395         getPersistence().setPermissions(pk, permissionPKs);
396     }
397 
398     public static void setPermissions(long pk,
399         java.util.List<com.liferay.portal.model.Permission> permissions)
400         throws com.liferay.portal.SystemException {
401         getPersistence().setPermissions(pk, permissions);
402     }
403 
404     public static java.util.List<com.liferay.portal.model.Role> getRoles(
405         long pk) throws com.liferay.portal.SystemException {
406         return getPersistence().getRoles(pk);
407     }
408 
409     public static java.util.List<com.liferay.portal.model.Role> getRoles(
410         long pk, int start, int end) throws com.liferay.portal.SystemException {
411         return getPersistence().getRoles(pk, start, end);
412     }
413 
414     public static java.util.List<com.liferay.portal.model.Role> getRoles(
415         long pk, int start, int end,
416         com.liferay.portal.kernel.util.OrderByComparator obc)
417         throws com.liferay.portal.SystemException {
418         return getPersistence().getRoles(pk, start, end, obc);
419     }
420 
421     public static int getRolesSize(long pk)
422         throws com.liferay.portal.SystemException {
423         return getPersistence().getRolesSize(pk);
424     }
425 
426     public static boolean containsRole(long pk, long rolePK)
427         throws com.liferay.portal.SystemException {
428         return getPersistence().containsRole(pk, rolePK);
429     }
430 
431     public static boolean containsRoles(long pk)
432         throws com.liferay.portal.SystemException {
433         return getPersistence().containsRoles(pk);
434     }
435 
436     public static void addRole(long pk, long rolePK)
437         throws com.liferay.portal.SystemException {
438         getPersistence().addRole(pk, rolePK);
439     }
440 
441     public static void addRole(long pk, com.liferay.portal.model.Role role)
442         throws com.liferay.portal.SystemException {
443         getPersistence().addRole(pk, role);
444     }
445 
446     public static void addRoles(long pk, long[] rolePKs)
447         throws com.liferay.portal.SystemException {
448         getPersistence().addRoles(pk, rolePKs);
449     }
450 
451     public static void addRoles(long pk,
452         java.util.List<com.liferay.portal.model.Role> roles)
453         throws com.liferay.portal.SystemException {
454         getPersistence().addRoles(pk, roles);
455     }
456 
457     public static void clearRoles(long pk)
458         throws com.liferay.portal.SystemException {
459         getPersistence().clearRoles(pk);
460     }
461 
462     public static void removeRole(long pk, long rolePK)
463         throws com.liferay.portal.SystemException {
464         getPersistence().removeRole(pk, rolePK);
465     }
466 
467     public static void removeRole(long pk, com.liferay.portal.model.Role role)
468         throws com.liferay.portal.SystemException {
469         getPersistence().removeRole(pk, role);
470     }
471 
472     public static void removeRoles(long pk, long[] rolePKs)
473         throws com.liferay.portal.SystemException {
474         getPersistence().removeRoles(pk, rolePKs);
475     }
476 
477     public static void removeRoles(long pk,
478         java.util.List<com.liferay.portal.model.Role> roles)
479         throws com.liferay.portal.SystemException {
480         getPersistence().removeRoles(pk, roles);
481     }
482 
483     public static void setRoles(long pk, long[] rolePKs)
484         throws com.liferay.portal.SystemException {
485         getPersistence().setRoles(pk, rolePKs);
486     }
487 
488     public static void setRoles(long pk,
489         java.util.List<com.liferay.portal.model.Role> roles)
490         throws com.liferay.portal.SystemException {
491         getPersistence().setRoles(pk, roles);
492     }
493 
494     public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
495         long pk) throws com.liferay.portal.SystemException {
496         return getPersistence().getUserGroups(pk);
497     }
498 
499     public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
500         long pk, int start, int end) throws com.liferay.portal.SystemException {
501         return getPersistence().getUserGroups(pk, start, end);
502     }
503 
504     public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
505         long pk, int start, int end,
506         com.liferay.portal.kernel.util.OrderByComparator obc)
507         throws com.liferay.portal.SystemException {
508         return getPersistence().getUserGroups(pk, start, end, obc);
509     }
510 
511     public static int getUserGroupsSize(long pk)
512         throws com.liferay.portal.SystemException {
513         return getPersistence().getUserGroupsSize(pk);
514     }
515 
516     public static boolean containsUserGroup(long pk, long userGroupPK)
517         throws com.liferay.portal.SystemException {
518         return getPersistence().containsUserGroup(pk, userGroupPK);
519     }
520 
521     public static boolean containsUserGroups(long pk)
522         throws com.liferay.portal.SystemException {
523         return getPersistence().containsUserGroups(pk);
524     }
525 
526     public static void addUserGroup(long pk, long userGroupPK)
527         throws com.liferay.portal.SystemException {
528         getPersistence().addUserGroup(pk, userGroupPK);
529     }
530 
531     public static void addUserGroup(long pk,
532         com.liferay.portal.model.UserGroup userGroup)
533         throws com.liferay.portal.SystemException {
534         getPersistence().addUserGroup(pk, userGroup);
535     }
536 
537     public static void addUserGroups(long pk, long[] userGroupPKs)
538         throws com.liferay.portal.SystemException {
539         getPersistence().addUserGroups(pk, userGroupPKs);
540     }
541 
542     public static void addUserGroups(long pk,
543         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
544         throws com.liferay.portal.SystemException {
545         getPersistence().addUserGroups(pk, userGroups);
546     }
547 
548     public static void clearUserGroups(long pk)
549         throws com.liferay.portal.SystemException {
550         getPersistence().clearUserGroups(pk);
551     }
552 
553     public static void removeUserGroup(long pk, long userGroupPK)
554         throws com.liferay.portal.SystemException {
555         getPersistence().removeUserGroup(pk, userGroupPK);
556     }
557 
558     public static void removeUserGroup(long pk,
559         com.liferay.portal.model.UserGroup userGroup)
560         throws com.liferay.portal.SystemException {
561         getPersistence().removeUserGroup(pk, userGroup);
562     }
563 
564     public static void removeUserGroups(long pk, long[] userGroupPKs)
565         throws com.liferay.portal.SystemException {
566         getPersistence().removeUserGroups(pk, userGroupPKs);
567     }
568 
569     public static void removeUserGroups(long pk,
570         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
571         throws com.liferay.portal.SystemException {
572         getPersistence().removeUserGroups(pk, userGroups);
573     }
574 
575     public static void setUserGroups(long pk, long[] userGroupPKs)
576         throws com.liferay.portal.SystemException {
577         getPersistence().setUserGroups(pk, userGroupPKs);
578     }
579 
580     public static void setUserGroups(long pk,
581         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
582         throws com.liferay.portal.SystemException {
583         getPersistence().setUserGroups(pk, userGroups);
584     }
585 
586     public static java.util.List<com.liferay.portal.model.User> getUsers(
587         long pk) throws com.liferay.portal.SystemException {
588         return getPersistence().getUsers(pk);
589     }
590 
591     public static java.util.List<com.liferay.portal.model.User> getUsers(
592         long pk, int start, int end) throws com.liferay.portal.SystemException {
593         return getPersistence().getUsers(pk, start, end);
594     }
595 
596     public static java.util.List<com.liferay.portal.model.User> getUsers(
597         long pk, int start, int end,
598         com.liferay.portal.kernel.util.OrderByComparator obc)
599         throws com.liferay.portal.SystemException {
600         return getPersistence().getUsers(pk, start, end, obc);
601     }
602 
603     public static int getUsersSize(long pk)
604         throws com.liferay.portal.SystemException {
605         return getPersistence().getUsersSize(pk);
606     }
607 
608     public static boolean containsUser(long pk, long userPK)
609         throws com.liferay.portal.SystemException {
610         return getPersistence().containsUser(pk, userPK);
611     }
612 
613     public static boolean containsUsers(long pk)
614         throws com.liferay.portal.SystemException {
615         return getPersistence().containsUsers(pk);
616     }
617 
618     public static void addUser(long pk, long userPK)
619         throws com.liferay.portal.SystemException {
620         getPersistence().addUser(pk, userPK);
621     }
622 
623     public static void addUser(long pk, com.liferay.portal.model.User user)
624         throws com.liferay.portal.SystemException {
625         getPersistence().addUser(pk, user);
626     }
627 
628     public static void addUsers(long pk, long[] userPKs)
629         throws com.liferay.portal.SystemException {
630         getPersistence().addUsers(pk, userPKs);
631     }
632 
633     public static void addUsers(long pk,
634         java.util.List<com.liferay.portal.model.User> users)
635         throws com.liferay.portal.SystemException {
636         getPersistence().addUsers(pk, users);
637     }
638 
639     public static void clearUsers(long pk)
640         throws com.liferay.portal.SystemException {
641         getPersistence().clearUsers(pk);
642     }
643 
644     public static void removeUser(long pk, long userPK)
645         throws com.liferay.portal.SystemException {
646         getPersistence().removeUser(pk, userPK);
647     }
648 
649     public static void removeUser(long pk, com.liferay.portal.model.User user)
650         throws com.liferay.portal.SystemException {
651         getPersistence().removeUser(pk, user);
652     }
653 
654     public static void removeUsers(long pk, long[] userPKs)
655         throws com.liferay.portal.SystemException {
656         getPersistence().removeUsers(pk, userPKs);
657     }
658 
659     public static void removeUsers(long pk,
660         java.util.List<com.liferay.portal.model.User> users)
661         throws com.liferay.portal.SystemException {
662         getPersistence().removeUsers(pk, users);
663     }
664 
665     public static void setUsers(long pk, long[] userPKs)
666         throws com.liferay.portal.SystemException {
667         getPersistence().setUsers(pk, userPKs);
668     }
669 
670     public static void setUsers(long pk,
671         java.util.List<com.liferay.portal.model.User> users)
672         throws com.liferay.portal.SystemException {
673         getPersistence().setUsers(pk, users);
674     }
675 
676     public static GroupPersistence getPersistence() {
677         return _persistence;
678     }
679 
680     public void setPersistence(GroupPersistence persistence) {
681         _persistence = persistence;
682     }
683 
684     private static GroupPersistence _persistence;
685 }