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