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