1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.model.User;
18  
19  /**
20   * <a href="UserPersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       UserPersistenceImpl
29   * @see       UserUtil
30   * @generated
31   */
32  public interface UserPersistence extends BasePersistence<User> {
33      public void cacheResult(com.liferay.portal.model.User user);
34  
35      public void cacheResult(java.util.List<com.liferay.portal.model.User> users);
36  
37      public com.liferay.portal.model.User create(long userId);
38  
39      public com.liferay.portal.model.User remove(long userId)
40          throws com.liferay.portal.NoSuchUserException,
41              com.liferay.portal.kernel.exception.SystemException;
42  
43      public com.liferay.portal.model.User updateImpl(
44          com.liferay.portal.model.User user, boolean merge)
45          throws com.liferay.portal.kernel.exception.SystemException;
46  
47      public com.liferay.portal.model.User findByPrimaryKey(long userId)
48          throws com.liferay.portal.NoSuchUserException,
49              com.liferay.portal.kernel.exception.SystemException;
50  
51      public com.liferay.portal.model.User fetchByPrimaryKey(long userId)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public java.util.List<com.liferay.portal.model.User> findByUuid(
55          java.lang.String uuid)
56          throws com.liferay.portal.kernel.exception.SystemException;
57  
58      public java.util.List<com.liferay.portal.model.User> findByUuid(
59          java.lang.String uuid, int start, int end)
60          throws com.liferay.portal.kernel.exception.SystemException;
61  
62      public java.util.List<com.liferay.portal.model.User> findByUuid(
63          java.lang.String uuid, int start, int end,
64          com.liferay.portal.kernel.util.OrderByComparator obc)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public com.liferay.portal.model.User findByUuid_First(
68          java.lang.String uuid,
69          com.liferay.portal.kernel.util.OrderByComparator obc)
70          throws com.liferay.portal.NoSuchUserException,
71              com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portal.model.User findByUuid_Last(
74          java.lang.String uuid,
75          com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.NoSuchUserException,
77              com.liferay.portal.kernel.exception.SystemException;
78  
79      public com.liferay.portal.model.User[] findByUuid_PrevAndNext(long userId,
80          java.lang.String uuid,
81          com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.NoSuchUserException,
83              com.liferay.portal.kernel.exception.SystemException;
84  
85      public java.util.List<com.liferay.portal.model.User> findByCompanyId(
86          long companyId)
87          throws com.liferay.portal.kernel.exception.SystemException;
88  
89      public java.util.List<com.liferay.portal.model.User> findByCompanyId(
90          long companyId, int start, int end)
91          throws com.liferay.portal.kernel.exception.SystemException;
92  
93      public java.util.List<com.liferay.portal.model.User> findByCompanyId(
94          long companyId, int start, int end,
95          com.liferay.portal.kernel.util.OrderByComparator obc)
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public com.liferay.portal.model.User findByCompanyId_First(long companyId,
99          com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.NoSuchUserException,
101             com.liferay.portal.kernel.exception.SystemException;
102 
103     public com.liferay.portal.model.User findByCompanyId_Last(long companyId,
104         com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.NoSuchUserException,
106             com.liferay.portal.kernel.exception.SystemException;
107 
108     public com.liferay.portal.model.User[] findByCompanyId_PrevAndNext(
109         long userId, long companyId,
110         com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.NoSuchUserException,
112             com.liferay.portal.kernel.exception.SystemException;
113 
114     public com.liferay.portal.model.User findByContactId(long contactId)
115         throws com.liferay.portal.NoSuchUserException,
116             com.liferay.portal.kernel.exception.SystemException;
117 
118     public com.liferay.portal.model.User fetchByContactId(long contactId)
119         throws com.liferay.portal.kernel.exception.SystemException;
120 
121     public com.liferay.portal.model.User fetchByContactId(long contactId,
122         boolean retrieveFromCache)
123         throws com.liferay.portal.kernel.exception.SystemException;
124 
125     public java.util.List<com.liferay.portal.model.User> findByEmailAddress(
126         java.lang.String emailAddress)
127         throws com.liferay.portal.kernel.exception.SystemException;
128 
129     public java.util.List<com.liferay.portal.model.User> findByEmailAddress(
130         java.lang.String emailAddress, int start, int end)
131         throws com.liferay.portal.kernel.exception.SystemException;
132 
133     public java.util.List<com.liferay.portal.model.User> findByEmailAddress(
134         java.lang.String emailAddress, int start, int end,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.kernel.exception.SystemException;
137 
138     public com.liferay.portal.model.User findByEmailAddress_First(
139         java.lang.String emailAddress,
140         com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.NoSuchUserException,
142             com.liferay.portal.kernel.exception.SystemException;
143 
144     public com.liferay.portal.model.User findByEmailAddress_Last(
145         java.lang.String emailAddress,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.NoSuchUserException,
148             com.liferay.portal.kernel.exception.SystemException;
149 
150     public com.liferay.portal.model.User[] findByEmailAddress_PrevAndNext(
151         long userId, java.lang.String emailAddress,
152         com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.NoSuchUserException,
154             com.liferay.portal.kernel.exception.SystemException;
155 
156     public com.liferay.portal.model.User findByOpenId(java.lang.String openId)
157         throws com.liferay.portal.NoSuchUserException,
158             com.liferay.portal.kernel.exception.SystemException;
159 
160     public com.liferay.portal.model.User fetchByOpenId(java.lang.String openId)
161         throws com.liferay.portal.kernel.exception.SystemException;
162 
163     public com.liferay.portal.model.User fetchByOpenId(
164         java.lang.String openId, boolean retrieveFromCache)
165         throws com.liferay.portal.kernel.exception.SystemException;
166 
167     public com.liferay.portal.model.User findByPortraitId(long portraitId)
168         throws com.liferay.portal.NoSuchUserException,
169             com.liferay.portal.kernel.exception.SystemException;
170 
171     public com.liferay.portal.model.User fetchByPortraitId(long portraitId)
172         throws com.liferay.portal.kernel.exception.SystemException;
173 
174     public com.liferay.portal.model.User fetchByPortraitId(long portraitId,
175         boolean retrieveFromCache)
176         throws com.liferay.portal.kernel.exception.SystemException;
177 
178     public com.liferay.portal.model.User findByC_U(long companyId, long userId)
179         throws com.liferay.portal.NoSuchUserException,
180             com.liferay.portal.kernel.exception.SystemException;
181 
182     public com.liferay.portal.model.User fetchByC_U(long companyId, long userId)
183         throws com.liferay.portal.kernel.exception.SystemException;
184 
185     public com.liferay.portal.model.User fetchByC_U(long companyId,
186         long userId, boolean retrieveFromCache)
187         throws com.liferay.portal.kernel.exception.SystemException;
188 
189     public com.liferay.portal.model.User findByC_DU(long companyId,
190         boolean defaultUser)
191         throws com.liferay.portal.NoSuchUserException,
192             com.liferay.portal.kernel.exception.SystemException;
193 
194     public com.liferay.portal.model.User fetchByC_DU(long companyId,
195         boolean defaultUser)
196         throws com.liferay.portal.kernel.exception.SystemException;
197 
198     public com.liferay.portal.model.User fetchByC_DU(long companyId,
199         boolean defaultUser, boolean retrieveFromCache)
200         throws com.liferay.portal.kernel.exception.SystemException;
201 
202     public com.liferay.portal.model.User findByC_SN(long companyId,
203         java.lang.String screenName)
204         throws com.liferay.portal.NoSuchUserException,
205             com.liferay.portal.kernel.exception.SystemException;
206 
207     public com.liferay.portal.model.User fetchByC_SN(long companyId,
208         java.lang.String screenName)
209         throws com.liferay.portal.kernel.exception.SystemException;
210 
211     public com.liferay.portal.model.User fetchByC_SN(long companyId,
212         java.lang.String screenName, boolean retrieveFromCache)
213         throws com.liferay.portal.kernel.exception.SystemException;
214 
215     public com.liferay.portal.model.User findByC_EA(long companyId,
216         java.lang.String emailAddress)
217         throws com.liferay.portal.NoSuchUserException,
218             com.liferay.portal.kernel.exception.SystemException;
219 
220     public com.liferay.portal.model.User fetchByC_EA(long companyId,
221         java.lang.String emailAddress)
222         throws com.liferay.portal.kernel.exception.SystemException;
223 
224     public com.liferay.portal.model.User fetchByC_EA(long companyId,
225         java.lang.String emailAddress, boolean retrieveFromCache)
226         throws com.liferay.portal.kernel.exception.SystemException;
227 
228     public java.util.List<com.liferay.portal.model.User> findAll()
229         throws com.liferay.portal.kernel.exception.SystemException;
230 
231     public java.util.List<com.liferay.portal.model.User> findAll(int start,
232         int end) throws com.liferay.portal.kernel.exception.SystemException;
233 
234     public java.util.List<com.liferay.portal.model.User> findAll(int start,
235         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
236         throws com.liferay.portal.kernel.exception.SystemException;
237 
238     public void removeByUuid(java.lang.String uuid)
239         throws com.liferay.portal.kernel.exception.SystemException;
240 
241     public void removeByCompanyId(long companyId)
242         throws com.liferay.portal.kernel.exception.SystemException;
243 
244     public void removeByContactId(long contactId)
245         throws com.liferay.portal.NoSuchUserException,
246             com.liferay.portal.kernel.exception.SystemException;
247 
248     public void removeByEmailAddress(java.lang.String emailAddress)
249         throws com.liferay.portal.kernel.exception.SystemException;
250 
251     public void removeByOpenId(java.lang.String openId)
252         throws com.liferay.portal.NoSuchUserException,
253             com.liferay.portal.kernel.exception.SystemException;
254 
255     public void removeByPortraitId(long portraitId)
256         throws com.liferay.portal.NoSuchUserException,
257             com.liferay.portal.kernel.exception.SystemException;
258 
259     public void removeByC_U(long companyId, long userId)
260         throws com.liferay.portal.NoSuchUserException,
261             com.liferay.portal.kernel.exception.SystemException;
262 
263     public void removeByC_DU(long companyId, boolean defaultUser)
264         throws com.liferay.portal.NoSuchUserException,
265             com.liferay.portal.kernel.exception.SystemException;
266 
267     public void removeByC_SN(long companyId, java.lang.String screenName)
268         throws com.liferay.portal.NoSuchUserException,
269             com.liferay.portal.kernel.exception.SystemException;
270 
271     public void removeByC_EA(long companyId, java.lang.String emailAddress)
272         throws com.liferay.portal.NoSuchUserException,
273             com.liferay.portal.kernel.exception.SystemException;
274 
275     public void removeAll()
276         throws com.liferay.portal.kernel.exception.SystemException;
277 
278     public int countByUuid(java.lang.String uuid)
279         throws com.liferay.portal.kernel.exception.SystemException;
280 
281     public int countByCompanyId(long companyId)
282         throws com.liferay.portal.kernel.exception.SystemException;
283 
284     public int countByContactId(long contactId)
285         throws com.liferay.portal.kernel.exception.SystemException;
286 
287     public int countByEmailAddress(java.lang.String emailAddress)
288         throws com.liferay.portal.kernel.exception.SystemException;
289 
290     public int countByOpenId(java.lang.String openId)
291         throws com.liferay.portal.kernel.exception.SystemException;
292 
293     public int countByPortraitId(long portraitId)
294         throws com.liferay.portal.kernel.exception.SystemException;
295 
296     public int countByC_U(long companyId, long userId)
297         throws com.liferay.portal.kernel.exception.SystemException;
298 
299     public int countByC_DU(long companyId, boolean defaultUser)
300         throws com.liferay.portal.kernel.exception.SystemException;
301 
302     public int countByC_SN(long companyId, java.lang.String screenName)
303         throws com.liferay.portal.kernel.exception.SystemException;
304 
305     public int countByC_EA(long companyId, java.lang.String emailAddress)
306         throws com.liferay.portal.kernel.exception.SystemException;
307 
308     public int countAll()
309         throws com.liferay.portal.kernel.exception.SystemException;
310 
311     public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
312         throws com.liferay.portal.kernel.exception.SystemException;
313 
314     public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
315         int start, int end)
316         throws com.liferay.portal.kernel.exception.SystemException;
317 
318     public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
319         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
320         throws com.liferay.portal.kernel.exception.SystemException;
321 
322     public int getGroupsSize(long pk)
323         throws com.liferay.portal.kernel.exception.SystemException;
324 
325     public boolean containsGroup(long pk, long groupPK)
326         throws com.liferay.portal.kernel.exception.SystemException;
327 
328     public boolean containsGroups(long pk)
329         throws com.liferay.portal.kernel.exception.SystemException;
330 
331     public void addGroup(long pk, long groupPK)
332         throws com.liferay.portal.kernel.exception.SystemException;
333 
334     public void addGroup(long pk, com.liferay.portal.model.Group group)
335         throws com.liferay.portal.kernel.exception.SystemException;
336 
337     public void addGroups(long pk, long[] groupPKs)
338         throws com.liferay.portal.kernel.exception.SystemException;
339 
340     public void addGroups(long pk,
341         java.util.List<com.liferay.portal.model.Group> groups)
342         throws com.liferay.portal.kernel.exception.SystemException;
343 
344     public void clearGroups(long pk)
345         throws com.liferay.portal.kernel.exception.SystemException;
346 
347     public void removeGroup(long pk, long groupPK)
348         throws com.liferay.portal.kernel.exception.SystemException;
349 
350     public void removeGroup(long pk, com.liferay.portal.model.Group group)
351         throws com.liferay.portal.kernel.exception.SystemException;
352 
353     public void removeGroups(long pk, long[] groupPKs)
354         throws com.liferay.portal.kernel.exception.SystemException;
355 
356     public void removeGroups(long pk,
357         java.util.List<com.liferay.portal.model.Group> groups)
358         throws com.liferay.portal.kernel.exception.SystemException;
359 
360     public void setGroups(long pk, long[] groupPKs)
361         throws com.liferay.portal.kernel.exception.SystemException;
362 
363     public void setGroups(long pk,
364         java.util.List<com.liferay.portal.model.Group> groups)
365         throws com.liferay.portal.kernel.exception.SystemException;
366 
367     public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
368         long pk) throws com.liferay.portal.kernel.exception.SystemException;
369 
370     public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
371         long pk, int start, int end)
372         throws com.liferay.portal.kernel.exception.SystemException;
373 
374     public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
375         long pk, int start, int end,
376         com.liferay.portal.kernel.util.OrderByComparator obc)
377         throws com.liferay.portal.kernel.exception.SystemException;
378 
379     public int getOrganizationsSize(long pk)
380         throws com.liferay.portal.kernel.exception.SystemException;
381 
382     public boolean containsOrganization(long pk, long organizationPK)
383         throws com.liferay.portal.kernel.exception.SystemException;
384 
385     public boolean containsOrganizations(long pk)
386         throws com.liferay.portal.kernel.exception.SystemException;
387 
388     public void addOrganization(long pk, long organizationPK)
389         throws com.liferay.portal.kernel.exception.SystemException;
390 
391     public void addOrganization(long pk,
392         com.liferay.portal.model.Organization organization)
393         throws com.liferay.portal.kernel.exception.SystemException;
394 
395     public void addOrganizations(long pk, long[] organizationPKs)
396         throws com.liferay.portal.kernel.exception.SystemException;
397 
398     public void addOrganizations(long pk,
399         java.util.List<com.liferay.portal.model.Organization> organizations)
400         throws com.liferay.portal.kernel.exception.SystemException;
401 
402     public void clearOrganizations(long pk)
403         throws com.liferay.portal.kernel.exception.SystemException;
404 
405     public void removeOrganization(long pk, long organizationPK)
406         throws com.liferay.portal.kernel.exception.SystemException;
407 
408     public void removeOrganization(long pk,
409         com.liferay.portal.model.Organization organization)
410         throws com.liferay.portal.kernel.exception.SystemException;
411 
412     public void removeOrganizations(long pk, long[] organizationPKs)
413         throws com.liferay.portal.kernel.exception.SystemException;
414 
415     public void removeOrganizations(long pk,
416         java.util.List<com.liferay.portal.model.Organization> organizations)
417         throws com.liferay.portal.kernel.exception.SystemException;
418 
419     public void setOrganizations(long pk, long[] organizationPKs)
420         throws com.liferay.portal.kernel.exception.SystemException;
421 
422     public void setOrganizations(long pk,
423         java.util.List<com.liferay.portal.model.Organization> organizations)
424         throws com.liferay.portal.kernel.exception.SystemException;
425 
426     public java.util.List<com.liferay.portal.model.Permission> getPermissions(
427         long pk) throws com.liferay.portal.kernel.exception.SystemException;
428 
429     public java.util.List<com.liferay.portal.model.Permission> getPermissions(
430         long pk, int start, int end)
431         throws com.liferay.portal.kernel.exception.SystemException;
432 
433     public java.util.List<com.liferay.portal.model.Permission> getPermissions(
434         long pk, int start, int end,
435         com.liferay.portal.kernel.util.OrderByComparator obc)
436         throws com.liferay.portal.kernel.exception.SystemException;
437 
438     public int getPermissionsSize(long pk)
439         throws com.liferay.portal.kernel.exception.SystemException;
440 
441     public boolean containsPermission(long pk, long permissionPK)
442         throws com.liferay.portal.kernel.exception.SystemException;
443 
444     public boolean containsPermissions(long pk)
445         throws com.liferay.portal.kernel.exception.SystemException;
446 
447     public void addPermission(long pk, long permissionPK)
448         throws com.liferay.portal.kernel.exception.SystemException;
449 
450     public void addPermission(long pk,
451         com.liferay.portal.model.Permission permission)
452         throws com.liferay.portal.kernel.exception.SystemException;
453 
454     public void addPermissions(long pk, long[] permissionPKs)
455         throws com.liferay.portal.kernel.exception.SystemException;
456 
457     public void addPermissions(long pk,
458         java.util.List<com.liferay.portal.model.Permission> permissions)
459         throws com.liferay.portal.kernel.exception.SystemException;
460 
461     public void clearPermissions(long pk)
462         throws com.liferay.portal.kernel.exception.SystemException;
463 
464     public void removePermission(long pk, long permissionPK)
465         throws com.liferay.portal.kernel.exception.SystemException;
466 
467     public void removePermission(long pk,
468         com.liferay.portal.model.Permission permission)
469         throws com.liferay.portal.kernel.exception.SystemException;
470 
471     public void removePermissions(long pk, long[] permissionPKs)
472         throws com.liferay.portal.kernel.exception.SystemException;
473 
474     public void removePermissions(long pk,
475         java.util.List<com.liferay.portal.model.Permission> permissions)
476         throws com.liferay.portal.kernel.exception.SystemException;
477 
478     public void setPermissions(long pk, long[] permissionPKs)
479         throws com.liferay.portal.kernel.exception.SystemException;
480 
481     public void setPermissions(long pk,
482         java.util.List<com.liferay.portal.model.Permission> permissions)
483         throws com.liferay.portal.kernel.exception.SystemException;
484 
485     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk)
486         throws com.liferay.portal.kernel.exception.SystemException;
487 
488     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
489         int start, int end)
490         throws com.liferay.portal.kernel.exception.SystemException;
491 
492     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
493         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
494         throws com.liferay.portal.kernel.exception.SystemException;
495 
496     public int getRolesSize(long pk)
497         throws com.liferay.portal.kernel.exception.SystemException;
498 
499     public boolean containsRole(long pk, long rolePK)
500         throws com.liferay.portal.kernel.exception.SystemException;
501 
502     public boolean containsRoles(long pk)
503         throws com.liferay.portal.kernel.exception.SystemException;
504 
505     public void addRole(long pk, long rolePK)
506         throws com.liferay.portal.kernel.exception.SystemException;
507 
508     public void addRole(long pk, com.liferay.portal.model.Role role)
509         throws com.liferay.portal.kernel.exception.SystemException;
510 
511     public void addRoles(long pk, long[] rolePKs)
512         throws com.liferay.portal.kernel.exception.SystemException;
513 
514     public void addRoles(long pk,
515         java.util.List<com.liferay.portal.model.Role> roles)
516         throws com.liferay.portal.kernel.exception.SystemException;
517 
518     public void clearRoles(long pk)
519         throws com.liferay.portal.kernel.exception.SystemException;
520 
521     public void removeRole(long pk, long rolePK)
522         throws com.liferay.portal.kernel.exception.SystemException;
523 
524     public void removeRole(long pk, com.liferay.portal.model.Role role)
525         throws com.liferay.portal.kernel.exception.SystemException;
526 
527     public void removeRoles(long pk, long[] rolePKs)
528         throws com.liferay.portal.kernel.exception.SystemException;
529 
530     public void removeRoles(long pk,
531         java.util.List<com.liferay.portal.model.Role> roles)
532         throws com.liferay.portal.kernel.exception.SystemException;
533 
534     public void setRoles(long pk, long[] rolePKs)
535         throws com.liferay.portal.kernel.exception.SystemException;
536 
537     public void setRoles(long pk,
538         java.util.List<com.liferay.portal.model.Role> roles)
539         throws com.liferay.portal.kernel.exception.SystemException;
540 
541     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
542         long pk) throws com.liferay.portal.kernel.exception.SystemException;
543 
544     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
545         long pk, int start, int end)
546         throws com.liferay.portal.kernel.exception.SystemException;
547 
548     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
549         long pk, int start, int end,
550         com.liferay.portal.kernel.util.OrderByComparator obc)
551         throws com.liferay.portal.kernel.exception.SystemException;
552 
553     public int getUserGroupsSize(long pk)
554         throws com.liferay.portal.kernel.exception.SystemException;
555 
556     public boolean containsUserGroup(long pk, long userGroupPK)
557         throws com.liferay.portal.kernel.exception.SystemException;
558 
559     public boolean containsUserGroups(long pk)
560         throws com.liferay.portal.kernel.exception.SystemException;
561 
562     public void addUserGroup(long pk, long userGroupPK)
563         throws com.liferay.portal.kernel.exception.SystemException;
564 
565     public void addUserGroup(long pk,
566         com.liferay.portal.model.UserGroup userGroup)
567         throws com.liferay.portal.kernel.exception.SystemException;
568 
569     public void addUserGroups(long pk, long[] userGroupPKs)
570         throws com.liferay.portal.kernel.exception.SystemException;
571 
572     public void addUserGroups(long pk,
573         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
574         throws com.liferay.portal.kernel.exception.SystemException;
575 
576     public void clearUserGroups(long pk)
577         throws com.liferay.portal.kernel.exception.SystemException;
578 
579     public void removeUserGroup(long pk, long userGroupPK)
580         throws com.liferay.portal.kernel.exception.SystemException;
581 
582     public void removeUserGroup(long pk,
583         com.liferay.portal.model.UserGroup userGroup)
584         throws com.liferay.portal.kernel.exception.SystemException;
585 
586     public void removeUserGroups(long pk, long[] userGroupPKs)
587         throws com.liferay.portal.kernel.exception.SystemException;
588 
589     public void removeUserGroups(long pk,
590         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
591         throws com.liferay.portal.kernel.exception.SystemException;
592 
593     public void setUserGroups(long pk, long[] userGroupPKs)
594         throws com.liferay.portal.kernel.exception.SystemException;
595 
596     public void setUserGroups(long pk,
597         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
598         throws com.liferay.portal.kernel.exception.SystemException;
599 }