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