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      /**
43       * @deprecated Use <code>update(User user, boolean merge)</code>.
44       */
45      public com.liferay.portal.model.User update(
46          com.liferay.portal.model.User user)
47          throws com.liferay.portal.SystemException;
48  
49      /**
50       * Add, update, or merge, the entity. This method also calls the model
51       * listeners to trigger the proper events associated with adding, deleting,
52       * or updating an entity.
53       *
54       * @param        user the entity to add, update, or merge
55       * @param        merge boolean value for whether to merge the entity. The
56       *                default value is false. Setting merge to true is more
57       *                expensive and should only be true when user is
58       *                transient. See LEP-5473 for a detailed discussion of this
59       *                method.
60       * @return        true if the portlet can be displayed via Ajax
61       */
62      public com.liferay.portal.model.User update(
63          com.liferay.portal.model.User user, boolean merge)
64          throws com.liferay.portal.SystemException;
65  
66      public com.liferay.portal.model.User updateImpl(
67          com.liferay.portal.model.User user, boolean merge)
68          throws com.liferay.portal.SystemException;
69  
70      public com.liferay.portal.model.User findByPrimaryKey(long userId)
71          throws com.liferay.portal.SystemException,
72              com.liferay.portal.NoSuchUserException;
73  
74      public com.liferay.portal.model.User fetchByPrimaryKey(long userId)
75          throws com.liferay.portal.SystemException;
76  
77      public java.util.List<com.liferay.portal.model.User> findByUuid(
78          java.lang.String uuid) throws com.liferay.portal.SystemException;
79  
80      public java.util.List<com.liferay.portal.model.User> findByUuid(
81          java.lang.String uuid, int begin, int end)
82          throws com.liferay.portal.SystemException;
83  
84      public java.util.List<com.liferay.portal.model.User> findByUuid(
85          java.lang.String uuid, int begin, int end,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.SystemException;
88  
89      public com.liferay.portal.model.User findByUuid_First(
90          java.lang.String uuid,
91          com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.SystemException,
93              com.liferay.portal.NoSuchUserException;
94  
95      public com.liferay.portal.model.User findByUuid_Last(
96          java.lang.String uuid,
97          com.liferay.portal.kernel.util.OrderByComparator obc)
98          throws com.liferay.portal.SystemException,
99              com.liferay.portal.NoSuchUserException;
100 
101     public com.liferay.portal.model.User[] findByUuid_PrevAndNext(long userId,
102         java.lang.String uuid,
103         com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.SystemException,
105             com.liferay.portal.NoSuchUserException;
106 
107     public java.util.List<com.liferay.portal.model.User> findByCompanyId(
108         long companyId) throws com.liferay.portal.SystemException;
109 
110     public java.util.List<com.liferay.portal.model.User> findByCompanyId(
111         long companyId, int begin, int end)
112         throws com.liferay.portal.SystemException;
113 
114     public java.util.List<com.liferay.portal.model.User> findByCompanyId(
115         long companyId, int begin, int end,
116         com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.SystemException;
118 
119     public com.liferay.portal.model.User findByCompanyId_First(long companyId,
120         com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.SystemException,
122             com.liferay.portal.NoSuchUserException;
123 
124     public com.liferay.portal.model.User findByCompanyId_Last(long companyId,
125         com.liferay.portal.kernel.util.OrderByComparator obc)
126         throws com.liferay.portal.SystemException,
127             com.liferay.portal.NoSuchUserException;
128 
129     public com.liferay.portal.model.User[] findByCompanyId_PrevAndNext(
130         long userId, long companyId,
131         com.liferay.portal.kernel.util.OrderByComparator obc)
132         throws com.liferay.portal.SystemException,
133             com.liferay.portal.NoSuchUserException;
134 
135     public com.liferay.portal.model.User findByContactId(long contactId)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portal.NoSuchUserException;
138 
139     public com.liferay.portal.model.User fetchByContactId(long contactId)
140         throws com.liferay.portal.SystemException;
141 
142     public com.liferay.portal.model.User findByPortraitId(long portraitId)
143         throws com.liferay.portal.SystemException,
144             com.liferay.portal.NoSuchUserException;
145 
146     public com.liferay.portal.model.User fetchByPortraitId(long portraitId)
147         throws com.liferay.portal.SystemException;
148 
149     public com.liferay.portal.model.User findByC_U(long companyId, long userId)
150         throws com.liferay.portal.SystemException,
151             com.liferay.portal.NoSuchUserException;
152 
153     public com.liferay.portal.model.User fetchByC_U(long companyId, long userId)
154         throws com.liferay.portal.SystemException;
155 
156     public com.liferay.portal.model.User findByC_DU(long companyId,
157         boolean defaultUser)
158         throws com.liferay.portal.SystemException,
159             com.liferay.portal.NoSuchUserException;
160 
161     public com.liferay.portal.model.User fetchByC_DU(long companyId,
162         boolean defaultUser) throws com.liferay.portal.SystemException;
163 
164     public java.util.List<com.liferay.portal.model.User> findByC_P(
165         long companyId, java.lang.String password)
166         throws com.liferay.portal.SystemException;
167 
168     public java.util.List<com.liferay.portal.model.User> findByC_P(
169         long companyId, java.lang.String password, int begin, int end)
170         throws com.liferay.portal.SystemException;
171 
172     public java.util.List<com.liferay.portal.model.User> findByC_P(
173         long companyId, java.lang.String password, int begin, int end,
174         com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.SystemException;
176 
177     public com.liferay.portal.model.User findByC_P_First(long companyId,
178         java.lang.String password,
179         com.liferay.portal.kernel.util.OrderByComparator obc)
180         throws com.liferay.portal.SystemException,
181             com.liferay.portal.NoSuchUserException;
182 
183     public com.liferay.portal.model.User findByC_P_Last(long companyId,
184         java.lang.String password,
185         com.liferay.portal.kernel.util.OrderByComparator obc)
186         throws com.liferay.portal.SystemException,
187             com.liferay.portal.NoSuchUserException;
188 
189     public com.liferay.portal.model.User[] findByC_P_PrevAndNext(long userId,
190         long companyId, java.lang.String password,
191         com.liferay.portal.kernel.util.OrderByComparator obc)
192         throws com.liferay.portal.SystemException,
193             com.liferay.portal.NoSuchUserException;
194 
195     public com.liferay.portal.model.User findByC_SN(long companyId,
196         java.lang.String screenName)
197         throws com.liferay.portal.SystemException,
198             com.liferay.portal.NoSuchUserException;
199 
200     public com.liferay.portal.model.User fetchByC_SN(long companyId,
201         java.lang.String screenName) throws com.liferay.portal.SystemException;
202 
203     public com.liferay.portal.model.User findByC_EA(long companyId,
204         java.lang.String emailAddress)
205         throws com.liferay.portal.SystemException,
206             com.liferay.portal.NoSuchUserException;
207 
208     public com.liferay.portal.model.User fetchByC_EA(long companyId,
209         java.lang.String emailAddress)
210         throws com.liferay.portal.SystemException;
211 
212     public java.util.List<com.liferay.portal.model.User> findWithDynamicQuery(
213         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
214         throws com.liferay.portal.SystemException;
215 
216     public java.util.List<com.liferay.portal.model.User> findWithDynamicQuery(
217         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
218         int begin, int end) throws com.liferay.portal.SystemException;
219 
220     public java.util.List<com.liferay.portal.model.User> findAll()
221         throws com.liferay.portal.SystemException;
222 
223     public java.util.List<com.liferay.portal.model.User> findAll(int begin,
224         int end) throws com.liferay.portal.SystemException;
225 
226     public java.util.List<com.liferay.portal.model.User> findAll(int begin,
227         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
228         throws com.liferay.portal.SystemException;
229 
230     public void removeByUuid(java.lang.String uuid)
231         throws com.liferay.portal.SystemException;
232 
233     public void removeByCompanyId(long companyId)
234         throws com.liferay.portal.SystemException;
235 
236     public void removeByContactId(long contactId)
237         throws com.liferay.portal.SystemException,
238             com.liferay.portal.NoSuchUserException;
239 
240     public void removeByPortraitId(long portraitId)
241         throws com.liferay.portal.SystemException,
242             com.liferay.portal.NoSuchUserException;
243 
244     public void removeByC_U(long companyId, long userId)
245         throws com.liferay.portal.SystemException,
246             com.liferay.portal.NoSuchUserException;
247 
248     public void removeByC_DU(long companyId, boolean defaultUser)
249         throws com.liferay.portal.SystemException,
250             com.liferay.portal.NoSuchUserException;
251 
252     public void removeByC_P(long companyId, java.lang.String password)
253         throws com.liferay.portal.SystemException;
254 
255     public void removeByC_SN(long companyId, java.lang.String screenName)
256         throws com.liferay.portal.SystemException,
257             com.liferay.portal.NoSuchUserException;
258 
259     public void removeByC_EA(long companyId, java.lang.String emailAddress)
260         throws com.liferay.portal.SystemException,
261             com.liferay.portal.NoSuchUserException;
262 
263     public void removeAll() throws com.liferay.portal.SystemException;
264 
265     public int countByUuid(java.lang.String uuid)
266         throws com.liferay.portal.SystemException;
267 
268     public int countByCompanyId(long companyId)
269         throws com.liferay.portal.SystemException;
270 
271     public int countByContactId(long contactId)
272         throws com.liferay.portal.SystemException;
273 
274     public int countByPortraitId(long portraitId)
275         throws com.liferay.portal.SystemException;
276 
277     public int countByC_U(long companyId, long userId)
278         throws com.liferay.portal.SystemException;
279 
280     public int countByC_DU(long companyId, boolean defaultUser)
281         throws com.liferay.portal.SystemException;
282 
283     public int countByC_P(long companyId, java.lang.String password)
284         throws com.liferay.portal.SystemException;
285 
286     public int countByC_SN(long companyId, java.lang.String screenName)
287         throws com.liferay.portal.SystemException;
288 
289     public int countByC_EA(long companyId, java.lang.String emailAddress)
290         throws com.liferay.portal.SystemException;
291 
292     public int countAll() throws com.liferay.portal.SystemException;
293 
294     public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
295         throws com.liferay.portal.SystemException,
296             com.liferay.portal.NoSuchUserException;
297 
298     public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
299         int begin, int end)
300         throws com.liferay.portal.SystemException,
301             com.liferay.portal.NoSuchUserException;
302 
303     public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
304         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
305         throws com.liferay.portal.SystemException,
306             com.liferay.portal.NoSuchUserException;
307 
308     public int getGroupsSize(long pk) throws com.liferay.portal.SystemException;
309 
310     public boolean containsGroup(long pk, long groupPK)
311         throws com.liferay.portal.SystemException;
312 
313     public boolean containsGroups(long pk)
314         throws com.liferay.portal.SystemException;
315 
316     public void addGroup(long pk, long groupPK)
317         throws com.liferay.portal.SystemException,
318             com.liferay.portal.NoSuchGroupException,
319             com.liferay.portal.NoSuchUserException;
320 
321     public void addGroup(long pk, com.liferay.portal.model.Group group)
322         throws com.liferay.portal.SystemException,
323             com.liferay.portal.NoSuchGroupException,
324             com.liferay.portal.NoSuchUserException;
325 
326     public void addGroups(long pk, long[] groupPKs)
327         throws com.liferay.portal.SystemException,
328             com.liferay.portal.NoSuchGroupException,
329             com.liferay.portal.NoSuchUserException;
330 
331     public void addGroups(long pk,
332         java.util.List<com.liferay.portal.model.Group> groups)
333         throws com.liferay.portal.SystemException,
334             com.liferay.portal.NoSuchGroupException,
335             com.liferay.portal.NoSuchUserException;
336 
337     public void clearGroups(long pk)
338         throws com.liferay.portal.SystemException,
339             com.liferay.portal.NoSuchUserException;
340 
341     public void removeGroup(long pk, long groupPK)
342         throws com.liferay.portal.SystemException,
343             com.liferay.portal.NoSuchGroupException,
344             com.liferay.portal.NoSuchUserException;
345 
346     public void removeGroup(long pk, com.liferay.portal.model.Group group)
347         throws com.liferay.portal.SystemException,
348             com.liferay.portal.NoSuchGroupException,
349             com.liferay.portal.NoSuchUserException;
350 
351     public void removeGroups(long pk, long[] groupPKs)
352         throws com.liferay.portal.SystemException,
353             com.liferay.portal.NoSuchGroupException,
354             com.liferay.portal.NoSuchUserException;
355 
356     public void removeGroups(long pk,
357         java.util.List<com.liferay.portal.model.Group> groups)
358         throws com.liferay.portal.SystemException,
359             com.liferay.portal.NoSuchGroupException,
360             com.liferay.portal.NoSuchUserException;
361 
362     public void setGroups(long pk, long[] groupPKs)
363         throws com.liferay.portal.SystemException,
364             com.liferay.portal.NoSuchGroupException,
365             com.liferay.portal.NoSuchUserException;
366 
367     public void setGroups(long pk,
368         java.util.List<com.liferay.portal.model.Group> groups)
369         throws com.liferay.portal.SystemException,
370             com.liferay.portal.NoSuchGroupException,
371             com.liferay.portal.NoSuchUserException;
372 
373     public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
374         long pk)
375         throws com.liferay.portal.SystemException,
376             com.liferay.portal.NoSuchUserException;
377 
378     public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
379         long pk, int begin, int end)
380         throws com.liferay.portal.SystemException,
381             com.liferay.portal.NoSuchUserException;
382 
383     public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
384         long pk, int begin, int end,
385         com.liferay.portal.kernel.util.OrderByComparator obc)
386         throws com.liferay.portal.SystemException,
387             com.liferay.portal.NoSuchUserException;
388 
389     public int getOrganizationsSize(long pk)
390         throws com.liferay.portal.SystemException;
391 
392     public boolean containsOrganization(long pk, long organizationPK)
393         throws com.liferay.portal.SystemException;
394 
395     public boolean containsOrganizations(long pk)
396         throws com.liferay.portal.SystemException;
397 
398     public void addOrganization(long pk, long organizationPK)
399         throws com.liferay.portal.SystemException,
400             com.liferay.portal.NoSuchOrganizationException,
401             com.liferay.portal.NoSuchUserException;
402 
403     public void addOrganization(long pk,
404         com.liferay.portal.model.Organization organization)
405         throws com.liferay.portal.SystemException,
406             com.liferay.portal.NoSuchOrganizationException,
407             com.liferay.portal.NoSuchUserException;
408 
409     public void addOrganizations(long pk, long[] organizationPKs)
410         throws com.liferay.portal.SystemException,
411             com.liferay.portal.NoSuchOrganizationException,
412             com.liferay.portal.NoSuchUserException;
413 
414     public void addOrganizations(long pk,
415         java.util.List<com.liferay.portal.model.Organization> organizations)
416         throws com.liferay.portal.SystemException,
417             com.liferay.portal.NoSuchOrganizationException,
418             com.liferay.portal.NoSuchUserException;
419 
420     public void clearOrganizations(long pk)
421         throws com.liferay.portal.SystemException,
422             com.liferay.portal.NoSuchUserException;
423 
424     public void removeOrganization(long pk, long organizationPK)
425         throws com.liferay.portal.SystemException,
426             com.liferay.portal.NoSuchOrganizationException,
427             com.liferay.portal.NoSuchUserException;
428 
429     public void removeOrganization(long pk,
430         com.liferay.portal.model.Organization organization)
431         throws com.liferay.portal.SystemException,
432             com.liferay.portal.NoSuchOrganizationException,
433             com.liferay.portal.NoSuchUserException;
434 
435     public void removeOrganizations(long pk, long[] organizationPKs)
436         throws com.liferay.portal.SystemException,
437             com.liferay.portal.NoSuchOrganizationException,
438             com.liferay.portal.NoSuchUserException;
439 
440     public void removeOrganizations(long pk,
441         java.util.List<com.liferay.portal.model.Organization> organizations)
442         throws com.liferay.portal.SystemException,
443             com.liferay.portal.NoSuchOrganizationException,
444             com.liferay.portal.NoSuchUserException;
445 
446     public void setOrganizations(long pk, long[] organizationPKs)
447         throws com.liferay.portal.SystemException,
448             com.liferay.portal.NoSuchOrganizationException,
449             com.liferay.portal.NoSuchUserException;
450 
451     public void setOrganizations(long pk,
452         java.util.List<com.liferay.portal.model.Organization> organizations)
453         throws com.liferay.portal.SystemException,
454             com.liferay.portal.NoSuchOrganizationException,
455             com.liferay.portal.NoSuchUserException;
456 
457     public java.util.List<com.liferay.portal.model.Permission> getPermissions(
458         long pk)
459         throws com.liferay.portal.SystemException,
460             com.liferay.portal.NoSuchUserException;
461 
462     public java.util.List<com.liferay.portal.model.Permission> getPermissions(
463         long pk, int begin, int end)
464         throws com.liferay.portal.SystemException,
465             com.liferay.portal.NoSuchUserException;
466 
467     public java.util.List<com.liferay.portal.model.Permission> getPermissions(
468         long pk, int begin, int end,
469         com.liferay.portal.kernel.util.OrderByComparator obc)
470         throws com.liferay.portal.SystemException,
471             com.liferay.portal.NoSuchUserException;
472 
473     public int getPermissionsSize(long pk)
474         throws com.liferay.portal.SystemException;
475 
476     public boolean containsPermission(long pk, long permissionPK)
477         throws com.liferay.portal.SystemException;
478 
479     public boolean containsPermissions(long pk)
480         throws com.liferay.portal.SystemException;
481 
482     public void addPermission(long pk, long permissionPK)
483         throws com.liferay.portal.SystemException,
484             com.liferay.portal.NoSuchPermissionException,
485             com.liferay.portal.NoSuchUserException;
486 
487     public void addPermission(long pk,
488         com.liferay.portal.model.Permission permission)
489         throws com.liferay.portal.SystemException,
490             com.liferay.portal.NoSuchPermissionException,
491             com.liferay.portal.NoSuchUserException;
492 
493     public void addPermissions(long pk, long[] permissionPKs)
494         throws com.liferay.portal.SystemException,
495             com.liferay.portal.NoSuchPermissionException,
496             com.liferay.portal.NoSuchUserException;
497 
498     public void addPermissions(long pk,
499         java.util.List<com.liferay.portal.model.Permission> permissions)
500         throws com.liferay.portal.SystemException,
501             com.liferay.portal.NoSuchPermissionException,
502             com.liferay.portal.NoSuchUserException;
503 
504     public void clearPermissions(long pk)
505         throws com.liferay.portal.SystemException,
506             com.liferay.portal.NoSuchUserException;
507 
508     public void removePermission(long pk, long permissionPK)
509         throws com.liferay.portal.SystemException,
510             com.liferay.portal.NoSuchPermissionException,
511             com.liferay.portal.NoSuchUserException;
512 
513     public void removePermission(long pk,
514         com.liferay.portal.model.Permission permission)
515         throws com.liferay.portal.SystemException,
516             com.liferay.portal.NoSuchPermissionException,
517             com.liferay.portal.NoSuchUserException;
518 
519     public void removePermissions(long pk, long[] permissionPKs)
520         throws com.liferay.portal.SystemException,
521             com.liferay.portal.NoSuchPermissionException,
522             com.liferay.portal.NoSuchUserException;
523 
524     public void removePermissions(long pk,
525         java.util.List<com.liferay.portal.model.Permission> permissions)
526         throws com.liferay.portal.SystemException,
527             com.liferay.portal.NoSuchPermissionException,
528             com.liferay.portal.NoSuchUserException;
529 
530     public void setPermissions(long pk, long[] permissionPKs)
531         throws com.liferay.portal.SystemException,
532             com.liferay.portal.NoSuchPermissionException,
533             com.liferay.portal.NoSuchUserException;
534 
535     public void setPermissions(long pk,
536         java.util.List<com.liferay.portal.model.Permission> permissions)
537         throws com.liferay.portal.SystemException,
538             com.liferay.portal.NoSuchPermissionException,
539             com.liferay.portal.NoSuchUserException;
540 
541     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk)
542         throws com.liferay.portal.SystemException,
543             com.liferay.portal.NoSuchUserException;
544 
545     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
546         int begin, int end)
547         throws com.liferay.portal.SystemException,
548             com.liferay.portal.NoSuchUserException;
549 
550     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
551         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
552         throws com.liferay.portal.SystemException,
553             com.liferay.portal.NoSuchUserException;
554 
555     public int getRolesSize(long pk) throws com.liferay.portal.SystemException;
556 
557     public boolean containsRole(long pk, long rolePK)
558         throws com.liferay.portal.SystemException;
559 
560     public boolean containsRoles(long pk)
561         throws com.liferay.portal.SystemException;
562 
563     public void addRole(long pk, long rolePK)
564         throws com.liferay.portal.SystemException,
565             com.liferay.portal.NoSuchRoleException,
566             com.liferay.portal.NoSuchUserException;
567 
568     public void addRole(long pk, com.liferay.portal.model.Role role)
569         throws com.liferay.portal.SystemException,
570             com.liferay.portal.NoSuchRoleException,
571             com.liferay.portal.NoSuchUserException;
572 
573     public void addRoles(long pk, long[] rolePKs)
574         throws com.liferay.portal.SystemException,
575             com.liferay.portal.NoSuchRoleException,
576             com.liferay.portal.NoSuchUserException;
577 
578     public void addRoles(long pk,
579         java.util.List<com.liferay.portal.model.Role> roles)
580         throws com.liferay.portal.SystemException,
581             com.liferay.portal.NoSuchRoleException,
582             com.liferay.portal.NoSuchUserException;
583 
584     public void clearRoles(long pk)
585         throws com.liferay.portal.SystemException,
586             com.liferay.portal.NoSuchUserException;
587 
588     public void removeRole(long pk, long rolePK)
589         throws com.liferay.portal.SystemException,
590             com.liferay.portal.NoSuchRoleException,
591             com.liferay.portal.NoSuchUserException;
592 
593     public void removeRole(long pk, com.liferay.portal.model.Role role)
594         throws com.liferay.portal.SystemException,
595             com.liferay.portal.NoSuchRoleException,
596             com.liferay.portal.NoSuchUserException;
597 
598     public void removeRoles(long pk, long[] rolePKs)
599         throws com.liferay.portal.SystemException,
600             com.liferay.portal.NoSuchRoleException,
601             com.liferay.portal.NoSuchUserException;
602 
603     public void removeRoles(long pk,
604         java.util.List<com.liferay.portal.model.Role> roles)
605         throws com.liferay.portal.SystemException,
606             com.liferay.portal.NoSuchRoleException,
607             com.liferay.portal.NoSuchUserException;
608 
609     public void setRoles(long pk, long[] rolePKs)
610         throws com.liferay.portal.SystemException,
611             com.liferay.portal.NoSuchRoleException,
612             com.liferay.portal.NoSuchUserException;
613 
614     public void setRoles(long pk,
615         java.util.List<com.liferay.portal.model.Role> roles)
616         throws com.liferay.portal.SystemException,
617             com.liferay.portal.NoSuchRoleException,
618             com.liferay.portal.NoSuchUserException;
619 
620     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
621         long pk)
622         throws com.liferay.portal.SystemException,
623             com.liferay.portal.NoSuchUserException;
624 
625     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
626         long pk, int begin, int end)
627         throws com.liferay.portal.SystemException,
628             com.liferay.portal.NoSuchUserException;
629 
630     public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
631         long pk, int begin, int end,
632         com.liferay.portal.kernel.util.OrderByComparator obc)
633         throws com.liferay.portal.SystemException,
634             com.liferay.portal.NoSuchUserException;
635 
636     public int getUserGroupsSize(long pk)
637         throws com.liferay.portal.SystemException;
638 
639     public boolean containsUserGroup(long pk, long userGroupPK)
640         throws com.liferay.portal.SystemException;
641 
642     public boolean containsUserGroups(long pk)
643         throws com.liferay.portal.SystemException;
644 
645     public void addUserGroup(long pk, long userGroupPK)
646         throws com.liferay.portal.SystemException,
647             com.liferay.portal.NoSuchUserException,
648             com.liferay.portal.NoSuchUserGroupException;
649 
650     public void addUserGroup(long pk,
651         com.liferay.portal.model.UserGroup userGroup)
652         throws com.liferay.portal.SystemException,
653             com.liferay.portal.NoSuchUserException,
654             com.liferay.portal.NoSuchUserGroupException;
655 
656     public void addUserGroups(long pk, long[] userGroupPKs)
657         throws com.liferay.portal.SystemException,
658             com.liferay.portal.NoSuchUserException,
659             com.liferay.portal.NoSuchUserGroupException;
660 
661     public void addUserGroups(long pk,
662         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
663         throws com.liferay.portal.SystemException,
664             com.liferay.portal.NoSuchUserException,
665             com.liferay.portal.NoSuchUserGroupException;
666 
667     public void clearUserGroups(long pk)
668         throws com.liferay.portal.SystemException,
669             com.liferay.portal.NoSuchUserException;
670 
671     public void removeUserGroup(long pk, long userGroupPK)
672         throws com.liferay.portal.SystemException,
673             com.liferay.portal.NoSuchUserException,
674             com.liferay.portal.NoSuchUserGroupException;
675 
676     public void removeUserGroup(long pk,
677         com.liferay.portal.model.UserGroup userGroup)
678         throws com.liferay.portal.SystemException,
679             com.liferay.portal.NoSuchUserException,
680             com.liferay.portal.NoSuchUserGroupException;
681 
682     public void removeUserGroups(long pk, long[] userGroupPKs)
683         throws com.liferay.portal.SystemException,
684             com.liferay.portal.NoSuchUserException,
685             com.liferay.portal.NoSuchUserGroupException;
686 
687     public void removeUserGroups(long pk,
688         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
689         throws com.liferay.portal.SystemException,
690             com.liferay.portal.NoSuchUserException,
691             com.liferay.portal.NoSuchUserGroupException;
692 
693     public void setUserGroups(long pk, long[] userGroupPKs)
694         throws com.liferay.portal.SystemException,
695             com.liferay.portal.NoSuchUserException,
696             com.liferay.portal.NoSuchUserGroupException;
697 
698     public void setUserGroups(long pk,
699         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
700         throws com.liferay.portal.SystemException,
701             com.liferay.portal.NoSuchUserException,
702             com.liferay.portal.NoSuchUserGroupException;
703 }