1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  /**
26   * <a href="UserUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class UserUtil {
32      public static com.liferay.portal.model.User create(long userId) {
33          return getPersistence().create(userId);
34      }
35  
36      public static com.liferay.portal.model.User remove(long userId)
37          throws com.liferay.portal.SystemException, 
38              com.liferay.portal.NoSuchUserException {
39          return getPersistence().remove(userId);
40      }
41  
42      public static com.liferay.portal.model.User remove(
43          com.liferay.portal.model.User user)
44          throws com.liferay.portal.SystemException {
45          return getPersistence().remove(user);
46      }
47  
48      public static com.liferay.portal.model.User update(
49          com.liferay.portal.model.User user)
50          throws com.liferay.portal.SystemException {
51          return getPersistence().update(user);
52      }
53  
54      public static com.liferay.portal.model.User update(
55          com.liferay.portal.model.User user, boolean merge)
56          throws com.liferay.portal.SystemException {
57          return getPersistence().update(user, merge);
58      }
59  
60      public static com.liferay.portal.model.User updateImpl(
61          com.liferay.portal.model.User user, boolean merge)
62          throws com.liferay.portal.SystemException {
63          return getPersistence().updateImpl(user, merge);
64      }
65  
66      public static com.liferay.portal.model.User findByPrimaryKey(long userId)
67          throws com.liferay.portal.SystemException, 
68              com.liferay.portal.NoSuchUserException {
69          return getPersistence().findByPrimaryKey(userId);
70      }
71  
72      public static com.liferay.portal.model.User fetchByPrimaryKey(long userId)
73          throws com.liferay.portal.SystemException {
74          return getPersistence().fetchByPrimaryKey(userId);
75      }
76  
77      public static java.util.List findByUuid(java.lang.String uuid)
78          throws com.liferay.portal.SystemException {
79          return getPersistence().findByUuid(uuid);
80      }
81  
82      public static java.util.List findByUuid(java.lang.String uuid, int begin,
83          int end) throws com.liferay.portal.SystemException {
84          return getPersistence().findByUuid(uuid, begin, end);
85      }
86  
87      public static java.util.List findByUuid(java.lang.String uuid, int begin,
88          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.SystemException {
90          return getPersistence().findByUuid(uuid, begin, end, obc);
91      }
92  
93      public static com.liferay.portal.model.User findByUuid_First(
94          java.lang.String uuid,
95          com.liferay.portal.kernel.util.OrderByComparator obc)
96          throws com.liferay.portal.SystemException, 
97              com.liferay.portal.NoSuchUserException {
98          return getPersistence().findByUuid_First(uuid, obc);
99      }
100 
101     public static com.liferay.portal.model.User findByUuid_Last(
102         java.lang.String uuid,
103         com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.SystemException, 
105             com.liferay.portal.NoSuchUserException {
106         return getPersistence().findByUuid_Last(uuid, obc);
107     }
108 
109     public static com.liferay.portal.model.User[] findByUuid_PrevAndNext(
110         long userId, java.lang.String uuid,
111         com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException, 
113             com.liferay.portal.NoSuchUserException {
114         return getPersistence().findByUuid_PrevAndNext(userId, uuid, obc);
115     }
116 
117     public static java.util.List findByCompanyId(long companyId)
118         throws com.liferay.portal.SystemException {
119         return getPersistence().findByCompanyId(companyId);
120     }
121 
122     public static java.util.List findByCompanyId(long companyId, int begin,
123         int end) throws com.liferay.portal.SystemException {
124         return getPersistence().findByCompanyId(companyId, begin, end);
125     }
126 
127     public static java.util.List findByCompanyId(long companyId, int begin,
128         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.SystemException {
130         return getPersistence().findByCompanyId(companyId, begin, end, obc);
131     }
132 
133     public static com.liferay.portal.model.User findByCompanyId_First(
134         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
135         throws com.liferay.portal.SystemException, 
136             com.liferay.portal.NoSuchUserException {
137         return getPersistence().findByCompanyId_First(companyId, obc);
138     }
139 
140     public static com.liferay.portal.model.User findByCompanyId_Last(
141         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.SystemException, 
143             com.liferay.portal.NoSuchUserException {
144         return getPersistence().findByCompanyId_Last(companyId, obc);
145     }
146 
147     public static com.liferay.portal.model.User[] findByCompanyId_PrevAndNext(
148         long userId, long companyId,
149         com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.SystemException, 
151             com.liferay.portal.NoSuchUserException {
152         return getPersistence().findByCompanyId_PrevAndNext(userId, companyId,
153             obc);
154     }
155 
156     public static com.liferay.portal.model.User findByContactId(long contactId)
157         throws com.liferay.portal.SystemException, 
158             com.liferay.portal.NoSuchUserException {
159         return getPersistence().findByContactId(contactId);
160     }
161 
162     public static com.liferay.portal.model.User fetchByContactId(long contactId)
163         throws com.liferay.portal.SystemException {
164         return getPersistence().fetchByContactId(contactId);
165     }
166 
167     public static com.liferay.portal.model.User findByPortraitId(
168         long portraitId)
169         throws com.liferay.portal.SystemException, 
170             com.liferay.portal.NoSuchUserException {
171         return getPersistence().findByPortraitId(portraitId);
172     }
173 
174     public static com.liferay.portal.model.User fetchByPortraitId(
175         long portraitId) throws com.liferay.portal.SystemException {
176         return getPersistence().fetchByPortraitId(portraitId);
177     }
178 
179     public static com.liferay.portal.model.User findByC_U(long companyId,
180         long userId)
181         throws com.liferay.portal.SystemException, 
182             com.liferay.portal.NoSuchUserException {
183         return getPersistence().findByC_U(companyId, userId);
184     }
185 
186     public static com.liferay.portal.model.User fetchByC_U(long companyId,
187         long userId) throws com.liferay.portal.SystemException {
188         return getPersistence().fetchByC_U(companyId, userId);
189     }
190 
191     public static com.liferay.portal.model.User findByC_DU(long companyId,
192         boolean defaultUser)
193         throws com.liferay.portal.SystemException, 
194             com.liferay.portal.NoSuchUserException {
195         return getPersistence().findByC_DU(companyId, defaultUser);
196     }
197 
198     public static com.liferay.portal.model.User fetchByC_DU(long companyId,
199         boolean defaultUser) throws com.liferay.portal.SystemException {
200         return getPersistence().fetchByC_DU(companyId, defaultUser);
201     }
202 
203     public static java.util.List findByC_P(long companyId,
204         java.lang.String password) throws com.liferay.portal.SystemException {
205         return getPersistence().findByC_P(companyId, password);
206     }
207 
208     public static java.util.List findByC_P(long companyId,
209         java.lang.String password, int begin, int end)
210         throws com.liferay.portal.SystemException {
211         return getPersistence().findByC_P(companyId, password, begin, end);
212     }
213 
214     public static java.util.List findByC_P(long companyId,
215         java.lang.String password, int begin, int end,
216         com.liferay.portal.kernel.util.OrderByComparator obc)
217         throws com.liferay.portal.SystemException {
218         return getPersistence().findByC_P(companyId, password, begin, end, obc);
219     }
220 
221     public static com.liferay.portal.model.User findByC_P_First(
222         long companyId, java.lang.String password,
223         com.liferay.portal.kernel.util.OrderByComparator obc)
224         throws com.liferay.portal.SystemException, 
225             com.liferay.portal.NoSuchUserException {
226         return getPersistence().findByC_P_First(companyId, password, obc);
227     }
228 
229     public static com.liferay.portal.model.User findByC_P_Last(long companyId,
230         java.lang.String password,
231         com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.SystemException, 
233             com.liferay.portal.NoSuchUserException {
234         return getPersistence().findByC_P_Last(companyId, password, obc);
235     }
236 
237     public static com.liferay.portal.model.User[] findByC_P_PrevAndNext(
238         long userId, long companyId, java.lang.String password,
239         com.liferay.portal.kernel.util.OrderByComparator obc)
240         throws com.liferay.portal.SystemException, 
241             com.liferay.portal.NoSuchUserException {
242         return getPersistence().findByC_P_PrevAndNext(userId, companyId,
243             password, obc);
244     }
245 
246     public static com.liferay.portal.model.User findByC_SN(long companyId,
247         java.lang.String screenName)
248         throws com.liferay.portal.SystemException, 
249             com.liferay.portal.NoSuchUserException {
250         return getPersistence().findByC_SN(companyId, screenName);
251     }
252 
253     public static com.liferay.portal.model.User fetchByC_SN(long companyId,
254         java.lang.String screenName) throws com.liferay.portal.SystemException {
255         return getPersistence().fetchByC_SN(companyId, screenName);
256     }
257 
258     public static com.liferay.portal.model.User findByC_EA(long companyId,
259         java.lang.String emailAddress)
260         throws com.liferay.portal.SystemException, 
261             com.liferay.portal.NoSuchUserException {
262         return getPersistence().findByC_EA(companyId, emailAddress);
263     }
264 
265     public static com.liferay.portal.model.User fetchByC_EA(long companyId,
266         java.lang.String emailAddress)
267         throws com.liferay.portal.SystemException {
268         return getPersistence().fetchByC_EA(companyId, emailAddress);
269     }
270 
271     public static java.util.List findWithDynamicQuery(
272         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
273         throws com.liferay.portal.SystemException {
274         return getPersistence().findWithDynamicQuery(queryInitializer);
275     }
276 
277     public static java.util.List findWithDynamicQuery(
278         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
279         int begin, int end) throws com.liferay.portal.SystemException {
280         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
281             end);
282     }
283 
284     public static java.util.List findAll()
285         throws com.liferay.portal.SystemException {
286         return getPersistence().findAll();
287     }
288 
289     public static java.util.List findAll(int begin, int end)
290         throws com.liferay.portal.SystemException {
291         return getPersistence().findAll(begin, end);
292     }
293 
294     public static java.util.List findAll(int begin, int end,
295         com.liferay.portal.kernel.util.OrderByComparator obc)
296         throws com.liferay.portal.SystemException {
297         return getPersistence().findAll(begin, end, obc);
298     }
299 
300     public static void removeByUuid(java.lang.String uuid)
301         throws com.liferay.portal.SystemException {
302         getPersistence().removeByUuid(uuid);
303     }
304 
305     public static void removeByCompanyId(long companyId)
306         throws com.liferay.portal.SystemException {
307         getPersistence().removeByCompanyId(companyId);
308     }
309 
310     public static void removeByContactId(long contactId)
311         throws com.liferay.portal.SystemException, 
312             com.liferay.portal.NoSuchUserException {
313         getPersistence().removeByContactId(contactId);
314     }
315 
316     public static void removeByPortraitId(long portraitId)
317         throws com.liferay.portal.SystemException, 
318             com.liferay.portal.NoSuchUserException {
319         getPersistence().removeByPortraitId(portraitId);
320     }
321 
322     public static void removeByC_U(long companyId, long userId)
323         throws com.liferay.portal.SystemException, 
324             com.liferay.portal.NoSuchUserException {
325         getPersistence().removeByC_U(companyId, userId);
326     }
327 
328     public static void removeByC_DU(long companyId, boolean defaultUser)
329         throws com.liferay.portal.SystemException, 
330             com.liferay.portal.NoSuchUserException {
331         getPersistence().removeByC_DU(companyId, defaultUser);
332     }
333 
334     public static void removeByC_P(long companyId, java.lang.String password)
335         throws com.liferay.portal.SystemException {
336         getPersistence().removeByC_P(companyId, password);
337     }
338 
339     public static void removeByC_SN(long companyId, java.lang.String screenName)
340         throws com.liferay.portal.SystemException, 
341             com.liferay.portal.NoSuchUserException {
342         getPersistence().removeByC_SN(companyId, screenName);
343     }
344 
345     public static void removeByC_EA(long companyId,
346         java.lang.String emailAddress)
347         throws com.liferay.portal.SystemException, 
348             com.liferay.portal.NoSuchUserException {
349         getPersistence().removeByC_EA(companyId, emailAddress);
350     }
351 
352     public static void removeAll() throws com.liferay.portal.SystemException {
353         getPersistence().removeAll();
354     }
355 
356     public static int countByUuid(java.lang.String uuid)
357         throws com.liferay.portal.SystemException {
358         return getPersistence().countByUuid(uuid);
359     }
360 
361     public static int countByCompanyId(long companyId)
362         throws com.liferay.portal.SystemException {
363         return getPersistence().countByCompanyId(companyId);
364     }
365 
366     public static int countByContactId(long contactId)
367         throws com.liferay.portal.SystemException {
368         return getPersistence().countByContactId(contactId);
369     }
370 
371     public static int countByPortraitId(long portraitId)
372         throws com.liferay.portal.SystemException {
373         return getPersistence().countByPortraitId(portraitId);
374     }
375 
376     public static int countByC_U(long companyId, long userId)
377         throws com.liferay.portal.SystemException {
378         return getPersistence().countByC_U(companyId, userId);
379     }
380 
381     public static int countByC_DU(long companyId, boolean defaultUser)
382         throws com.liferay.portal.SystemException {
383         return getPersistence().countByC_DU(companyId, defaultUser);
384     }
385 
386     public static int countByC_P(long companyId, java.lang.String password)
387         throws com.liferay.portal.SystemException {
388         return getPersistence().countByC_P(companyId, password);
389     }
390 
391     public static int countByC_SN(long companyId, java.lang.String screenName)
392         throws com.liferay.portal.SystemException {
393         return getPersistence().countByC_SN(companyId, screenName);
394     }
395 
396     public static int countByC_EA(long companyId, java.lang.String emailAddress)
397         throws com.liferay.portal.SystemException {
398         return getPersistence().countByC_EA(companyId, emailAddress);
399     }
400 
401     public static int countAll() throws com.liferay.portal.SystemException {
402         return getPersistence().countAll();
403     }
404 
405     public static java.util.List getGroups(long pk)
406         throws com.liferay.portal.SystemException, 
407             com.liferay.portal.NoSuchUserException {
408         return getPersistence().getGroups(pk);
409     }
410 
411     public static java.util.List getGroups(long pk, int begin, int end)
412         throws com.liferay.portal.SystemException, 
413             com.liferay.portal.NoSuchUserException {
414         return getPersistence().getGroups(pk, begin, end);
415     }
416 
417     public static java.util.List getGroups(long pk, int begin, int end,
418         com.liferay.portal.kernel.util.OrderByComparator obc)
419         throws com.liferay.portal.SystemException, 
420             com.liferay.portal.NoSuchUserException {
421         return getPersistence().getGroups(pk, begin, end, obc);
422     }
423 
424     public static int getGroupsSize(long pk)
425         throws com.liferay.portal.SystemException {
426         return getPersistence().getGroupsSize(pk);
427     }
428 
429     public static boolean containsGroup(long pk, long groupPK)
430         throws com.liferay.portal.SystemException {
431         return getPersistence().containsGroup(pk, groupPK);
432     }
433 
434     public static boolean containsGroups(long pk)
435         throws com.liferay.portal.SystemException {
436         return getPersistence().containsGroups(pk);
437     }
438 
439     public static void addGroup(long pk, long groupPK)
440         throws com.liferay.portal.SystemException, 
441             com.liferay.portal.NoSuchGroupException, 
442             com.liferay.portal.NoSuchUserException {
443         getPersistence().addGroup(pk, groupPK);
444     }
445 
446     public static void addGroup(long pk, com.liferay.portal.model.Group group)
447         throws com.liferay.portal.SystemException, 
448             com.liferay.portal.NoSuchGroupException, 
449             com.liferay.portal.NoSuchUserException {
450         getPersistence().addGroup(pk, group);
451     }
452 
453     public static void addGroups(long pk, long[] groupPKs)
454         throws com.liferay.portal.SystemException, 
455             com.liferay.portal.NoSuchGroupException, 
456             com.liferay.portal.NoSuchUserException {
457         getPersistence().addGroups(pk, groupPKs);
458     }
459 
460     public static void addGroups(long pk, java.util.List groups)
461         throws com.liferay.portal.SystemException, 
462             com.liferay.portal.NoSuchGroupException, 
463             com.liferay.portal.NoSuchUserException {
464         getPersistence().addGroups(pk, groups);
465     }
466 
467     public static void clearGroups(long pk)
468         throws com.liferay.portal.SystemException, 
469             com.liferay.portal.NoSuchUserException {
470         getPersistence().clearGroups(pk);
471     }
472 
473     public static void removeGroup(long pk, long groupPK)
474         throws com.liferay.portal.SystemException, 
475             com.liferay.portal.NoSuchGroupException, 
476             com.liferay.portal.NoSuchUserException {
477         getPersistence().removeGroup(pk, groupPK);
478     }
479 
480     public static void removeGroup(long pk, com.liferay.portal.model.Group group)
481         throws com.liferay.portal.SystemException, 
482             com.liferay.portal.NoSuchGroupException, 
483             com.liferay.portal.NoSuchUserException {
484         getPersistence().removeGroup(pk, group);
485     }
486 
487     public static void removeGroups(long pk, long[] groupPKs)
488         throws com.liferay.portal.SystemException, 
489             com.liferay.portal.NoSuchGroupException, 
490             com.liferay.portal.NoSuchUserException {
491         getPersistence().removeGroups(pk, groupPKs);
492     }
493 
494     public static void removeGroups(long pk, java.util.List groups)
495         throws com.liferay.portal.SystemException, 
496             com.liferay.portal.NoSuchGroupException, 
497             com.liferay.portal.NoSuchUserException {
498         getPersistence().removeGroups(pk, groups);
499     }
500 
501     public static void setGroups(long pk, long[] groupPKs)
502         throws com.liferay.portal.SystemException, 
503             com.liferay.portal.NoSuchGroupException, 
504             com.liferay.portal.NoSuchUserException {
505         getPersistence().setGroups(pk, groupPKs);
506     }
507 
508     public static void setGroups(long pk, java.util.List groups)
509         throws com.liferay.portal.SystemException, 
510             com.liferay.portal.NoSuchGroupException, 
511             com.liferay.portal.NoSuchUserException {
512         getPersistence().setGroups(pk, groups);
513     }
514 
515     public static java.util.List getOrganizations(long pk)
516         throws com.liferay.portal.SystemException, 
517             com.liferay.portal.NoSuchUserException {
518         return getPersistence().getOrganizations(pk);
519     }
520 
521     public static java.util.List getOrganizations(long pk, int begin, int end)
522         throws com.liferay.portal.SystemException, 
523             com.liferay.portal.NoSuchUserException {
524         return getPersistence().getOrganizations(pk, begin, end);
525     }
526 
527     public static java.util.List getOrganizations(long pk, int begin, int end,
528         com.liferay.portal.kernel.util.OrderByComparator obc)
529         throws com.liferay.portal.SystemException, 
530             com.liferay.portal.NoSuchUserException {
531         return getPersistence().getOrganizations(pk, begin, end, obc);
532     }
533 
534     public static int getOrganizationsSize(long pk)
535         throws com.liferay.portal.SystemException {
536         return getPersistence().getOrganizationsSize(pk);
537     }
538 
539     public static boolean containsOrganization(long pk, long organizationPK)
540         throws com.liferay.portal.SystemException {
541         return getPersistence().containsOrganization(pk, organizationPK);
542     }
543 
544     public static boolean containsOrganizations(long pk)
545         throws com.liferay.portal.SystemException {
546         return getPersistence().containsOrganizations(pk);
547     }
548 
549     public static void addOrganization(long pk, long organizationPK)
550         throws com.liferay.portal.SystemException, 
551             com.liferay.portal.NoSuchOrganizationException, 
552             com.liferay.portal.NoSuchUserException {
553         getPersistence().addOrganization(pk, organizationPK);
554     }
555 
556     public static void addOrganization(long pk,
557         com.liferay.portal.model.Organization organization)
558         throws com.liferay.portal.SystemException, 
559             com.liferay.portal.NoSuchOrganizationException, 
560             com.liferay.portal.NoSuchUserException {
561         getPersistence().addOrganization(pk, organization);
562     }
563 
564     public static void addOrganizations(long pk, long[] organizationPKs)
565         throws com.liferay.portal.SystemException, 
566             com.liferay.portal.NoSuchOrganizationException, 
567             com.liferay.portal.NoSuchUserException {
568         getPersistence().addOrganizations(pk, organizationPKs);
569     }
570 
571     public static void addOrganizations(long pk, java.util.List organizations)
572         throws com.liferay.portal.SystemException, 
573             com.liferay.portal.NoSuchOrganizationException, 
574             com.liferay.portal.NoSuchUserException {
575         getPersistence().addOrganizations(pk, organizations);
576     }
577 
578     public static void clearOrganizations(long pk)
579         throws com.liferay.portal.SystemException, 
580             com.liferay.portal.NoSuchUserException {
581         getPersistence().clearOrganizations(pk);
582     }
583 
584     public static void removeOrganization(long pk, long organizationPK)
585         throws com.liferay.portal.SystemException, 
586             com.liferay.portal.NoSuchOrganizationException, 
587             com.liferay.portal.NoSuchUserException {
588         getPersistence().removeOrganization(pk, organizationPK);
589     }
590 
591     public static void removeOrganization(long pk,
592         com.liferay.portal.model.Organization organization)
593         throws com.liferay.portal.SystemException, 
594             com.liferay.portal.NoSuchOrganizationException, 
595             com.liferay.portal.NoSuchUserException {
596         getPersistence().removeOrganization(pk, organization);
597     }
598 
599     public static void removeOrganizations(long pk, long[] organizationPKs)
600         throws com.liferay.portal.SystemException, 
601             com.liferay.portal.NoSuchOrganizationException, 
602             com.liferay.portal.NoSuchUserException {
603         getPersistence().removeOrganizations(pk, organizationPKs);
604     }
605 
606     public static void removeOrganizations(long pk, java.util.List organizations)
607         throws com.liferay.portal.SystemException, 
608             com.liferay.portal.NoSuchOrganizationException, 
609             com.liferay.portal.NoSuchUserException {
610         getPersistence().removeOrganizations(pk, organizations);
611     }
612 
613     public static void setOrganizations(long pk, long[] organizationPKs)
614         throws com.liferay.portal.SystemException, 
615             com.liferay.portal.NoSuchOrganizationException, 
616             com.liferay.portal.NoSuchUserException {
617         getPersistence().setOrganizations(pk, organizationPKs);
618     }
619 
620     public static void setOrganizations(long pk, java.util.List organizations)
621         throws com.liferay.portal.SystemException, 
622             com.liferay.portal.NoSuchOrganizationException, 
623             com.liferay.portal.NoSuchUserException {
624         getPersistence().setOrganizations(pk, organizations);
625     }
626 
627     public static java.util.List getPermissions(long pk)
628         throws com.liferay.portal.SystemException, 
629             com.liferay.portal.NoSuchUserException {
630         return getPersistence().getPermissions(pk);
631     }
632 
633     public static java.util.List getPermissions(long pk, int begin, int end)
634         throws com.liferay.portal.SystemException, 
635             com.liferay.portal.NoSuchUserException {
636         return getPersistence().getPermissions(pk, begin, end);
637     }
638 
639     public static java.util.List getPermissions(long pk, int begin, int end,
640         com.liferay.portal.kernel.util.OrderByComparator obc)
641         throws com.liferay.portal.SystemException, 
642             com.liferay.portal.NoSuchUserException {
643         return getPersistence().getPermissions(pk, begin, end, obc);
644     }
645 
646     public static int getPermissionsSize(long pk)
647         throws com.liferay.portal.SystemException {
648         return getPersistence().getPermissionsSize(pk);
649     }
650 
651     public static boolean containsPermission(long pk, long permissionPK)
652         throws com.liferay.portal.SystemException {
653         return getPersistence().containsPermission(pk, permissionPK);
654     }
655 
656     public static boolean containsPermissions(long pk)
657         throws com.liferay.portal.SystemException {
658         return getPersistence().containsPermissions(pk);
659     }
660 
661     public static void addPermission(long pk, long permissionPK)
662         throws com.liferay.portal.SystemException, 
663             com.liferay.portal.NoSuchPermissionException, 
664             com.liferay.portal.NoSuchUserException {
665         getPersistence().addPermission(pk, permissionPK);
666     }
667 
668     public static void addPermission(long pk,
669         com.liferay.portal.model.Permission permission)
670         throws com.liferay.portal.SystemException, 
671             com.liferay.portal.NoSuchPermissionException, 
672             com.liferay.portal.NoSuchUserException {
673         getPersistence().addPermission(pk, permission);
674     }
675 
676     public static void addPermissions(long pk, long[] permissionPKs)
677         throws com.liferay.portal.SystemException, 
678             com.liferay.portal.NoSuchPermissionException, 
679             com.liferay.portal.NoSuchUserException {
680         getPersistence().addPermissions(pk, permissionPKs);
681     }
682 
683     public static void addPermissions(long pk, java.util.List permissions)
684         throws com.liferay.portal.SystemException, 
685             com.liferay.portal.NoSuchPermissionException, 
686             com.liferay.portal.NoSuchUserException {
687         getPersistence().addPermissions(pk, permissions);
688     }
689 
690     public static void clearPermissions(long pk)
691         throws com.liferay.portal.SystemException, 
692             com.liferay.portal.NoSuchUserException {
693         getPersistence().clearPermissions(pk);
694     }
695 
696     public static void removePermission(long pk, long permissionPK)
697         throws com.liferay.portal.SystemException, 
698             com.liferay.portal.NoSuchPermissionException, 
699             com.liferay.portal.NoSuchUserException {
700         getPersistence().removePermission(pk, permissionPK);
701     }
702 
703     public static void removePermission(long pk,
704         com.liferay.portal.model.Permission permission)
705         throws com.liferay.portal.SystemException, 
706             com.liferay.portal.NoSuchPermissionException, 
707             com.liferay.portal.NoSuchUserException {
708         getPersistence().removePermission(pk, permission);
709     }
710 
711     public static void removePermissions(long pk, long[] permissionPKs)
712         throws com.liferay.portal.SystemException, 
713             com.liferay.portal.NoSuchPermissionException, 
714             com.liferay.portal.NoSuchUserException {
715         getPersistence().removePermissions(pk, permissionPKs);
716     }
717 
718     public static void removePermissions(long pk, java.util.List permissions)
719         throws com.liferay.portal.SystemException, 
720             com.liferay.portal.NoSuchPermissionException, 
721             com.liferay.portal.NoSuchUserException {
722         getPersistence().removePermissions(pk, permissions);
723     }
724 
725     public static void setPermissions(long pk, long[] permissionPKs)
726         throws com.liferay.portal.SystemException, 
727             com.liferay.portal.NoSuchPermissionException, 
728             com.liferay.portal.NoSuchUserException {
729         getPersistence().setPermissions(pk, permissionPKs);
730     }
731 
732     public static void setPermissions(long pk, java.util.List permissions)
733         throws com.liferay.portal.SystemException, 
734             com.liferay.portal.NoSuchPermissionException, 
735             com.liferay.portal.NoSuchUserException {
736         getPersistence().setPermissions(pk, permissions);
737     }
738 
739     public static java.util.List getRoles(long pk)
740         throws com.liferay.portal.SystemException, 
741             com.liferay.portal.NoSuchUserException {
742         return getPersistence().getRoles(pk);
743     }
744 
745     public static java.util.List getRoles(long pk, int begin, int end)
746         throws com.liferay.portal.SystemException, 
747             com.liferay.portal.NoSuchUserException {
748         return getPersistence().getRoles(pk, begin, end);
749     }
750 
751     public static java.util.List getRoles(long pk, int begin, int end,
752         com.liferay.portal.kernel.util.OrderByComparator obc)
753         throws com.liferay.portal.SystemException, 
754             com.liferay.portal.NoSuchUserException {
755         return getPersistence().getRoles(pk, begin, end, obc);
756     }
757 
758     public static int getRolesSize(long pk)
759         throws com.liferay.portal.SystemException {
760         return getPersistence().getRolesSize(pk);
761     }
762 
763     public static boolean containsRole(long pk, long rolePK)
764         throws com.liferay.portal.SystemException {
765         return getPersistence().containsRole(pk, rolePK);
766     }
767 
768     public static boolean containsRoles(long pk)
769         throws com.liferay.portal.SystemException {
770         return getPersistence().containsRoles(pk);
771     }
772 
773     public static void addRole(long pk, long rolePK)
774         throws com.liferay.portal.SystemException, 
775             com.liferay.portal.NoSuchRoleException, 
776             com.liferay.portal.NoSuchUserException {
777         getPersistence().addRole(pk, rolePK);
778     }
779 
780     public static void addRole(long pk, com.liferay.portal.model.Role role)
781         throws com.liferay.portal.SystemException, 
782             com.liferay.portal.NoSuchRoleException, 
783             com.liferay.portal.NoSuchUserException {
784         getPersistence().addRole(pk, role);
785     }
786 
787     public static void addRoles(long pk, long[] rolePKs)
788         throws com.liferay.portal.SystemException, 
789             com.liferay.portal.NoSuchRoleException, 
790             com.liferay.portal.NoSuchUserException {
791         getPersistence().addRoles(pk, rolePKs);
792     }
793 
794     public static void addRoles(long pk, java.util.List roles)
795         throws com.liferay.portal.SystemException, 
796             com.liferay.portal.NoSuchRoleException, 
797             com.liferay.portal.NoSuchUserException {
798         getPersistence().addRoles(pk, roles);
799     }
800 
801     public static void clearRoles(long pk)
802         throws com.liferay.portal.SystemException, 
803             com.liferay.portal.NoSuchUserException {
804         getPersistence().clearRoles(pk);
805     }
806 
807     public static void removeRole(long pk, long rolePK)
808         throws com.liferay.portal.SystemException, 
809             com.liferay.portal.NoSuchRoleException, 
810             com.liferay.portal.NoSuchUserException {
811         getPersistence().removeRole(pk, rolePK);
812     }
813 
814     public static void removeRole(long pk, com.liferay.portal.model.Role role)
815         throws com.liferay.portal.SystemException, 
816             com.liferay.portal.NoSuchRoleException, 
817             com.liferay.portal.NoSuchUserException {
818         getPersistence().removeRole(pk, role);
819     }
820 
821     public static void removeRoles(long pk, long[] rolePKs)
822         throws com.liferay.portal.SystemException, 
823             com.liferay.portal.NoSuchRoleException, 
824             com.liferay.portal.NoSuchUserException {
825         getPersistence().removeRoles(pk, rolePKs);
826     }
827 
828     public static void removeRoles(long pk, java.util.List roles)
829         throws com.liferay.portal.SystemException, 
830             com.liferay.portal.NoSuchRoleException, 
831             com.liferay.portal.NoSuchUserException {
832         getPersistence().removeRoles(pk, roles);
833     }
834 
835     public static void setRoles(long pk, long[] rolePKs)
836         throws com.liferay.portal.SystemException, 
837             com.liferay.portal.NoSuchRoleException, 
838             com.liferay.portal.NoSuchUserException {
839         getPersistence().setRoles(pk, rolePKs);
840     }
841 
842     public static void setRoles(long pk, java.util.List roles)
843         throws com.liferay.portal.SystemException, 
844             com.liferay.portal.NoSuchRoleException, 
845             com.liferay.portal.NoSuchUserException {
846         getPersistence().setRoles(pk, roles);
847     }
848 
849     public static java.util.List getUserGroups(long pk)
850         throws com.liferay.portal.SystemException, 
851             com.liferay.portal.NoSuchUserException {
852         return getPersistence().getUserGroups(pk);
853     }
854 
855     public static java.util.List getUserGroups(long pk, int begin, int end)
856         throws com.liferay.portal.SystemException, 
857             com.liferay.portal.NoSuchUserException {
858         return getPersistence().getUserGroups(pk, begin, end);
859     }
860 
861     public static java.util.List getUserGroups(long pk, int begin, int end,
862         com.liferay.portal.kernel.util.OrderByComparator obc)
863         throws com.liferay.portal.SystemException, 
864             com.liferay.portal.NoSuchUserException {
865         return getPersistence().getUserGroups(pk, begin, end, obc);
866     }
867 
868     public static int getUserGroupsSize(long pk)
869         throws com.liferay.portal.SystemException {
870         return getPersistence().getUserGroupsSize(pk);
871     }
872 
873     public static boolean containsUserGroup(long pk, long userGroupPK)
874         throws com.liferay.portal.SystemException {
875         return getPersistence().containsUserGroup(pk, userGroupPK);
876     }
877 
878     public static boolean containsUserGroups(long pk)
879         throws com.liferay.portal.SystemException {
880         return getPersistence().containsUserGroups(pk);
881     }
882 
883     public static void addUserGroup(long pk, long userGroupPK)
884         throws com.liferay.portal.SystemException, 
885             com.liferay.portal.NoSuchUserException, 
886             com.liferay.portal.NoSuchUserGroupException {
887         getPersistence().addUserGroup(pk, userGroupPK);
888     }
889 
890     public static void addUserGroup(long pk,
891         com.liferay.portal.model.UserGroup userGroup)
892         throws com.liferay.portal.SystemException, 
893             com.liferay.portal.NoSuchUserException, 
894             com.liferay.portal.NoSuchUserGroupException {
895         getPersistence().addUserGroup(pk, userGroup);
896     }
897 
898     public static void addUserGroups(long pk, long[] userGroupPKs)
899         throws com.liferay.portal.SystemException, 
900             com.liferay.portal.NoSuchUserException, 
901             com.liferay.portal.NoSuchUserGroupException {
902         getPersistence().addUserGroups(pk, userGroupPKs);
903     }
904 
905     public static void addUserGroups(long pk, java.util.List userGroups)
906         throws com.liferay.portal.SystemException, 
907             com.liferay.portal.NoSuchUserException, 
908             com.liferay.portal.NoSuchUserGroupException {
909         getPersistence().addUserGroups(pk, userGroups);
910     }
911 
912     public static void clearUserGroups(long pk)
913         throws com.liferay.portal.SystemException, 
914             com.liferay.portal.NoSuchUserException {
915         getPersistence().clearUserGroups(pk);
916     }
917 
918     public static void removeUserGroup(long pk, long userGroupPK)
919         throws com.liferay.portal.SystemException, 
920             com.liferay.portal.NoSuchUserException, 
921             com.liferay.portal.NoSuchUserGroupException {
922         getPersistence().removeUserGroup(pk, userGroupPK);
923     }
924 
925     public static void removeUserGroup(long pk,
926         com.liferay.portal.model.UserGroup userGroup)
927         throws com.liferay.portal.SystemException, 
928             com.liferay.portal.NoSuchUserException, 
929             com.liferay.portal.NoSuchUserGroupException {
930         getPersistence().removeUserGroup(pk, userGroup);
931     }
932 
933     public static void removeUserGroups(long pk, long[] userGroupPKs)
934         throws com.liferay.portal.SystemException, 
935             com.liferay.portal.NoSuchUserException, 
936             com.liferay.portal.NoSuchUserGroupException {
937         getPersistence().removeUserGroups(pk, userGroupPKs);
938     }
939 
940     public static void removeUserGroups(long pk, java.util.List userGroups)
941         throws com.liferay.portal.SystemException, 
942             com.liferay.portal.NoSuchUserException, 
943             com.liferay.portal.NoSuchUserGroupException {
944         getPersistence().removeUserGroups(pk, userGroups);
945     }
946 
947     public static void setUserGroups(long pk, long[] userGroupPKs)
948         throws com.liferay.portal.SystemException, 
949             com.liferay.portal.NoSuchUserException, 
950             com.liferay.portal.NoSuchUserGroupException {
951         getPersistence().setUserGroups(pk, userGroupPKs);
952     }
953 
954     public static void setUserGroups(long pk, java.util.List userGroups)
955         throws com.liferay.portal.SystemException, 
956             com.liferay.portal.NoSuchUserException, 
957             com.liferay.portal.NoSuchUserGroupException {
958         getPersistence().setUserGroups(pk, userGroups);
959     }
960 
961     public static UserPersistence getPersistence() {
962         return _getUtil()._persistence;
963     }
964 
965     public void setPersistence(UserPersistence persistence) {
966         _persistence = persistence;
967     }
968 
969     private static UserUtil _getUtil() {
970         if (_util == null) {
971             _util = (UserUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
972         }
973 
974         return _util;
975     }
976 
977     private static final String _UTIL = UserUtil.class.getName();
978     private static UserUtil _util;
979     private UserPersistence _persistence;
980 }