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