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