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