1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  /**
26   * <a href="UserPersistence.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public interface UserPersistence {
32      public com.liferay.portal.model.User create(long userId);
33  
34      public com.liferay.portal.model.User remove(long userId)
35          throws com.liferay.portal.SystemException, 
36              com.liferay.portal.NoSuchUserException;
37  
38      public com.liferay.portal.model.User remove(
39          com.liferay.portal.model.User user)
40          throws com.liferay.portal.SystemException;
41  
42      public com.liferay.portal.model.User update(
43          com.liferay.portal.model.User user)
44          throws com.liferay.portal.SystemException;
45  
46      public com.liferay.portal.model.User update(
47          com.liferay.portal.model.User user, boolean merge)
48          throws com.liferay.portal.SystemException;
49  
50      public com.liferay.portal.model.User updateImpl(
51          com.liferay.portal.model.User user, boolean merge)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portal.model.User findByPrimaryKey(long userId)
55          throws com.liferay.portal.SystemException, 
56              com.liferay.portal.NoSuchUserException;
57  
58      public com.liferay.portal.model.User fetchByPrimaryKey(long userId)
59          throws com.liferay.portal.SystemException;
60  
61      public java.util.List findByUuid(java.lang.String uuid)
62          throws com.liferay.portal.SystemException;
63  
64      public java.util.List findByUuid(java.lang.String uuid, int begin, int end)
65          throws com.liferay.portal.SystemException;
66  
67      public java.util.List findByUuid(java.lang.String uuid, int begin, int end,
68          com.liferay.portal.kernel.util.OrderByComparator obc)
69          throws com.liferay.portal.SystemException;
70  
71      public com.liferay.portal.model.User findByUuid_First(
72          java.lang.String uuid,
73          com.liferay.portal.kernel.util.OrderByComparator obc)
74          throws com.liferay.portal.SystemException, 
75              com.liferay.portal.NoSuchUserException;
76  
77      public com.liferay.portal.model.User findByUuid_Last(
78          java.lang.String uuid,
79          com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.SystemException, 
81              com.liferay.portal.NoSuchUserException;
82  
83      public com.liferay.portal.model.User[] findByUuid_PrevAndNext(long userId,
84          java.lang.String uuid,
85          com.liferay.portal.kernel.util.OrderByComparator obc)
86          throws com.liferay.portal.SystemException, 
87              com.liferay.portal.NoSuchUserException;
88  
89      public java.util.List findByCompanyId(long companyId)
90          throws com.liferay.portal.SystemException;
91  
92      public java.util.List findByCompanyId(long companyId, int begin, int end)
93          throws com.liferay.portal.SystemException;
94  
95      public java.util.List findByCompanyId(long companyId, int begin, int end,
96          com.liferay.portal.kernel.util.OrderByComparator obc)
97          throws com.liferay.portal.SystemException;
98  
99      public com.liferay.portal.model.User findByCompanyId_First(long companyId,
100         com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.SystemException, 
102             com.liferay.portal.NoSuchUserException;
103 
104     public com.liferay.portal.model.User findByCompanyId_Last(long companyId,
105         com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.SystemException, 
107             com.liferay.portal.NoSuchUserException;
108 
109     public com.liferay.portal.model.User[] findByCompanyId_PrevAndNext(
110         long userId, long companyId,
111         com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException, 
113             com.liferay.portal.NoSuchUserException;
114 
115     public com.liferay.portal.model.User findByContactId(long contactId)
116         throws com.liferay.portal.SystemException, 
117             com.liferay.portal.NoSuchUserException;
118 
119     public com.liferay.portal.model.User fetchByContactId(long contactId)
120         throws com.liferay.portal.SystemException;
121 
122     public com.liferay.portal.model.User findByPortraitId(long portraitId)
123         throws com.liferay.portal.SystemException, 
124             com.liferay.portal.NoSuchUserException;
125 
126     public com.liferay.portal.model.User fetchByPortraitId(long portraitId)
127         throws com.liferay.portal.SystemException;
128 
129     public com.liferay.portal.model.User findByC_U(long companyId, long userId)
130         throws com.liferay.portal.SystemException, 
131             com.liferay.portal.NoSuchUserException;
132 
133     public com.liferay.portal.model.User fetchByC_U(long companyId, long userId)
134         throws com.liferay.portal.SystemException;
135 
136     public com.liferay.portal.model.User findByC_DU(long companyId,
137         boolean defaultUser)
138         throws com.liferay.portal.SystemException, 
139             com.liferay.portal.NoSuchUserException;
140 
141     public com.liferay.portal.model.User fetchByC_DU(long companyId,
142         boolean defaultUser) throws com.liferay.portal.SystemException;
143 
144     public java.util.List findByC_P(long companyId, java.lang.String password)
145         throws com.liferay.portal.SystemException;
146 
147     public java.util.List findByC_P(long companyId, java.lang.String password,
148         int begin, int end) throws com.liferay.portal.SystemException;
149 
150     public java.util.List findByC_P(long companyId, java.lang.String password,
151         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
152         throws com.liferay.portal.SystemException;
153 
154     public com.liferay.portal.model.User findByC_P_First(long companyId,
155         java.lang.String password,
156         com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.SystemException, 
158             com.liferay.portal.NoSuchUserException;
159 
160     public com.liferay.portal.model.User findByC_P_Last(long companyId,
161         java.lang.String password,
162         com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.SystemException, 
164             com.liferay.portal.NoSuchUserException;
165 
166     public com.liferay.portal.model.User[] findByC_P_PrevAndNext(long userId,
167         long companyId, java.lang.String password,
168         com.liferay.portal.kernel.util.OrderByComparator obc)
169         throws com.liferay.portal.SystemException, 
170             com.liferay.portal.NoSuchUserException;
171 
172     public com.liferay.portal.model.User findByC_SN(long companyId,
173         java.lang.String screenName)
174         throws com.liferay.portal.SystemException, 
175             com.liferay.portal.NoSuchUserException;
176 
177     public com.liferay.portal.model.User fetchByC_SN(long companyId,
178         java.lang.String screenName) throws com.liferay.portal.SystemException;
179 
180     public com.liferay.portal.model.User findByC_EA(long companyId,
181         java.lang.String emailAddress)
182         throws com.liferay.portal.SystemException, 
183             com.liferay.portal.NoSuchUserException;
184 
185     public com.liferay.portal.model.User fetchByC_EA(long companyId,
186         java.lang.String emailAddress)
187         throws com.liferay.portal.SystemException;
188 
189     public java.util.List findWithDynamicQuery(
190         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
191         throws com.liferay.portal.SystemException;
192 
193     public java.util.List findWithDynamicQuery(
194         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
195         int begin, int end) throws com.liferay.portal.SystemException;
196 
197     public java.util.List findAll() throws com.liferay.portal.SystemException;
198 
199     public java.util.List findAll(int begin, int end)
200         throws com.liferay.portal.SystemException;
201 
202     public java.util.List findAll(int begin, int end,
203         com.liferay.portal.kernel.util.OrderByComparator obc)
204         throws com.liferay.portal.SystemException;
205 
206     public void removeByUuid(java.lang.String uuid)
207         throws com.liferay.portal.SystemException;
208 
209     public void removeByCompanyId(long companyId)
210         throws com.liferay.portal.SystemException;
211 
212     public void removeByContactId(long contactId)
213         throws com.liferay.portal.SystemException, 
214             com.liferay.portal.NoSuchUserException;
215 
216     public void removeByPortraitId(long portraitId)
217         throws com.liferay.portal.SystemException, 
218             com.liferay.portal.NoSuchUserException;
219 
220     public void removeByC_U(long companyId, long userId)
221         throws com.liferay.portal.SystemException, 
222             com.liferay.portal.NoSuchUserException;
223 
224     public void removeByC_DU(long companyId, boolean defaultUser)
225         throws com.liferay.portal.SystemException, 
226             com.liferay.portal.NoSuchUserException;
227 
228     public void removeByC_P(long companyId, java.lang.String password)
229         throws com.liferay.portal.SystemException;
230 
231     public void removeByC_SN(long companyId, java.lang.String screenName)
232         throws com.liferay.portal.SystemException, 
233             com.liferay.portal.NoSuchUserException;
234 
235     public void removeByC_EA(long companyId, java.lang.String emailAddress)
236         throws com.liferay.portal.SystemException, 
237             com.liferay.portal.NoSuchUserException;
238 
239     public void removeAll() throws com.liferay.portal.SystemException;
240 
241     public int countByUuid(java.lang.String uuid)
242         throws com.liferay.portal.SystemException;
243 
244     public int countByCompanyId(long companyId)
245         throws com.liferay.portal.SystemException;
246 
247     public int countByContactId(long contactId)
248         throws com.liferay.portal.SystemException;
249 
250     public int countByPortraitId(long portraitId)
251         throws com.liferay.portal.SystemException;
252 
253     public int countByC_U(long companyId, long userId)
254         throws com.liferay.portal.SystemException;
255 
256     public int countByC_DU(long companyId, boolean defaultUser)
257         throws com.liferay.portal.SystemException;
258 
259     public int countByC_P(long companyId, java.lang.String password)
260         throws com.liferay.portal.SystemException;
261 
262     public int countByC_SN(long companyId, java.lang.String screenName)
263         throws com.liferay.portal.SystemException;
264 
265     public int countByC_EA(long companyId, java.lang.String emailAddress)
266         throws com.liferay.portal.SystemException;
267 
268     public int countAll() throws com.liferay.portal.SystemException;
269 
270     public java.util.List getGroups(long pk)
271         throws com.liferay.portal.SystemException, 
272             com.liferay.portal.NoSuchUserException;
273 
274     public java.util.List getGroups(long pk, int begin, int end)
275         throws com.liferay.portal.SystemException, 
276             com.liferay.portal.NoSuchUserException;
277 
278     public java.util.List getGroups(long pk, int begin, int end,
279         com.liferay.portal.kernel.util.OrderByComparator obc)
280         throws com.liferay.portal.SystemException, 
281             com.liferay.portal.NoSuchUserException;
282 
283     public int getGroupsSize(long pk) throws com.liferay.portal.SystemException;
284 
285     public boolean containsGroup(long pk, long groupPK)
286         throws com.liferay.portal.SystemException;
287 
288     public boolean containsGroups(long pk)
289         throws com.liferay.portal.SystemException;
290 
291     public void addGroup(long pk, long groupPK)
292         throws com.liferay.portal.SystemException, 
293             com.liferay.portal.NoSuchGroupException, 
294             com.liferay.portal.NoSuchUserException;
295 
296     public void addGroup(long pk, com.liferay.portal.model.Group group)
297         throws com.liferay.portal.SystemException, 
298             com.liferay.portal.NoSuchGroupException, 
299             com.liferay.portal.NoSuchUserException;
300 
301     public void addGroups(long pk, long[] groupPKs)
302         throws com.liferay.portal.SystemException, 
303             com.liferay.portal.NoSuchGroupException, 
304             com.liferay.portal.NoSuchUserException;
305 
306     public void addGroups(long pk, java.util.List groups)
307         throws com.liferay.portal.SystemException, 
308             com.liferay.portal.NoSuchGroupException, 
309             com.liferay.portal.NoSuchUserException;
310 
311     public void clearGroups(long pk)
312         throws com.liferay.portal.SystemException, 
313             com.liferay.portal.NoSuchUserException;
314 
315     public void removeGroup(long pk, long groupPK)
316         throws com.liferay.portal.SystemException, 
317             com.liferay.portal.NoSuchGroupException, 
318             com.liferay.portal.NoSuchUserException;
319 
320     public void removeGroup(long pk, com.liferay.portal.model.Group group)
321         throws com.liferay.portal.SystemException, 
322             com.liferay.portal.NoSuchGroupException, 
323             com.liferay.portal.NoSuchUserException;
324 
325     public void removeGroups(long pk, long[] groupPKs)
326         throws com.liferay.portal.SystemException, 
327             com.liferay.portal.NoSuchGroupException, 
328             com.liferay.portal.NoSuchUserException;
329 
330     public void removeGroups(long pk, java.util.List groups)
331         throws com.liferay.portal.SystemException, 
332             com.liferay.portal.NoSuchGroupException, 
333             com.liferay.portal.NoSuchUserException;
334 
335     public void setGroups(long pk, long[] groupPKs)
336         throws com.liferay.portal.SystemException, 
337             com.liferay.portal.NoSuchGroupException, 
338             com.liferay.portal.NoSuchUserException;
339 
340     public void setGroups(long pk, java.util.List groups)
341         throws com.liferay.portal.SystemException, 
342             com.liferay.portal.NoSuchGroupException, 
343             com.liferay.portal.NoSuchUserException;
344 
345     public java.util.List getOrganizations(long pk)
346         throws com.liferay.portal.SystemException, 
347             com.liferay.portal.NoSuchUserException;
348 
349     public java.util.List getOrganizations(long pk, int begin, int end)
350         throws com.liferay.portal.SystemException, 
351             com.liferay.portal.NoSuchUserException;
352 
353     public java.util.List getOrganizations(long pk, int begin, int end,
354         com.liferay.portal.kernel.util.OrderByComparator obc)
355         throws com.liferay.portal.SystemException, 
356             com.liferay.portal.NoSuchUserException;
357 
358     public int getOrganizationsSize(long pk)
359         throws com.liferay.portal.SystemException;
360 
361     public boolean containsOrganization(long pk, long organizationPK)
362         throws com.liferay.portal.SystemException;
363 
364     public boolean containsOrganizations(long pk)
365         throws com.liferay.portal.SystemException;
366 
367     public void addOrganization(long pk, long organizationPK)
368         throws com.liferay.portal.SystemException, 
369             com.liferay.portal.NoSuchOrganizationException, 
370             com.liferay.portal.NoSuchUserException;
371 
372     public void addOrganization(long pk,
373         com.liferay.portal.model.Organization organization)
374         throws com.liferay.portal.SystemException, 
375             com.liferay.portal.NoSuchOrganizationException, 
376             com.liferay.portal.NoSuchUserException;
377 
378     public void addOrganizations(long pk, long[] organizationPKs)
379         throws com.liferay.portal.SystemException, 
380             com.liferay.portal.NoSuchOrganizationException, 
381             com.liferay.portal.NoSuchUserException;
382 
383     public void addOrganizations(long pk, java.util.List organizations)
384         throws com.liferay.portal.SystemException, 
385             com.liferay.portal.NoSuchOrganizationException, 
386             com.liferay.portal.NoSuchUserException;
387 
388     public void clearOrganizations(long pk)
389         throws com.liferay.portal.SystemException, 
390             com.liferay.portal.NoSuchUserException;
391 
392     public void removeOrganization(long pk, long organizationPK)
393         throws com.liferay.portal.SystemException, 
394             com.liferay.portal.NoSuchOrganizationException, 
395             com.liferay.portal.NoSuchUserException;
396 
397     public void removeOrganization(long pk,
398         com.liferay.portal.model.Organization organization)
399         throws com.liferay.portal.SystemException, 
400             com.liferay.portal.NoSuchOrganizationException, 
401             com.liferay.portal.NoSuchUserException;
402 
403     public void removeOrganizations(long pk, long[] organizationPKs)
404         throws com.liferay.portal.SystemException, 
405             com.liferay.portal.NoSuchOrganizationException, 
406             com.liferay.portal.NoSuchUserException;
407 
408     public void removeOrganizations(long pk, java.util.List organizations)
409         throws com.liferay.portal.SystemException, 
410             com.liferay.portal.NoSuchOrganizationException, 
411             com.liferay.portal.NoSuchUserException;
412 
413     public void setOrganizations(long pk, long[] organizationPKs)
414         throws com.liferay.portal.SystemException, 
415             com.liferay.portal.NoSuchOrganizationException, 
416             com.liferay.portal.NoSuchUserException;
417 
418     public void setOrganizations(long pk, java.util.List organizations)
419         throws com.liferay.portal.SystemException, 
420             com.liferay.portal.NoSuchOrganizationException, 
421             com.liferay.portal.NoSuchUserException;
422 
423     public java.util.List getPermissions(long pk)
424         throws com.liferay.portal.SystemException, 
425             com.liferay.portal.NoSuchUserException;
426 
427     public java.util.List getPermissions(long pk, int begin, int end)
428         throws com.liferay.portal.SystemException, 
429             com.liferay.portal.NoSuchUserException;
430 
431     public java.util.List getPermissions(long pk, int begin, int end,
432         com.liferay.portal.kernel.util.OrderByComparator obc)
433         throws com.liferay.portal.SystemException, 
434             com.liferay.portal.NoSuchUserException;
435 
436     public int getPermissionsSize(long pk)
437         throws com.liferay.portal.SystemException;
438 
439     public boolean containsPermission(long pk, long permissionPK)
440         throws com.liferay.portal.SystemException;
441 
442     public boolean containsPermissions(long pk)
443         throws com.liferay.portal.SystemException;
444 
445     public void addPermission(long pk, long permissionPK)
446         throws com.liferay.portal.SystemException, 
447             com.liferay.portal.NoSuchPermissionException, 
448             com.liferay.portal.NoSuchUserException;
449 
450     public void addPermission(long pk,
451         com.liferay.portal.model.Permission permission)
452         throws com.liferay.portal.SystemException, 
453             com.liferay.portal.NoSuchPermissionException, 
454             com.liferay.portal.NoSuchUserException;
455 
456     public void addPermissions(long pk, long[] permissionPKs)
457         throws com.liferay.portal.SystemException, 
458             com.liferay.portal.NoSuchPermissionException, 
459             com.liferay.portal.NoSuchUserException;
460 
461     public void addPermissions(long pk, java.util.List permissions)
462         throws com.liferay.portal.SystemException, 
463             com.liferay.portal.NoSuchPermissionException, 
464             com.liferay.portal.NoSuchUserException;
465 
466     public void clearPermissions(long pk)
467         throws com.liferay.portal.SystemException, 
468             com.liferay.portal.NoSuchUserException;
469 
470     public void removePermission(long pk, long permissionPK)
471         throws com.liferay.portal.SystemException, 
472             com.liferay.portal.NoSuchPermissionException, 
473             com.liferay.portal.NoSuchUserException;
474 
475     public void removePermission(long pk,
476         com.liferay.portal.model.Permission permission)
477         throws com.liferay.portal.SystemException, 
478             com.liferay.portal.NoSuchPermissionException, 
479             com.liferay.portal.NoSuchUserException;
480 
481     public void removePermissions(long pk, long[] permissionPKs)
482         throws com.liferay.portal.SystemException, 
483             com.liferay.portal.NoSuchPermissionException, 
484             com.liferay.portal.NoSuchUserException;
485 
486     public void removePermissions(long pk, java.util.List permissions)
487         throws com.liferay.portal.SystemException, 
488             com.liferay.portal.NoSuchPermissionException, 
489             com.liferay.portal.NoSuchUserException;
490 
491     public void setPermissions(long pk, long[] permissionPKs)
492         throws com.liferay.portal.SystemException, 
493             com.liferay.portal.NoSuchPermissionException, 
494             com.liferay.portal.NoSuchUserException;
495 
496     public void setPermissions(long pk, java.util.List permissions)
497         throws com.liferay.portal.SystemException, 
498             com.liferay.portal.NoSuchPermissionException, 
499             com.liferay.portal.NoSuchUserException;
500 
501     public java.util.List getRoles(long pk)
502         throws com.liferay.portal.SystemException, 
503             com.liferay.portal.NoSuchUserException;
504 
505     public java.util.List getRoles(long pk, int begin, int end)
506         throws com.liferay.portal.SystemException, 
507             com.liferay.portal.NoSuchUserException;
508 
509     public java.util.List getRoles(long pk, int begin, int end,
510         com.liferay.portal.kernel.util.OrderByComparator obc)
511         throws com.liferay.portal.SystemException, 
512             com.liferay.portal.NoSuchUserException;
513 
514     public int getRolesSize(long pk) throws com.liferay.portal.SystemException;
515 
516     public boolean containsRole(long pk, long rolePK)
517         throws com.liferay.portal.SystemException;
518 
519     public boolean containsRoles(long pk)
520         throws com.liferay.portal.SystemException;
521 
522     public void addRole(long pk, long rolePK)
523         throws com.liferay.portal.SystemException, 
524             com.liferay.portal.NoSuchRoleException, 
525             com.liferay.portal.NoSuchUserException;
526 
527     public void addRole(long pk, com.liferay.portal.model.Role role)
528         throws com.liferay.portal.SystemException, 
529             com.liferay.portal.NoSuchRoleException, 
530             com.liferay.portal.NoSuchUserException;
531 
532     public void addRoles(long pk, long[] rolePKs)
533         throws com.liferay.portal.SystemException, 
534             com.liferay.portal.NoSuchRoleException, 
535             com.liferay.portal.NoSuchUserException;
536 
537     public void addRoles(long pk, java.util.List roles)
538         throws com.liferay.portal.SystemException, 
539             com.liferay.portal.NoSuchRoleException, 
540             com.liferay.portal.NoSuchUserException;
541 
542     public void clearRoles(long pk)
543         throws com.liferay.portal.SystemException, 
544             com.liferay.portal.NoSuchUserException;
545 
546     public void removeRole(long pk, long rolePK)
547         throws com.liferay.portal.SystemException, 
548             com.liferay.portal.NoSuchRoleException, 
549             com.liferay.portal.NoSuchUserException;
550 
551     public void removeRole(long pk, com.liferay.portal.model.Role role)
552         throws com.liferay.portal.SystemException, 
553             com.liferay.portal.NoSuchRoleException, 
554             com.liferay.portal.NoSuchUserException;
555 
556     public void removeRoles(long pk, long[] rolePKs)
557         throws com.liferay.portal.SystemException, 
558             com.liferay.portal.NoSuchRoleException, 
559             com.liferay.portal.NoSuchUserException;
560 
561     public void removeRoles(long pk, java.util.List roles)
562         throws com.liferay.portal.SystemException, 
563             com.liferay.portal.NoSuchRoleException, 
564             com.liferay.portal.NoSuchUserException;
565 
566     public void setRoles(long pk, long[] rolePKs)
567         throws com.liferay.portal.SystemException, 
568             com.liferay.portal.NoSuchRoleException, 
569             com.liferay.portal.NoSuchUserException;
570 
571     public void setRoles(long pk, java.util.List roles)
572         throws com.liferay.portal.SystemException, 
573             com.liferay.portal.NoSuchRoleException, 
574             com.liferay.portal.NoSuchUserException;
575 
576     public java.util.List getUserGroups(long pk)
577         throws com.liferay.portal.SystemException, 
578             com.liferay.portal.NoSuchUserException;
579 
580     public java.util.List getUserGroups(long pk, int begin, int end)
581         throws com.liferay.portal.SystemException, 
582             com.liferay.portal.NoSuchUserException;
583 
584     public java.util.List getUserGroups(long pk, int begin, int end,
585         com.liferay.portal.kernel.util.OrderByComparator obc)
586         throws com.liferay.portal.SystemException, 
587             com.liferay.portal.NoSuchUserException;
588 
589     public int getUserGroupsSize(long pk)
590         throws com.liferay.portal.SystemException;
591 
592     public boolean containsUserGroup(long pk, long userGroupPK)
593         throws com.liferay.portal.SystemException;
594 
595     public boolean containsUserGroups(long pk)
596         throws com.liferay.portal.SystemException;
597 
598     public void addUserGroup(long pk, long userGroupPK)
599         throws com.liferay.portal.SystemException, 
600             com.liferay.portal.NoSuchUserException, 
601             com.liferay.portal.NoSuchUserGroupException;
602 
603     public void addUserGroup(long pk,
604         com.liferay.portal.model.UserGroup userGroup)
605         throws com.liferay.portal.SystemException, 
606             com.liferay.portal.NoSuchUserException, 
607             com.liferay.portal.NoSuchUserGroupException;
608 
609     public void addUserGroups(long pk, long[] userGroupPKs)
610         throws com.liferay.portal.SystemException, 
611             com.liferay.portal.NoSuchUserException, 
612             com.liferay.portal.NoSuchUserGroupException;
613 
614     public void addUserGroups(long pk, java.util.List userGroups)
615         throws com.liferay.portal.SystemException, 
616             com.liferay.portal.NoSuchUserException, 
617             com.liferay.portal.NoSuchUserGroupException;
618 
619     public void clearUserGroups(long pk)
620         throws com.liferay.portal.SystemException, 
621             com.liferay.portal.NoSuchUserException;
622 
623     public void removeUserGroup(long pk, long userGroupPK)
624         throws com.liferay.portal.SystemException, 
625             com.liferay.portal.NoSuchUserException, 
626             com.liferay.portal.NoSuchUserGroupException;
627 
628     public void removeUserGroup(long pk,
629         com.liferay.portal.model.UserGroup userGroup)
630         throws com.liferay.portal.SystemException, 
631             com.liferay.portal.NoSuchUserException, 
632             com.liferay.portal.NoSuchUserGroupException;
633 
634     public void removeUserGroups(long pk, long[] userGroupPKs)
635         throws com.liferay.portal.SystemException, 
636             com.liferay.portal.NoSuchUserException, 
637             com.liferay.portal.NoSuchUserGroupException;
638 
639     public void removeUserGroups(long pk, java.util.List userGroups)
640         throws com.liferay.portal.SystemException, 
641             com.liferay.portal.NoSuchUserException, 
642             com.liferay.portal.NoSuchUserGroupException;
643 
644     public void setUserGroups(long pk, long[] userGroupPKs)
645         throws com.liferay.portal.SystemException, 
646             com.liferay.portal.NoSuchUserException, 
647             com.liferay.portal.NoSuchUserGroupException;
648 
649     public void setUserGroups(long pk, java.util.List userGroups)
650         throws com.liferay.portal.SystemException, 
651             com.liferay.portal.NoSuchUserException, 
652             com.liferay.portal.NoSuchUserGroupException;
653 }