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