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