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