001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.model.User;
022 import com.liferay.portal.service.ServiceContext;
023
024 import java.util.List;
025
026
032 public class UserUtil {
033
036 public static void clearCache() {
037 getPersistence().clearCache();
038 }
039
040
043 public static void clearCache(User user) {
044 getPersistence().clearCache(user);
045 }
046
047
050 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
051 throws SystemException {
052 return getPersistence().countWithDynamicQuery(dynamicQuery);
053 }
054
055
058 public static List<User> findWithDynamicQuery(DynamicQuery dynamicQuery)
059 throws SystemException {
060 return getPersistence().findWithDynamicQuery(dynamicQuery);
061 }
062
063
066 public static List<User> findWithDynamicQuery(DynamicQuery dynamicQuery,
067 int start, int end) throws SystemException {
068 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
069 }
070
071
074 public static List<User> findWithDynamicQuery(DynamicQuery dynamicQuery,
075 int start, int end, OrderByComparator orderByComparator)
076 throws SystemException {
077 return getPersistence()
078 .findWithDynamicQuery(dynamicQuery, start, end,
079 orderByComparator);
080 }
081
082
085 public static User remove(User user) throws SystemException {
086 return getPersistence().remove(user);
087 }
088
089
092 public static User update(User user, boolean merge)
093 throws SystemException {
094 return getPersistence().update(user, merge);
095 }
096
097
100 public static User update(User user, boolean merge,
101 ServiceContext serviceContext) throws SystemException {
102 return getPersistence().update(user, merge, serviceContext);
103 }
104
105 public static void cacheResult(com.liferay.portal.model.User user) {
106 getPersistence().cacheResult(user);
107 }
108
109 public static void cacheResult(
110 java.util.List<com.liferay.portal.model.User> users) {
111 getPersistence().cacheResult(users);
112 }
113
114 public static com.liferay.portal.model.User create(long userId) {
115 return getPersistence().create(userId);
116 }
117
118 public static com.liferay.portal.model.User remove(long userId)
119 throws com.liferay.portal.NoSuchUserException,
120 com.liferay.portal.kernel.exception.SystemException {
121 return getPersistence().remove(userId);
122 }
123
124 public static com.liferay.portal.model.User updateImpl(
125 com.liferay.portal.model.User user, boolean merge)
126 throws com.liferay.portal.kernel.exception.SystemException {
127 return getPersistence().updateImpl(user, merge);
128 }
129
130 public static com.liferay.portal.model.User findByPrimaryKey(long userId)
131 throws com.liferay.portal.NoSuchUserException,
132 com.liferay.portal.kernel.exception.SystemException {
133 return getPersistence().findByPrimaryKey(userId);
134 }
135
136 public static com.liferay.portal.model.User fetchByPrimaryKey(long userId)
137 throws com.liferay.portal.kernel.exception.SystemException {
138 return getPersistence().fetchByPrimaryKey(userId);
139 }
140
141 public static java.util.List<com.liferay.portal.model.User> findByUuid(
142 java.lang.String uuid)
143 throws com.liferay.portal.kernel.exception.SystemException {
144 return getPersistence().findByUuid(uuid);
145 }
146
147 public static java.util.List<com.liferay.portal.model.User> findByUuid(
148 java.lang.String uuid, int start, int end)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getPersistence().findByUuid(uuid, start, end);
151 }
152
153 public static java.util.List<com.liferay.portal.model.User> findByUuid(
154 java.lang.String uuid, int start, int end,
155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156 throws com.liferay.portal.kernel.exception.SystemException {
157 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
158 }
159
160 public static com.liferay.portal.model.User findByUuid_First(
161 java.lang.String uuid,
162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163 throws com.liferay.portal.NoSuchUserException,
164 com.liferay.portal.kernel.exception.SystemException {
165 return getPersistence().findByUuid_First(uuid, orderByComparator);
166 }
167
168 public static com.liferay.portal.model.User findByUuid_Last(
169 java.lang.String uuid,
170 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171 throws com.liferay.portal.NoSuchUserException,
172 com.liferay.portal.kernel.exception.SystemException {
173 return getPersistence().findByUuid_Last(uuid, orderByComparator);
174 }
175
176 public static com.liferay.portal.model.User[] findByUuid_PrevAndNext(
177 long userId, java.lang.String uuid,
178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179 throws com.liferay.portal.NoSuchUserException,
180 com.liferay.portal.kernel.exception.SystemException {
181 return getPersistence()
182 .findByUuid_PrevAndNext(userId, uuid, orderByComparator);
183 }
184
185 public static java.util.List<com.liferay.portal.model.User> findByCompanyId(
186 long companyId)
187 throws com.liferay.portal.kernel.exception.SystemException {
188 return getPersistence().findByCompanyId(companyId);
189 }
190
191 public static java.util.List<com.liferay.portal.model.User> findByCompanyId(
192 long companyId, int start, int end)
193 throws com.liferay.portal.kernel.exception.SystemException {
194 return getPersistence().findByCompanyId(companyId, start, end);
195 }
196
197 public static java.util.List<com.liferay.portal.model.User> findByCompanyId(
198 long companyId, int start, int end,
199 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return getPersistence()
202 .findByCompanyId(companyId, start, end, orderByComparator);
203 }
204
205 public static com.liferay.portal.model.User findByCompanyId_First(
206 long companyId,
207 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208 throws com.liferay.portal.NoSuchUserException,
209 com.liferay.portal.kernel.exception.SystemException {
210 return getPersistence()
211 .findByCompanyId_First(companyId, orderByComparator);
212 }
213
214 public static com.liferay.portal.model.User findByCompanyId_Last(
215 long companyId,
216 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
217 throws com.liferay.portal.NoSuchUserException,
218 com.liferay.portal.kernel.exception.SystemException {
219 return getPersistence()
220 .findByCompanyId_Last(companyId, orderByComparator);
221 }
222
223 public static com.liferay.portal.model.User[] findByCompanyId_PrevAndNext(
224 long userId, long companyId,
225 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226 throws com.liferay.portal.NoSuchUserException,
227 com.liferay.portal.kernel.exception.SystemException {
228 return getPersistence()
229 .findByCompanyId_PrevAndNext(userId, companyId,
230 orderByComparator);
231 }
232
233 public static com.liferay.portal.model.User findByContactId(long contactId)
234 throws com.liferay.portal.NoSuchUserException,
235 com.liferay.portal.kernel.exception.SystemException {
236 return getPersistence().findByContactId(contactId);
237 }
238
239 public static com.liferay.portal.model.User fetchByContactId(long contactId)
240 throws com.liferay.portal.kernel.exception.SystemException {
241 return getPersistence().fetchByContactId(contactId);
242 }
243
244 public static com.liferay.portal.model.User fetchByContactId(
245 long contactId, boolean retrieveFromCache)
246 throws com.liferay.portal.kernel.exception.SystemException {
247 return getPersistence().fetchByContactId(contactId, retrieveFromCache);
248 }
249
250 public static java.util.List<com.liferay.portal.model.User> findByEmailAddress(
251 java.lang.String emailAddress)
252 throws com.liferay.portal.kernel.exception.SystemException {
253 return getPersistence().findByEmailAddress(emailAddress);
254 }
255
256 public static java.util.List<com.liferay.portal.model.User> findByEmailAddress(
257 java.lang.String emailAddress, int start, int end)
258 throws com.liferay.portal.kernel.exception.SystemException {
259 return getPersistence().findByEmailAddress(emailAddress, start, end);
260 }
261
262 public static java.util.List<com.liferay.portal.model.User> findByEmailAddress(
263 java.lang.String emailAddress, int start, int end,
264 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
265 throws com.liferay.portal.kernel.exception.SystemException {
266 return getPersistence()
267 .findByEmailAddress(emailAddress, start, end,
268 orderByComparator);
269 }
270
271 public static com.liferay.portal.model.User findByEmailAddress_First(
272 java.lang.String emailAddress,
273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274 throws com.liferay.portal.NoSuchUserException,
275 com.liferay.portal.kernel.exception.SystemException {
276 return getPersistence()
277 .findByEmailAddress_First(emailAddress, orderByComparator);
278 }
279
280 public static com.liferay.portal.model.User findByEmailAddress_Last(
281 java.lang.String emailAddress,
282 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
283 throws com.liferay.portal.NoSuchUserException,
284 com.liferay.portal.kernel.exception.SystemException {
285 return getPersistence()
286 .findByEmailAddress_Last(emailAddress, orderByComparator);
287 }
288
289 public static com.liferay.portal.model.User[] findByEmailAddress_PrevAndNext(
290 long userId, java.lang.String emailAddress,
291 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292 throws com.liferay.portal.NoSuchUserException,
293 com.liferay.portal.kernel.exception.SystemException {
294 return getPersistence()
295 .findByEmailAddress_PrevAndNext(userId, emailAddress,
296 orderByComparator);
297 }
298
299 public static com.liferay.portal.model.User findByPortraitId(
300 long portraitId)
301 throws com.liferay.portal.NoSuchUserException,
302 com.liferay.portal.kernel.exception.SystemException {
303 return getPersistence().findByPortraitId(portraitId);
304 }
305
306 public static com.liferay.portal.model.User fetchByPortraitId(
307 long portraitId)
308 throws com.liferay.portal.kernel.exception.SystemException {
309 return getPersistence().fetchByPortraitId(portraitId);
310 }
311
312 public static com.liferay.portal.model.User fetchByPortraitId(
313 long portraitId, boolean retrieveFromCache)
314 throws com.liferay.portal.kernel.exception.SystemException {
315 return getPersistence().fetchByPortraitId(portraitId, retrieveFromCache);
316 }
317
318 public static com.liferay.portal.model.User findByC_U(long companyId,
319 long userId)
320 throws com.liferay.portal.NoSuchUserException,
321 com.liferay.portal.kernel.exception.SystemException {
322 return getPersistence().findByC_U(companyId, userId);
323 }
324
325 public static com.liferay.portal.model.User fetchByC_U(long companyId,
326 long userId) throws com.liferay.portal.kernel.exception.SystemException {
327 return getPersistence().fetchByC_U(companyId, userId);
328 }
329
330 public static com.liferay.portal.model.User fetchByC_U(long companyId,
331 long userId, boolean retrieveFromCache)
332 throws com.liferay.portal.kernel.exception.SystemException {
333 return getPersistence().fetchByC_U(companyId, userId, retrieveFromCache);
334 }
335
336 public static com.liferay.portal.model.User findByC_DU(long companyId,
337 boolean defaultUser)
338 throws com.liferay.portal.NoSuchUserException,
339 com.liferay.portal.kernel.exception.SystemException {
340 return getPersistence().findByC_DU(companyId, defaultUser);
341 }
342
343 public static com.liferay.portal.model.User fetchByC_DU(long companyId,
344 boolean defaultUser)
345 throws com.liferay.portal.kernel.exception.SystemException {
346 return getPersistence().fetchByC_DU(companyId, defaultUser);
347 }
348
349 public static com.liferay.portal.model.User fetchByC_DU(long companyId,
350 boolean defaultUser, boolean retrieveFromCache)
351 throws com.liferay.portal.kernel.exception.SystemException {
352 return getPersistence()
353 .fetchByC_DU(companyId, defaultUser, retrieveFromCache);
354 }
355
356 public static com.liferay.portal.model.User findByC_SN(long companyId,
357 java.lang.String screenName)
358 throws com.liferay.portal.NoSuchUserException,
359 com.liferay.portal.kernel.exception.SystemException {
360 return getPersistence().findByC_SN(companyId, screenName);
361 }
362
363 public static com.liferay.portal.model.User fetchByC_SN(long companyId,
364 java.lang.String screenName)
365 throws com.liferay.portal.kernel.exception.SystemException {
366 return getPersistence().fetchByC_SN(companyId, screenName);
367 }
368
369 public static com.liferay.portal.model.User fetchByC_SN(long companyId,
370 java.lang.String screenName, boolean retrieveFromCache)
371 throws com.liferay.portal.kernel.exception.SystemException {
372 return getPersistence()
373 .fetchByC_SN(companyId, screenName, retrieveFromCache);
374 }
375
376 public static com.liferay.portal.model.User findByC_EA(long companyId,
377 java.lang.String emailAddress)
378 throws com.liferay.portal.NoSuchUserException,
379 com.liferay.portal.kernel.exception.SystemException {
380 return getPersistence().findByC_EA(companyId, emailAddress);
381 }
382
383 public static com.liferay.portal.model.User fetchByC_EA(long companyId,
384 java.lang.String emailAddress)
385 throws com.liferay.portal.kernel.exception.SystemException {
386 return getPersistence().fetchByC_EA(companyId, emailAddress);
387 }
388
389 public static com.liferay.portal.model.User fetchByC_EA(long companyId,
390 java.lang.String emailAddress, boolean retrieveFromCache)
391 throws com.liferay.portal.kernel.exception.SystemException {
392 return getPersistence()
393 .fetchByC_EA(companyId, emailAddress, retrieveFromCache);
394 }
395
396 public static com.liferay.portal.model.User findByC_FID(long companyId,
397 long facebookId)
398 throws com.liferay.portal.NoSuchUserException,
399 com.liferay.portal.kernel.exception.SystemException {
400 return getPersistence().findByC_FID(companyId, facebookId);
401 }
402
403 public static com.liferay.portal.model.User fetchByC_FID(long companyId,
404 long facebookId)
405 throws com.liferay.portal.kernel.exception.SystemException {
406 return getPersistence().fetchByC_FID(companyId, facebookId);
407 }
408
409 public static com.liferay.portal.model.User fetchByC_FID(long companyId,
410 long facebookId, boolean retrieveFromCache)
411 throws com.liferay.portal.kernel.exception.SystemException {
412 return getPersistence()
413 .fetchByC_FID(companyId, facebookId, retrieveFromCache);
414 }
415
416 public static com.liferay.portal.model.User findByC_O(long companyId,
417 java.lang.String openId)
418 throws com.liferay.portal.NoSuchUserException,
419 com.liferay.portal.kernel.exception.SystemException {
420 return getPersistence().findByC_O(companyId, openId);
421 }
422
423 public static com.liferay.portal.model.User fetchByC_O(long companyId,
424 java.lang.String openId)
425 throws com.liferay.portal.kernel.exception.SystemException {
426 return getPersistence().fetchByC_O(companyId, openId);
427 }
428
429 public static com.liferay.portal.model.User fetchByC_O(long companyId,
430 java.lang.String openId, boolean retrieveFromCache)
431 throws com.liferay.portal.kernel.exception.SystemException {
432 return getPersistence().fetchByC_O(companyId, openId, retrieveFromCache);
433 }
434
435 public static java.util.List<com.liferay.portal.model.User> findByC_A(
436 long companyId, boolean active)
437 throws com.liferay.portal.kernel.exception.SystemException {
438 return getPersistence().findByC_A(companyId, active);
439 }
440
441 public static java.util.List<com.liferay.portal.model.User> findByC_A(
442 long companyId, boolean active, int start, int end)
443 throws com.liferay.portal.kernel.exception.SystemException {
444 return getPersistence().findByC_A(companyId, active, start, end);
445 }
446
447 public static java.util.List<com.liferay.portal.model.User> findByC_A(
448 long companyId, boolean active, int start, int end,
449 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
450 throws com.liferay.portal.kernel.exception.SystemException {
451 return getPersistence()
452 .findByC_A(companyId, active, start, end, orderByComparator);
453 }
454
455 public static com.liferay.portal.model.User findByC_A_First(
456 long companyId, boolean active,
457 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
458 throws com.liferay.portal.NoSuchUserException,
459 com.liferay.portal.kernel.exception.SystemException {
460 return getPersistence()
461 .findByC_A_First(companyId, active, orderByComparator);
462 }
463
464 public static com.liferay.portal.model.User findByC_A_Last(long companyId,
465 boolean active,
466 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
467 throws com.liferay.portal.NoSuchUserException,
468 com.liferay.portal.kernel.exception.SystemException {
469 return getPersistence()
470 .findByC_A_Last(companyId, active, orderByComparator);
471 }
472
473 public static com.liferay.portal.model.User[] findByC_A_PrevAndNext(
474 long userId, long companyId, boolean active,
475 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
476 throws com.liferay.portal.NoSuchUserException,
477 com.liferay.portal.kernel.exception.SystemException {
478 return getPersistence()
479 .findByC_A_PrevAndNext(userId, companyId, active,
480 orderByComparator);
481 }
482
483 public static java.util.List<com.liferay.portal.model.User> findAll()
484 throws com.liferay.portal.kernel.exception.SystemException {
485 return getPersistence().findAll();
486 }
487
488 public static java.util.List<com.liferay.portal.model.User> findAll(
489 int start, int end)
490 throws com.liferay.portal.kernel.exception.SystemException {
491 return getPersistence().findAll(start, end);
492 }
493
494 public static java.util.List<com.liferay.portal.model.User> findAll(
495 int start, int end,
496 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
497 throws com.liferay.portal.kernel.exception.SystemException {
498 return getPersistence().findAll(start, end, orderByComparator);
499 }
500
501 public static void removeByUuid(java.lang.String uuid)
502 throws com.liferay.portal.kernel.exception.SystemException {
503 getPersistence().removeByUuid(uuid);
504 }
505
506 public static void removeByCompanyId(long companyId)
507 throws com.liferay.portal.kernel.exception.SystemException {
508 getPersistence().removeByCompanyId(companyId);
509 }
510
511 public static void removeByContactId(long contactId)
512 throws com.liferay.portal.NoSuchUserException,
513 com.liferay.portal.kernel.exception.SystemException {
514 getPersistence().removeByContactId(contactId);
515 }
516
517 public static void removeByEmailAddress(java.lang.String emailAddress)
518 throws com.liferay.portal.kernel.exception.SystemException {
519 getPersistence().removeByEmailAddress(emailAddress);
520 }
521
522 public static void removeByPortraitId(long portraitId)
523 throws com.liferay.portal.NoSuchUserException,
524 com.liferay.portal.kernel.exception.SystemException {
525 getPersistence().removeByPortraitId(portraitId);
526 }
527
528 public static void removeByC_U(long companyId, long userId)
529 throws com.liferay.portal.NoSuchUserException,
530 com.liferay.portal.kernel.exception.SystemException {
531 getPersistence().removeByC_U(companyId, userId);
532 }
533
534 public static void removeByC_DU(long companyId, boolean defaultUser)
535 throws com.liferay.portal.NoSuchUserException,
536 com.liferay.portal.kernel.exception.SystemException {
537 getPersistence().removeByC_DU(companyId, defaultUser);
538 }
539
540 public static void removeByC_SN(long companyId, java.lang.String screenName)
541 throws com.liferay.portal.NoSuchUserException,
542 com.liferay.portal.kernel.exception.SystemException {
543 getPersistence().removeByC_SN(companyId, screenName);
544 }
545
546 public static void removeByC_EA(long companyId,
547 java.lang.String emailAddress)
548 throws com.liferay.portal.NoSuchUserException,
549 com.liferay.portal.kernel.exception.SystemException {
550 getPersistence().removeByC_EA(companyId, emailAddress);
551 }
552
553 public static void removeByC_FID(long companyId, long facebookId)
554 throws com.liferay.portal.NoSuchUserException,
555 com.liferay.portal.kernel.exception.SystemException {
556 getPersistence().removeByC_FID(companyId, facebookId);
557 }
558
559 public static void removeByC_O(long companyId, java.lang.String openId)
560 throws com.liferay.portal.NoSuchUserException,
561 com.liferay.portal.kernel.exception.SystemException {
562 getPersistence().removeByC_O(companyId, openId);
563 }
564
565 public static void removeByC_A(long companyId, boolean active)
566 throws com.liferay.portal.kernel.exception.SystemException {
567 getPersistence().removeByC_A(companyId, active);
568 }
569
570 public static void removeAll()
571 throws com.liferay.portal.kernel.exception.SystemException {
572 getPersistence().removeAll();
573 }
574
575 public static int countByUuid(java.lang.String uuid)
576 throws com.liferay.portal.kernel.exception.SystemException {
577 return getPersistence().countByUuid(uuid);
578 }
579
580 public static int countByCompanyId(long companyId)
581 throws com.liferay.portal.kernel.exception.SystemException {
582 return getPersistence().countByCompanyId(companyId);
583 }
584
585 public static int countByContactId(long contactId)
586 throws com.liferay.portal.kernel.exception.SystemException {
587 return getPersistence().countByContactId(contactId);
588 }
589
590 public static int countByEmailAddress(java.lang.String emailAddress)
591 throws com.liferay.portal.kernel.exception.SystemException {
592 return getPersistence().countByEmailAddress(emailAddress);
593 }
594
595 public static int countByPortraitId(long portraitId)
596 throws com.liferay.portal.kernel.exception.SystemException {
597 return getPersistence().countByPortraitId(portraitId);
598 }
599
600 public static int countByC_U(long companyId, long userId)
601 throws com.liferay.portal.kernel.exception.SystemException {
602 return getPersistence().countByC_U(companyId, userId);
603 }
604
605 public static int countByC_DU(long companyId, boolean defaultUser)
606 throws com.liferay.portal.kernel.exception.SystemException {
607 return getPersistence().countByC_DU(companyId, defaultUser);
608 }
609
610 public static int countByC_SN(long companyId, java.lang.String screenName)
611 throws com.liferay.portal.kernel.exception.SystemException {
612 return getPersistence().countByC_SN(companyId, screenName);
613 }
614
615 public static int countByC_EA(long companyId, java.lang.String emailAddress)
616 throws com.liferay.portal.kernel.exception.SystemException {
617 return getPersistence().countByC_EA(companyId, emailAddress);
618 }
619
620 public static int countByC_FID(long companyId, long facebookId)
621 throws com.liferay.portal.kernel.exception.SystemException {
622 return getPersistence().countByC_FID(companyId, facebookId);
623 }
624
625 public static int countByC_O(long companyId, java.lang.String openId)
626 throws com.liferay.portal.kernel.exception.SystemException {
627 return getPersistence().countByC_O(companyId, openId);
628 }
629
630 public static int countByC_A(long companyId, boolean active)
631 throws com.liferay.portal.kernel.exception.SystemException {
632 return getPersistence().countByC_A(companyId, active);
633 }
634
635 public static int countAll()
636 throws com.liferay.portal.kernel.exception.SystemException {
637 return getPersistence().countAll();
638 }
639
640 public static java.util.List<com.liferay.portal.model.Group> getGroups(
641 long pk) throws com.liferay.portal.kernel.exception.SystemException {
642 return getPersistence().getGroups(pk);
643 }
644
645 public static java.util.List<com.liferay.portal.model.Group> getGroups(
646 long pk, int start, int end)
647 throws com.liferay.portal.kernel.exception.SystemException {
648 return getPersistence().getGroups(pk, start, end);
649 }
650
651 public static java.util.List<com.liferay.portal.model.Group> getGroups(
652 long pk, int start, int end,
653 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
654 throws com.liferay.portal.kernel.exception.SystemException {
655 return getPersistence().getGroups(pk, start, end, orderByComparator);
656 }
657
658 public static int getGroupsSize(long pk)
659 throws com.liferay.portal.kernel.exception.SystemException {
660 return getPersistence().getGroupsSize(pk);
661 }
662
663 public static boolean containsGroup(long pk, long groupPK)
664 throws com.liferay.portal.kernel.exception.SystemException {
665 return getPersistence().containsGroup(pk, groupPK);
666 }
667
668 public static boolean containsGroups(long pk)
669 throws com.liferay.portal.kernel.exception.SystemException {
670 return getPersistence().containsGroups(pk);
671 }
672
673 public static void addGroup(long pk, long groupPK)
674 throws com.liferay.portal.kernel.exception.SystemException {
675 getPersistence().addGroup(pk, groupPK);
676 }
677
678 public static void addGroup(long pk, com.liferay.portal.model.Group group)
679 throws com.liferay.portal.kernel.exception.SystemException {
680 getPersistence().addGroup(pk, group);
681 }
682
683 public static void addGroups(long pk, long[] groupPKs)
684 throws com.liferay.portal.kernel.exception.SystemException {
685 getPersistence().addGroups(pk, groupPKs);
686 }
687
688 public static void addGroups(long pk,
689 java.util.List<com.liferay.portal.model.Group> groups)
690 throws com.liferay.portal.kernel.exception.SystemException {
691 getPersistence().addGroups(pk, groups);
692 }
693
694 public static void clearGroups(long pk)
695 throws com.liferay.portal.kernel.exception.SystemException {
696 getPersistence().clearGroups(pk);
697 }
698
699 public static void removeGroup(long pk, long groupPK)
700 throws com.liferay.portal.kernel.exception.SystemException {
701 getPersistence().removeGroup(pk, groupPK);
702 }
703
704 public static void removeGroup(long pk, com.liferay.portal.model.Group group)
705 throws com.liferay.portal.kernel.exception.SystemException {
706 getPersistence().removeGroup(pk, group);
707 }
708
709 public static void removeGroups(long pk, long[] groupPKs)
710 throws com.liferay.portal.kernel.exception.SystemException {
711 getPersistence().removeGroups(pk, groupPKs);
712 }
713
714 public static void removeGroups(long pk,
715 java.util.List<com.liferay.portal.model.Group> groups)
716 throws com.liferay.portal.kernel.exception.SystemException {
717 getPersistence().removeGroups(pk, groups);
718 }
719
720 public static void setGroups(long pk, long[] groupPKs)
721 throws com.liferay.portal.kernel.exception.SystemException {
722 getPersistence().setGroups(pk, groupPKs);
723 }
724
725 public static void setGroups(long pk,
726 java.util.List<com.liferay.portal.model.Group> groups)
727 throws com.liferay.portal.kernel.exception.SystemException {
728 getPersistence().setGroups(pk, groups);
729 }
730
731 public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
732 long pk) throws com.liferay.portal.kernel.exception.SystemException {
733 return getPersistence().getOrganizations(pk);
734 }
735
736 public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
737 long pk, int start, int end)
738 throws com.liferay.portal.kernel.exception.SystemException {
739 return getPersistence().getOrganizations(pk, start, end);
740 }
741
742 public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
743 long pk, int start, int end,
744 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
745 throws com.liferay.portal.kernel.exception.SystemException {
746 return getPersistence()
747 .getOrganizations(pk, start, end, orderByComparator);
748 }
749
750 public static int getOrganizationsSize(long pk)
751 throws com.liferay.portal.kernel.exception.SystemException {
752 return getPersistence().getOrganizationsSize(pk);
753 }
754
755 public static boolean containsOrganization(long pk, long organizationPK)
756 throws com.liferay.portal.kernel.exception.SystemException {
757 return getPersistence().containsOrganization(pk, organizationPK);
758 }
759
760 public static boolean containsOrganizations(long pk)
761 throws com.liferay.portal.kernel.exception.SystemException {
762 return getPersistence().containsOrganizations(pk);
763 }
764
765 public static void addOrganization(long pk, long organizationPK)
766 throws com.liferay.portal.kernel.exception.SystemException {
767 getPersistence().addOrganization(pk, organizationPK);
768 }
769
770 public static void addOrganization(long pk,
771 com.liferay.portal.model.Organization organization)
772 throws com.liferay.portal.kernel.exception.SystemException {
773 getPersistence().addOrganization(pk, organization);
774 }
775
776 public static void addOrganizations(long pk, long[] organizationPKs)
777 throws com.liferay.portal.kernel.exception.SystemException {
778 getPersistence().addOrganizations(pk, organizationPKs);
779 }
780
781 public static void addOrganizations(long pk,
782 java.util.List<com.liferay.portal.model.Organization> organizations)
783 throws com.liferay.portal.kernel.exception.SystemException {
784 getPersistence().addOrganizations(pk, organizations);
785 }
786
787 public static void clearOrganizations(long pk)
788 throws com.liferay.portal.kernel.exception.SystemException {
789 getPersistence().clearOrganizations(pk);
790 }
791
792 public static void removeOrganization(long pk, long organizationPK)
793 throws com.liferay.portal.kernel.exception.SystemException {
794 getPersistence().removeOrganization(pk, organizationPK);
795 }
796
797 public static void removeOrganization(long pk,
798 com.liferay.portal.model.Organization organization)
799 throws com.liferay.portal.kernel.exception.SystemException {
800 getPersistence().removeOrganization(pk, organization);
801 }
802
803 public static void removeOrganizations(long pk, long[] organizationPKs)
804 throws com.liferay.portal.kernel.exception.SystemException {
805 getPersistence().removeOrganizations(pk, organizationPKs);
806 }
807
808 public static void removeOrganizations(long pk,
809 java.util.List<com.liferay.portal.model.Organization> organizations)
810 throws com.liferay.portal.kernel.exception.SystemException {
811 getPersistence().removeOrganizations(pk, organizations);
812 }
813
814 public static void setOrganizations(long pk, long[] organizationPKs)
815 throws com.liferay.portal.kernel.exception.SystemException {
816 getPersistence().setOrganizations(pk, organizationPKs);
817 }
818
819 public static void setOrganizations(long pk,
820 java.util.List<com.liferay.portal.model.Organization> organizations)
821 throws com.liferay.portal.kernel.exception.SystemException {
822 getPersistence().setOrganizations(pk, organizations);
823 }
824
825 public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
826 long pk) throws com.liferay.portal.kernel.exception.SystemException {
827 return getPersistence().getPermissions(pk);
828 }
829
830 public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
831 long pk, int start, int end)
832 throws com.liferay.portal.kernel.exception.SystemException {
833 return getPersistence().getPermissions(pk, start, end);
834 }
835
836 public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
837 long pk, int start, int end,
838 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
839 throws com.liferay.portal.kernel.exception.SystemException {
840 return getPersistence().getPermissions(pk, start, end, orderByComparator);
841 }
842
843 public static int getPermissionsSize(long pk)
844 throws com.liferay.portal.kernel.exception.SystemException {
845 return getPersistence().getPermissionsSize(pk);
846 }
847
848 public static boolean containsPermission(long pk, long permissionPK)
849 throws com.liferay.portal.kernel.exception.SystemException {
850 return getPersistence().containsPermission(pk, permissionPK);
851 }
852
853 public static boolean containsPermissions(long pk)
854 throws com.liferay.portal.kernel.exception.SystemException {
855 return getPersistence().containsPermissions(pk);
856 }
857
858 public static void addPermission(long pk, long permissionPK)
859 throws com.liferay.portal.kernel.exception.SystemException {
860 getPersistence().addPermission(pk, permissionPK);
861 }
862
863 public static void addPermission(long pk,
864 com.liferay.portal.model.Permission permission)
865 throws com.liferay.portal.kernel.exception.SystemException {
866 getPersistence().addPermission(pk, permission);
867 }
868
869 public static void addPermissions(long pk, long[] permissionPKs)
870 throws com.liferay.portal.kernel.exception.SystemException {
871 getPersistence().addPermissions(pk, permissionPKs);
872 }
873
874 public static void addPermissions(long pk,
875 java.util.List<com.liferay.portal.model.Permission> permissions)
876 throws com.liferay.portal.kernel.exception.SystemException {
877 getPersistence().addPermissions(pk, permissions);
878 }
879
880 public static void clearPermissions(long pk)
881 throws com.liferay.portal.kernel.exception.SystemException {
882 getPersistence().clearPermissions(pk);
883 }
884
885 public static void removePermission(long pk, long permissionPK)
886 throws com.liferay.portal.kernel.exception.SystemException {
887 getPersistence().removePermission(pk, permissionPK);
888 }
889
890 public static void removePermission(long pk,
891 com.liferay.portal.model.Permission permission)
892 throws com.liferay.portal.kernel.exception.SystemException {
893 getPersistence().removePermission(pk, permission);
894 }
895
896 public static void removePermissions(long pk, long[] permissionPKs)
897 throws com.liferay.portal.kernel.exception.SystemException {
898 getPersistence().removePermissions(pk, permissionPKs);
899 }
900
901 public static void removePermissions(long pk,
902 java.util.List<com.liferay.portal.model.Permission> permissions)
903 throws com.liferay.portal.kernel.exception.SystemException {
904 getPersistence().removePermissions(pk, permissions);
905 }
906
907 public static void setPermissions(long pk, long[] permissionPKs)
908 throws com.liferay.portal.kernel.exception.SystemException {
909 getPersistence().setPermissions(pk, permissionPKs);
910 }
911
912 public static void setPermissions(long pk,
913 java.util.List<com.liferay.portal.model.Permission> permissions)
914 throws com.liferay.portal.kernel.exception.SystemException {
915 getPersistence().setPermissions(pk, permissions);
916 }
917
918 public static java.util.List<com.liferay.portal.model.Role> getRoles(
919 long pk) throws com.liferay.portal.kernel.exception.SystemException {
920 return getPersistence().getRoles(pk);
921 }
922
923 public static java.util.List<com.liferay.portal.model.Role> getRoles(
924 long pk, int start, int end)
925 throws com.liferay.portal.kernel.exception.SystemException {
926 return getPersistence().getRoles(pk, start, end);
927 }
928
929 public static java.util.List<com.liferay.portal.model.Role> getRoles(
930 long pk, int start, int end,
931 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
932 throws com.liferay.portal.kernel.exception.SystemException {
933 return getPersistence().getRoles(pk, start, end, orderByComparator);
934 }
935
936 public static int getRolesSize(long pk)
937 throws com.liferay.portal.kernel.exception.SystemException {
938 return getPersistence().getRolesSize(pk);
939 }
940
941 public static boolean containsRole(long pk, long rolePK)
942 throws com.liferay.portal.kernel.exception.SystemException {
943 return getPersistence().containsRole(pk, rolePK);
944 }
945
946 public static boolean containsRoles(long pk)
947 throws com.liferay.portal.kernel.exception.SystemException {
948 return getPersistence().containsRoles(pk);
949 }
950
951 public static void addRole(long pk, long rolePK)
952 throws com.liferay.portal.kernel.exception.SystemException {
953 getPersistence().addRole(pk, rolePK);
954 }
955
956 public static void addRole(long pk, com.liferay.portal.model.Role role)
957 throws com.liferay.portal.kernel.exception.SystemException {
958 getPersistence().addRole(pk, role);
959 }
960
961 public static void addRoles(long pk, long[] rolePKs)
962 throws com.liferay.portal.kernel.exception.SystemException {
963 getPersistence().addRoles(pk, rolePKs);
964 }
965
966 public static void addRoles(long pk,
967 java.util.List<com.liferay.portal.model.Role> roles)
968 throws com.liferay.portal.kernel.exception.SystemException {
969 getPersistence().addRoles(pk, roles);
970 }
971
972 public static void clearRoles(long pk)
973 throws com.liferay.portal.kernel.exception.SystemException {
974 getPersistence().clearRoles(pk);
975 }
976
977 public static void removeRole(long pk, long rolePK)
978 throws com.liferay.portal.kernel.exception.SystemException {
979 getPersistence().removeRole(pk, rolePK);
980 }
981
982 public static void removeRole(long pk, com.liferay.portal.model.Role role)
983 throws com.liferay.portal.kernel.exception.SystemException {
984 getPersistence().removeRole(pk, role);
985 }
986
987 public static void removeRoles(long pk, long[] rolePKs)
988 throws com.liferay.portal.kernel.exception.SystemException {
989 getPersistence().removeRoles(pk, rolePKs);
990 }
991
992 public static void removeRoles(long pk,
993 java.util.List<com.liferay.portal.model.Role> roles)
994 throws com.liferay.portal.kernel.exception.SystemException {
995 getPersistence().removeRoles(pk, roles);
996 }
997
998 public static void setRoles(long pk, long[] rolePKs)
999 throws com.liferay.portal.kernel.exception.SystemException {
1000 getPersistence().setRoles(pk, rolePKs);
1001 }
1002
1003 public static void setRoles(long pk,
1004 java.util.List<com.liferay.portal.model.Role> roles)
1005 throws com.liferay.portal.kernel.exception.SystemException {
1006 getPersistence().setRoles(pk, roles);
1007 }
1008
1009 public static java.util.List<com.liferay.portal.model.Team> getTeams(
1010 long pk) throws com.liferay.portal.kernel.exception.SystemException {
1011 return getPersistence().getTeams(pk);
1012 }
1013
1014 public static java.util.List<com.liferay.portal.model.Team> getTeams(
1015 long pk, int start, int end)
1016 throws com.liferay.portal.kernel.exception.SystemException {
1017 return getPersistence().getTeams(pk, start, end);
1018 }
1019
1020 public static java.util.List<com.liferay.portal.model.Team> getTeams(
1021 long pk, int start, int end,
1022 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1023 throws com.liferay.portal.kernel.exception.SystemException {
1024 return getPersistence().getTeams(pk, start, end, orderByComparator);
1025 }
1026
1027 public static int getTeamsSize(long pk)
1028 throws com.liferay.portal.kernel.exception.SystemException {
1029 return getPersistence().getTeamsSize(pk);
1030 }
1031
1032 public static boolean containsTeam(long pk, long teamPK)
1033 throws com.liferay.portal.kernel.exception.SystemException {
1034 return getPersistence().containsTeam(pk, teamPK);
1035 }
1036
1037 public static boolean containsTeams(long pk)
1038 throws com.liferay.portal.kernel.exception.SystemException {
1039 return getPersistence().containsTeams(pk);
1040 }
1041
1042 public static void addTeam(long pk, long teamPK)
1043 throws com.liferay.portal.kernel.exception.SystemException {
1044 getPersistence().addTeam(pk, teamPK);
1045 }
1046
1047 public static void addTeam(long pk, com.liferay.portal.model.Team team)
1048 throws com.liferay.portal.kernel.exception.SystemException {
1049 getPersistence().addTeam(pk, team);
1050 }
1051
1052 public static void addTeams(long pk, long[] teamPKs)
1053 throws com.liferay.portal.kernel.exception.SystemException {
1054 getPersistence().addTeams(pk, teamPKs);
1055 }
1056
1057 public static void addTeams(long pk,
1058 java.util.List<com.liferay.portal.model.Team> teams)
1059 throws com.liferay.portal.kernel.exception.SystemException {
1060 getPersistence().addTeams(pk, teams);
1061 }
1062
1063 public static void clearTeams(long pk)
1064 throws com.liferay.portal.kernel.exception.SystemException {
1065 getPersistence().clearTeams(pk);
1066 }
1067
1068 public static void removeTeam(long pk, long teamPK)
1069 throws com.liferay.portal.kernel.exception.SystemException {
1070 getPersistence().removeTeam(pk, teamPK);
1071 }
1072
1073 public static void removeTeam(long pk, com.liferay.portal.model.Team team)
1074 throws com.liferay.portal.kernel.exception.SystemException {
1075 getPersistence().removeTeam(pk, team);
1076 }
1077
1078 public static void removeTeams(long pk, long[] teamPKs)
1079 throws com.liferay.portal.kernel.exception.SystemException {
1080 getPersistence().removeTeams(pk, teamPKs);
1081 }
1082
1083 public static void removeTeams(long pk,
1084 java.util.List<com.liferay.portal.model.Team> teams)
1085 throws com.liferay.portal.kernel.exception.SystemException {
1086 getPersistence().removeTeams(pk, teams);
1087 }
1088
1089 public static void setTeams(long pk, long[] teamPKs)
1090 throws com.liferay.portal.kernel.exception.SystemException {
1091 getPersistence().setTeams(pk, teamPKs);
1092 }
1093
1094 public static void setTeams(long pk,
1095 java.util.List<com.liferay.portal.model.Team> teams)
1096 throws com.liferay.portal.kernel.exception.SystemException {
1097 getPersistence().setTeams(pk, teams);
1098 }
1099
1100 public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
1101 long pk) throws com.liferay.portal.kernel.exception.SystemException {
1102 return getPersistence().getUserGroups(pk);
1103 }
1104
1105 public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
1106 long pk, int start, int end)
1107 throws com.liferay.portal.kernel.exception.SystemException {
1108 return getPersistence().getUserGroups(pk, start, end);
1109 }
1110
1111 public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
1112 long pk, int start, int end,
1113 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1114 throws com.liferay.portal.kernel.exception.SystemException {
1115 return getPersistence().getUserGroups(pk, start, end, orderByComparator);
1116 }
1117
1118 public static int getUserGroupsSize(long pk)
1119 throws com.liferay.portal.kernel.exception.SystemException {
1120 return getPersistence().getUserGroupsSize(pk);
1121 }
1122
1123 public static boolean containsUserGroup(long pk, long userGroupPK)
1124 throws com.liferay.portal.kernel.exception.SystemException {
1125 return getPersistence().containsUserGroup(pk, userGroupPK);
1126 }
1127
1128 public static boolean containsUserGroups(long pk)
1129 throws com.liferay.portal.kernel.exception.SystemException {
1130 return getPersistence().containsUserGroups(pk);
1131 }
1132
1133 public static void addUserGroup(long pk, long userGroupPK)
1134 throws com.liferay.portal.kernel.exception.SystemException {
1135 getPersistence().addUserGroup(pk, userGroupPK);
1136 }
1137
1138 public static void addUserGroup(long pk,
1139 com.liferay.portal.model.UserGroup userGroup)
1140 throws com.liferay.portal.kernel.exception.SystemException {
1141 getPersistence().addUserGroup(pk, userGroup);
1142 }
1143
1144 public static void addUserGroups(long pk, long[] userGroupPKs)
1145 throws com.liferay.portal.kernel.exception.SystemException {
1146 getPersistence().addUserGroups(pk, userGroupPKs);
1147 }
1148
1149 public static void addUserGroups(long pk,
1150 java.util.List<com.liferay.portal.model.UserGroup> userGroups)
1151 throws com.liferay.portal.kernel.exception.SystemException {
1152 getPersistence().addUserGroups(pk, userGroups);
1153 }
1154
1155 public static void clearUserGroups(long pk)
1156 throws com.liferay.portal.kernel.exception.SystemException {
1157 getPersistence().clearUserGroups(pk);
1158 }
1159
1160 public static void removeUserGroup(long pk, long userGroupPK)
1161 throws com.liferay.portal.kernel.exception.SystemException {
1162 getPersistence().removeUserGroup(pk, userGroupPK);
1163 }
1164
1165 public static void removeUserGroup(long pk,
1166 com.liferay.portal.model.UserGroup userGroup)
1167 throws com.liferay.portal.kernel.exception.SystemException {
1168 getPersistence().removeUserGroup(pk, userGroup);
1169 }
1170
1171 public static void removeUserGroups(long pk, long[] userGroupPKs)
1172 throws com.liferay.portal.kernel.exception.SystemException {
1173 getPersistence().removeUserGroups(pk, userGroupPKs);
1174 }
1175
1176 public static void removeUserGroups(long pk,
1177 java.util.List<com.liferay.portal.model.UserGroup> userGroups)
1178 throws com.liferay.portal.kernel.exception.SystemException {
1179 getPersistence().removeUserGroups(pk, userGroups);
1180 }
1181
1182 public static void setUserGroups(long pk, long[] userGroupPKs)
1183 throws com.liferay.portal.kernel.exception.SystemException {
1184 getPersistence().setUserGroups(pk, userGroupPKs);
1185 }
1186
1187 public static void setUserGroups(long pk,
1188 java.util.List<com.liferay.portal.model.UserGroup> userGroups)
1189 throws com.liferay.portal.kernel.exception.SystemException {
1190 getPersistence().setUserGroups(pk, userGroups);
1191 }
1192
1193 public static UserPersistence getPersistence() {
1194 if (_persistence == null) {
1195 _persistence = (UserPersistence)PortalBeanLocatorUtil.locate(UserPersistence.class.getName());
1196 }
1197
1198 return _persistence;
1199 }
1200
1201 public void setPersistence(UserPersistence persistence) {
1202 _persistence = persistence;
1203 }
1204
1205 private static UserPersistence _persistence;
1206 }