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 com.liferay.portal.model.User findByC_SN(long companyId,
280         java.lang.String screenName)
281         throws com.liferay.portal.NoSuchUserException,
282             com.liferay.portal.SystemException {
283         return getPersistence().findByC_SN(companyId, screenName);
284     }
285 
286     public static com.liferay.portal.model.User fetchByC_SN(long companyId,
287         java.lang.String screenName) throws com.liferay.portal.SystemException {
288         return getPersistence().fetchByC_SN(companyId, screenName);
289     }
290 
291     public static com.liferay.portal.model.User findByC_EA(long companyId,
292         java.lang.String emailAddress)
293         throws com.liferay.portal.NoSuchUserException,
294             com.liferay.portal.SystemException {
295         return getPersistence().findByC_EA(companyId, emailAddress);
296     }
297 
298     public static com.liferay.portal.model.User fetchByC_EA(long companyId,
299         java.lang.String emailAddress)
300         throws com.liferay.portal.SystemException {
301         return getPersistence().fetchByC_EA(companyId, emailAddress);
302     }
303 
304     public static java.util.List<Object> findWithDynamicQuery(
305         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
306         throws com.liferay.portal.SystemException {
307         return getPersistence().findWithDynamicQuery(dynamicQuery);
308     }
309 
310     public static java.util.List<Object> findWithDynamicQuery(
311         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
312         int end) throws com.liferay.portal.SystemException {
313         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
314     }
315 
316     public static java.util.List<com.liferay.portal.model.User> findAll()
317         throws com.liferay.portal.SystemException {
318         return getPersistence().findAll();
319     }
320 
321     public static java.util.List<com.liferay.portal.model.User> findAll(
322         int start, int end) throws com.liferay.portal.SystemException {
323         return getPersistence().findAll(start, end);
324     }
325 
326     public static java.util.List<com.liferay.portal.model.User> findAll(
327         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
328         throws com.liferay.portal.SystemException {
329         return getPersistence().findAll(start, end, obc);
330     }
331 
332     public static void removeByUuid(java.lang.String uuid)
333         throws com.liferay.portal.SystemException {
334         getPersistence().removeByUuid(uuid);
335     }
336 
337     public static void removeByCompanyId(long companyId)
338         throws com.liferay.portal.SystemException {
339         getPersistence().removeByCompanyId(companyId);
340     }
341 
342     public static void removeByContactId(long contactId)
343         throws com.liferay.portal.NoSuchUserException,
344             com.liferay.portal.SystemException {
345         getPersistence().removeByContactId(contactId);
346     }
347 
348     public static void removeByEmailAddress(java.lang.String emailAddress)
349         throws com.liferay.portal.SystemException {
350         getPersistence().removeByEmailAddress(emailAddress);
351     }
352 
353     public static void removeByOpenId(java.lang.String openId)
354         throws com.liferay.portal.NoSuchUserException,
355             com.liferay.portal.SystemException {
356         getPersistence().removeByOpenId(openId);
357     }
358 
359     public static void removeByPortraitId(long portraitId)
360         throws com.liferay.portal.NoSuchUserException,
361             com.liferay.portal.SystemException {
362         getPersistence().removeByPortraitId(portraitId);
363     }
364 
365     public static void removeByC_U(long companyId, long userId)
366         throws com.liferay.portal.NoSuchUserException,
367             com.liferay.portal.SystemException {
368         getPersistence().removeByC_U(companyId, userId);
369     }
370 
371     public static void removeByC_DU(long companyId, boolean defaultUser)
372         throws com.liferay.portal.NoSuchUserException,
373             com.liferay.portal.SystemException {
374         getPersistence().removeByC_DU(companyId, defaultUser);
375     }
376 
377     public static void removeByC_SN(long companyId, java.lang.String screenName)
378         throws com.liferay.portal.NoSuchUserException,
379             com.liferay.portal.SystemException {
380         getPersistence().removeByC_SN(companyId, screenName);
381     }
382 
383     public static void removeByC_EA(long companyId,
384         java.lang.String emailAddress)
385         throws com.liferay.portal.NoSuchUserException,
386             com.liferay.portal.SystemException {
387         getPersistence().removeByC_EA(companyId, emailAddress);
388     }
389 
390     public static void removeAll() throws com.liferay.portal.SystemException {
391         getPersistence().removeAll();
392     }
393 
394     public static int countByUuid(java.lang.String uuid)
395         throws com.liferay.portal.SystemException {
396         return getPersistence().countByUuid(uuid);
397     }
398 
399     public static int countByCompanyId(long companyId)
400         throws com.liferay.portal.SystemException {
401         return getPersistence().countByCompanyId(companyId);
402     }
403 
404     public static int countByContactId(long contactId)
405         throws com.liferay.portal.SystemException {
406         return getPersistence().countByContactId(contactId);
407     }
408 
409     public static int countByEmailAddress(java.lang.String emailAddress)
410         throws com.liferay.portal.SystemException {
411         return getPersistence().countByEmailAddress(emailAddress);
412     }
413 
414     public static int countByOpenId(java.lang.String openId)
415         throws com.liferay.portal.SystemException {
416         return getPersistence().countByOpenId(openId);
417     }
418 
419     public static int countByPortraitId(long portraitId)
420         throws com.liferay.portal.SystemException {
421         return getPersistence().countByPortraitId(portraitId);
422     }
423 
424     public static int countByC_U(long companyId, long userId)
425         throws com.liferay.portal.SystemException {
426         return getPersistence().countByC_U(companyId, userId);
427     }
428 
429     public static int countByC_DU(long companyId, boolean defaultUser)
430         throws com.liferay.portal.SystemException {
431         return getPersistence().countByC_DU(companyId, defaultUser);
432     }
433 
434     public static int countByC_SN(long companyId, java.lang.String screenName)
435         throws com.liferay.portal.SystemException {
436         return getPersistence().countByC_SN(companyId, screenName);
437     }
438 
439     public static int countByC_EA(long companyId, java.lang.String emailAddress)
440         throws com.liferay.portal.SystemException {
441         return getPersistence().countByC_EA(companyId, emailAddress);
442     }
443 
444     public static int countAll() throws com.liferay.portal.SystemException {
445         return getPersistence().countAll();
446     }
447 
448     public static java.util.List<com.liferay.portal.model.Group> getGroups(
449         long pk) throws com.liferay.portal.SystemException {
450         return getPersistence().getGroups(pk);
451     }
452 
453     public static java.util.List<com.liferay.portal.model.Group> getGroups(
454         long pk, int start, int end) throws com.liferay.portal.SystemException {
455         return getPersistence().getGroups(pk, start, end);
456     }
457 
458     public static java.util.List<com.liferay.portal.model.Group> getGroups(
459         long pk, int start, int end,
460         com.liferay.portal.kernel.util.OrderByComparator obc)
461         throws com.liferay.portal.SystemException {
462         return getPersistence().getGroups(pk, start, end, obc);
463     }
464 
465     public static int getGroupsSize(long pk)
466         throws com.liferay.portal.SystemException {
467         return getPersistence().getGroupsSize(pk);
468     }
469 
470     public static boolean containsGroup(long pk, long groupPK)
471         throws com.liferay.portal.SystemException {
472         return getPersistence().containsGroup(pk, groupPK);
473     }
474 
475     public static boolean containsGroups(long pk)
476         throws com.liferay.portal.SystemException {
477         return getPersistence().containsGroups(pk);
478     }
479 
480     public static void addGroup(long pk, long groupPK)
481         throws com.liferay.portal.SystemException {
482         getPersistence().addGroup(pk, groupPK);
483     }
484 
485     public static void addGroup(long pk, com.liferay.portal.model.Group group)
486         throws com.liferay.portal.SystemException {
487         getPersistence().addGroup(pk, group);
488     }
489 
490     public static void addGroups(long pk, long[] groupPKs)
491         throws com.liferay.portal.SystemException {
492         getPersistence().addGroups(pk, groupPKs);
493     }
494 
495     public static void addGroups(long pk,
496         java.util.List<com.liferay.portal.model.Group> groups)
497         throws com.liferay.portal.SystemException {
498         getPersistence().addGroups(pk, groups);
499     }
500 
501     public static void clearGroups(long pk)
502         throws com.liferay.portal.SystemException {
503         getPersistence().clearGroups(pk);
504     }
505 
506     public static void removeGroup(long pk, long groupPK)
507         throws com.liferay.portal.SystemException {
508         getPersistence().removeGroup(pk, groupPK);
509     }
510 
511     public static void removeGroup(long pk, com.liferay.portal.model.Group group)
512         throws com.liferay.portal.SystemException {
513         getPersistence().removeGroup(pk, group);
514     }
515 
516     public static void removeGroups(long pk, long[] groupPKs)
517         throws com.liferay.portal.SystemException {
518         getPersistence().removeGroups(pk, groupPKs);
519     }
520 
521     public static void removeGroups(long pk,
522         java.util.List<com.liferay.portal.model.Group> groups)
523         throws com.liferay.portal.SystemException {
524         getPersistence().removeGroups(pk, groups);
525     }
526 
527     public static void setGroups(long pk, long[] groupPKs)
528         throws com.liferay.portal.SystemException {
529         getPersistence().setGroups(pk, groupPKs);
530     }
531 
532     public static void setGroups(long pk,
533         java.util.List<com.liferay.portal.model.Group> groups)
534         throws com.liferay.portal.SystemException {
535         getPersistence().setGroups(pk, groups);
536     }
537 
538     public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
539         long pk) throws com.liferay.portal.SystemException {
540         return getPersistence().getOrganizations(pk);
541     }
542 
543     public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
544         long pk, int start, int end) throws com.liferay.portal.SystemException {
545         return getPersistence().getOrganizations(pk, start, end);
546     }
547 
548     public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
549         long pk, int start, int end,
550         com.liferay.portal.kernel.util.OrderByComparator obc)
551         throws com.liferay.portal.SystemException {
552         return getPersistence().getOrganizations(pk, start, end, obc);
553     }
554 
555     public static int getOrganizationsSize(long pk)
556         throws com.liferay.portal.SystemException {
557         return getPersistence().getOrganizationsSize(pk);
558     }
559 
560     public static boolean containsOrganization(long pk, long organizationPK)
561         throws com.liferay.portal.SystemException {
562         return getPersistence().containsOrganization(pk, organizationPK);
563     }
564 
565     public static boolean containsOrganizations(long pk)
566         throws com.liferay.portal.SystemException {
567         return getPersistence().containsOrganizations(pk);
568     }
569 
570     public static void addOrganization(long pk, long organizationPK)
571         throws com.liferay.portal.SystemException {
572         getPersistence().addOrganization(pk, organizationPK);
573     }
574 
575     public static void addOrganization(long pk,
576         com.liferay.portal.model.Organization organization)
577         throws com.liferay.portal.SystemException {
578         getPersistence().addOrganization(pk, organization);
579     }
580 
581     public static void addOrganizations(long pk, long[] organizationPKs)
582         throws com.liferay.portal.SystemException {
583         getPersistence().addOrganizations(pk, organizationPKs);
584     }
585 
586     public static void addOrganizations(long pk,
587         java.util.List<com.liferay.portal.model.Organization> organizations)
588         throws com.liferay.portal.SystemException {
589         getPersistence().addOrganizations(pk, organizations);
590     }
591 
592     public static void clearOrganizations(long pk)
593         throws com.liferay.portal.SystemException {
594         getPersistence().clearOrganizations(pk);
595     }
596 
597     public static void removeOrganization(long pk, long organizationPK)
598         throws com.liferay.portal.SystemException {
599         getPersistence().removeOrganization(pk, organizationPK);
600     }
601 
602     public static void removeOrganization(long pk,
603         com.liferay.portal.model.Organization organization)
604         throws com.liferay.portal.SystemException {
605         getPersistence().removeOrganization(pk, organization);
606     }
607 
608     public static void removeOrganizations(long pk, long[] organizationPKs)
609         throws com.liferay.portal.SystemException {
610         getPersistence().removeOrganizations(pk, organizationPKs);
611     }
612 
613     public static void removeOrganizations(long pk,
614         java.util.List<com.liferay.portal.model.Organization> organizations)
615         throws com.liferay.portal.SystemException {
616         getPersistence().removeOrganizations(pk, organizations);
617     }
618 
619     public static void setOrganizations(long pk, long[] organizationPKs)
620         throws com.liferay.portal.SystemException {
621         getPersistence().setOrganizations(pk, organizationPKs);
622     }
623 
624     public static void setOrganizations(long pk,
625         java.util.List<com.liferay.portal.model.Organization> organizations)
626         throws com.liferay.portal.SystemException {
627         getPersistence().setOrganizations(pk, organizations);
628     }
629 
630     public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
631         long pk) throws com.liferay.portal.SystemException {
632         return getPersistence().getPermissions(pk);
633     }
634 
635     public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
636         long pk, int start, int end) throws com.liferay.portal.SystemException {
637         return getPersistence().getPermissions(pk, start, end);
638     }
639 
640     public static java.util.List<com.liferay.portal.model.Permission> getPermissions(
641         long pk, int start, int end,
642         com.liferay.portal.kernel.util.OrderByComparator obc)
643         throws com.liferay.portal.SystemException {
644         return getPersistence().getPermissions(pk, start, end, obc);
645     }
646 
647     public static int getPermissionsSize(long pk)
648         throws com.liferay.portal.SystemException {
649         return getPersistence().getPermissionsSize(pk);
650     }
651 
652     public static boolean containsPermission(long pk, long permissionPK)
653         throws com.liferay.portal.SystemException {
654         return getPersistence().containsPermission(pk, permissionPK);
655     }
656 
657     public static boolean containsPermissions(long pk)
658         throws com.liferay.portal.SystemException {
659         return getPersistence().containsPermissions(pk);
660     }
661 
662     public static void addPermission(long pk, long permissionPK)
663         throws com.liferay.portal.SystemException {
664         getPersistence().addPermission(pk, permissionPK);
665     }
666 
667     public static void addPermission(long pk,
668         com.liferay.portal.model.Permission permission)
669         throws com.liferay.portal.SystemException {
670         getPersistence().addPermission(pk, permission);
671     }
672 
673     public static void addPermissions(long pk, long[] permissionPKs)
674         throws com.liferay.portal.SystemException {
675         getPersistence().addPermissions(pk, permissionPKs);
676     }
677 
678     public static void addPermissions(long pk,
679         java.util.List<com.liferay.portal.model.Permission> permissions)
680         throws com.liferay.portal.SystemException {
681         getPersistence().addPermissions(pk, permissions);
682     }
683 
684     public static void clearPermissions(long pk)
685         throws com.liferay.portal.SystemException {
686         getPersistence().clearPermissions(pk);
687     }
688 
689     public static void removePermission(long pk, long permissionPK)
690         throws com.liferay.portal.SystemException {
691         getPersistence().removePermission(pk, permissionPK);
692     }
693 
694     public static void removePermission(long pk,
695         com.liferay.portal.model.Permission permission)
696         throws com.liferay.portal.SystemException {
697         getPersistence().removePermission(pk, permission);
698     }
699 
700     public static void removePermissions(long pk, long[] permissionPKs)
701         throws com.liferay.portal.SystemException {
702         getPersistence().removePermissions(pk, permissionPKs);
703     }
704 
705     public static void removePermissions(long pk,
706         java.util.List<com.liferay.portal.model.Permission> permissions)
707         throws com.liferay.portal.SystemException {
708         getPersistence().removePermissions(pk, permissions);
709     }
710 
711     public static void setPermissions(long pk, long[] permissionPKs)
712         throws com.liferay.portal.SystemException {
713         getPersistence().setPermissions(pk, permissionPKs);
714     }
715 
716     public static void setPermissions(long pk,
717         java.util.List<com.liferay.portal.model.Permission> permissions)
718         throws com.liferay.portal.SystemException {
719         getPersistence().setPermissions(pk, permissions);
720     }
721 
722     public static java.util.List<com.liferay.portal.model.Role> getRoles(
723         long pk) throws com.liferay.portal.SystemException {
724         return getPersistence().getRoles(pk);
725     }
726 
727     public static java.util.List<com.liferay.portal.model.Role> getRoles(
728         long pk, int start, int end) throws com.liferay.portal.SystemException {
729         return getPersistence().getRoles(pk, start, end);
730     }
731 
732     public static java.util.List<com.liferay.portal.model.Role> getRoles(
733         long pk, int start, int end,
734         com.liferay.portal.kernel.util.OrderByComparator obc)
735         throws com.liferay.portal.SystemException {
736         return getPersistence().getRoles(pk, start, end, obc);
737     }
738 
739     public static int getRolesSize(long pk)
740         throws com.liferay.portal.SystemException {
741         return getPersistence().getRolesSize(pk);
742     }
743 
744     public static boolean containsRole(long pk, long rolePK)
745         throws com.liferay.portal.SystemException {
746         return getPersistence().containsRole(pk, rolePK);
747     }
748 
749     public static boolean containsRoles(long pk)
750         throws com.liferay.portal.SystemException {
751         return getPersistence().containsRoles(pk);
752     }
753 
754     public static void addRole(long pk, long rolePK)
755         throws com.liferay.portal.SystemException {
756         getPersistence().addRole(pk, rolePK);
757     }
758 
759     public static void addRole(long pk, com.liferay.portal.model.Role role)
760         throws com.liferay.portal.SystemException {
761         getPersistence().addRole(pk, role);
762     }
763 
764     public static void addRoles(long pk, long[] rolePKs)
765         throws com.liferay.portal.SystemException {
766         getPersistence().addRoles(pk, rolePKs);
767     }
768 
769     public static void addRoles(long pk,
770         java.util.List<com.liferay.portal.model.Role> roles)
771         throws com.liferay.portal.SystemException {
772         getPersistence().addRoles(pk, roles);
773     }
774 
775     public static void clearRoles(long pk)
776         throws com.liferay.portal.SystemException {
777         getPersistence().clearRoles(pk);
778     }
779 
780     public static void removeRole(long pk, long rolePK)
781         throws com.liferay.portal.SystemException {
782         getPersistence().removeRole(pk, rolePK);
783     }
784 
785     public static void removeRole(long pk, com.liferay.portal.model.Role role)
786         throws com.liferay.portal.SystemException {
787         getPersistence().removeRole(pk, role);
788     }
789 
790     public static void removeRoles(long pk, long[] rolePKs)
791         throws com.liferay.portal.SystemException {
792         getPersistence().removeRoles(pk, rolePKs);
793     }
794 
795     public static void removeRoles(long pk,
796         java.util.List<com.liferay.portal.model.Role> roles)
797         throws com.liferay.portal.SystemException {
798         getPersistence().removeRoles(pk, roles);
799     }
800 
801     public static void setRoles(long pk, long[] rolePKs)
802         throws com.liferay.portal.SystemException {
803         getPersistence().setRoles(pk, rolePKs);
804     }
805 
806     public static void setRoles(long pk,
807         java.util.List<com.liferay.portal.model.Role> roles)
808         throws com.liferay.portal.SystemException {
809         getPersistence().setRoles(pk, roles);
810     }
811 
812     public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
813         long pk) throws com.liferay.portal.SystemException {
814         return getPersistence().getUserGroups(pk);
815     }
816 
817     public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
818         long pk, int start, int end) throws com.liferay.portal.SystemException {
819         return getPersistence().getUserGroups(pk, start, end);
820     }
821 
822     public static java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
823         long pk, int start, int end,
824         com.liferay.portal.kernel.util.OrderByComparator obc)
825         throws com.liferay.portal.SystemException {
826         return getPersistence().getUserGroups(pk, start, end, obc);
827     }
828 
829     public static int getUserGroupsSize(long pk)
830         throws com.liferay.portal.SystemException {
831         return getPersistence().getUserGroupsSize(pk);
832     }
833 
834     public static boolean containsUserGroup(long pk, long userGroupPK)
835         throws com.liferay.portal.SystemException {
836         return getPersistence().containsUserGroup(pk, userGroupPK);
837     }
838 
839     public static boolean containsUserGroups(long pk)
840         throws com.liferay.portal.SystemException {
841         return getPersistence().containsUserGroups(pk);
842     }
843 
844     public static void addUserGroup(long pk, long userGroupPK)
845         throws com.liferay.portal.SystemException {
846         getPersistence().addUserGroup(pk, userGroupPK);
847     }
848 
849     public static void addUserGroup(long pk,
850         com.liferay.portal.model.UserGroup userGroup)
851         throws com.liferay.portal.SystemException {
852         getPersistence().addUserGroup(pk, userGroup);
853     }
854 
855     public static void addUserGroups(long pk, long[] userGroupPKs)
856         throws com.liferay.portal.SystemException {
857         getPersistence().addUserGroups(pk, userGroupPKs);
858     }
859 
860     public static void addUserGroups(long pk,
861         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
862         throws com.liferay.portal.SystemException {
863         getPersistence().addUserGroups(pk, userGroups);
864     }
865 
866     public static void clearUserGroups(long pk)
867         throws com.liferay.portal.SystemException {
868         getPersistence().clearUserGroups(pk);
869     }
870 
871     public static void removeUserGroup(long pk, long userGroupPK)
872         throws com.liferay.portal.SystemException {
873         getPersistence().removeUserGroup(pk, userGroupPK);
874     }
875 
876     public static void removeUserGroup(long pk,
877         com.liferay.portal.model.UserGroup userGroup)
878         throws com.liferay.portal.SystemException {
879         getPersistence().removeUserGroup(pk, userGroup);
880     }
881 
882     public static void removeUserGroups(long pk, long[] userGroupPKs)
883         throws com.liferay.portal.SystemException {
884         getPersistence().removeUserGroups(pk, userGroupPKs);
885     }
886 
887     public static void removeUserGroups(long pk,
888         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
889         throws com.liferay.portal.SystemException {
890         getPersistence().removeUserGroups(pk, userGroups);
891     }
892 
893     public static void setUserGroups(long pk, long[] userGroupPKs)
894         throws com.liferay.portal.SystemException {
895         getPersistence().setUserGroups(pk, userGroupPKs);
896     }
897 
898     public static void setUserGroups(long pk,
899         java.util.List<com.liferay.portal.model.UserGroup> userGroups)
900         throws com.liferay.portal.SystemException {
901         getPersistence().setUserGroups(pk, userGroups);
902     }
903 
904     public static UserPersistence getPersistence() {
905         return _persistence;
906     }
907 
908     public void setPersistence(UserPersistence persistence) {
909         _persistence = persistence;
910     }
911 
912     private static UserPersistence _persistence;
913 }