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