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