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