1
19
20 package com.liferay.portal.service.persistence;
21
22
28 public class UserUtil {
29 public static com.liferay.portal.model.User create(long userId) {
30 return getPersistence().create(userId);
31 }
32
33 public static com.liferay.portal.model.User remove(long userId)
34 throws com.liferay.portal.NoSuchUserException,
35 com.liferay.portal.SystemException {
36 return getPersistence().remove(userId);
37 }
38
39 public static com.liferay.portal.model.User remove(
40 com.liferay.portal.model.User user)
41 throws com.liferay.portal.SystemException {
42 return getPersistence().remove(user);
43 }
44
45
48 public static com.liferay.portal.model.User update(
49 com.liferay.portal.model.User user)
50 throws com.liferay.portal.SystemException {
51 return getPersistence().update(user);
52 }
53
54
67 public static com.liferay.portal.model.User update(
68 com.liferay.portal.model.User user, boolean merge)
69 throws com.liferay.portal.SystemException {
70 return getPersistence().update(user, merge);
71 }
72
73 public static com.liferay.portal.model.User updateImpl(
74 com.liferay.portal.model.User user, boolean merge)
75 throws com.liferay.portal.SystemException {
76 return getPersistence().updateImpl(user, merge);
77 }
78
79 public static com.liferay.portal.model.User findByPrimaryKey(long userId)
80 throws com.liferay.portal.NoSuchUserException,
81 com.liferay.portal.SystemException {
82 return getPersistence().findByPrimaryKey(userId);
83 }
84
85 public static com.liferay.portal.model.User fetchByPrimaryKey(long userId)
86 throws com.liferay.portal.SystemException {
87 return getPersistence().fetchByPrimaryKey(userId);
88 }
89
90 public static java.util.List<com.liferay.portal.model.User> findByUuid(
91 java.lang.String uuid) throws com.liferay.portal.SystemException {
92 return getPersistence().findByUuid(uuid);
93 }
94
95 public static java.util.List<com.liferay.portal.model.User> findByUuid(
96 java.lang.String uuid, int start, int end)
97 throws com.liferay.portal.SystemException {
98 return getPersistence().findByUuid(uuid, start, end);
99 }
100
101 public static java.util.List<com.liferay.portal.model.User> findByUuid(
102 java.lang.String uuid, int start, int end,
103 com.liferay.portal.kernel.util.OrderByComparator obc)
104 throws com.liferay.portal.SystemException {
105 return getPersistence().findByUuid(uuid, start, end, obc);
106 }
107
108 public static com.liferay.portal.model.User findByUuid_First(
109 java.lang.String uuid,
110 com.liferay.portal.kernel.util.OrderByComparator obc)
111 throws com.liferay.portal.NoSuchUserException,
112 com.liferay.portal.SystemException {
113 return getPersistence().findByUuid_First(uuid, obc);
114 }
115
116 public static com.liferay.portal.model.User findByUuid_Last(
117 java.lang.String uuid,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.NoSuchUserException,
120 com.liferay.portal.SystemException {
121 return getPersistence().findByUuid_Last(uuid, obc);
122 }
123
124 public static com.liferay.portal.model.User[] findByUuid_PrevAndNext(
125 long userId, java.lang.String uuid,
126 com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.NoSuchUserException,
128 com.liferay.portal.SystemException {
129 return getPersistence().findByUuid_PrevAndNext(userId, uuid, obc);
130 }
131
132 public static java.util.List<com.liferay.portal.model.User> findByCompanyId(
133 long companyId) throws com.liferay.portal.SystemException {
134 return getPersistence().findByCompanyId(companyId);
135 }
136
137 public static java.util.List<com.liferay.portal.model.User> findByCompanyId(
138 long companyId, int start, int end)
139 throws com.liferay.portal.SystemException {
140 return getPersistence().findByCompanyId(companyId, start, end);
141 }
142
143 public static java.util.List<com.liferay.portal.model.User> findByCompanyId(
144 long companyId, int start, int end,
145 com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.SystemException {
147 return getPersistence().findByCompanyId(companyId, start, end, obc);
148 }
149
150 public static com.liferay.portal.model.User findByCompanyId_First(
151 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.NoSuchUserException,
153 com.liferay.portal.SystemException {
154 return getPersistence().findByCompanyId_First(companyId, obc);
155 }
156
157 public static com.liferay.portal.model.User findByCompanyId_Last(
158 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
159 throws com.liferay.portal.NoSuchUserException,
160 com.liferay.portal.SystemException {
161 return getPersistence().findByCompanyId_Last(companyId, obc);
162 }
163
164 public static com.liferay.portal.model.User[] findByCompanyId_PrevAndNext(
165 long userId, long companyId,
166 com.liferay.portal.kernel.util.OrderByComparator obc)
167 throws com.liferay.portal.NoSuchUserException,
168 com.liferay.portal.SystemException {
169 return getPersistence()
170 .findByCompanyId_PrevAndNext(userId, companyId, obc);
171 }
172
173 public static com.liferay.portal.model.User findByContactId(long contactId)
174 throws com.liferay.portal.NoSuchUserException,
175 com.liferay.portal.SystemException {
176 return getPersistence().findByContactId(contactId);
177 }
178
179 public static com.liferay.portal.model.User fetchByContactId(long contactId)
180 throws com.liferay.portal.SystemException {
181 return getPersistence().fetchByContactId(contactId);
182 }
183
184 public static java.util.List<com.liferay.portal.model.User> findByEmailAddress(
185 java.lang.String emailAddress)
186 throws com.liferay.portal.SystemException {
187 return getPersistence().findByEmailAddress(emailAddress);
188 }
189
190 public static java.util.List<com.liferay.portal.model.User> findByEmailAddress(
191 java.lang.String emailAddress, int start, int end)
192 throws com.liferay.portal.SystemException {
193 return getPersistence().findByEmailAddress(emailAddress, start, end);
194 }
195
196 public static java.util.List<com.liferay.portal.model.User> findByEmailAddress(
197 java.lang.String emailAddress, int start, int end,
198 com.liferay.portal.kernel.util.OrderByComparator obc)
199 throws com.liferay.portal.SystemException {
200 return getPersistence().findByEmailAddress(emailAddress, start, end, obc);
201 }
202
203 public static com.liferay.portal.model.User findByEmailAddress_First(
204 java.lang.String emailAddress,
205 com.liferay.portal.kernel.util.OrderByComparator obc)
206 throws com.liferay.portal.NoSuchUserException,
207 com.liferay.portal.SystemException {
208 return getPersistence().findByEmailAddress_First(emailAddress, obc);
209 }
210
211 public static com.liferay.portal.model.User findByEmailAddress_Last(
212 java.lang.String emailAddress,
213 com.liferay.portal.kernel.util.OrderByComparator obc)
214 throws com.liferay.portal.NoSuchUserException,
215 com.liferay.portal.SystemException {
216 return getPersistence().findByEmailAddress_Last(emailAddress, obc);
217 }
218
219 public static com.liferay.portal.model.User[] findByEmailAddress_PrevAndNext(
220 long userId, java.lang.String emailAddress,
221 com.liferay.portal.kernel.util.OrderByComparator obc)
222 throws com.liferay.portal.NoSuchUserException,
223 com.liferay.portal.SystemException {
224 return getPersistence()
225 .findByEmailAddress_PrevAndNext(userId, emailAddress, obc);
226 }
227
228 public static com.liferay.portal.model.User findByOpenId(
229 java.lang.String openId)
230 throws com.liferay.portal.NoSuchUserException,
231 com.liferay.portal.SystemException {
232 return getPersistence().findByOpenId(openId);
233 }
234
235 public static com.liferay.portal.model.User fetchByOpenId(
236 java.lang.String openId) throws com.liferay.portal.SystemException {
237 return getPersistence().fetchByOpenId(openId);
238 }
239
240 public static com.liferay.portal.model.User findByPortraitId(
241 long portraitId)
242 throws com.liferay.portal.NoSuchUserException,
243 com.liferay.portal.SystemException {
244 return getPersistence().findByPortraitId(portraitId);
245 }
246
247 public static com.liferay.portal.model.User fetchByPortraitId(
248 long portraitId) throws com.liferay.portal.SystemException {
249 return getPersistence().fetchByPortraitId(portraitId);
250 }
251
252 public static com.liferay.portal.model.User findByC_U(long companyId,
253 long userId)
254 throws com.liferay.portal.NoSuchUserException,
255 com.liferay.portal.SystemException {
256 return getPersistence().findByC_U(companyId, userId);
257 }
258
259 public static com.liferay.portal.model.User fetchByC_U(long companyId,
260 long userId) throws com.liferay.portal.SystemException {
261 return getPersistence().fetchByC_U(companyId, userId);
262 }
263
264 public static com.liferay.portal.model.User findByC_DU(long companyId,
265 boolean defaultUser)
266 throws com.liferay.portal.NoSuchUserException,
267 com.liferay.portal.SystemException {
268 return getPersistence().findByC_DU(companyId, defaultUser);
269 }
270
271 public static com.liferay.portal.model.User fetchByC_DU(long companyId,
272 boolean defaultUser) throws com.liferay.portal.SystemException {
273 return getPersistence().fetchByC_DU(companyId, defaultUser);
274 }
275
276 public static com.liferay.portal.model.User findByC_SN(long companyId,
277 java.lang.String screenName)
278 throws com.liferay.portal.NoSuchUserException,
279 com.liferay.portal.SystemException {
280 return getPersistence().findByC_SN(companyId, screenName);
281 }
282
283 public static com.liferay.portal.model.User fetchByC_SN(long companyId,
284 java.lang.String screenName) throws com.liferay.portal.SystemException {
285 return getPersistence().fetchByC_SN(companyId, screenName);
286 }
287
288 public static com.liferay.portal.model.User findByC_EA(long companyId,
289 java.lang.String emailAddress)
290 throws com.liferay.portal.NoSuchUserException,
291 com.liferay.portal.SystemException {
292 return getPersistence().findByC_EA(companyId, emailAddress);
293 }
294
295 public static com.liferay.portal.model.User fetchByC_EA(long companyId,
296 java.lang.String emailAddress)
297 throws com.liferay.portal.SystemException {
298 return getPersistence().fetchByC_EA(companyId, emailAddress);
299 }
300
301 public static java.util.List<Object> findWithDynamicQuery(
302 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
303 throws com.liferay.portal.SystemException {
304 return getPersistence().findWithDynamicQuery(dynamicQuery);
305 }
306
307 public static java.util.List<Object> findWithDynamicQuery(
308 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
309 int end) throws com.liferay.portal.SystemException {
310 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
311 }
312
313 public static java.util.List<com.liferay.portal.model.User> findAll()
314 throws com.liferay.portal.SystemException {
315 return getPersistence().findAll();
316 }
317
318 public static java.util.List<com.liferay.portal.model.User> findAll(
319 int start, int end) throws com.liferay.portal.SystemException {
320 return getPersistence().findAll(start, end);
321 }
322
323 public static java.util.List<com.liferay.portal.model.User> findAll(
324 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
325 throws com.liferay.portal.SystemException {
326 return getPersistence().findAll(start, end, obc);
327 }
328
329 public static void removeByUuid(java.lang.String uuid)
330 throws com.liferay.portal.SystemException {
331 getPersistence().removeByUuid(uuid);
332 }
333
334 public static void removeByCompanyId(long companyId)
335 throws com.liferay.portal.SystemException {
336 getPersistence().removeByCompanyId(companyId);
337 }
338
339 public static void removeByContactId(long contactId)
340 throws com.liferay.portal.NoSuchUserException,
341 com.liferay.portal.SystemException {
342 getPersistence().removeByContactId(contactId);
343 }
344
345 public static void removeByEmailAddress(java.lang.String emailAddress)
346 throws com.liferay.portal.SystemException {
347 getPersistence().removeByEmailAddress(emailAddress);
348 }
349
350 public static void removeByOpenId(java.lang.String openId)
351 throws com.liferay.portal.NoSuchUserException,
352 com.liferay.portal.SystemException {
353 getPersistence().removeByOpenId(openId);
354 }
355
356 public static void removeByPortraitId(long portraitId)
357 throws com.liferay.portal.NoSuchUserException,
358 com.liferay.portal.SystemException {
359 getPersistence().removeByPortraitId(portraitId);
360 }
361
362 public static void removeByC_U(long companyId, long userId)
363 throws com.liferay.portal.NoSuchUserException,
364 com.liferay.portal.SystemException {
365 getPersistence().removeByC_U(companyId, userId);
366 }
367
368 public static void removeByC_DU(long companyId, boolean defaultUser)
369 throws com.liferay.portal.NoSuchUserException,
370 com.liferay.portal.SystemException {
371 getPersistence().removeByC_DU(companyId, defaultUser);
372 }
373
374 public static void removeByC_SN(long companyId, java.lang.String screenName)
375 throws com.liferay.portal.NoSuchUserException,
376 com.liferay.portal.SystemException {
377 getPersistence().removeByC_SN(companyId, screenName);
378 }
379
380 public static void removeByC_EA(long companyId,
381 java.lang.String emailAddress)
382 throws com.liferay.portal.NoSuchUserException,
383 com.liferay.portal.SystemException {
384 getPersistence().removeByC_EA(companyId, emailAddress);
385 }
386
387 public static void removeAll() throws com.liferay.portal.SystemException {
388 getPersistence().removeAll();
389 }
390
391 public static int countByUuid(java.lang.String uuid)
392 throws com.liferay.portal.SystemException {
393 return getPersistence().countByUuid(uuid);
394 }
395
396 public static int countByCompanyId(long companyId)
397 throws com.liferay.portal.SystemException {
398 return getPersistence().countByCompanyId(companyId);
399 }
400
401 public static int countByContactId(long contactId)
402 throws com.liferay.portal.SystemException {
403 return getPersistence().countByContactId(contactId);
404 }
405
406 public static int countByEmailAddress(java.lang.String emailAddress)
407 throws com.liferay.portal.SystemException {
408 return getPersistence().countByEmailAddress(emailAddress);
409 }
410
411 public static int countByOpenId(java.lang.String openId)
412 throws com.liferay.portal.SystemException {
413 return getPersistence().countByOpenId(openId);
414 }
415
416 public static int countByPortraitId(long portraitId)
417 throws com.liferay.portal.SystemException {
418 return getPersistence().countByPortraitId(portraitId);
419 }
420
421 public static int countByC_U(long companyId, long userId)
422 throws com.liferay.portal.SystemException {
423 return getPersistence().countByC_U(companyId, userId);
424 }
425
426 public static int countByC_DU(long companyId, boolean defaultUser)
427 throws com.liferay.portal.SystemException {
428 return getPersistence().countByC_DU(companyId, defaultUser);
429 }
430
431 public static int countByC_SN(long companyId, java.lang.String screenName)
432 throws com.liferay.portal.SystemException {
433 return getPersistence().countByC_SN(companyId, screenName);
434 }
435
436 public static int countByC_EA(long companyId, java.lang.String emailAddress)
437 throws com.liferay.portal.SystemException {
438 return getPersistence().countByC_EA(companyId, emailAddress);
439 }
440
441 public static int countAll() throws com.liferay.portal.SystemException {
442 return getPersistence().countAll();
443 }
444
445 public static java.util.List<com.liferay.portal.model.Group> getGroups(
446 long pk) throws com.liferay.portal.SystemException {
447 return getPersistence().getGroups(pk);
448 }
449
450 public static java.util.List<com.liferay.portal.model.Group> getGroups(
451 long pk, int start, int end) throws com.liferay.portal.SystemException {
452 return getPersistence().getGroups(pk, start, end);
453 }
454
455 public static java.util.List<com.liferay.portal.model.Group> getGroups(
456 long pk, int start, int end,
457 com.liferay.portal.kernel.util.OrderByComparator obc)
458 throws com.liferay.portal.SystemException {
459 return getPersistence().getGroups(pk, start, end, obc);
460 }
461
462 public static int getGroupsSize(long pk)
463 throws com.liferay.portal.SystemException {
464 return getPersistence().getGroupsSize(pk);
465 }
466
467 public static boolean containsGroup(long pk, long groupPK)
468 throws com.liferay.portal.SystemException {
469 return getPersistence().containsGroup(pk, groupPK);
470 }
471
472 public static boolean containsGroups(long pk)
473 throws com.liferay.portal.SystemException {
474 return getPersistence().containsGroups(pk);
475 }
476
477 public static void addGroup(long pk, long groupPK)
478 throws com.liferay.portal.SystemException {
479 getPersistence().addGroup(pk, groupPK);
480 }
481
482 public static void addGroup(long pk, com.liferay.portal.model.Group group)
483 throws com.liferay.portal.SystemException {
484 getPersistence().addGroup(pk, group);
485 }
486
487 public static void addGroups(long pk, long[] groupPKs)
488 throws com.liferay.portal.SystemException {
489 getPersistence().addGroups(pk, groupPKs);
490 }
491
492 public static void addGroups(long pk,
493 java.util.List<com.liferay.portal.model.Group> groups)
494 throws com.liferay.portal.SystemException {
495 getPersistence().addGroups(pk, groups);
496 }
497
498 public static void clearGroups(long pk)
499 throws com.liferay.portal.SystemException {
500 getPersistence().clearGroups(pk);
501 }
502
503 public static void removeGroup(long pk, long groupPK)
504 throws com.liferay.portal.SystemException {
505 getPersistence().removeGroup(pk, groupPK);
506 }
507
508 public static void removeGroup(long pk, com.liferay.portal.model.Group group)
509 throws com.liferay.portal.SystemException {
510 getPersistence().removeGroup(pk, group);
511 }
512
513 public static void removeGroups(long pk, long[] groupPKs)
514 throws com.liferay.portal.SystemException {
515 getPersistence().removeGroups(pk, groupPKs);
516 }
517
518 public static void removeGroups(long pk,
519 java.util.List<com.liferay.portal.model.Group> groups)
520 throws com.liferay.portal.SystemException {
521 getPersistence().removeGroups(pk, groups);
522 }
523
524 public static void setGroups(long pk, long[] groupPKs)
525 throws com.liferay.portal.SystemException {
526 getPersistence().setGroups(pk, groupPKs);
527 }
528
529 public static void setGroups(long pk,
530 java.util.List<com.liferay.portal.model.Group> groups)
531 throws com.liferay.portal.SystemException {
532 getPersistence().setGroups(pk, groups);
533 }
534
535 public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
536 long pk) throws com.liferay.portal.SystemException {
537 return getPersistence().getOrganizations(pk);
538 }
539
540 public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
541 long pk, int start, int end) throws com.liferay.portal.SystemException {
542 return getPersistence().getOrganizations(pk, start, end);
543 }
544
545 public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
546 long pk, int start, int end,
547 com.liferay.portal.kernel.util.OrderByComparator obc)
548 throws com.liferay.portal.SystemException {
549 return getPersistence().getOrganizations(pk, start, end, obc);
550 }
551
552 public static int getOrganizationsSize(long pk)
553 throws com.liferay.portal.SystemException {
554 return getPersistence().getOrganizationsSize(pk);
555 }
556
557 public static boolean containsOrganization(long pk, long organizationPK)
558 throws com.liferay.portal.SystemException {
559 return getPersistence().containsOrganization(pk, organizationPK);
560 }
561
562 public static boolean containsOrganizations(long pk)
563 throws com.liferay.portal.SystemException {
564 return getPersistence().containsOrganizations(pk);
565 }
566
567 public static void addOrganization(long pk, long organizationPK)
568 throws com.liferay.portal.SystemException {
569 getPersistence().addOrganization(pk, organizationPK);
570 }
571
572 public static void addOrganization(long pk,
573 com.liferay.portal.model.Organization organization)
574 throws com.liferay.portal.SystemException {
575 getPersistence().addOrganization(pk, organization);
576 }
577
578 public static void addOrganizations(long pk, long[] organizationPKs)
579 throws com.liferay.portal.SystemException {
580 getPersistence().addOrganizations(pk, organizationPKs);
581 }
582
583 public static void addOrganizations(long pk,
584 java.util.List<com.liferay.portal.model.Organization> organizations)
585 throws com.liferay.portal.SystemException {
586 getPersistence().addOrganizations(pk, organizations);
587 }
588
589 public static void clearOrganizations(long pk)
590 throws com.liferay.portal.SystemException {
591 getPersistence().clearOrganizations(pk);
592 }
593
594 public static void removeOrganization(long pk, long organizationPK)
595 throws com.liferay.portal.SystemException {
596 getPersistence().removeOrganization(pk, organizationPK);
597 }
598
599 public static void removeOrganization(long pk,
600 com.liferay.portal.model.Organization organization)
601 throws com.liferay.portal.SystemException {
602 getPersistence().removeOrganization(pk, organization);
603 }
604
605 public static void removeOrganizations(long pk, long[] organizationPKs)
606 throws com.liferay.portal.SystemException {
607 getPersistence().removeOrganizations(pk, organizationPKs);
608 }
609
610 public static void removeOrganizations(long pk,
611 java.util.List<com.liferay.portal.model.Organization> organizations)
612 throws com.liferay.portal.SystemException {
613 getPersistence().removeOrganizations(pk, organizations);
614 }
615
616 public static void setOrganizations(long pk, long[] organizationPKs)
617 throws com.liferay.portal.SystemException {
618 getPersistence().setOrganizations(pk, organizationPKs);
619 }
620
621 public static void setOrganizations(long pk,
622 java.util.List<com.liferay.portal.model.Organization> organizations)
623 throws com.liferay.portal.SystemException {
624 getPersistence().setOrganizations(pk, organizations);
625 }
626
627 public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
628 long pk) throws com.liferay.portal.SystemException {
629 return getPersistence().getPermissions(pk);
630 }
631
632 public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
633 long pk, int start, int end) throws com.liferay.portal.SystemException {
634 return getPersistence().getPermissions(pk, start, end);
635 }
636
637 public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
638 long pk, int start, int end,
639 com.liferay.portal.kernel.util.OrderByComparator obc)
640 throws com.liferay.portal.SystemException {
641 return getPersistence().getPermissions(pk, start, end, obc);
642 }
643
644 public static int getPermissionsSize(long pk)
645 throws com.liferay.portal.SystemException {
646 return getPersistence().getPermissionsSize(pk);
647 }
648
649 public static boolean containsPermission(long pk, long permissionPK)
650 throws com.liferay.portal.SystemException {
651 return getPersistence().containsPermission(pk, permissionPK);
652 }
653
654 public static boolean containsPermissions(long pk)
655 throws com.liferay.portal.SystemException {
656 return getPersistence().containsPermissions(pk);
657 }
658
659 public static void addPermission(long pk, long permissionPK)
660 throws com.liferay.portal.SystemException {
661 getPersistence().addPermission(pk, permissionPK);
662 }
663
664 public static void addPermission(long pk,
665 com.liferay.portal.model.Permission permission)
666 throws com.liferay.portal.SystemException {
667 getPersistence().addPermission(pk, permission);
668 }
669
670 public static void addPermissions(long pk, long[] permissionPKs)
671 throws com.liferay.portal.SystemException {
672 getPersistence().addPermissions(pk, permissionPKs);
673 }
674
675 public static void addPermissions(long pk,
676 java.util.List<com.liferay.portal.model.Permission> permissions)
677 throws com.liferay.portal.SystemException {
678 getPersistence().addPermissions(pk, permissions);
679 }
680
681 public static void clearPermissions(long pk)
682 throws com.liferay.portal.SystemException {
683 getPersistence().clearPermissions(pk);
684 }
685
686 public static void removePermission(long pk, long permissionPK)
687 throws com.liferay.portal.SystemException {
688 getPersistence().removePermission(pk, permissionPK);
689 }
690
691 public static void removePermission(long pk,
692 com.liferay.portal.model.Permission permission)
693 throws com.liferay.portal.SystemException {
694 getPersistence().removePermission(pk, permission);
695 }
696
697 public static void removePermissions(long pk, long[] permissionPKs)
698 throws com.liferay.portal.SystemException {
699 getPersistence().removePermissions(pk, permissionPKs);
700 }
701
702 public static void removePermissions(long pk,
703 java.util.List<com.liferay.portal.model.Permission> permissions)
704 throws com.liferay.portal.SystemException {
705 getPersistence().removePermissions(pk, permissions);
706 }
707
708 public static void setPermissions(long pk, long[] permissionPKs)
709 throws com.liferay.portal.SystemException {
710 getPersistence().setPermissions(pk, permissionPKs);
711 }
712
713 public static void setPermissions(long pk,
714 java.util.List<com.liferay.portal.model.Permission> permissions)
715 throws com.liferay.portal.SystemException {
716 getPersistence().setPermissions(pk, permissions);
717 }
718
719 public static java.util.List<com.liferay.portal.model.Role> getRoles(
720 long pk) throws com.liferay.portal.SystemException {
721 return getPersistence().getRoles(pk);
722 }
723
724 public static java.util.List<com.liferay.portal.model.Role> getRoles(
725 long pk, int start, int end) throws com.liferay.portal.SystemException {
726 return getPersistence().getRoles(pk, start, end);
727 }
728
729 public static java.util.List<com.liferay.portal.model.Role> getRoles(
730 long pk, int start, int end,
731 com.liferay.portal.kernel.util.OrderByComparator obc)
732 throws com.liferay.portal.SystemException {
733 return getPersistence().getRoles(pk, start, end, obc);
734 }
735
736 public static int getRolesSize(long pk)
737 throws com.liferay.portal.SystemException {
738 return getPersistence().getRolesSize(pk);
739 }
740
741 public static boolean containsRole(long pk, long rolePK)
742 throws com.liferay.portal.SystemException {
743 return getPersistence().containsRole(pk, rolePK);
744 }
745
746 public static boolean containsRoles(long pk)
747 throws com.liferay.portal.SystemException {
748 return getPersistence().containsRoles(pk);
749 }
750
751 public static void addRole(long pk, long rolePK)
752 throws com.liferay.portal.SystemException {
753 getPersistence().addRole(pk, rolePK);
754 }
755
756 public static void addRole(long pk, com.liferay.portal.model.Role role)
757 throws com.liferay.portal.SystemException {
758 getPersistence().addRole(pk, role);
759 }
760
761 public static void addRoles(long pk, long[] rolePKs)
762 throws com.liferay.portal.SystemException {
763 getPersistence().addRoles(pk, rolePKs);
764 }
765
766 public static void addRoles(long pk,
767 java.util.List<com.liferay.portal.model.Role> roles)
768 throws com.liferay.portal.SystemException {
769 getPersistence().addRoles(pk, roles);
770 }
771
772 public static void clearRoles(long pk)
773 throws com.liferay.portal.SystemException {
774 getPersistence().clearRoles(pk);
775 }
776
777 public static void removeRole(long pk, long rolePK)
778 throws com.liferay.portal.SystemException {
779 getPersistence().removeRole(pk, rolePK);
780 }
781
782 public static void removeRole(long pk, com.liferay.portal.model.Role role)
783 throws com.liferay.portal.SystemException {
784 getPersistence().removeRole(pk, role);
785 }
786
787 public static void removeRoles(long pk, long[] rolePKs)
788 throws com.liferay.portal.SystemException {
789 getPersistence().removeRoles(pk, rolePKs);
790 }
791
792 public static void removeRoles(long pk,
793 java.util.List<com.liferay.portal.model.Role> roles)
794 throws com.liferay.portal.SystemException {
795 getPersistence().removeRoles(pk, roles);
796 }
797
798 public static void setRoles(long pk, long[] rolePKs)
799 throws com.liferay.portal.SystemException {
800 getPersistence().setRoles(pk, rolePKs);
801 }
802
803 public static void setRoles(long pk,
804 java.util.List<com.liferay.portal.model.Role> roles)
805 throws com.liferay.portal.SystemException {
806 getPersistence().setRoles(pk, roles);
807 }
808
809 public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
810 long pk) throws com.liferay.portal.SystemException {
811 return getPersistence().getUserGroups(pk);
812 }
813
814 public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
815 long pk, int start, int end) throws com.liferay.portal.SystemException {
816 return getPersistence().getUserGroups(pk, start, end);
817 }
818
819 public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
820 long pk, int start, int end,
821 com.liferay.portal.kernel.util.OrderByComparator obc)
822 throws com.liferay.portal.SystemException {
823 return getPersistence().getUserGroups(pk, start, end, obc);
824 }
825
826 public static int getUserGroupsSize(long pk)
827 throws com.liferay.portal.SystemException {
828 return getPersistence().getUserGroupsSize(pk);
829 }
830
831 public static boolean containsUserGroup(long pk, long userGroupPK)
832 throws com.liferay.portal.SystemException {
833 return getPersistence().containsUserGroup(pk, userGroupPK);
834 }
835
836 public static boolean containsUserGroups(long pk)
837 throws com.liferay.portal.SystemException {
838 return getPersistence().containsUserGroups(pk);
839 }
840
841 public static void addUserGroup(long pk, long userGroupPK)
842 throws com.liferay.portal.SystemException {
843 getPersistence().addUserGroup(pk, userGroupPK);
844 }
845
846 public static void addUserGroup(long pk,
847 com.liferay.portal.model.UserGroup userGroup)
848 throws com.liferay.portal.SystemException {
849 getPersistence().addUserGroup(pk, userGroup);
850 }
851
852 public static void addUserGroups(long pk, long[] userGroupPKs)
853 throws com.liferay.portal.SystemException {
854 getPersistence().addUserGroups(pk, userGroupPKs);
855 }
856
857 public static void addUserGroups(long pk,
858 java.util.List<com.liferay.portal.model.UserGroup> userGroups)
859 throws com.liferay.portal.SystemException {
860 getPersistence().addUserGroups(pk, userGroups);
861 }
862
863 public static void clearUserGroups(long pk)
864 throws com.liferay.portal.SystemException {
865 getPersistence().clearUserGroups(pk);
866 }
867
868 public static void removeUserGroup(long pk, long userGroupPK)
869 throws com.liferay.portal.SystemException {
870 getPersistence().removeUserGroup(pk, userGroupPK);
871 }
872
873 public static void removeUserGroup(long pk,
874 com.liferay.portal.model.UserGroup userGroup)
875 throws com.liferay.portal.SystemException {
876 getPersistence().removeUserGroup(pk, userGroup);
877 }
878
879 public static void removeUserGroups(long pk, long[] userGroupPKs)
880 throws com.liferay.portal.SystemException {
881 getPersistence().removeUserGroups(pk, userGroupPKs);
882 }
883
884 public static void removeUserGroups(long pk,
885 java.util.List<com.liferay.portal.model.UserGroup> userGroups)
886 throws com.liferay.portal.SystemException {
887 getPersistence().removeUserGroups(pk, userGroups);
888 }
889
890 public static void setUserGroups(long pk, long[] userGroupPKs)
891 throws com.liferay.portal.SystemException {
892 getPersistence().setUserGroups(pk, userGroupPKs);
893 }
894
895 public static void setUserGroups(long pk,
896 java.util.List<com.liferay.portal.model.UserGroup> userGroups)
897 throws com.liferay.portal.SystemException {
898 getPersistence().setUserGroups(pk, userGroups);
899 }
900
901 public static UserPersistence getPersistence() {
902 return _persistence;
903 }
904
905 public void setPersistence(UserPersistence persistence) {
906 _persistence = persistence;
907 }
908
909 private static UserPersistence _persistence;
910 }