001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.User;
018    
019    /**
020     * The persistence interface for the user service.
021     *
022     * <p>
023     * Caching information and settings can be found in <code>portal.properties</code>
024     * </p>
025     *
026     * @author Brian Wing Shun Chan
027     * @see UserPersistenceImpl
028     * @see UserUtil
029     * @generated
030     */
031    public interface UserPersistence extends BasePersistence<User> {
032            /*
033             * NOTE FOR DEVELOPERS:
034             *
035             * Never modify or reference this interface directly. Always use {@link UserUtil} to access the user persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
036             */
037    
038            /**
039            * Caches the user in the entity cache if it is enabled.
040            *
041            * @param user the user
042            */
043            public void cacheResult(com.liferay.portal.model.User user);
044    
045            /**
046            * Caches the users in the entity cache if it is enabled.
047            *
048            * @param users the users
049            */
050            public void cacheResult(java.util.List<com.liferay.portal.model.User> users);
051    
052            /**
053            * Creates a new user with the primary key. Does not add the user to the database.
054            *
055            * @param userId the primary key for the new user
056            * @return the new user
057            */
058            public com.liferay.portal.model.User create(long userId);
059    
060            /**
061            * Removes the user with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param userId the primary key of the user
064            * @return the user that was removed
065            * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found
066            * @throws SystemException if a system exception occurred
067            */
068            public com.liferay.portal.model.User remove(long userId)
069                    throws com.liferay.portal.NoSuchUserException,
070                            com.liferay.portal.kernel.exception.SystemException;
071    
072            public com.liferay.portal.model.User updateImpl(
073                    com.liferay.portal.model.User user, boolean merge)
074                    throws com.liferay.portal.kernel.exception.SystemException;
075    
076            /**
077            * Returns the user with the primary key or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found.
078            *
079            * @param userId the primary key of the user
080            * @return the user
081            * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found
082            * @throws SystemException if a system exception occurred
083            */
084            public com.liferay.portal.model.User findByPrimaryKey(long userId)
085                    throws com.liferay.portal.NoSuchUserException,
086                            com.liferay.portal.kernel.exception.SystemException;
087    
088            /**
089            * Returns the user with the primary key or returns <code>null</code> if it could not be found.
090            *
091            * @param userId the primary key of the user
092            * @return the user, or <code>null</code> if a user with the primary key could not be found
093            * @throws SystemException if a system exception occurred
094            */
095            public com.liferay.portal.model.User fetchByPrimaryKey(long userId)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            /**
099            * Returns all the users where uuid = &#63;.
100            *
101            * @param uuid the uuid
102            * @return the matching users
103            * @throws SystemException if a system exception occurred
104            */
105            public java.util.List<com.liferay.portal.model.User> findByUuid(
106                    java.lang.String uuid)
107                    throws com.liferay.portal.kernel.exception.SystemException;
108    
109            /**
110            * Returns a range of all the users where uuid = &#63;.
111            *
112            * <p>
113            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
114            * </p>
115            *
116            * @param uuid the uuid
117            * @param start the lower bound of the range of users
118            * @param end the upper bound of the range of users (not inclusive)
119            * @return the range of matching users
120            * @throws SystemException if a system exception occurred
121            */
122            public java.util.List<com.liferay.portal.model.User> findByUuid(
123                    java.lang.String uuid, int start, int end)
124                    throws com.liferay.portal.kernel.exception.SystemException;
125    
126            /**
127            * Returns an ordered range of all the users where uuid = &#63;.
128            *
129            * <p>
130            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
131            * </p>
132            *
133            * @param uuid the uuid
134            * @param start the lower bound of the range of users
135            * @param end the upper bound of the range of users (not inclusive)
136            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
137            * @return the ordered range of matching users
138            * @throws SystemException if a system exception occurred
139            */
140            public java.util.List<com.liferay.portal.model.User> findByUuid(
141                    java.lang.String uuid, int start, int end,
142                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143                    throws com.liferay.portal.kernel.exception.SystemException;
144    
145            /**
146            * Returns the first user in the ordered set where uuid = &#63;.
147            *
148            * @param uuid the uuid
149            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
150            * @return the first matching user
151            * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found
152            * @throws SystemException if a system exception occurred
153            */
154            public com.liferay.portal.model.User findByUuid_First(
155                    java.lang.String uuid,
156                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157                    throws com.liferay.portal.NoSuchUserException,
158                            com.liferay.portal.kernel.exception.SystemException;
159    
160            /**
161            * Returns the first user in the ordered set where uuid = &#63;.
162            *
163            * @param uuid the uuid
164            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
165            * @return the first matching user, or <code>null</code> if a matching user could not be found
166            * @throws SystemException if a system exception occurred
167            */
168            public com.liferay.portal.model.User fetchByUuid_First(
169                    java.lang.String uuid,
170                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171                    throws com.liferay.portal.kernel.exception.SystemException;
172    
173            /**
174            * Returns the last user in the ordered set where uuid = &#63;.
175            *
176            * @param uuid the uuid
177            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
178            * @return the last matching user
179            * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found
180            * @throws SystemException if a system exception occurred
181            */
182            public com.liferay.portal.model.User findByUuid_Last(
183                    java.lang.String uuid,
184                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
185                    throws com.liferay.portal.NoSuchUserException,
186                            com.liferay.portal.kernel.exception.SystemException;
187    
188            /**
189            * Returns the last user in the ordered set where uuid = &#63;.
190            *
191            * @param uuid the uuid
192            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
193            * @return the last matching user, or <code>null</code> if a matching user could not be found
194            * @throws SystemException if a system exception occurred
195            */
196            public com.liferay.portal.model.User fetchByUuid_Last(
197                    java.lang.String uuid,
198                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
199                    throws com.liferay.portal.kernel.exception.SystemException;
200    
201            /**
202            * Returns the users before and after the current user in the ordered set where uuid = &#63;.
203            *
204            * @param userId the primary key of the current user
205            * @param uuid the uuid
206            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
207            * @return the previous, current, and next user
208            * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found
209            * @throws SystemException if a system exception occurred
210            */
211            public com.liferay.portal.model.User[] findByUuid_PrevAndNext(long userId,
212                    java.lang.String uuid,
213                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214                    throws com.liferay.portal.NoSuchUserException,
215                            com.liferay.portal.kernel.exception.SystemException;
216    
217            /**
218            * Returns all the users where companyId = &#63;.
219            *
220            * @param companyId the company ID
221            * @return the matching users
222            * @throws SystemException if a system exception occurred
223            */
224            public java.util.List<com.liferay.portal.model.User> findByCompanyId(
225                    long companyId)
226                    throws com.liferay.portal.kernel.exception.SystemException;
227    
228            /**
229            * Returns a range of all the users where companyId = &#63;.
230            *
231            * <p>
232            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
233            * </p>
234            *
235            * @param companyId the company ID
236            * @param start the lower bound of the range of users
237            * @param end the upper bound of the range of users (not inclusive)
238            * @return the range of matching users
239            * @throws SystemException if a system exception occurred
240            */
241            public java.util.List<com.liferay.portal.model.User> findByCompanyId(
242                    long companyId, int start, int end)
243                    throws com.liferay.portal.kernel.exception.SystemException;
244    
245            /**
246            * Returns an ordered range of all the users where companyId = &#63;.
247            *
248            * <p>
249            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
250            * </p>
251            *
252            * @param companyId the company ID
253            * @param start the lower bound of the range of users
254            * @param end the upper bound of the range of users (not inclusive)
255            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
256            * @return the ordered range of matching users
257            * @throws SystemException if a system exception occurred
258            */
259            public java.util.List<com.liferay.portal.model.User> findByCompanyId(
260                    long companyId, int start, int end,
261                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
262                    throws com.liferay.portal.kernel.exception.SystemException;
263    
264            /**
265            * Returns the first user in the ordered set where companyId = &#63;.
266            *
267            * @param companyId the company ID
268            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
269            * @return the first matching user
270            * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found
271            * @throws SystemException if a system exception occurred
272            */
273            public com.liferay.portal.model.User findByCompanyId_First(long companyId,
274                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275                    throws com.liferay.portal.NoSuchUserException,
276                            com.liferay.portal.kernel.exception.SystemException;
277    
278            /**
279            * Returns the first user in the ordered set where companyId = &#63;.
280            *
281            * @param companyId the company ID
282            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
283            * @return the first matching user, or <code>null</code> if a matching user could not be found
284            * @throws SystemException if a system exception occurred
285            */
286            public com.liferay.portal.model.User fetchByCompanyId_First(
287                    long companyId,
288                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289                    throws com.liferay.portal.kernel.exception.SystemException;
290    
291            /**
292            * Returns the last user in the ordered set where companyId = &#63;.
293            *
294            * @param companyId the company ID
295            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
296            * @return the last matching user
297            * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found
298            * @throws SystemException if a system exception occurred
299            */
300            public com.liferay.portal.model.User findByCompanyId_Last(long companyId,
301                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
302                    throws com.liferay.portal.NoSuchUserException,
303                            com.liferay.portal.kernel.exception.SystemException;
304    
305            /**
306            * Returns the last user in the ordered set where companyId = &#63;.
307            *
308            * @param companyId the company ID
309            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
310            * @return the last matching user, or <code>null</code> if a matching user could not be found
311            * @throws SystemException if a system exception occurred
312            */
313            public com.liferay.portal.model.User fetchByCompanyId_Last(long companyId,
314                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
315                    throws com.liferay.portal.kernel.exception.SystemException;
316    
317            /**
318            * Returns the users before and after the current user in the ordered set where companyId = &#63;.
319            *
320            * @param userId the primary key of the current user
321            * @param companyId the company ID
322            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
323            * @return the previous, current, and next user
324            * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found
325            * @throws SystemException if a system exception occurred
326            */
327            public com.liferay.portal.model.User[] findByCompanyId_PrevAndNext(
328                    long userId, long companyId,
329                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
330                    throws com.liferay.portal.NoSuchUserException,
331                            com.liferay.portal.kernel.exception.SystemException;
332    
333            /**
334            * Returns the user where contactId = &#63; or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found.
335            *
336            * @param contactId the contact ID
337            * @return the matching user
338            * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found
339            * @throws SystemException if a system exception occurred
340            */
341            public com.liferay.portal.model.User findByContactId(long contactId)
342                    throws com.liferay.portal.NoSuchUserException,
343                            com.liferay.portal.kernel.exception.SystemException;
344    
345            /**
346            * Returns the user where contactId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
347            *
348            * @param contactId the contact ID
349            * @return the matching user, or <code>null</code> if a matching user could not be found
350            * @throws SystemException if a system exception occurred
351            */
352            public com.liferay.portal.model.User fetchByContactId(long contactId)
353                    throws com.liferay.portal.kernel.exception.SystemException;
354    
355            /**
356            * Returns the user where contactId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
357            *
358            * @param contactId the contact ID
359            * @param retrieveFromCache whether to use the finder cache
360            * @return the matching user, or <code>null</code> if a matching user could not be found
361            * @throws SystemException if a system exception occurred
362            */
363            public com.liferay.portal.model.User fetchByContactId(long contactId,
364                    boolean retrieveFromCache)
365                    throws com.liferay.portal.kernel.exception.SystemException;
366    
367            /**
368            * Returns all the users where emailAddress = &#63;.
369            *
370            * @param emailAddress the email address
371            * @return the matching users
372            * @throws SystemException if a system exception occurred
373            */
374            public java.util.List<com.liferay.portal.model.User> findByEmailAddress(
375                    java.lang.String emailAddress)
376                    throws com.liferay.portal.kernel.exception.SystemException;
377    
378            /**
379            * Returns a range of all the users where emailAddress = &#63;.
380            *
381            * <p>
382            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
383            * </p>
384            *
385            * @param emailAddress the email address
386            * @param start the lower bound of the range of users
387            * @param end the upper bound of the range of users (not inclusive)
388            * @return the range of matching users
389            * @throws SystemException if a system exception occurred
390            */
391            public java.util.List<com.liferay.portal.model.User> findByEmailAddress(
392                    java.lang.String emailAddress, int start, int end)
393                    throws com.liferay.portal.kernel.exception.SystemException;
394    
395            /**
396            * Returns an ordered range of all the users where emailAddress = &#63;.
397            *
398            * <p>
399            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
400            * </p>
401            *
402            * @param emailAddress the email address
403            * @param start the lower bound of the range of users
404            * @param end the upper bound of the range of users (not inclusive)
405            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
406            * @return the ordered range of matching users
407            * @throws SystemException if a system exception occurred
408            */
409            public java.util.List<com.liferay.portal.model.User> findByEmailAddress(
410                    java.lang.String emailAddress, int start, int end,
411                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
412                    throws com.liferay.portal.kernel.exception.SystemException;
413    
414            /**
415            * Returns the first user in the ordered set where emailAddress = &#63;.
416            *
417            * @param emailAddress the email address
418            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
419            * @return the first matching user
420            * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found
421            * @throws SystemException if a system exception occurred
422            */
423            public com.liferay.portal.model.User findByEmailAddress_First(
424                    java.lang.String emailAddress,
425                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
426                    throws com.liferay.portal.NoSuchUserException,
427                            com.liferay.portal.kernel.exception.SystemException;
428    
429            /**
430            * Returns the first user in the ordered set where emailAddress = &#63;.
431            *
432            * @param emailAddress the email address
433            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
434            * @return the first matching user, or <code>null</code> if a matching user could not be found
435            * @throws SystemException if a system exception occurred
436            */
437            public com.liferay.portal.model.User fetchByEmailAddress_First(
438                    java.lang.String emailAddress,
439                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
440                    throws com.liferay.portal.kernel.exception.SystemException;
441    
442            /**
443            * Returns the last user in the ordered set where emailAddress = &#63;.
444            *
445            * @param emailAddress the email address
446            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
447            * @return the last matching user
448            * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found
449            * @throws SystemException if a system exception occurred
450            */
451            public com.liferay.portal.model.User findByEmailAddress_Last(
452                    java.lang.String emailAddress,
453                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
454                    throws com.liferay.portal.NoSuchUserException,
455                            com.liferay.portal.kernel.exception.SystemException;
456    
457            /**
458            * Returns the last user in the ordered set where emailAddress = &#63;.
459            *
460            * @param emailAddress the email address
461            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
462            * @return the last matching user, or <code>null</code> if a matching user could not be found
463            * @throws SystemException if a system exception occurred
464            */
465            public com.liferay.portal.model.User fetchByEmailAddress_Last(
466                    java.lang.String emailAddress,
467                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
468                    throws com.liferay.portal.kernel.exception.SystemException;
469    
470            /**
471            * Returns the users before and after the current user in the ordered set where emailAddress = &#63;.
472            *
473            * @param userId the primary key of the current user
474            * @param emailAddress the email address
475            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
476            * @return the previous, current, and next user
477            * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found
478            * @throws SystemException if a system exception occurred
479            */
480            public com.liferay.portal.model.User[] findByEmailAddress_PrevAndNext(
481                    long userId, java.lang.String emailAddress,
482                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
483                    throws com.liferay.portal.NoSuchUserException,
484                            com.liferay.portal.kernel.exception.SystemException;
485    
486            /**
487            * Returns the user where portraitId = &#63; or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found.
488            *
489            * @param portraitId the portrait ID
490            * @return the matching user
491            * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found
492            * @throws SystemException if a system exception occurred
493            */
494            public com.liferay.portal.model.User findByPortraitId(long portraitId)
495                    throws com.liferay.portal.NoSuchUserException,
496                            com.liferay.portal.kernel.exception.SystemException;
497    
498            /**
499            * Returns the user where portraitId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
500            *
501            * @param portraitId the portrait ID
502            * @return the matching user, or <code>null</code> if a matching user could not be found
503            * @throws SystemException if a system exception occurred
504            */
505            public com.liferay.portal.model.User fetchByPortraitId(long portraitId)
506                    throws com.liferay.portal.kernel.exception.SystemException;
507    
508            /**
509            * Returns the user where portraitId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
510            *
511            * @param portraitId the portrait ID
512            * @param retrieveFromCache whether to use the finder cache
513            * @return the matching user, or <code>null</code> if a matching user could not be found
514            * @throws SystemException if a system exception occurred
515            */
516            public com.liferay.portal.model.User fetchByPortraitId(long portraitId,
517                    boolean retrieveFromCache)
518                    throws com.liferay.portal.kernel.exception.SystemException;
519    
520            /**
521            * Returns the user where companyId = &#63; and userId = &#63; or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found.
522            *
523            * @param companyId the company ID
524            * @param userId the user ID
525            * @return the matching user
526            * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found
527            * @throws SystemException if a system exception occurred
528            */
529            public com.liferay.portal.model.User findByC_U(long companyId, long userId)
530                    throws com.liferay.portal.NoSuchUserException,
531                            com.liferay.portal.kernel.exception.SystemException;
532    
533            /**
534            * Returns the user where companyId = &#63; and userId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
535            *
536            * @param companyId the company ID
537            * @param userId the user ID
538            * @return the matching user, or <code>null</code> if a matching user could not be found
539            * @throws SystemException if a system exception occurred
540            */
541            public com.liferay.portal.model.User fetchByC_U(long companyId, long userId)
542                    throws com.liferay.portal.kernel.exception.SystemException;
543    
544            /**
545            * Returns the user where companyId = &#63; and userId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
546            *
547            * @param companyId the company ID
548            * @param userId the user ID
549            * @param retrieveFromCache whether to use the finder cache
550            * @return the matching user, or <code>null</code> if a matching user could not be found
551            * @throws SystemException if a system exception occurred
552            */
553            public com.liferay.portal.model.User fetchByC_U(long companyId,
554                    long userId, boolean retrieveFromCache)
555                    throws com.liferay.portal.kernel.exception.SystemException;
556    
557            /**
558            * Returns the user where companyId = &#63; and defaultUser = &#63; or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found.
559            *
560            * @param companyId the company ID
561            * @param defaultUser the default user
562            * @return the matching user
563            * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found
564            * @throws SystemException if a system exception occurred
565            */
566            public com.liferay.portal.model.User findByC_DU(long companyId,
567                    boolean defaultUser)
568                    throws com.liferay.portal.NoSuchUserException,
569                            com.liferay.portal.kernel.exception.SystemException;
570    
571            /**
572            * Returns the user where companyId = &#63; and defaultUser = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
573            *
574            * @param companyId the company ID
575            * @param defaultUser the default user
576            * @return the matching user, or <code>null</code> if a matching user could not be found
577            * @throws SystemException if a system exception occurred
578            */
579            public com.liferay.portal.model.User fetchByC_DU(long companyId,
580                    boolean defaultUser)
581                    throws com.liferay.portal.kernel.exception.SystemException;
582    
583            /**
584            * Returns the user where companyId = &#63; and defaultUser = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
585            *
586            * @param companyId the company ID
587            * @param defaultUser the default user
588            * @param retrieveFromCache whether to use the finder cache
589            * @return the matching user, or <code>null</code> if a matching user could not be found
590            * @throws SystemException if a system exception occurred
591            */
592            public com.liferay.portal.model.User fetchByC_DU(long companyId,
593                    boolean defaultUser, boolean retrieveFromCache)
594                    throws com.liferay.portal.kernel.exception.SystemException;
595    
596            /**
597            * Returns the user where companyId = &#63; and screenName = &#63; or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found.
598            *
599            * @param companyId the company ID
600            * @param screenName the screen name
601            * @return the matching user
602            * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found
603            * @throws SystemException if a system exception occurred
604            */
605            public com.liferay.portal.model.User findByC_SN(long companyId,
606                    java.lang.String screenName)
607                    throws com.liferay.portal.NoSuchUserException,
608                            com.liferay.portal.kernel.exception.SystemException;
609    
610            /**
611            * Returns the user where companyId = &#63; and screenName = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
612            *
613            * @param companyId the company ID
614            * @param screenName the screen name
615            * @return the matching user, or <code>null</code> if a matching user could not be found
616            * @throws SystemException if a system exception occurred
617            */
618            public com.liferay.portal.model.User fetchByC_SN(long companyId,
619                    java.lang.String screenName)
620                    throws com.liferay.portal.kernel.exception.SystemException;
621    
622            /**
623            * Returns the user where companyId = &#63; and screenName = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
624            *
625            * @param companyId the company ID
626            * @param screenName the screen name
627            * @param retrieveFromCache whether to use the finder cache
628            * @return the matching user, or <code>null</code> if a matching user could not be found
629            * @throws SystemException if a system exception occurred
630            */
631            public com.liferay.portal.model.User fetchByC_SN(long companyId,
632                    java.lang.String screenName, boolean retrieveFromCache)
633                    throws com.liferay.portal.kernel.exception.SystemException;
634    
635            /**
636            * Returns the user where companyId = &#63; and emailAddress = &#63; or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found.
637            *
638            * @param companyId the company ID
639            * @param emailAddress the email address
640            * @return the matching user
641            * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found
642            * @throws SystemException if a system exception occurred
643            */
644            public com.liferay.portal.model.User findByC_EA(long companyId,
645                    java.lang.String emailAddress)
646                    throws com.liferay.portal.NoSuchUserException,
647                            com.liferay.portal.kernel.exception.SystemException;
648    
649            /**
650            * Returns the user where companyId = &#63; and emailAddress = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
651            *
652            * @param companyId the company ID
653            * @param emailAddress the email address
654            * @return the matching user, or <code>null</code> if a matching user could not be found
655            * @throws SystemException if a system exception occurred
656            */
657            public com.liferay.portal.model.User fetchByC_EA(long companyId,
658                    java.lang.String emailAddress)
659                    throws com.liferay.portal.kernel.exception.SystemException;
660    
661            /**
662            * Returns the user where companyId = &#63; and emailAddress = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
663            *
664            * @param companyId the company ID
665            * @param emailAddress the email address
666            * @param retrieveFromCache whether to use the finder cache
667            * @return the matching user, or <code>null</code> if a matching user could not be found
668            * @throws SystemException if a system exception occurred
669            */
670            public com.liferay.portal.model.User fetchByC_EA(long companyId,
671                    java.lang.String emailAddress, boolean retrieveFromCache)
672                    throws com.liferay.portal.kernel.exception.SystemException;
673    
674            /**
675            * Returns the user where companyId = &#63; and facebookId = &#63; or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found.
676            *
677            * @param companyId the company ID
678            * @param facebookId the facebook ID
679            * @return the matching user
680            * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found
681            * @throws SystemException if a system exception occurred
682            */
683            public com.liferay.portal.model.User findByC_FID(long companyId,
684                    long facebookId)
685                    throws com.liferay.portal.NoSuchUserException,
686                            com.liferay.portal.kernel.exception.SystemException;
687    
688            /**
689            * Returns the user where companyId = &#63; and facebookId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
690            *
691            * @param companyId the company ID
692            * @param facebookId the facebook ID
693            * @return the matching user, or <code>null</code> if a matching user could not be found
694            * @throws SystemException if a system exception occurred
695            */
696            public com.liferay.portal.model.User fetchByC_FID(long companyId,
697                    long facebookId)
698                    throws com.liferay.portal.kernel.exception.SystemException;
699    
700            /**
701            * Returns the user where companyId = &#63; and facebookId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
702            *
703            * @param companyId the company ID
704            * @param facebookId the facebook ID
705            * @param retrieveFromCache whether to use the finder cache
706            * @return the matching user, or <code>null</code> if a matching user could not be found
707            * @throws SystemException if a system exception occurred
708            */
709            public com.liferay.portal.model.User fetchByC_FID(long companyId,
710                    long facebookId, boolean retrieveFromCache)
711                    throws com.liferay.portal.kernel.exception.SystemException;
712    
713            /**
714            * Returns the user where companyId = &#63; and openId = &#63; or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found.
715            *
716            * @param companyId the company ID
717            * @param openId the open ID
718            * @return the matching user
719            * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found
720            * @throws SystemException if a system exception occurred
721            */
722            public com.liferay.portal.model.User findByC_O(long companyId,
723                    java.lang.String openId)
724                    throws com.liferay.portal.NoSuchUserException,
725                            com.liferay.portal.kernel.exception.SystemException;
726    
727            /**
728            * Returns the user where companyId = &#63; and openId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
729            *
730            * @param companyId the company ID
731            * @param openId the open ID
732            * @return the matching user, or <code>null</code> if a matching user could not be found
733            * @throws SystemException if a system exception occurred
734            */
735            public com.liferay.portal.model.User fetchByC_O(long companyId,
736                    java.lang.String openId)
737                    throws com.liferay.portal.kernel.exception.SystemException;
738    
739            /**
740            * Returns the user where companyId = &#63; and openId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
741            *
742            * @param companyId the company ID
743            * @param openId the open ID
744            * @param retrieveFromCache whether to use the finder cache
745            * @return the matching user, or <code>null</code> if a matching user could not be found
746            * @throws SystemException if a system exception occurred
747            */
748            public com.liferay.portal.model.User fetchByC_O(long companyId,
749                    java.lang.String openId, boolean retrieveFromCache)
750                    throws com.liferay.portal.kernel.exception.SystemException;
751    
752            /**
753            * Returns all the users where companyId = &#63; and status = &#63;.
754            *
755            * @param companyId the company ID
756            * @param status the status
757            * @return the matching users
758            * @throws SystemException if a system exception occurred
759            */
760            public java.util.List<com.liferay.portal.model.User> findByC_S(
761                    long companyId, int status)
762                    throws com.liferay.portal.kernel.exception.SystemException;
763    
764            /**
765            * Returns a range of all the users where companyId = &#63; and status = &#63;.
766            *
767            * <p>
768            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
769            * </p>
770            *
771            * @param companyId the company ID
772            * @param status the status
773            * @param start the lower bound of the range of users
774            * @param end the upper bound of the range of users (not inclusive)
775            * @return the range of matching users
776            * @throws SystemException if a system exception occurred
777            */
778            public java.util.List<com.liferay.portal.model.User> findByC_S(
779                    long companyId, int status, int start, int end)
780                    throws com.liferay.portal.kernel.exception.SystemException;
781    
782            /**
783            * Returns an ordered range of all the users where companyId = &#63; and status = &#63;.
784            *
785            * <p>
786            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
787            * </p>
788            *
789            * @param companyId the company ID
790            * @param status the status
791            * @param start the lower bound of the range of users
792            * @param end the upper bound of the range of users (not inclusive)
793            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
794            * @return the ordered range of matching users
795            * @throws SystemException if a system exception occurred
796            */
797            public java.util.List<com.liferay.portal.model.User> findByC_S(
798                    long companyId, int status, int start, int end,
799                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
800                    throws com.liferay.portal.kernel.exception.SystemException;
801    
802            /**
803            * Returns the first user in the ordered set where companyId = &#63; and status = &#63;.
804            *
805            * @param companyId the company ID
806            * @param status the status
807            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
808            * @return the first matching user
809            * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found
810            * @throws SystemException if a system exception occurred
811            */
812            public com.liferay.portal.model.User findByC_S_First(long companyId,
813                    int status,
814                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
815                    throws com.liferay.portal.NoSuchUserException,
816                            com.liferay.portal.kernel.exception.SystemException;
817    
818            /**
819            * Returns the first user in the ordered set where companyId = &#63; and status = &#63;.
820            *
821            * @param companyId the company ID
822            * @param status the status
823            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
824            * @return the first matching user, or <code>null</code> if a matching user could not be found
825            * @throws SystemException if a system exception occurred
826            */
827            public com.liferay.portal.model.User fetchByC_S_First(long companyId,
828                    int status,
829                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
830                    throws com.liferay.portal.kernel.exception.SystemException;
831    
832            /**
833            * Returns the last user in the ordered set where companyId = &#63; and status = &#63;.
834            *
835            * @param companyId the company ID
836            * @param status the status
837            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
838            * @return the last matching user
839            * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found
840            * @throws SystemException if a system exception occurred
841            */
842            public com.liferay.portal.model.User findByC_S_Last(long companyId,
843                    int status,
844                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
845                    throws com.liferay.portal.NoSuchUserException,
846                            com.liferay.portal.kernel.exception.SystemException;
847    
848            /**
849            * Returns the last user in the ordered set where companyId = &#63; and status = &#63;.
850            *
851            * @param companyId the company ID
852            * @param status the status
853            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
854            * @return the last matching user, or <code>null</code> if a matching user could not be found
855            * @throws SystemException if a system exception occurred
856            */
857            public com.liferay.portal.model.User fetchByC_S_Last(long companyId,
858                    int status,
859                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
860                    throws com.liferay.portal.kernel.exception.SystemException;
861    
862            /**
863            * Returns the users before and after the current user in the ordered set where companyId = &#63; and status = &#63;.
864            *
865            * @param userId the primary key of the current user
866            * @param companyId the company ID
867            * @param status the status
868            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
869            * @return the previous, current, and next user
870            * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found
871            * @throws SystemException if a system exception occurred
872            */
873            public com.liferay.portal.model.User[] findByC_S_PrevAndNext(long userId,
874                    long companyId, int status,
875                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
876                    throws com.liferay.portal.NoSuchUserException,
877                            com.liferay.portal.kernel.exception.SystemException;
878    
879            /**
880            * Returns all the users.
881            *
882            * @return the users
883            * @throws SystemException if a system exception occurred
884            */
885            public java.util.List<com.liferay.portal.model.User> findAll()
886                    throws com.liferay.portal.kernel.exception.SystemException;
887    
888            /**
889            * Returns a range of all the users.
890            *
891            * <p>
892            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
893            * </p>
894            *
895            * @param start the lower bound of the range of users
896            * @param end the upper bound of the range of users (not inclusive)
897            * @return the range of users
898            * @throws SystemException if a system exception occurred
899            */
900            public java.util.List<com.liferay.portal.model.User> findAll(int start,
901                    int end) throws com.liferay.portal.kernel.exception.SystemException;
902    
903            /**
904            * Returns an ordered range of all the users.
905            *
906            * <p>
907            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
908            * </p>
909            *
910            * @param start the lower bound of the range of users
911            * @param end the upper bound of the range of users (not inclusive)
912            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
913            * @return the ordered range of users
914            * @throws SystemException if a system exception occurred
915            */
916            public java.util.List<com.liferay.portal.model.User> findAll(int start,
917                    int end,
918                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
919                    throws com.liferay.portal.kernel.exception.SystemException;
920    
921            /**
922            * Removes all the users where uuid = &#63; from the database.
923            *
924            * @param uuid the uuid
925            * @throws SystemException if a system exception occurred
926            */
927            public void removeByUuid(java.lang.String uuid)
928                    throws com.liferay.portal.kernel.exception.SystemException;
929    
930            /**
931            * Removes all the users where companyId = &#63; from the database.
932            *
933            * @param companyId the company ID
934            * @throws SystemException if a system exception occurred
935            */
936            public void removeByCompanyId(long companyId)
937                    throws com.liferay.portal.kernel.exception.SystemException;
938    
939            /**
940            * Removes the user where contactId = &#63; from the database.
941            *
942            * @param contactId the contact ID
943            * @return the user that was removed
944            * @throws SystemException if a system exception occurred
945            */
946            public com.liferay.portal.model.User removeByContactId(long contactId)
947                    throws com.liferay.portal.NoSuchUserException,
948                            com.liferay.portal.kernel.exception.SystemException;
949    
950            /**
951            * Removes all the users where emailAddress = &#63; from the database.
952            *
953            * @param emailAddress the email address
954            * @throws SystemException if a system exception occurred
955            */
956            public void removeByEmailAddress(java.lang.String emailAddress)
957                    throws com.liferay.portal.kernel.exception.SystemException;
958    
959            /**
960            * Removes the user where portraitId = &#63; from the database.
961            *
962            * @param portraitId the portrait ID
963            * @return the user that was removed
964            * @throws SystemException if a system exception occurred
965            */
966            public com.liferay.portal.model.User removeByPortraitId(long portraitId)
967                    throws com.liferay.portal.NoSuchUserException,
968                            com.liferay.portal.kernel.exception.SystemException;
969    
970            /**
971            * Removes the user where companyId = &#63; and userId = &#63; from the database.
972            *
973            * @param companyId the company ID
974            * @param userId the user ID
975            * @return the user that was removed
976            * @throws SystemException if a system exception occurred
977            */
978            public com.liferay.portal.model.User removeByC_U(long companyId, long userId)
979                    throws com.liferay.portal.NoSuchUserException,
980                            com.liferay.portal.kernel.exception.SystemException;
981    
982            /**
983            * Removes the user where companyId = &#63; and defaultUser = &#63; from the database.
984            *
985            * @param companyId the company ID
986            * @param defaultUser the default user
987            * @return the user that was removed
988            * @throws SystemException if a system exception occurred
989            */
990            public com.liferay.portal.model.User removeByC_DU(long companyId,
991                    boolean defaultUser)
992                    throws com.liferay.portal.NoSuchUserException,
993                            com.liferay.portal.kernel.exception.SystemException;
994    
995            /**
996            * Removes the user where companyId = &#63; and screenName = &#63; from the database.
997            *
998            * @param companyId the company ID
999            * @param screenName the screen name
1000            * @return the user that was removed
1001            * @throws SystemException if a system exception occurred
1002            */
1003            public com.liferay.portal.model.User removeByC_SN(long companyId,
1004                    java.lang.String screenName)
1005                    throws com.liferay.portal.NoSuchUserException,
1006                            com.liferay.portal.kernel.exception.SystemException;
1007    
1008            /**
1009            * Removes the user where companyId = &#63; and emailAddress = &#63; from the database.
1010            *
1011            * @param companyId the company ID
1012            * @param emailAddress the email address
1013            * @return the user that was removed
1014            * @throws SystemException if a system exception occurred
1015            */
1016            public com.liferay.portal.model.User removeByC_EA(long companyId,
1017                    java.lang.String emailAddress)
1018                    throws com.liferay.portal.NoSuchUserException,
1019                            com.liferay.portal.kernel.exception.SystemException;
1020    
1021            /**
1022            * Removes the user where companyId = &#63; and facebookId = &#63; from the database.
1023            *
1024            * @param companyId the company ID
1025            * @param facebookId the facebook ID
1026            * @return the user that was removed
1027            * @throws SystemException if a system exception occurred
1028            */
1029            public com.liferay.portal.model.User removeByC_FID(long companyId,
1030                    long facebookId)
1031                    throws com.liferay.portal.NoSuchUserException,
1032                            com.liferay.portal.kernel.exception.SystemException;
1033    
1034            /**
1035            * Removes the user where companyId = &#63; and openId = &#63; from the database.
1036            *
1037            * @param companyId the company ID
1038            * @param openId the open ID
1039            * @return the user that was removed
1040            * @throws SystemException if a system exception occurred
1041            */
1042            public com.liferay.portal.model.User removeByC_O(long companyId,
1043                    java.lang.String openId)
1044                    throws com.liferay.portal.NoSuchUserException,
1045                            com.liferay.portal.kernel.exception.SystemException;
1046    
1047            /**
1048            * Removes all the users where companyId = &#63; and status = &#63; from the database.
1049            *
1050            * @param companyId the company ID
1051            * @param status the status
1052            * @throws SystemException if a system exception occurred
1053            */
1054            public void removeByC_S(long companyId, int status)
1055                    throws com.liferay.portal.kernel.exception.SystemException;
1056    
1057            /**
1058            * Removes all the users from the database.
1059            *
1060            * @throws SystemException if a system exception occurred
1061            */
1062            public void removeAll()
1063                    throws com.liferay.portal.kernel.exception.SystemException;
1064    
1065            /**
1066            * Returns the number of users where uuid = &#63;.
1067            *
1068            * @param uuid the uuid
1069            * @return the number of matching users
1070            * @throws SystemException if a system exception occurred
1071            */
1072            public int countByUuid(java.lang.String uuid)
1073                    throws com.liferay.portal.kernel.exception.SystemException;
1074    
1075            /**
1076            * Returns the number of users where companyId = &#63;.
1077            *
1078            * @param companyId the company ID
1079            * @return the number of matching users
1080            * @throws SystemException if a system exception occurred
1081            */
1082            public int countByCompanyId(long companyId)
1083                    throws com.liferay.portal.kernel.exception.SystemException;
1084    
1085            /**
1086            * Returns the number of users where contactId = &#63;.
1087            *
1088            * @param contactId the contact ID
1089            * @return the number of matching users
1090            * @throws SystemException if a system exception occurred
1091            */
1092            public int countByContactId(long contactId)
1093                    throws com.liferay.portal.kernel.exception.SystemException;
1094    
1095            /**
1096            * Returns the number of users where emailAddress = &#63;.
1097            *
1098            * @param emailAddress the email address
1099            * @return the number of matching users
1100            * @throws SystemException if a system exception occurred
1101            */
1102            public int countByEmailAddress(java.lang.String emailAddress)
1103                    throws com.liferay.portal.kernel.exception.SystemException;
1104    
1105            /**
1106            * Returns the number of users where portraitId = &#63;.
1107            *
1108            * @param portraitId the portrait ID
1109            * @return the number of matching users
1110            * @throws SystemException if a system exception occurred
1111            */
1112            public int countByPortraitId(long portraitId)
1113                    throws com.liferay.portal.kernel.exception.SystemException;
1114    
1115            /**
1116            * Returns the number of users where companyId = &#63; and userId = &#63;.
1117            *
1118            * @param companyId the company ID
1119            * @param userId the user ID
1120            * @return the number of matching users
1121            * @throws SystemException if a system exception occurred
1122            */
1123            public int countByC_U(long companyId, long userId)
1124                    throws com.liferay.portal.kernel.exception.SystemException;
1125    
1126            /**
1127            * Returns the number of users where companyId = &#63; and defaultUser = &#63;.
1128            *
1129            * @param companyId the company ID
1130            * @param defaultUser the default user
1131            * @return the number of matching users
1132            * @throws SystemException if a system exception occurred
1133            */
1134            public int countByC_DU(long companyId, boolean defaultUser)
1135                    throws com.liferay.portal.kernel.exception.SystemException;
1136    
1137            /**
1138            * Returns the number of users where companyId = &#63; and screenName = &#63;.
1139            *
1140            * @param companyId the company ID
1141            * @param screenName the screen name
1142            * @return the number of matching users
1143            * @throws SystemException if a system exception occurred
1144            */
1145            public int countByC_SN(long companyId, java.lang.String screenName)
1146                    throws com.liferay.portal.kernel.exception.SystemException;
1147    
1148            /**
1149            * Returns the number of users where companyId = &#63; and emailAddress = &#63;.
1150            *
1151            * @param companyId the company ID
1152            * @param emailAddress the email address
1153            * @return the number of matching users
1154            * @throws SystemException if a system exception occurred
1155            */
1156            public int countByC_EA(long companyId, java.lang.String emailAddress)
1157                    throws com.liferay.portal.kernel.exception.SystemException;
1158    
1159            /**
1160            * Returns the number of users where companyId = &#63; and facebookId = &#63;.
1161            *
1162            * @param companyId the company ID
1163            * @param facebookId the facebook ID
1164            * @return the number of matching users
1165            * @throws SystemException if a system exception occurred
1166            */
1167            public int countByC_FID(long companyId, long facebookId)
1168                    throws com.liferay.portal.kernel.exception.SystemException;
1169    
1170            /**
1171            * Returns the number of users where companyId = &#63; and openId = &#63;.
1172            *
1173            * @param companyId the company ID
1174            * @param openId the open ID
1175            * @return the number of matching users
1176            * @throws SystemException if a system exception occurred
1177            */
1178            public int countByC_O(long companyId, java.lang.String openId)
1179                    throws com.liferay.portal.kernel.exception.SystemException;
1180    
1181            /**
1182            * Returns the number of users where companyId = &#63; and status = &#63;.
1183            *
1184            * @param companyId the company ID
1185            * @param status the status
1186            * @return the number of matching users
1187            * @throws SystemException if a system exception occurred
1188            */
1189            public int countByC_S(long companyId, int status)
1190                    throws com.liferay.portal.kernel.exception.SystemException;
1191    
1192            /**
1193            * Returns the number of users.
1194            *
1195            * @return the number of users
1196            * @throws SystemException if a system exception occurred
1197            */
1198            public int countAll()
1199                    throws com.liferay.portal.kernel.exception.SystemException;
1200    
1201            /**
1202            * Returns all the groups associated with the user.
1203            *
1204            * @param pk the primary key of the user
1205            * @return the groups associated with the user
1206            * @throws SystemException if a system exception occurred
1207            */
1208            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
1209                    throws com.liferay.portal.kernel.exception.SystemException;
1210    
1211            /**
1212            * Returns a range of all the groups associated with the user.
1213            *
1214            * <p>
1215            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1216            * </p>
1217            *
1218            * @param pk the primary key of the user
1219            * @param start the lower bound of the range of users
1220            * @param end the upper bound of the range of users (not inclusive)
1221            * @return the range of groups associated with the user
1222            * @throws SystemException if a system exception occurred
1223            */
1224            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
1225                    int start, int end)
1226                    throws com.liferay.portal.kernel.exception.SystemException;
1227    
1228            /**
1229            * Returns an ordered range of all the groups associated with the user.
1230            *
1231            * <p>
1232            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1233            * </p>
1234            *
1235            * @param pk the primary key of the user
1236            * @param start the lower bound of the range of users
1237            * @param end the upper bound of the range of users (not inclusive)
1238            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1239            * @return the ordered range of groups associated with the user
1240            * @throws SystemException if a system exception occurred
1241            */
1242            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
1243                    int start, int end,
1244                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1245                    throws com.liferay.portal.kernel.exception.SystemException;
1246    
1247            /**
1248            * Returns the number of groups associated with the user.
1249            *
1250            * @param pk the primary key of the user
1251            * @return the number of groups associated with the user
1252            * @throws SystemException if a system exception occurred
1253            */
1254            public int getGroupsSize(long pk)
1255                    throws com.liferay.portal.kernel.exception.SystemException;
1256    
1257            /**
1258            * Returns <code>true</code> if the group is associated with the user.
1259            *
1260            * @param pk the primary key of the user
1261            * @param groupPK the primary key of the group
1262            * @return <code>true</code> if the group is associated with the user; <code>false</code> otherwise
1263            * @throws SystemException if a system exception occurred
1264            */
1265            public boolean containsGroup(long pk, long groupPK)
1266                    throws com.liferay.portal.kernel.exception.SystemException;
1267    
1268            /**
1269            * Returns <code>true</code> if the user has any groups associated with it.
1270            *
1271            * @param pk the primary key of the user to check for associations with groups
1272            * @return <code>true</code> if the user has any groups associated with it; <code>false</code> otherwise
1273            * @throws SystemException if a system exception occurred
1274            */
1275            public boolean containsGroups(long pk)
1276                    throws com.liferay.portal.kernel.exception.SystemException;
1277    
1278            /**
1279            * Adds an association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1280            *
1281            * @param pk the primary key of the user
1282            * @param groupPK the primary key of the group
1283            * @throws SystemException if a system exception occurred
1284            */
1285            public void addGroup(long pk, long groupPK)
1286                    throws com.liferay.portal.kernel.exception.SystemException;
1287    
1288            /**
1289            * Adds an association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1290            *
1291            * @param pk the primary key of the user
1292            * @param group the group
1293            * @throws SystemException if a system exception occurred
1294            */
1295            public void addGroup(long pk, com.liferay.portal.model.Group group)
1296                    throws com.liferay.portal.kernel.exception.SystemException;
1297    
1298            /**
1299            * Adds an association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1300            *
1301            * @param pk the primary key of the user
1302            * @param groupPKs the primary keys of the groups
1303            * @throws SystemException if a system exception occurred
1304            */
1305            public void addGroups(long pk, long[] groupPKs)
1306                    throws com.liferay.portal.kernel.exception.SystemException;
1307    
1308            /**
1309            * Adds an association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1310            *
1311            * @param pk the primary key of the user
1312            * @param groups the groups
1313            * @throws SystemException if a system exception occurred
1314            */
1315            public void addGroups(long pk,
1316                    java.util.List<com.liferay.portal.model.Group> groups)
1317                    throws com.liferay.portal.kernel.exception.SystemException;
1318    
1319            /**
1320            * Clears all associations between the user and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1321            *
1322            * @param pk the primary key of the user to clear the associated groups from
1323            * @throws SystemException if a system exception occurred
1324            */
1325            public void clearGroups(long pk)
1326                    throws com.liferay.portal.kernel.exception.SystemException;
1327    
1328            /**
1329            * Removes the association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1330            *
1331            * @param pk the primary key of the user
1332            * @param groupPK the primary key of the group
1333            * @throws SystemException if a system exception occurred
1334            */
1335            public void removeGroup(long pk, long groupPK)
1336                    throws com.liferay.portal.kernel.exception.SystemException;
1337    
1338            /**
1339            * Removes the association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1340            *
1341            * @param pk the primary key of the user
1342            * @param group the group
1343            * @throws SystemException if a system exception occurred
1344            */
1345            public void removeGroup(long pk, com.liferay.portal.model.Group group)
1346                    throws com.liferay.portal.kernel.exception.SystemException;
1347    
1348            /**
1349            * Removes the association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1350            *
1351            * @param pk the primary key of the user
1352            * @param groupPKs the primary keys of the groups
1353            * @throws SystemException if a system exception occurred
1354            */
1355            public void removeGroups(long pk, long[] groupPKs)
1356                    throws com.liferay.portal.kernel.exception.SystemException;
1357    
1358            /**
1359            * Removes the association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1360            *
1361            * @param pk the primary key of the user
1362            * @param groups the groups
1363            * @throws SystemException if a system exception occurred
1364            */
1365            public void removeGroups(long pk,
1366                    java.util.List<com.liferay.portal.model.Group> groups)
1367                    throws com.liferay.portal.kernel.exception.SystemException;
1368    
1369            /**
1370            * Sets the groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1371            *
1372            * @param pk the primary key of the user
1373            * @param groupPKs the primary keys of the groups to be associated with the user
1374            * @throws SystemException if a system exception occurred
1375            */
1376            public void setGroups(long pk, long[] groupPKs)
1377                    throws com.liferay.portal.kernel.exception.SystemException;
1378    
1379            /**
1380            * Sets the groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1381            *
1382            * @param pk the primary key of the user
1383            * @param groups the groups to be associated with the user
1384            * @throws SystemException if a system exception occurred
1385            */
1386            public void setGroups(long pk,
1387                    java.util.List<com.liferay.portal.model.Group> groups)
1388                    throws com.liferay.portal.kernel.exception.SystemException;
1389    
1390            /**
1391            * Returns all the organizations associated with the user.
1392            *
1393            * @param pk the primary key of the user
1394            * @return the organizations associated with the user
1395            * @throws SystemException if a system exception occurred
1396            */
1397            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
1398                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
1399    
1400            /**
1401            * Returns a range of all the organizations associated with the user.
1402            *
1403            * <p>
1404            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1405            * </p>
1406            *
1407            * @param pk the primary key of the user
1408            * @param start the lower bound of the range of users
1409            * @param end the upper bound of the range of users (not inclusive)
1410            * @return the range of organizations associated with the user
1411            * @throws SystemException if a system exception occurred
1412            */
1413            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
1414                    long pk, int start, int end)
1415                    throws com.liferay.portal.kernel.exception.SystemException;
1416    
1417            /**
1418            * Returns an ordered range of all the organizations associated with the user.
1419            *
1420            * <p>
1421            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1422            * </p>
1423            *
1424            * @param pk the primary key of the user
1425            * @param start the lower bound of the range of users
1426            * @param end the upper bound of the range of users (not inclusive)
1427            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1428            * @return the ordered range of organizations associated with the user
1429            * @throws SystemException if a system exception occurred
1430            */
1431            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
1432                    long pk, int start, int end,
1433                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1434                    throws com.liferay.portal.kernel.exception.SystemException;
1435    
1436            /**
1437            * Returns the number of organizations associated with the user.
1438            *
1439            * @param pk the primary key of the user
1440            * @return the number of organizations associated with the user
1441            * @throws SystemException if a system exception occurred
1442            */
1443            public int getOrganizationsSize(long pk)
1444                    throws com.liferay.portal.kernel.exception.SystemException;
1445    
1446            /**
1447            * Returns <code>true</code> if the organization is associated with the user.
1448            *
1449            * @param pk the primary key of the user
1450            * @param organizationPK the primary key of the organization
1451            * @return <code>true</code> if the organization is associated with the user; <code>false</code> otherwise
1452            * @throws SystemException if a system exception occurred
1453            */
1454            public boolean containsOrganization(long pk, long organizationPK)
1455                    throws com.liferay.portal.kernel.exception.SystemException;
1456    
1457            /**
1458            * Returns <code>true</code> if the user has any organizations associated with it.
1459            *
1460            * @param pk the primary key of the user to check for associations with organizations
1461            * @return <code>true</code> if the user has any organizations associated with it; <code>false</code> otherwise
1462            * @throws SystemException if a system exception occurred
1463            */
1464            public boolean containsOrganizations(long pk)
1465                    throws com.liferay.portal.kernel.exception.SystemException;
1466    
1467            /**
1468            * Adds an association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1469            *
1470            * @param pk the primary key of the user
1471            * @param organizationPK the primary key of the organization
1472            * @throws SystemException if a system exception occurred
1473            */
1474            public void addOrganization(long pk, long organizationPK)
1475                    throws com.liferay.portal.kernel.exception.SystemException;
1476    
1477            /**
1478            * Adds an association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1479            *
1480            * @param pk the primary key of the user
1481            * @param organization the organization
1482            * @throws SystemException if a system exception occurred
1483            */
1484            public void addOrganization(long pk,
1485                    com.liferay.portal.model.Organization organization)
1486                    throws com.liferay.portal.kernel.exception.SystemException;
1487    
1488            /**
1489            * Adds an association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1490            *
1491            * @param pk the primary key of the user
1492            * @param organizationPKs the primary keys of the organizations
1493            * @throws SystemException if a system exception occurred
1494            */
1495            public void addOrganizations(long pk, long[] organizationPKs)
1496                    throws com.liferay.portal.kernel.exception.SystemException;
1497    
1498            /**
1499            * Adds an association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1500            *
1501            * @param pk the primary key of the user
1502            * @param organizations the organizations
1503            * @throws SystemException if a system exception occurred
1504            */
1505            public void addOrganizations(long pk,
1506                    java.util.List<com.liferay.portal.model.Organization> organizations)
1507                    throws com.liferay.portal.kernel.exception.SystemException;
1508    
1509            /**
1510            * Clears all associations between the user and its organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1511            *
1512            * @param pk the primary key of the user to clear the associated organizations from
1513            * @throws SystemException if a system exception occurred
1514            */
1515            public void clearOrganizations(long pk)
1516                    throws com.liferay.portal.kernel.exception.SystemException;
1517    
1518            /**
1519            * Removes the association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1520            *
1521            * @param pk the primary key of the user
1522            * @param organizationPK the primary key of the organization
1523            * @throws SystemException if a system exception occurred
1524            */
1525            public void removeOrganization(long pk, long organizationPK)
1526                    throws com.liferay.portal.kernel.exception.SystemException;
1527    
1528            /**
1529            * Removes the association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1530            *
1531            * @param pk the primary key of the user
1532            * @param organization the organization
1533            * @throws SystemException if a system exception occurred
1534            */
1535            public void removeOrganization(long pk,
1536                    com.liferay.portal.model.Organization organization)
1537                    throws com.liferay.portal.kernel.exception.SystemException;
1538    
1539            /**
1540            * Removes the association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1541            *
1542            * @param pk the primary key of the user
1543            * @param organizationPKs the primary keys of the organizations
1544            * @throws SystemException if a system exception occurred
1545            */
1546            public void removeOrganizations(long pk, long[] organizationPKs)
1547                    throws com.liferay.portal.kernel.exception.SystemException;
1548    
1549            /**
1550            * Removes the association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1551            *
1552            * @param pk the primary key of the user
1553            * @param organizations the organizations
1554            * @throws SystemException if a system exception occurred
1555            */
1556            public void removeOrganizations(long pk,
1557                    java.util.List<com.liferay.portal.model.Organization> organizations)
1558                    throws com.liferay.portal.kernel.exception.SystemException;
1559    
1560            /**
1561            * Sets the organizations associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1562            *
1563            * @param pk the primary key of the user
1564            * @param organizationPKs the primary keys of the organizations to be associated with the user
1565            * @throws SystemException if a system exception occurred
1566            */
1567            public void setOrganizations(long pk, long[] organizationPKs)
1568                    throws com.liferay.portal.kernel.exception.SystemException;
1569    
1570            /**
1571            * Sets the organizations associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1572            *
1573            * @param pk the primary key of the user
1574            * @param organizations the organizations to be associated with the user
1575            * @throws SystemException if a system exception occurred
1576            */
1577            public void setOrganizations(long pk,
1578                    java.util.List<com.liferay.portal.model.Organization> organizations)
1579                    throws com.liferay.portal.kernel.exception.SystemException;
1580    
1581            /**
1582            * Returns all the permissions associated with the user.
1583            *
1584            * @param pk the primary key of the user
1585            * @return the permissions associated with the user
1586            * @throws SystemException if a system exception occurred
1587            */
1588            public java.util.List<com.liferay.portal.model.Permission> getPermissions(
1589                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
1590    
1591            /**
1592            * Returns a range of all the permissions associated with the user.
1593            *
1594            * <p>
1595            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1596            * </p>
1597            *
1598            * @param pk the primary key of the user
1599            * @param start the lower bound of the range of users
1600            * @param end the upper bound of the range of users (not inclusive)
1601            * @return the range of permissions associated with the user
1602            * @throws SystemException if a system exception occurred
1603            */
1604            public java.util.List<com.liferay.portal.model.Permission> getPermissions(
1605                    long pk, int start, int end)
1606                    throws com.liferay.portal.kernel.exception.SystemException;
1607    
1608            /**
1609            * Returns an ordered range of all the permissions associated with the user.
1610            *
1611            * <p>
1612            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1613            * </p>
1614            *
1615            * @param pk the primary key of the user
1616            * @param start the lower bound of the range of users
1617            * @param end the upper bound of the range of users (not inclusive)
1618            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1619            * @return the ordered range of permissions associated with the user
1620            * @throws SystemException if a system exception occurred
1621            */
1622            public java.util.List<com.liferay.portal.model.Permission> getPermissions(
1623                    long pk, int start, int end,
1624                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1625                    throws com.liferay.portal.kernel.exception.SystemException;
1626    
1627            /**
1628            * Returns the number of permissions associated with the user.
1629            *
1630            * @param pk the primary key of the user
1631            * @return the number of permissions associated with the user
1632            * @throws SystemException if a system exception occurred
1633            */
1634            public int getPermissionsSize(long pk)
1635                    throws com.liferay.portal.kernel.exception.SystemException;
1636    
1637            /**
1638            * Returns <code>true</code> if the permission is associated with the user.
1639            *
1640            * @param pk the primary key of the user
1641            * @param permissionPK the primary key of the permission
1642            * @return <code>true</code> if the permission is associated with the user; <code>false</code> otherwise
1643            * @throws SystemException if a system exception occurred
1644            */
1645            public boolean containsPermission(long pk, long permissionPK)
1646                    throws com.liferay.portal.kernel.exception.SystemException;
1647    
1648            /**
1649            * Returns <code>true</code> if the user has any permissions associated with it.
1650            *
1651            * @param pk the primary key of the user to check for associations with permissions
1652            * @return <code>true</code> if the user has any permissions associated with it; <code>false</code> otherwise
1653            * @throws SystemException if a system exception occurred
1654            */
1655            public boolean containsPermissions(long pk)
1656                    throws com.liferay.portal.kernel.exception.SystemException;
1657    
1658            /**
1659            * Adds an association between the user and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1660            *
1661            * @param pk the primary key of the user
1662            * @param permissionPK the primary key of the permission
1663            * @throws SystemException if a system exception occurred
1664            */
1665            public void addPermission(long pk, long permissionPK)
1666                    throws com.liferay.portal.kernel.exception.SystemException;
1667    
1668            /**
1669            * Adds an association between the user and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1670            *
1671            * @param pk the primary key of the user
1672            * @param permission the permission
1673            * @throws SystemException if a system exception occurred
1674            */
1675            public void addPermission(long pk,
1676                    com.liferay.portal.model.Permission permission)
1677                    throws com.liferay.portal.kernel.exception.SystemException;
1678    
1679            /**
1680            * Adds an association between the user and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1681            *
1682            * @param pk the primary key of the user
1683            * @param permissionPKs the primary keys of the permissions
1684            * @throws SystemException if a system exception occurred
1685            */
1686            public void addPermissions(long pk, long[] permissionPKs)
1687                    throws com.liferay.portal.kernel.exception.SystemException;
1688    
1689            /**
1690            * Adds an association between the user and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1691            *
1692            * @param pk the primary key of the user
1693            * @param permissions the permissions
1694            * @throws SystemException if a system exception occurred
1695            */
1696            public void addPermissions(long pk,
1697                    java.util.List<com.liferay.portal.model.Permission> permissions)
1698                    throws com.liferay.portal.kernel.exception.SystemException;
1699    
1700            /**
1701            * Clears all associations between the user and its permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1702            *
1703            * @param pk the primary key of the user to clear the associated permissions from
1704            * @throws SystemException if a system exception occurred
1705            */
1706            public void clearPermissions(long pk)
1707                    throws com.liferay.portal.kernel.exception.SystemException;
1708    
1709            /**
1710            * Removes the association between the user and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1711            *
1712            * @param pk the primary key of the user
1713            * @param permissionPK the primary key of the permission
1714            * @throws SystemException if a system exception occurred
1715            */
1716            public void removePermission(long pk, long permissionPK)
1717                    throws com.liferay.portal.kernel.exception.SystemException;
1718    
1719            /**
1720            * Removes the association between the user and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1721            *
1722            * @param pk the primary key of the user
1723            * @param permission the permission
1724            * @throws SystemException if a system exception occurred
1725            */
1726            public void removePermission(long pk,
1727                    com.liferay.portal.model.Permission permission)
1728                    throws com.liferay.portal.kernel.exception.SystemException;
1729    
1730            /**
1731            * Removes the association between the user and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1732            *
1733            * @param pk the primary key of the user
1734            * @param permissionPKs the primary keys of the permissions
1735            * @throws SystemException if a system exception occurred
1736            */
1737            public void removePermissions(long pk, long[] permissionPKs)
1738                    throws com.liferay.portal.kernel.exception.SystemException;
1739    
1740            /**
1741            * Removes the association between the user and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1742            *
1743            * @param pk the primary key of the user
1744            * @param permissions the permissions
1745            * @throws SystemException if a system exception occurred
1746            */
1747            public void removePermissions(long pk,
1748                    java.util.List<com.liferay.portal.model.Permission> permissions)
1749                    throws com.liferay.portal.kernel.exception.SystemException;
1750    
1751            /**
1752            * Sets the permissions associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1753            *
1754            * @param pk the primary key of the user
1755            * @param permissionPKs the primary keys of the permissions to be associated with the user
1756            * @throws SystemException if a system exception occurred
1757            */
1758            public void setPermissions(long pk, long[] permissionPKs)
1759                    throws com.liferay.portal.kernel.exception.SystemException;
1760    
1761            /**
1762            * Sets the permissions associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1763            *
1764            * @param pk the primary key of the user
1765            * @param permissions the permissions to be associated with the user
1766            * @throws SystemException if a system exception occurred
1767            */
1768            public void setPermissions(long pk,
1769                    java.util.List<com.liferay.portal.model.Permission> permissions)
1770                    throws com.liferay.portal.kernel.exception.SystemException;
1771    
1772            /**
1773            * Returns all the roles associated with the user.
1774            *
1775            * @param pk the primary key of the user
1776            * @return the roles associated with the user
1777            * @throws SystemException if a system exception occurred
1778            */
1779            public java.util.List<com.liferay.portal.model.Role> getRoles(long pk)
1780                    throws com.liferay.portal.kernel.exception.SystemException;
1781    
1782            /**
1783            * Returns a range of all the roles associated with the user.
1784            *
1785            * <p>
1786            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1787            * </p>
1788            *
1789            * @param pk the primary key of the user
1790            * @param start the lower bound of the range of users
1791            * @param end the upper bound of the range of users (not inclusive)
1792            * @return the range of roles associated with the user
1793            * @throws SystemException if a system exception occurred
1794            */
1795            public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
1796                    int start, int end)
1797                    throws com.liferay.portal.kernel.exception.SystemException;
1798    
1799            /**
1800            * Returns an ordered range of all the roles associated with the user.
1801            *
1802            * <p>
1803            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1804            * </p>
1805            *
1806            * @param pk the primary key of the user
1807            * @param start the lower bound of the range of users
1808            * @param end the upper bound of the range of users (not inclusive)
1809            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1810            * @return the ordered range of roles associated with the user
1811            * @throws SystemException if a system exception occurred
1812            */
1813            public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
1814                    int start, int end,
1815                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1816                    throws com.liferay.portal.kernel.exception.SystemException;
1817    
1818            /**
1819            * Returns the number of roles associated with the user.
1820            *
1821            * @param pk the primary key of the user
1822            * @return the number of roles associated with the user
1823            * @throws SystemException if a system exception occurred
1824            */
1825            public int getRolesSize(long pk)
1826                    throws com.liferay.portal.kernel.exception.SystemException;
1827    
1828            /**
1829            * Returns <code>true</code> if the role is associated with the user.
1830            *
1831            * @param pk the primary key of the user
1832            * @param rolePK the primary key of the role
1833            * @return <code>true</code> if the role is associated with the user; <code>false</code> otherwise
1834            * @throws SystemException if a system exception occurred
1835            */
1836            public boolean containsRole(long pk, long rolePK)
1837                    throws com.liferay.portal.kernel.exception.SystemException;
1838    
1839            /**
1840            * Returns <code>true</code> if the user has any roles associated with it.
1841            *
1842            * @param pk the primary key of the user to check for associations with roles
1843            * @return <code>true</code> if the user has any roles associated with it; <code>false</code> otherwise
1844            * @throws SystemException if a system exception occurred
1845            */
1846            public boolean containsRoles(long pk)
1847                    throws com.liferay.portal.kernel.exception.SystemException;
1848    
1849            /**
1850            * Adds an association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1851            *
1852            * @param pk the primary key of the user
1853            * @param rolePK the primary key of the role
1854            * @throws SystemException if a system exception occurred
1855            */
1856            public void addRole(long pk, long rolePK)
1857                    throws com.liferay.portal.kernel.exception.SystemException;
1858    
1859            /**
1860            * Adds an association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1861            *
1862            * @param pk the primary key of the user
1863            * @param role the role
1864            * @throws SystemException if a system exception occurred
1865            */
1866            public void addRole(long pk, com.liferay.portal.model.Role role)
1867                    throws com.liferay.portal.kernel.exception.SystemException;
1868    
1869            /**
1870            * Adds an association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1871            *
1872            * @param pk the primary key of the user
1873            * @param rolePKs the primary keys of the roles
1874            * @throws SystemException if a system exception occurred
1875            */
1876            public void addRoles(long pk, long[] rolePKs)
1877                    throws com.liferay.portal.kernel.exception.SystemException;
1878    
1879            /**
1880            * Adds an association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1881            *
1882            * @param pk the primary key of the user
1883            * @param roles the roles
1884            * @throws SystemException if a system exception occurred
1885            */
1886            public void addRoles(long pk,
1887                    java.util.List<com.liferay.portal.model.Role> roles)
1888                    throws com.liferay.portal.kernel.exception.SystemException;
1889    
1890            /**
1891            * Clears all associations between the user and its roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1892            *
1893            * @param pk the primary key of the user to clear the associated roles from
1894            * @throws SystemException if a system exception occurred
1895            */
1896            public void clearRoles(long pk)
1897                    throws com.liferay.portal.kernel.exception.SystemException;
1898    
1899            /**
1900            * Removes the association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1901            *
1902            * @param pk the primary key of the user
1903            * @param rolePK the primary key of the role
1904            * @throws SystemException if a system exception occurred
1905            */
1906            public void removeRole(long pk, long rolePK)
1907                    throws com.liferay.portal.kernel.exception.SystemException;
1908    
1909            /**
1910            * Removes the association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1911            *
1912            * @param pk the primary key of the user
1913            * @param role the role
1914            * @throws SystemException if a system exception occurred
1915            */
1916            public void removeRole(long pk, com.liferay.portal.model.Role role)
1917                    throws com.liferay.portal.kernel.exception.SystemException;
1918    
1919            /**
1920            * Removes the association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1921            *
1922            * @param pk the primary key of the user
1923            * @param rolePKs the primary keys of the roles
1924            * @throws SystemException if a system exception occurred
1925            */
1926            public void removeRoles(long pk, long[] rolePKs)
1927                    throws com.liferay.portal.kernel.exception.SystemException;
1928    
1929            /**
1930            * Removes the association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1931            *
1932            * @param pk the primary key of the user
1933            * @param roles the roles
1934            * @throws SystemException if a system exception occurred
1935            */
1936            public void removeRoles(long pk,
1937                    java.util.List<com.liferay.portal.model.Role> roles)
1938                    throws com.liferay.portal.kernel.exception.SystemException;
1939    
1940            /**
1941            * Sets the roles associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1942            *
1943            * @param pk the primary key of the user
1944            * @param rolePKs the primary keys of the roles to be associated with the user
1945            * @throws SystemException if a system exception occurred
1946            */
1947            public void setRoles(long pk, long[] rolePKs)
1948                    throws com.liferay.portal.kernel.exception.SystemException;
1949    
1950            /**
1951            * Sets the roles associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1952            *
1953            * @param pk the primary key of the user
1954            * @param roles the roles to be associated with the user
1955            * @throws SystemException if a system exception occurred
1956            */
1957            public void setRoles(long pk,
1958                    java.util.List<com.liferay.portal.model.Role> roles)
1959                    throws com.liferay.portal.kernel.exception.SystemException;
1960    
1961            /**
1962            * Returns all the teams associated with the user.
1963            *
1964            * @param pk the primary key of the user
1965            * @return the teams associated with the user
1966            * @throws SystemException if a system exception occurred
1967            */
1968            public java.util.List<com.liferay.portal.model.Team> getTeams(long pk)
1969                    throws com.liferay.portal.kernel.exception.SystemException;
1970    
1971            /**
1972            * Returns a range of all the teams associated with the user.
1973            *
1974            * <p>
1975            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1976            * </p>
1977            *
1978            * @param pk the primary key of the user
1979            * @param start the lower bound of the range of users
1980            * @param end the upper bound of the range of users (not inclusive)
1981            * @return the range of teams associated with the user
1982            * @throws SystemException if a system exception occurred
1983            */
1984            public java.util.List<com.liferay.portal.model.Team> getTeams(long pk,
1985                    int start, int end)
1986                    throws com.liferay.portal.kernel.exception.SystemException;
1987    
1988            /**
1989            * Returns an ordered range of all the teams associated with the user.
1990            *
1991            * <p>
1992            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1993            * </p>
1994            *
1995            * @param pk the primary key of the user
1996            * @param start the lower bound of the range of users
1997            * @param end the upper bound of the range of users (not inclusive)
1998            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1999            * @return the ordered range of teams associated with the user
2000            * @throws SystemException if a system exception occurred
2001            */
2002            public java.util.List<com.liferay.portal.model.Team> getTeams(long pk,
2003                    int start, int end,
2004                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2005                    throws com.liferay.portal.kernel.exception.SystemException;
2006    
2007            /**
2008            * Returns the number of teams associated with the user.
2009            *
2010            * @param pk the primary key of the user
2011            * @return the number of teams associated with the user
2012            * @throws SystemException if a system exception occurred
2013            */
2014            public int getTeamsSize(long pk)
2015                    throws com.liferay.portal.kernel.exception.SystemException;
2016    
2017            /**
2018            * Returns <code>true</code> if the team is associated with the user.
2019            *
2020            * @param pk the primary key of the user
2021            * @param teamPK the primary key of the team
2022            * @return <code>true</code> if the team is associated with the user; <code>false</code> otherwise
2023            * @throws SystemException if a system exception occurred
2024            */
2025            public boolean containsTeam(long pk, long teamPK)
2026                    throws com.liferay.portal.kernel.exception.SystemException;
2027    
2028            /**
2029            * Returns <code>true</code> if the user has any teams associated with it.
2030            *
2031            * @param pk the primary key of the user to check for associations with teams
2032            * @return <code>true</code> if the user has any teams associated with it; <code>false</code> otherwise
2033            * @throws SystemException if a system exception occurred
2034            */
2035            public boolean containsTeams(long pk)
2036                    throws com.liferay.portal.kernel.exception.SystemException;
2037    
2038            /**
2039            * Adds an association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2040            *
2041            * @param pk the primary key of the user
2042            * @param teamPK the primary key of the team
2043            * @throws SystemException if a system exception occurred
2044            */
2045            public void addTeam(long pk, long teamPK)
2046                    throws com.liferay.portal.kernel.exception.SystemException;
2047    
2048            /**
2049            * Adds an association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2050            *
2051            * @param pk the primary key of the user
2052            * @param team the team
2053            * @throws SystemException if a system exception occurred
2054            */
2055            public void addTeam(long pk, com.liferay.portal.model.Team team)
2056                    throws com.liferay.portal.kernel.exception.SystemException;
2057    
2058            /**
2059            * Adds an association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2060            *
2061            * @param pk the primary key of the user
2062            * @param teamPKs the primary keys of the teams
2063            * @throws SystemException if a system exception occurred
2064            */
2065            public void addTeams(long pk, long[] teamPKs)
2066                    throws com.liferay.portal.kernel.exception.SystemException;
2067    
2068            /**
2069            * Adds an association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2070            *
2071            * @param pk the primary key of the user
2072            * @param teams the teams
2073            * @throws SystemException if a system exception occurred
2074            */
2075            public void addTeams(long pk,
2076                    java.util.List<com.liferay.portal.model.Team> teams)
2077                    throws com.liferay.portal.kernel.exception.SystemException;
2078    
2079            /**
2080            * Clears all associations between the user and its teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2081            *
2082            * @param pk the primary key of the user to clear the associated teams from
2083            * @throws SystemException if a system exception occurred
2084            */
2085            public void clearTeams(long pk)
2086                    throws com.liferay.portal.kernel.exception.SystemException;
2087    
2088            /**
2089            * Removes the association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2090            *
2091            * @param pk the primary key of the user
2092            * @param teamPK the primary key of the team
2093            * @throws SystemException if a system exception occurred
2094            */
2095            public void removeTeam(long pk, long teamPK)
2096                    throws com.liferay.portal.kernel.exception.SystemException;
2097    
2098            /**
2099            * Removes the association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2100            *
2101            * @param pk the primary key of the user
2102            * @param team the team
2103            * @throws SystemException if a system exception occurred
2104            */
2105            public void removeTeam(long pk, com.liferay.portal.model.Team team)
2106                    throws com.liferay.portal.kernel.exception.SystemException;
2107    
2108            /**
2109            * Removes the association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2110            *
2111            * @param pk the primary key of the user
2112            * @param teamPKs the primary keys of the teams
2113            * @throws SystemException if a system exception occurred
2114            */
2115            public void removeTeams(long pk, long[] teamPKs)
2116                    throws com.liferay.portal.kernel.exception.SystemException;
2117    
2118            /**
2119            * Removes the association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2120            *
2121            * @param pk the primary key of the user
2122            * @param teams the teams
2123            * @throws SystemException if a system exception occurred
2124            */
2125            public void removeTeams(long pk,
2126                    java.util.List<com.liferay.portal.model.Team> teams)
2127                    throws com.liferay.portal.kernel.exception.SystemException;
2128    
2129            /**
2130            * Sets the teams associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2131            *
2132            * @param pk the primary key of the user
2133            * @param teamPKs the primary keys of the teams to be associated with the user
2134            * @throws SystemException if a system exception occurred
2135            */
2136            public void setTeams(long pk, long[] teamPKs)
2137                    throws com.liferay.portal.kernel.exception.SystemException;
2138    
2139            /**
2140            * Sets the teams associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2141            *
2142            * @param pk the primary key of the user
2143            * @param teams the teams to be associated with the user
2144            * @throws SystemException if a system exception occurred
2145            */
2146            public void setTeams(long pk,
2147                    java.util.List<com.liferay.portal.model.Team> teams)
2148                    throws com.liferay.portal.kernel.exception.SystemException;
2149    
2150            /**
2151            * Returns all the user groups associated with the user.
2152            *
2153            * @param pk the primary key of the user
2154            * @return the user groups associated with the user
2155            * @throws SystemException if a system exception occurred
2156            */
2157            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
2158                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
2159    
2160            /**
2161            * Returns a range of all the user groups associated with the user.
2162            *
2163            * <p>
2164            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
2165            * </p>
2166            *
2167            * @param pk the primary key of the user
2168            * @param start the lower bound of the range of users
2169            * @param end the upper bound of the range of users (not inclusive)
2170            * @return the range of user groups associated with the user
2171            * @throws SystemException if a system exception occurred
2172            */
2173            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
2174                    long pk, int start, int end)
2175                    throws com.liferay.portal.kernel.exception.SystemException;
2176    
2177            /**
2178            * Returns an ordered range of all the user groups associated with the user.
2179            *
2180            * <p>
2181            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
2182            * </p>
2183            *
2184            * @param pk the primary key of the user
2185            * @param start the lower bound of the range of users
2186            * @param end the upper bound of the range of users (not inclusive)
2187            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2188            * @return the ordered range of user groups associated with the user
2189            * @throws SystemException if a system exception occurred
2190            */
2191            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
2192                    long pk, int start, int end,
2193                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2194                    throws com.liferay.portal.kernel.exception.SystemException;
2195    
2196            /**
2197            * Returns the number of user groups associated with the user.
2198            *
2199            * @param pk the primary key of the user
2200            * @return the number of user groups associated with the user
2201            * @throws SystemException if a system exception occurred
2202            */
2203            public int getUserGroupsSize(long pk)
2204                    throws com.liferay.portal.kernel.exception.SystemException;
2205    
2206            /**
2207            * Returns <code>true</code> if the user group is associated with the user.
2208            *
2209            * @param pk the primary key of the user
2210            * @param userGroupPK the primary key of the user group
2211            * @return <code>true</code> if the user group is associated with the user; <code>false</code> otherwise
2212            * @throws SystemException if a system exception occurred
2213            */
2214            public boolean containsUserGroup(long pk, long userGroupPK)
2215                    throws com.liferay.portal.kernel.exception.SystemException;
2216    
2217            /**
2218            * Returns <code>true</code> if the user has any user groups associated with it.
2219            *
2220            * @param pk the primary key of the user to check for associations with user groups
2221            * @return <code>true</code> if the user has any user groups associated with it; <code>false</code> otherwise
2222            * @throws SystemException if a system exception occurred
2223            */
2224            public boolean containsUserGroups(long pk)
2225                    throws com.liferay.portal.kernel.exception.SystemException;
2226    
2227            /**
2228            * Adds an association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2229            *
2230            * @param pk the primary key of the user
2231            * @param userGroupPK the primary key of the user group
2232            * @throws SystemException if a system exception occurred
2233            */
2234            public void addUserGroup(long pk, long userGroupPK)
2235                    throws com.liferay.portal.kernel.exception.SystemException;
2236    
2237            /**
2238            * Adds an association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2239            *
2240            * @param pk the primary key of the user
2241            * @param userGroup the user group
2242            * @throws SystemException if a system exception occurred
2243            */
2244            public void addUserGroup(long pk,
2245                    com.liferay.portal.model.UserGroup userGroup)
2246                    throws com.liferay.portal.kernel.exception.SystemException;
2247    
2248            /**
2249            * Adds an association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2250            *
2251            * @param pk the primary key of the user
2252            * @param userGroupPKs the primary keys of the user groups
2253            * @throws SystemException if a system exception occurred
2254            */
2255            public void addUserGroups(long pk, long[] userGroupPKs)
2256                    throws com.liferay.portal.kernel.exception.SystemException;
2257    
2258            /**
2259            * Adds an association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2260            *
2261            * @param pk the primary key of the user
2262            * @param userGroups the user groups
2263            * @throws SystemException if a system exception occurred
2264            */
2265            public void addUserGroups(long pk,
2266                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
2267                    throws com.liferay.portal.kernel.exception.SystemException;
2268    
2269            /**
2270            * Clears all associations between the user and its user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2271            *
2272            * @param pk the primary key of the user to clear the associated user groups from
2273            * @throws SystemException if a system exception occurred
2274            */
2275            public void clearUserGroups(long pk)
2276                    throws com.liferay.portal.kernel.exception.SystemException;
2277    
2278            /**
2279            * Removes the association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2280            *
2281            * @param pk the primary key of the user
2282            * @param userGroupPK the primary key of the user group
2283            * @throws SystemException if a system exception occurred
2284            */
2285            public void removeUserGroup(long pk, long userGroupPK)
2286                    throws com.liferay.portal.kernel.exception.SystemException;
2287    
2288            /**
2289            * Removes the association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2290            *
2291            * @param pk the primary key of the user
2292            * @param userGroup the user group
2293            * @throws SystemException if a system exception occurred
2294            */
2295            public void removeUserGroup(long pk,
2296                    com.liferay.portal.model.UserGroup userGroup)
2297                    throws com.liferay.portal.kernel.exception.SystemException;
2298    
2299            /**
2300            * Removes the association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2301            *
2302            * @param pk the primary key of the user
2303            * @param userGroupPKs the primary keys of the user groups
2304            * @throws SystemException if a system exception occurred
2305            */
2306            public void removeUserGroups(long pk, long[] userGroupPKs)
2307                    throws com.liferay.portal.kernel.exception.SystemException;
2308    
2309            /**
2310            * Removes the association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2311            *
2312            * @param pk the primary key of the user
2313            * @param userGroups the user groups
2314            * @throws SystemException if a system exception occurred
2315            */
2316            public void removeUserGroups(long pk,
2317                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
2318                    throws com.liferay.portal.kernel.exception.SystemException;
2319    
2320            /**
2321            * Sets the user groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2322            *
2323            * @param pk the primary key of the user
2324            * @param userGroupPKs the primary keys of the user groups to be associated with the user
2325            * @throws SystemException if a system exception occurred
2326            */
2327            public void setUserGroups(long pk, long[] userGroupPKs)
2328                    throws com.liferay.portal.kernel.exception.SystemException;
2329    
2330            /**
2331            * Sets the user groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2332            *
2333            * @param pk the primary key of the user
2334            * @param userGroups the user groups to be associated with the user
2335            * @throws SystemException if a system exception occurred
2336            */
2337            public void setUserGroups(long pk,
2338                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
2339                    throws com.liferay.portal.kernel.exception.SystemException;
2340    }