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