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