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