001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.UserGroup;
018    
019    /**
020     * The persistence interface for the user group service.
021     *
022     * <p>
023     * Caching information and settings can be found in <code>portal.properties</code>
024     * </p>
025     *
026     * @author Brian Wing Shun Chan
027     * @see UserGroupPersistenceImpl
028     * @see UserGroupUtil
029     * @generated
030     */
031    public interface UserGroupPersistence extends BasePersistence<UserGroup> {
032            /*
033             * NOTE FOR DEVELOPERS:
034             *
035             * Never modify or reference this interface directly. Always use {@link UserGroupUtil} to access the user group persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
036             */
037    
038            /**
039            * Returns all the user groups where uuid = &#63;.
040            *
041            * @param uuid the uuid
042            * @return the matching user groups
043            * @throws SystemException if a system exception occurred
044            */
045            public java.util.List<com.liferay.portal.model.UserGroup> findByUuid(
046                    java.lang.String uuid)
047                    throws com.liferay.portal.kernel.exception.SystemException;
048    
049            /**
050            * Returns a range of all the user groups where uuid = &#63;.
051            *
052            * <p>
053            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
054            * </p>
055            *
056            * @param uuid the uuid
057            * @param start the lower bound of the range of user groups
058            * @param end the upper bound of the range of user groups (not inclusive)
059            * @return the range of matching user groups
060            * @throws SystemException if a system exception occurred
061            */
062            public java.util.List<com.liferay.portal.model.UserGroup> findByUuid(
063                    java.lang.String uuid, int start, int end)
064                    throws com.liferay.portal.kernel.exception.SystemException;
065    
066            /**
067            * Returns an ordered range of all the user groups where uuid = &#63;.
068            *
069            * <p>
070            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
071            * </p>
072            *
073            * @param uuid the uuid
074            * @param start the lower bound of the range of user groups
075            * @param end the upper bound of the range of user groups (not inclusive)
076            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
077            * @return the ordered range of matching user groups
078            * @throws SystemException if a system exception occurred
079            */
080            public java.util.List<com.liferay.portal.model.UserGroup> findByUuid(
081                    java.lang.String uuid, int start, int end,
082                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
083                    throws com.liferay.portal.kernel.exception.SystemException;
084    
085            /**
086            * Returns the first user group in the ordered set where uuid = &#63;.
087            *
088            * @param uuid the uuid
089            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
090            * @return the first matching user group
091            * @throws com.liferay.portal.NoSuchUserGroupException if a matching user group could not be found
092            * @throws SystemException if a system exception occurred
093            */
094            public com.liferay.portal.model.UserGroup findByUuid_First(
095                    java.lang.String uuid,
096                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
097                    throws com.liferay.portal.NoSuchUserGroupException,
098                            com.liferay.portal.kernel.exception.SystemException;
099    
100            /**
101            * Returns the first user group in the ordered set where uuid = &#63;.
102            *
103            * @param uuid the uuid
104            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
105            * @return the first matching user group, or <code>null</code> if a matching user group could not be found
106            * @throws SystemException if a system exception occurred
107            */
108            public com.liferay.portal.model.UserGroup fetchByUuid_First(
109                    java.lang.String uuid,
110                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111                    throws com.liferay.portal.kernel.exception.SystemException;
112    
113            /**
114            * Returns the last user group in the ordered set where uuid = &#63;.
115            *
116            * @param uuid the uuid
117            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
118            * @return the last matching user group
119            * @throws com.liferay.portal.NoSuchUserGroupException if a matching user group could not be found
120            * @throws SystemException if a system exception occurred
121            */
122            public com.liferay.portal.model.UserGroup findByUuid_Last(
123                    java.lang.String uuid,
124                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125                    throws com.liferay.portal.NoSuchUserGroupException,
126                            com.liferay.portal.kernel.exception.SystemException;
127    
128            /**
129            * Returns the last user group in the ordered set where uuid = &#63;.
130            *
131            * @param uuid the uuid
132            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
133            * @return the last matching user group, or <code>null</code> if a matching user group could not be found
134            * @throws SystemException if a system exception occurred
135            */
136            public com.liferay.portal.model.UserGroup fetchByUuid_Last(
137                    java.lang.String uuid,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            /**
142            * Returns the user groups before and after the current user group in the ordered set where uuid = &#63;.
143            *
144            * @param userGroupId the primary key of the current user group
145            * @param uuid the uuid
146            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
147            * @return the previous, current, and next user group
148            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
149            * @throws SystemException if a system exception occurred
150            */
151            public com.liferay.portal.model.UserGroup[] findByUuid_PrevAndNext(
152                    long userGroupId, java.lang.String uuid,
153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154                    throws com.liferay.portal.NoSuchUserGroupException,
155                            com.liferay.portal.kernel.exception.SystemException;
156    
157            /**
158            * Returns all the user groups that the user has permission to view where uuid = &#63;.
159            *
160            * @param uuid the uuid
161            * @return the matching user groups that the user has permission to view
162            * @throws SystemException if a system exception occurred
163            */
164            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByUuid(
165                    java.lang.String uuid)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            /**
169            * Returns a range of all the user groups that the user has permission to view where uuid = &#63;.
170            *
171            * <p>
172            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
173            * </p>
174            *
175            * @param uuid the uuid
176            * @param start the lower bound of the range of user groups
177            * @param end the upper bound of the range of user groups (not inclusive)
178            * @return the range of matching user groups that the user has permission to view
179            * @throws SystemException if a system exception occurred
180            */
181            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByUuid(
182                    java.lang.String uuid, int start, int end)
183                    throws com.liferay.portal.kernel.exception.SystemException;
184    
185            /**
186            * Returns an ordered range of all the user groups that the user has permissions to view where uuid = &#63;.
187            *
188            * <p>
189            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
190            * </p>
191            *
192            * @param uuid the uuid
193            * @param start the lower bound of the range of user groups
194            * @param end the upper bound of the range of user groups (not inclusive)
195            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
196            * @return the ordered range of matching user groups that the user has permission to view
197            * @throws SystemException if a system exception occurred
198            */
199            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByUuid(
200                    java.lang.String uuid, int start, int end,
201                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202                    throws com.liferay.portal.kernel.exception.SystemException;
203    
204            /**
205            * Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where uuid = &#63;.
206            *
207            * @param userGroupId the primary key of the current user group
208            * @param uuid the uuid
209            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
210            * @return the previous, current, and next user group
211            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
212            * @throws SystemException if a system exception occurred
213            */
214            public com.liferay.portal.model.UserGroup[] filterFindByUuid_PrevAndNext(
215                    long userGroupId, java.lang.String uuid,
216                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
217                    throws com.liferay.portal.NoSuchUserGroupException,
218                            com.liferay.portal.kernel.exception.SystemException;
219    
220            /**
221            * Removes all the user groups where uuid = &#63; from the database.
222            *
223            * @param uuid the uuid
224            * @throws SystemException if a system exception occurred
225            */
226            public void removeByUuid(java.lang.String uuid)
227                    throws com.liferay.portal.kernel.exception.SystemException;
228    
229            /**
230            * Returns the number of user groups where uuid = &#63;.
231            *
232            * @param uuid the uuid
233            * @return the number of matching user groups
234            * @throws SystemException if a system exception occurred
235            */
236            public int countByUuid(java.lang.String uuid)
237                    throws com.liferay.portal.kernel.exception.SystemException;
238    
239            /**
240            * Returns the number of user groups that the user has permission to view where uuid = &#63;.
241            *
242            * @param uuid the uuid
243            * @return the number of matching user groups that the user has permission to view
244            * @throws SystemException if a system exception occurred
245            */
246            public int filterCountByUuid(java.lang.String uuid)
247                    throws com.liferay.portal.kernel.exception.SystemException;
248    
249            /**
250            * Returns all the user groups where uuid = &#63; and companyId = &#63;.
251            *
252            * @param uuid the uuid
253            * @param companyId the company ID
254            * @return the matching user groups
255            * @throws SystemException if a system exception occurred
256            */
257            public java.util.List<com.liferay.portal.model.UserGroup> findByUuid_C(
258                    java.lang.String uuid, long companyId)
259                    throws com.liferay.portal.kernel.exception.SystemException;
260    
261            /**
262            * Returns a range of all the user groups where uuid = &#63; and companyId = &#63;.
263            *
264            * <p>
265            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
266            * </p>
267            *
268            * @param uuid the uuid
269            * @param companyId the company ID
270            * @param start the lower bound of the range of user groups
271            * @param end the upper bound of the range of user groups (not inclusive)
272            * @return the range of matching user groups
273            * @throws SystemException if a system exception occurred
274            */
275            public java.util.List<com.liferay.portal.model.UserGroup> findByUuid_C(
276                    java.lang.String uuid, long companyId, int start, int end)
277                    throws com.liferay.portal.kernel.exception.SystemException;
278    
279            /**
280            * Returns an ordered range of all the user groups where uuid = &#63; and companyId = &#63;.
281            *
282            * <p>
283            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
284            * </p>
285            *
286            * @param uuid the uuid
287            * @param companyId the company ID
288            * @param start the lower bound of the range of user groups
289            * @param end the upper bound of the range of user groups (not inclusive)
290            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
291            * @return the ordered range of matching user groups
292            * @throws SystemException if a system exception occurred
293            */
294            public java.util.List<com.liferay.portal.model.UserGroup> findByUuid_C(
295                    java.lang.String uuid, long companyId, int start, int end,
296                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
297                    throws com.liferay.portal.kernel.exception.SystemException;
298    
299            /**
300            * Returns the first user group in the ordered set where uuid = &#63; and companyId = &#63;.
301            *
302            * @param uuid the uuid
303            * @param companyId the company ID
304            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
305            * @return the first matching user group
306            * @throws com.liferay.portal.NoSuchUserGroupException if a matching user group could not be found
307            * @throws SystemException if a system exception occurred
308            */
309            public com.liferay.portal.model.UserGroup findByUuid_C_First(
310                    java.lang.String uuid, long companyId,
311                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312                    throws com.liferay.portal.NoSuchUserGroupException,
313                            com.liferay.portal.kernel.exception.SystemException;
314    
315            /**
316            * Returns the first user group in the ordered set where uuid = &#63; and companyId = &#63;.
317            *
318            * @param uuid the uuid
319            * @param companyId the company ID
320            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
321            * @return the first matching user group, or <code>null</code> if a matching user group could not be found
322            * @throws SystemException if a system exception occurred
323            */
324            public com.liferay.portal.model.UserGroup fetchByUuid_C_First(
325                    java.lang.String uuid, long companyId,
326                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
327                    throws com.liferay.portal.kernel.exception.SystemException;
328    
329            /**
330            * Returns the last user group in the ordered set where uuid = &#63; and companyId = &#63;.
331            *
332            * @param uuid the uuid
333            * @param companyId the company ID
334            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
335            * @return the last matching user group
336            * @throws com.liferay.portal.NoSuchUserGroupException if a matching user group could not be found
337            * @throws SystemException if a system exception occurred
338            */
339            public com.liferay.portal.model.UserGroup findByUuid_C_Last(
340                    java.lang.String uuid, long companyId,
341                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
342                    throws com.liferay.portal.NoSuchUserGroupException,
343                            com.liferay.portal.kernel.exception.SystemException;
344    
345            /**
346            * Returns the last user group in the ordered set where uuid = &#63; and companyId = &#63;.
347            *
348            * @param uuid the uuid
349            * @param companyId the company ID
350            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
351            * @return the last matching user group, or <code>null</code> if a matching user group could not be found
352            * @throws SystemException if a system exception occurred
353            */
354            public com.liferay.portal.model.UserGroup fetchByUuid_C_Last(
355                    java.lang.String uuid, long companyId,
356                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
357                    throws com.liferay.portal.kernel.exception.SystemException;
358    
359            /**
360            * Returns the user groups before and after the current user group in the ordered set where uuid = &#63; and companyId = &#63;.
361            *
362            * @param userGroupId the primary key of the current user group
363            * @param uuid the uuid
364            * @param companyId the company ID
365            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
366            * @return the previous, current, and next user group
367            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
368            * @throws SystemException if a system exception occurred
369            */
370            public com.liferay.portal.model.UserGroup[] findByUuid_C_PrevAndNext(
371                    long userGroupId, java.lang.String uuid, long companyId,
372                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
373                    throws com.liferay.portal.NoSuchUserGroupException,
374                            com.liferay.portal.kernel.exception.SystemException;
375    
376            /**
377            * Returns all the user groups that the user has permission to view where uuid = &#63; and companyId = &#63;.
378            *
379            * @param uuid the uuid
380            * @param companyId the company ID
381            * @return the matching user groups that the user has permission to view
382            * @throws SystemException if a system exception occurred
383            */
384            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByUuid_C(
385                    java.lang.String uuid, long companyId)
386                    throws com.liferay.portal.kernel.exception.SystemException;
387    
388            /**
389            * Returns a range of all the user groups that the user has permission to view where uuid = &#63; and companyId = &#63;.
390            *
391            * <p>
392            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
393            * </p>
394            *
395            * @param uuid the uuid
396            * @param companyId the company ID
397            * @param start the lower bound of the range of user groups
398            * @param end the upper bound of the range of user groups (not inclusive)
399            * @return the range of matching user groups that the user has permission to view
400            * @throws SystemException if a system exception occurred
401            */
402            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByUuid_C(
403                    java.lang.String uuid, long companyId, int start, int end)
404                    throws com.liferay.portal.kernel.exception.SystemException;
405    
406            /**
407            * Returns an ordered range of all the user groups that the user has permissions to view where uuid = &#63; and companyId = &#63;.
408            *
409            * <p>
410            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
411            * </p>
412            *
413            * @param uuid the uuid
414            * @param companyId the company ID
415            * @param start the lower bound of the range of user groups
416            * @param end the upper bound of the range of user groups (not inclusive)
417            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
418            * @return the ordered range of matching user groups that the user has permission to view
419            * @throws SystemException if a system exception occurred
420            */
421            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByUuid_C(
422                    java.lang.String uuid, long companyId, int start, int end,
423                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
424                    throws com.liferay.portal.kernel.exception.SystemException;
425    
426            /**
427            * Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where uuid = &#63; and companyId = &#63;.
428            *
429            * @param userGroupId the primary key of the current user group
430            * @param uuid the uuid
431            * @param companyId the company ID
432            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
433            * @return the previous, current, and next user group
434            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
435            * @throws SystemException if a system exception occurred
436            */
437            public com.liferay.portal.model.UserGroup[] filterFindByUuid_C_PrevAndNext(
438                    long userGroupId, java.lang.String uuid, long companyId,
439                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
440                    throws com.liferay.portal.NoSuchUserGroupException,
441                            com.liferay.portal.kernel.exception.SystemException;
442    
443            /**
444            * Removes all the user groups where uuid = &#63; and companyId = &#63; from the database.
445            *
446            * @param uuid the uuid
447            * @param companyId the company ID
448            * @throws SystemException if a system exception occurred
449            */
450            public void removeByUuid_C(java.lang.String uuid, long companyId)
451                    throws com.liferay.portal.kernel.exception.SystemException;
452    
453            /**
454            * Returns the number of user groups where uuid = &#63; and companyId = &#63;.
455            *
456            * @param uuid the uuid
457            * @param companyId the company ID
458            * @return the number of matching user groups
459            * @throws SystemException if a system exception occurred
460            */
461            public int countByUuid_C(java.lang.String uuid, long companyId)
462                    throws com.liferay.portal.kernel.exception.SystemException;
463    
464            /**
465            * Returns the number of user groups that the user has permission to view where uuid = &#63; and companyId = &#63;.
466            *
467            * @param uuid the uuid
468            * @param companyId the company ID
469            * @return the number of matching user groups that the user has permission to view
470            * @throws SystemException if a system exception occurred
471            */
472            public int filterCountByUuid_C(java.lang.String uuid, long companyId)
473                    throws com.liferay.portal.kernel.exception.SystemException;
474    
475            /**
476            * Returns all the user groups where companyId = &#63;.
477            *
478            * @param companyId the company ID
479            * @return the matching user groups
480            * @throws SystemException if a system exception occurred
481            */
482            public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
483                    long companyId)
484                    throws com.liferay.portal.kernel.exception.SystemException;
485    
486            /**
487            * Returns a range of all the user groups where companyId = &#63;.
488            *
489            * <p>
490            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
491            * </p>
492            *
493            * @param companyId the company ID
494            * @param start the lower bound of the range of user groups
495            * @param end the upper bound of the range of user groups (not inclusive)
496            * @return the range of matching user groups
497            * @throws SystemException if a system exception occurred
498            */
499            public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
500                    long companyId, int start, int end)
501                    throws com.liferay.portal.kernel.exception.SystemException;
502    
503            /**
504            * Returns an ordered range of all the user groups where companyId = &#63;.
505            *
506            * <p>
507            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
508            * </p>
509            *
510            * @param companyId the company ID
511            * @param start the lower bound of the range of user groups
512            * @param end the upper bound of the range of user groups (not inclusive)
513            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
514            * @return the ordered range of matching user groups
515            * @throws SystemException if a system exception occurred
516            */
517            public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
518                    long companyId, int start, int end,
519                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
520                    throws com.liferay.portal.kernel.exception.SystemException;
521    
522            /**
523            * Returns the first user group in the ordered set where companyId = &#63;.
524            *
525            * @param companyId the company ID
526            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
527            * @return the first matching user group
528            * @throws com.liferay.portal.NoSuchUserGroupException if a matching user group could not be found
529            * @throws SystemException if a system exception occurred
530            */
531            public com.liferay.portal.model.UserGroup findByCompanyId_First(
532                    long companyId,
533                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
534                    throws com.liferay.portal.NoSuchUserGroupException,
535                            com.liferay.portal.kernel.exception.SystemException;
536    
537            /**
538            * Returns the first user group in the ordered set where companyId = &#63;.
539            *
540            * @param companyId the company ID
541            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
542            * @return the first matching user group, or <code>null</code> if a matching user group could not be found
543            * @throws SystemException if a system exception occurred
544            */
545            public com.liferay.portal.model.UserGroup fetchByCompanyId_First(
546                    long companyId,
547                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
548                    throws com.liferay.portal.kernel.exception.SystemException;
549    
550            /**
551            * Returns the last user group in the ordered set where companyId = &#63;.
552            *
553            * @param companyId the company ID
554            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
555            * @return the last matching user group
556            * @throws com.liferay.portal.NoSuchUserGroupException if a matching user group could not be found
557            * @throws SystemException if a system exception occurred
558            */
559            public com.liferay.portal.model.UserGroup findByCompanyId_Last(
560                    long companyId,
561                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
562                    throws com.liferay.portal.NoSuchUserGroupException,
563                            com.liferay.portal.kernel.exception.SystemException;
564    
565            /**
566            * Returns the last user group in the ordered set where companyId = &#63;.
567            *
568            * @param companyId the company ID
569            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
570            * @return the last matching user group, or <code>null</code> if a matching user group could not be found
571            * @throws SystemException if a system exception occurred
572            */
573            public com.liferay.portal.model.UserGroup fetchByCompanyId_Last(
574                    long companyId,
575                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
576                    throws com.liferay.portal.kernel.exception.SystemException;
577    
578            /**
579            * Returns the user groups before and after the current user group in the ordered set where companyId = &#63;.
580            *
581            * @param userGroupId the primary key of the current user group
582            * @param companyId the company ID
583            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
584            * @return the previous, current, and next user group
585            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
586            * @throws SystemException if a system exception occurred
587            */
588            public com.liferay.portal.model.UserGroup[] findByCompanyId_PrevAndNext(
589                    long userGroupId, long companyId,
590                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
591                    throws com.liferay.portal.NoSuchUserGroupException,
592                            com.liferay.portal.kernel.exception.SystemException;
593    
594            /**
595            * Returns all the user groups that the user has permission to view where companyId = &#63;.
596            *
597            * @param companyId the company ID
598            * @return the matching user groups that the user has permission to view
599            * @throws SystemException if a system exception occurred
600            */
601            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByCompanyId(
602                    long companyId)
603                    throws com.liferay.portal.kernel.exception.SystemException;
604    
605            /**
606            * Returns a range of all the user groups that the user has permission to view where companyId = &#63;.
607            *
608            * <p>
609            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
610            * </p>
611            *
612            * @param companyId the company ID
613            * @param start the lower bound of the range of user groups
614            * @param end the upper bound of the range of user groups (not inclusive)
615            * @return the range of matching user groups that the user has permission to view
616            * @throws SystemException if a system exception occurred
617            */
618            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByCompanyId(
619                    long companyId, int start, int end)
620                    throws com.liferay.portal.kernel.exception.SystemException;
621    
622            /**
623            * Returns an ordered range of all the user groups that the user has permissions to view where companyId = &#63;.
624            *
625            * <p>
626            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
627            * </p>
628            *
629            * @param companyId the company ID
630            * @param start the lower bound of the range of user groups
631            * @param end the upper bound of the range of user groups (not inclusive)
632            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
633            * @return the ordered range of matching user groups that the user has permission to view
634            * @throws SystemException if a system exception occurred
635            */
636            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByCompanyId(
637                    long companyId, int start, int end,
638                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
639                    throws com.liferay.portal.kernel.exception.SystemException;
640    
641            /**
642            * Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where companyId = &#63;.
643            *
644            * @param userGroupId the primary key of the current user group
645            * @param companyId the company ID
646            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
647            * @return the previous, current, and next user group
648            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
649            * @throws SystemException if a system exception occurred
650            */
651            public com.liferay.portal.model.UserGroup[] filterFindByCompanyId_PrevAndNext(
652                    long userGroupId, long companyId,
653                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
654                    throws com.liferay.portal.NoSuchUserGroupException,
655                            com.liferay.portal.kernel.exception.SystemException;
656    
657            /**
658            * Removes all the user groups where companyId = &#63; from the database.
659            *
660            * @param companyId the company ID
661            * @throws SystemException if a system exception occurred
662            */
663            public void removeByCompanyId(long companyId)
664                    throws com.liferay.portal.kernel.exception.SystemException;
665    
666            /**
667            * Returns the number of user groups where companyId = &#63;.
668            *
669            * @param companyId the company ID
670            * @return the number of matching user groups
671            * @throws SystemException if a system exception occurred
672            */
673            public int countByCompanyId(long companyId)
674                    throws com.liferay.portal.kernel.exception.SystemException;
675    
676            /**
677            * Returns the number of user groups that the user has permission to view where companyId = &#63;.
678            *
679            * @param companyId the company ID
680            * @return the number of matching user groups that the user has permission to view
681            * @throws SystemException if a system exception occurred
682            */
683            public int filterCountByCompanyId(long companyId)
684                    throws com.liferay.portal.kernel.exception.SystemException;
685    
686            /**
687            * Returns all the user groups where companyId = &#63; and parentUserGroupId = &#63;.
688            *
689            * @param companyId the company ID
690            * @param parentUserGroupId the parent user group ID
691            * @return the matching user groups
692            * @throws SystemException if a system exception occurred
693            */
694            public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
695                    long companyId, long parentUserGroupId)
696                    throws com.liferay.portal.kernel.exception.SystemException;
697    
698            /**
699            * Returns a range of all the user groups where companyId = &#63; and parentUserGroupId = &#63;.
700            *
701            * <p>
702            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
703            * </p>
704            *
705            * @param companyId the company ID
706            * @param parentUserGroupId the parent user group ID
707            * @param start the lower bound of the range of user groups
708            * @param end the upper bound of the range of user groups (not inclusive)
709            * @return the range of matching user groups
710            * @throws SystemException if a system exception occurred
711            */
712            public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
713                    long companyId, long parentUserGroupId, int start, int end)
714                    throws com.liferay.portal.kernel.exception.SystemException;
715    
716            /**
717            * Returns an ordered range of all the user groups where companyId = &#63; and parentUserGroupId = &#63;.
718            *
719            * <p>
720            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
721            * </p>
722            *
723            * @param companyId the company ID
724            * @param parentUserGroupId the parent user group ID
725            * @param start the lower bound of the range of user groups
726            * @param end the upper bound of the range of user groups (not inclusive)
727            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
728            * @return the ordered range of matching user groups
729            * @throws SystemException if a system exception occurred
730            */
731            public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
732                    long companyId, long parentUserGroupId, int start, int end,
733                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
734                    throws com.liferay.portal.kernel.exception.SystemException;
735    
736            /**
737            * Returns the first user group in the ordered set where companyId = &#63; and parentUserGroupId = &#63;.
738            *
739            * @param companyId the company ID
740            * @param parentUserGroupId the parent user group ID
741            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
742            * @return the first matching user group
743            * @throws com.liferay.portal.NoSuchUserGroupException if a matching user group could not be found
744            * @throws SystemException if a system exception occurred
745            */
746            public com.liferay.portal.model.UserGroup findByC_P_First(long companyId,
747                    long parentUserGroupId,
748                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
749                    throws com.liferay.portal.NoSuchUserGroupException,
750                            com.liferay.portal.kernel.exception.SystemException;
751    
752            /**
753            * Returns the first user group in the ordered set where companyId = &#63; and parentUserGroupId = &#63;.
754            *
755            * @param companyId the company ID
756            * @param parentUserGroupId the parent user group ID
757            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
758            * @return the first matching user group, or <code>null</code> if a matching user group could not be found
759            * @throws SystemException if a system exception occurred
760            */
761            public com.liferay.portal.model.UserGroup fetchByC_P_First(long companyId,
762                    long parentUserGroupId,
763                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
764                    throws com.liferay.portal.kernel.exception.SystemException;
765    
766            /**
767            * Returns the last user group in the ordered set where companyId = &#63; and parentUserGroupId = &#63;.
768            *
769            * @param companyId the company ID
770            * @param parentUserGroupId the parent user group ID
771            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
772            * @return the last matching user group
773            * @throws com.liferay.portal.NoSuchUserGroupException if a matching user group could not be found
774            * @throws SystemException if a system exception occurred
775            */
776            public com.liferay.portal.model.UserGroup findByC_P_Last(long companyId,
777                    long parentUserGroupId,
778                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
779                    throws com.liferay.portal.NoSuchUserGroupException,
780                            com.liferay.portal.kernel.exception.SystemException;
781    
782            /**
783            * Returns the last user group in the ordered set where companyId = &#63; and parentUserGroupId = &#63;.
784            *
785            * @param companyId the company ID
786            * @param parentUserGroupId the parent user group ID
787            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
788            * @return the last matching user group, or <code>null</code> if a matching user group could not be found
789            * @throws SystemException if a system exception occurred
790            */
791            public com.liferay.portal.model.UserGroup fetchByC_P_Last(long companyId,
792                    long parentUserGroupId,
793                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
794                    throws com.liferay.portal.kernel.exception.SystemException;
795    
796            /**
797            * Returns the user groups before and after the current user group in the ordered set where companyId = &#63; and parentUserGroupId = &#63;.
798            *
799            * @param userGroupId the primary key of the current user group
800            * @param companyId the company ID
801            * @param parentUserGroupId the parent user group ID
802            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
803            * @return the previous, current, and next user group
804            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
805            * @throws SystemException if a system exception occurred
806            */
807            public com.liferay.portal.model.UserGroup[] findByC_P_PrevAndNext(
808                    long userGroupId, long companyId, long parentUserGroupId,
809                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
810                    throws com.liferay.portal.NoSuchUserGroupException,
811                            com.liferay.portal.kernel.exception.SystemException;
812    
813            /**
814            * Returns all the user groups that the user has permission to view where companyId = &#63; and parentUserGroupId = &#63;.
815            *
816            * @param companyId the company ID
817            * @param parentUserGroupId the parent user group ID
818            * @return the matching user groups that the user has permission to view
819            * @throws SystemException if a system exception occurred
820            */
821            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByC_P(
822                    long companyId, long parentUserGroupId)
823                    throws com.liferay.portal.kernel.exception.SystemException;
824    
825            /**
826            * Returns a range of all the user groups that the user has permission to view where companyId = &#63; and parentUserGroupId = &#63;.
827            *
828            * <p>
829            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
830            * </p>
831            *
832            * @param companyId the company ID
833            * @param parentUserGroupId the parent user group ID
834            * @param start the lower bound of the range of user groups
835            * @param end the upper bound of the range of user groups (not inclusive)
836            * @return the range of matching user groups that the user has permission to view
837            * @throws SystemException if a system exception occurred
838            */
839            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByC_P(
840                    long companyId, long parentUserGroupId, int start, int end)
841                    throws com.liferay.portal.kernel.exception.SystemException;
842    
843            /**
844            * Returns an ordered range of all the user groups that the user has permissions to view where companyId = &#63; and parentUserGroupId = &#63;.
845            *
846            * <p>
847            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
848            * </p>
849            *
850            * @param companyId the company ID
851            * @param parentUserGroupId the parent user group ID
852            * @param start the lower bound of the range of user groups
853            * @param end the upper bound of the range of user groups (not inclusive)
854            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
855            * @return the ordered range of matching user groups that the user has permission to view
856            * @throws SystemException if a system exception occurred
857            */
858            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByC_P(
859                    long companyId, long parentUserGroupId, int start, int end,
860                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
861                    throws com.liferay.portal.kernel.exception.SystemException;
862    
863            /**
864            * Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where companyId = &#63; and parentUserGroupId = &#63;.
865            *
866            * @param userGroupId the primary key of the current user group
867            * @param companyId the company ID
868            * @param parentUserGroupId the parent user group ID
869            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
870            * @return the previous, current, and next user group
871            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
872            * @throws SystemException if a system exception occurred
873            */
874            public com.liferay.portal.model.UserGroup[] filterFindByC_P_PrevAndNext(
875                    long userGroupId, long companyId, long parentUserGroupId,
876                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
877                    throws com.liferay.portal.NoSuchUserGroupException,
878                            com.liferay.portal.kernel.exception.SystemException;
879    
880            /**
881            * Removes all the user groups where companyId = &#63; and parentUserGroupId = &#63; from the database.
882            *
883            * @param companyId the company ID
884            * @param parentUserGroupId the parent user group ID
885            * @throws SystemException if a system exception occurred
886            */
887            public void removeByC_P(long companyId, long parentUserGroupId)
888                    throws com.liferay.portal.kernel.exception.SystemException;
889    
890            /**
891            * Returns the number of user groups where companyId = &#63; and parentUserGroupId = &#63;.
892            *
893            * @param companyId the company ID
894            * @param parentUserGroupId the parent user group ID
895            * @return the number of matching user groups
896            * @throws SystemException if a system exception occurred
897            */
898            public int countByC_P(long companyId, long parentUserGroupId)
899                    throws com.liferay.portal.kernel.exception.SystemException;
900    
901            /**
902            * Returns the number of user groups that the user has permission to view where companyId = &#63; and parentUserGroupId = &#63;.
903            *
904            * @param companyId the company ID
905            * @param parentUserGroupId the parent user group ID
906            * @return the number of matching user groups that the user has permission to view
907            * @throws SystemException if a system exception occurred
908            */
909            public int filterCountByC_P(long companyId, long parentUserGroupId)
910                    throws com.liferay.portal.kernel.exception.SystemException;
911    
912            /**
913            * Returns the user group where companyId = &#63; and name = &#63; or throws a {@link com.liferay.portal.NoSuchUserGroupException} if it could not be found.
914            *
915            * @param companyId the company ID
916            * @param name the name
917            * @return the matching user group
918            * @throws com.liferay.portal.NoSuchUserGroupException if a matching user group could not be found
919            * @throws SystemException if a system exception occurred
920            */
921            public com.liferay.portal.model.UserGroup findByC_N(long companyId,
922                    java.lang.String name)
923                    throws com.liferay.portal.NoSuchUserGroupException,
924                            com.liferay.portal.kernel.exception.SystemException;
925    
926            /**
927            * Returns the user group where companyId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
928            *
929            * @param companyId the company ID
930            * @param name the name
931            * @return the matching user group, or <code>null</code> if a matching user group could not be found
932            * @throws SystemException if a system exception occurred
933            */
934            public com.liferay.portal.model.UserGroup fetchByC_N(long companyId,
935                    java.lang.String name)
936                    throws com.liferay.portal.kernel.exception.SystemException;
937    
938            /**
939            * Returns the user group where companyId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
940            *
941            * @param companyId the company ID
942            * @param name the name
943            * @param retrieveFromCache whether to use the finder cache
944            * @return the matching user group, or <code>null</code> if a matching user group could not be found
945            * @throws SystemException if a system exception occurred
946            */
947            public com.liferay.portal.model.UserGroup fetchByC_N(long companyId,
948                    java.lang.String name, boolean retrieveFromCache)
949                    throws com.liferay.portal.kernel.exception.SystemException;
950    
951            /**
952            * Removes the user group where companyId = &#63; and name = &#63; from the database.
953            *
954            * @param companyId the company ID
955            * @param name the name
956            * @return the user group that was removed
957            * @throws SystemException if a system exception occurred
958            */
959            public com.liferay.portal.model.UserGroup removeByC_N(long companyId,
960                    java.lang.String name)
961                    throws com.liferay.portal.NoSuchUserGroupException,
962                            com.liferay.portal.kernel.exception.SystemException;
963    
964            /**
965            * Returns the number of user groups where companyId = &#63; and name = &#63;.
966            *
967            * @param companyId the company ID
968            * @param name the name
969            * @return the number of matching user groups
970            * @throws SystemException if a system exception occurred
971            */
972            public int countByC_N(long companyId, java.lang.String name)
973                    throws com.liferay.portal.kernel.exception.SystemException;
974    
975            /**
976            * Caches the user group in the entity cache if it is enabled.
977            *
978            * @param userGroup the user group
979            */
980            public void cacheResult(com.liferay.portal.model.UserGroup userGroup);
981    
982            /**
983            * Caches the user groups in the entity cache if it is enabled.
984            *
985            * @param userGroups the user groups
986            */
987            public void cacheResult(
988                    java.util.List<com.liferay.portal.model.UserGroup> userGroups);
989    
990            /**
991            * Creates a new user group with the primary key. Does not add the user group to the database.
992            *
993            * @param userGroupId the primary key for the new user group
994            * @return the new user group
995            */
996            public com.liferay.portal.model.UserGroup create(long userGroupId);
997    
998            /**
999            * Removes the user group with the primary key from the database. Also notifies the appropriate model listeners.
1000            *
1001            * @param userGroupId the primary key of the user group
1002            * @return the user group that was removed
1003            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
1004            * @throws SystemException if a system exception occurred
1005            */
1006            public com.liferay.portal.model.UserGroup remove(long userGroupId)
1007                    throws com.liferay.portal.NoSuchUserGroupException,
1008                            com.liferay.portal.kernel.exception.SystemException;
1009    
1010            public com.liferay.portal.model.UserGroup updateImpl(
1011                    com.liferay.portal.model.UserGroup userGroup)
1012                    throws com.liferay.portal.kernel.exception.SystemException;
1013    
1014            /**
1015            * Returns the user group with the primary key or throws a {@link com.liferay.portal.NoSuchUserGroupException} if it could not be found.
1016            *
1017            * @param userGroupId the primary key of the user group
1018            * @return the user group
1019            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
1020            * @throws SystemException if a system exception occurred
1021            */
1022            public com.liferay.portal.model.UserGroup findByPrimaryKey(long userGroupId)
1023                    throws com.liferay.portal.NoSuchUserGroupException,
1024                            com.liferay.portal.kernel.exception.SystemException;
1025    
1026            /**
1027            * Returns the user group with the primary key or returns <code>null</code> if it could not be found.
1028            *
1029            * @param userGroupId the primary key of the user group
1030            * @return the user group, or <code>null</code> if a user group with the primary key could not be found
1031            * @throws SystemException if a system exception occurred
1032            */
1033            public com.liferay.portal.model.UserGroup fetchByPrimaryKey(
1034                    long userGroupId)
1035                    throws com.liferay.portal.kernel.exception.SystemException;
1036    
1037            /**
1038            * Returns all the user groups.
1039            *
1040            * @return the user groups
1041            * @throws SystemException if a system exception occurred
1042            */
1043            public java.util.List<com.liferay.portal.model.UserGroup> findAll()
1044                    throws com.liferay.portal.kernel.exception.SystemException;
1045    
1046            /**
1047            * Returns a range of all the user groups.
1048            *
1049            * <p>
1050            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1051            * </p>
1052            *
1053            * @param start the lower bound of the range of user groups
1054            * @param end the upper bound of the range of user groups (not inclusive)
1055            * @return the range of user groups
1056            * @throws SystemException if a system exception occurred
1057            */
1058            public java.util.List<com.liferay.portal.model.UserGroup> findAll(
1059                    int start, int end)
1060                    throws com.liferay.portal.kernel.exception.SystemException;
1061    
1062            /**
1063            * Returns an ordered range of all the user groups.
1064            *
1065            * <p>
1066            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1067            * </p>
1068            *
1069            * @param start the lower bound of the range of user groups
1070            * @param end the upper bound of the range of user groups (not inclusive)
1071            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1072            * @return the ordered range of user groups
1073            * @throws SystemException if a system exception occurred
1074            */
1075            public java.util.List<com.liferay.portal.model.UserGroup> findAll(
1076                    int start, int end,
1077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1078                    throws com.liferay.portal.kernel.exception.SystemException;
1079    
1080            /**
1081            * Removes all the user groups from the database.
1082            *
1083            * @throws SystemException if a system exception occurred
1084            */
1085            public void removeAll()
1086                    throws com.liferay.portal.kernel.exception.SystemException;
1087    
1088            /**
1089            * Returns the number of user groups.
1090            *
1091            * @return the number of user groups
1092            * @throws SystemException if a system exception occurred
1093            */
1094            public int countAll()
1095                    throws com.liferay.portal.kernel.exception.SystemException;
1096    
1097            /**
1098            * Returns all the groups associated with the user group.
1099            *
1100            * @param pk the primary key of the user group
1101            * @return the groups associated with the user group
1102            * @throws SystemException if a system exception occurred
1103            */
1104            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
1105                    throws com.liferay.portal.kernel.exception.SystemException;
1106    
1107            /**
1108            * Returns a range of all the groups associated with the user group.
1109            *
1110            * <p>
1111            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1112            * </p>
1113            *
1114            * @param pk the primary key of the user group
1115            * @param start the lower bound of the range of user groups
1116            * @param end the upper bound of the range of user groups (not inclusive)
1117            * @return the range of groups associated with the user group
1118            * @throws SystemException if a system exception occurred
1119            */
1120            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
1121                    int start, int end)
1122                    throws com.liferay.portal.kernel.exception.SystemException;
1123    
1124            /**
1125            * Returns an ordered range of all the groups associated with the user group.
1126            *
1127            * <p>
1128            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1129            * </p>
1130            *
1131            * @param pk the primary key of the user group
1132            * @param start the lower bound of the range of user groups
1133            * @param end the upper bound of the range of user groups (not inclusive)
1134            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1135            * @return the ordered range of groups associated with the user group
1136            * @throws SystemException if a system exception occurred
1137            */
1138            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
1139                    int start, int end,
1140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1141                    throws com.liferay.portal.kernel.exception.SystemException;
1142    
1143            /**
1144            * Returns the number of groups associated with the user group.
1145            *
1146            * @param pk the primary key of the user group
1147            * @return the number of groups associated with the user group
1148            * @throws SystemException if a system exception occurred
1149            */
1150            public int getGroupsSize(long pk)
1151                    throws com.liferay.portal.kernel.exception.SystemException;
1152    
1153            /**
1154            * Returns <code>true</code> if the group is associated with the user group.
1155            *
1156            * @param pk the primary key of the user group
1157            * @param groupPK the primary key of the group
1158            * @return <code>true</code> if the group is associated with the user group; <code>false</code> otherwise
1159            * @throws SystemException if a system exception occurred
1160            */
1161            public boolean containsGroup(long pk, long groupPK)
1162                    throws com.liferay.portal.kernel.exception.SystemException;
1163    
1164            /**
1165            * Returns <code>true</code> if the user group has any groups associated with it.
1166            *
1167            * @param pk the primary key of the user group to check for associations with groups
1168            * @return <code>true</code> if the user group has any groups associated with it; <code>false</code> otherwise
1169            * @throws SystemException if a system exception occurred
1170            */
1171            public boolean containsGroups(long pk)
1172                    throws com.liferay.portal.kernel.exception.SystemException;
1173    
1174            /**
1175            * Adds an association between the user group and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1176            *
1177            * @param pk the primary key of the user group
1178            * @param groupPK the primary key of the group
1179            * @throws SystemException if a system exception occurred
1180            */
1181            public void addGroup(long pk, long groupPK)
1182                    throws com.liferay.portal.kernel.exception.SystemException;
1183    
1184            /**
1185            * Adds an association between the user group and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1186            *
1187            * @param pk the primary key of the user group
1188            * @param group the group
1189            * @throws SystemException if a system exception occurred
1190            */
1191            public void addGroup(long pk, com.liferay.portal.model.Group group)
1192                    throws com.liferay.portal.kernel.exception.SystemException;
1193    
1194            /**
1195            * Adds an association between the user group and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1196            *
1197            * @param pk the primary key of the user group
1198            * @param groupPKs the primary keys of the groups
1199            * @throws SystemException if a system exception occurred
1200            */
1201            public void addGroups(long pk, long[] groupPKs)
1202                    throws com.liferay.portal.kernel.exception.SystemException;
1203    
1204            /**
1205            * Adds an association between the user group and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1206            *
1207            * @param pk the primary key of the user group
1208            * @param groups the groups
1209            * @throws SystemException if a system exception occurred
1210            */
1211            public void addGroups(long pk,
1212                    java.util.List<com.liferay.portal.model.Group> groups)
1213                    throws com.liferay.portal.kernel.exception.SystemException;
1214    
1215            /**
1216            * Clears all associations between the user group and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1217            *
1218            * @param pk the primary key of the user group to clear the associated groups from
1219            * @throws SystemException if a system exception occurred
1220            */
1221            public void clearGroups(long pk)
1222                    throws com.liferay.portal.kernel.exception.SystemException;
1223    
1224            /**
1225            * Removes the association between the user group and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1226            *
1227            * @param pk the primary key of the user group
1228            * @param groupPK the primary key of the group
1229            * @throws SystemException if a system exception occurred
1230            */
1231            public void removeGroup(long pk, long groupPK)
1232                    throws com.liferay.portal.kernel.exception.SystemException;
1233    
1234            /**
1235            * Removes the association between the user group and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1236            *
1237            * @param pk the primary key of the user group
1238            * @param group the group
1239            * @throws SystemException if a system exception occurred
1240            */
1241            public void removeGroup(long pk, com.liferay.portal.model.Group group)
1242                    throws com.liferay.portal.kernel.exception.SystemException;
1243    
1244            /**
1245            * Removes the association between the user group and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1246            *
1247            * @param pk the primary key of the user group
1248            * @param groupPKs the primary keys of the groups
1249            * @throws SystemException if a system exception occurred
1250            */
1251            public void removeGroups(long pk, long[] groupPKs)
1252                    throws com.liferay.portal.kernel.exception.SystemException;
1253    
1254            /**
1255            * Removes the association between the user group and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1256            *
1257            * @param pk the primary key of the user group
1258            * @param groups the groups
1259            * @throws SystemException if a system exception occurred
1260            */
1261            public void removeGroups(long pk,
1262                    java.util.List<com.liferay.portal.model.Group> groups)
1263                    throws com.liferay.portal.kernel.exception.SystemException;
1264    
1265            /**
1266            * Sets the groups associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1267            *
1268            * @param pk the primary key of the user group
1269            * @param groupPKs the primary keys of the groups to be associated with the user group
1270            * @throws SystemException if a system exception occurred
1271            */
1272            public void setGroups(long pk, long[] groupPKs)
1273                    throws com.liferay.portal.kernel.exception.SystemException;
1274    
1275            /**
1276            * Sets the groups associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1277            *
1278            * @param pk the primary key of the user group
1279            * @param groups the groups to be associated with the user group
1280            * @throws SystemException if a system exception occurred
1281            */
1282            public void setGroups(long pk,
1283                    java.util.List<com.liferay.portal.model.Group> groups)
1284                    throws com.liferay.portal.kernel.exception.SystemException;
1285    
1286            /**
1287            * Returns all the teams associated with the user group.
1288            *
1289            * @param pk the primary key of the user group
1290            * @return the teams associated with the user group
1291            * @throws SystemException if a system exception occurred
1292            */
1293            public java.util.List<com.liferay.portal.model.Team> getTeams(long pk)
1294                    throws com.liferay.portal.kernel.exception.SystemException;
1295    
1296            /**
1297            * Returns a range of all the teams associated with the user group.
1298            *
1299            * <p>
1300            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1301            * </p>
1302            *
1303            * @param pk the primary key of the user group
1304            * @param start the lower bound of the range of user groups
1305            * @param end the upper bound of the range of user groups (not inclusive)
1306            * @return the range of teams associated with the user group
1307            * @throws SystemException if a system exception occurred
1308            */
1309            public java.util.List<com.liferay.portal.model.Team> getTeams(long pk,
1310                    int start, int end)
1311                    throws com.liferay.portal.kernel.exception.SystemException;
1312    
1313            /**
1314            * Returns an ordered range of all the teams associated with the user group.
1315            *
1316            * <p>
1317            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1318            * </p>
1319            *
1320            * @param pk the primary key of the user group
1321            * @param start the lower bound of the range of user groups
1322            * @param end the upper bound of the range of user groups (not inclusive)
1323            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1324            * @return the ordered range of teams associated with the user group
1325            * @throws SystemException if a system exception occurred
1326            */
1327            public java.util.List<com.liferay.portal.model.Team> getTeams(long pk,
1328                    int start, int end,
1329                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1330                    throws com.liferay.portal.kernel.exception.SystemException;
1331    
1332            /**
1333            * Returns the number of teams associated with the user group.
1334            *
1335            * @param pk the primary key of the user group
1336            * @return the number of teams associated with the user group
1337            * @throws SystemException if a system exception occurred
1338            */
1339            public int getTeamsSize(long pk)
1340                    throws com.liferay.portal.kernel.exception.SystemException;
1341    
1342            /**
1343            * Returns <code>true</code> if the team is associated with the user group.
1344            *
1345            * @param pk the primary key of the user group
1346            * @param teamPK the primary key of the team
1347            * @return <code>true</code> if the team is associated with the user group; <code>false</code> otherwise
1348            * @throws SystemException if a system exception occurred
1349            */
1350            public boolean containsTeam(long pk, long teamPK)
1351                    throws com.liferay.portal.kernel.exception.SystemException;
1352    
1353            /**
1354            * Returns <code>true</code> if the user group has any teams associated with it.
1355            *
1356            * @param pk the primary key of the user group to check for associations with teams
1357            * @return <code>true</code> if the user group has any teams associated with it; <code>false</code> otherwise
1358            * @throws SystemException if a system exception occurred
1359            */
1360            public boolean containsTeams(long pk)
1361                    throws com.liferay.portal.kernel.exception.SystemException;
1362    
1363            /**
1364            * Adds an association between the user group and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1365            *
1366            * @param pk the primary key of the user group
1367            * @param teamPK the primary key of the team
1368            * @throws SystemException if a system exception occurred
1369            */
1370            public void addTeam(long pk, long teamPK)
1371                    throws com.liferay.portal.kernel.exception.SystemException;
1372    
1373            /**
1374            * Adds an association between the user group and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1375            *
1376            * @param pk the primary key of the user group
1377            * @param team the team
1378            * @throws SystemException if a system exception occurred
1379            */
1380            public void addTeam(long pk, com.liferay.portal.model.Team team)
1381                    throws com.liferay.portal.kernel.exception.SystemException;
1382    
1383            /**
1384            * Adds an association between the user group and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1385            *
1386            * @param pk the primary key of the user group
1387            * @param teamPKs the primary keys of the teams
1388            * @throws SystemException if a system exception occurred
1389            */
1390            public void addTeams(long pk, long[] teamPKs)
1391                    throws com.liferay.portal.kernel.exception.SystemException;
1392    
1393            /**
1394            * Adds an association between the user group and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1395            *
1396            * @param pk the primary key of the user group
1397            * @param teams the teams
1398            * @throws SystemException if a system exception occurred
1399            */
1400            public void addTeams(long pk,
1401                    java.util.List<com.liferay.portal.model.Team> teams)
1402                    throws com.liferay.portal.kernel.exception.SystemException;
1403    
1404            /**
1405            * Clears all associations between the user group and its teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1406            *
1407            * @param pk the primary key of the user group to clear the associated teams from
1408            * @throws SystemException if a system exception occurred
1409            */
1410            public void clearTeams(long pk)
1411                    throws com.liferay.portal.kernel.exception.SystemException;
1412    
1413            /**
1414            * Removes the association between the user group and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1415            *
1416            * @param pk the primary key of the user group
1417            * @param teamPK the primary key of the team
1418            * @throws SystemException if a system exception occurred
1419            */
1420            public void removeTeam(long pk, long teamPK)
1421                    throws com.liferay.portal.kernel.exception.SystemException;
1422    
1423            /**
1424            * Removes the association between the user group and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1425            *
1426            * @param pk the primary key of the user group
1427            * @param team the team
1428            * @throws SystemException if a system exception occurred
1429            */
1430            public void removeTeam(long pk, com.liferay.portal.model.Team team)
1431                    throws com.liferay.portal.kernel.exception.SystemException;
1432    
1433            /**
1434            * Removes the association between the user group and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1435            *
1436            * @param pk the primary key of the user group
1437            * @param teamPKs the primary keys of the teams
1438            * @throws SystemException if a system exception occurred
1439            */
1440            public void removeTeams(long pk, long[] teamPKs)
1441                    throws com.liferay.portal.kernel.exception.SystemException;
1442    
1443            /**
1444            * Removes the association between the user group and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1445            *
1446            * @param pk the primary key of the user group
1447            * @param teams the teams
1448            * @throws SystemException if a system exception occurred
1449            */
1450            public void removeTeams(long pk,
1451                    java.util.List<com.liferay.portal.model.Team> teams)
1452                    throws com.liferay.portal.kernel.exception.SystemException;
1453    
1454            /**
1455            * Sets the teams associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1456            *
1457            * @param pk the primary key of the user group
1458            * @param teamPKs the primary keys of the teams to be associated with the user group
1459            * @throws SystemException if a system exception occurred
1460            */
1461            public void setTeams(long pk, long[] teamPKs)
1462                    throws com.liferay.portal.kernel.exception.SystemException;
1463    
1464            /**
1465            * Sets the teams associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1466            *
1467            * @param pk the primary key of the user group
1468            * @param teams the teams to be associated with the user group
1469            * @throws SystemException if a system exception occurred
1470            */
1471            public void setTeams(long pk,
1472                    java.util.List<com.liferay.portal.model.Team> teams)
1473                    throws com.liferay.portal.kernel.exception.SystemException;
1474    
1475            /**
1476            * Returns all the users associated with the user group.
1477            *
1478            * @param pk the primary key of the user group
1479            * @return the users associated with the user group
1480            * @throws SystemException if a system exception occurred
1481            */
1482            public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
1483                    throws com.liferay.portal.kernel.exception.SystemException;
1484    
1485            /**
1486            * Returns a range of all the users associated with the user group.
1487            *
1488            * <p>
1489            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1490            * </p>
1491            *
1492            * @param pk the primary key of the user group
1493            * @param start the lower bound of the range of user groups
1494            * @param end the upper bound of the range of user groups (not inclusive)
1495            * @return the range of users associated with the user group
1496            * @throws SystemException if a system exception occurred
1497            */
1498            public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
1499                    int start, int end)
1500                    throws com.liferay.portal.kernel.exception.SystemException;
1501    
1502            /**
1503            * Returns an ordered range of all the users associated with the user group.
1504            *
1505            * <p>
1506            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1507            * </p>
1508            *
1509            * @param pk the primary key of the user group
1510            * @param start the lower bound of the range of user groups
1511            * @param end the upper bound of the range of user groups (not inclusive)
1512            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1513            * @return the ordered range of users associated with the user group
1514            * @throws SystemException if a system exception occurred
1515            */
1516            public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
1517                    int start, int end,
1518                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1519                    throws com.liferay.portal.kernel.exception.SystemException;
1520    
1521            /**
1522            * Returns the number of users associated with the user group.
1523            *
1524            * @param pk the primary key of the user group
1525            * @return the number of users associated with the user group
1526            * @throws SystemException if a system exception occurred
1527            */
1528            public int getUsersSize(long pk)
1529                    throws com.liferay.portal.kernel.exception.SystemException;
1530    
1531            /**
1532            * Returns <code>true</code> if the user is associated with the user group.
1533            *
1534            * @param pk the primary key of the user group
1535            * @param userPK the primary key of the user
1536            * @return <code>true</code> if the user is associated with the user group; <code>false</code> otherwise
1537            * @throws SystemException if a system exception occurred
1538            */
1539            public boolean containsUser(long pk, long userPK)
1540                    throws com.liferay.portal.kernel.exception.SystemException;
1541    
1542            /**
1543            * Returns <code>true</code> if the user group has any users associated with it.
1544            *
1545            * @param pk the primary key of the user group to check for associations with users
1546            * @return <code>true</code> if the user group has any users associated with it; <code>false</code> otherwise
1547            * @throws SystemException if a system exception occurred
1548            */
1549            public boolean containsUsers(long pk)
1550                    throws com.liferay.portal.kernel.exception.SystemException;
1551    
1552            /**
1553            * Adds an association between the user group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1554            *
1555            * @param pk the primary key of the user group
1556            * @param userPK the primary key of the user
1557            * @throws SystemException if a system exception occurred
1558            */
1559            public void addUser(long pk, long userPK)
1560                    throws com.liferay.portal.kernel.exception.SystemException;
1561    
1562            /**
1563            * Adds an association between the user group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1564            *
1565            * @param pk the primary key of the user group
1566            * @param user the user
1567            * @throws SystemException if a system exception occurred
1568            */
1569            public void addUser(long pk, com.liferay.portal.model.User user)
1570                    throws com.liferay.portal.kernel.exception.SystemException;
1571    
1572            /**
1573            * Adds an association between the user group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1574            *
1575            * @param pk the primary key of the user group
1576            * @param userPKs the primary keys of the users
1577            * @throws SystemException if a system exception occurred
1578            */
1579            public void addUsers(long pk, long[] userPKs)
1580                    throws com.liferay.portal.kernel.exception.SystemException;
1581    
1582            /**
1583            * Adds an association between the user group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1584            *
1585            * @param pk the primary key of the user group
1586            * @param users the users
1587            * @throws SystemException if a system exception occurred
1588            */
1589            public void addUsers(long pk,
1590                    java.util.List<com.liferay.portal.model.User> users)
1591                    throws com.liferay.portal.kernel.exception.SystemException;
1592    
1593            /**
1594            * Clears all associations between the user group and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1595            *
1596            * @param pk the primary key of the user group to clear the associated users from
1597            * @throws SystemException if a system exception occurred
1598            */
1599            public void clearUsers(long pk)
1600                    throws com.liferay.portal.kernel.exception.SystemException;
1601    
1602            /**
1603            * Removes the association between the user group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1604            *
1605            * @param pk the primary key of the user group
1606            * @param userPK the primary key of the user
1607            * @throws SystemException if a system exception occurred
1608            */
1609            public void removeUser(long pk, long userPK)
1610                    throws com.liferay.portal.kernel.exception.SystemException;
1611    
1612            /**
1613            * Removes the association between the user group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1614            *
1615            * @param pk the primary key of the user group
1616            * @param user the user
1617            * @throws SystemException if a system exception occurred
1618            */
1619            public void removeUser(long pk, com.liferay.portal.model.User user)
1620                    throws com.liferay.portal.kernel.exception.SystemException;
1621    
1622            /**
1623            * Removes the association between the user group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1624            *
1625            * @param pk the primary key of the user group
1626            * @param userPKs the primary keys of the users
1627            * @throws SystemException if a system exception occurred
1628            */
1629            public void removeUsers(long pk, long[] userPKs)
1630                    throws com.liferay.portal.kernel.exception.SystemException;
1631    
1632            /**
1633            * Removes the association between the user group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1634            *
1635            * @param pk the primary key of the user group
1636            * @param users the users
1637            * @throws SystemException if a system exception occurred
1638            */
1639            public void removeUsers(long pk,
1640                    java.util.List<com.liferay.portal.model.User> users)
1641                    throws com.liferay.portal.kernel.exception.SystemException;
1642    
1643            /**
1644            * Sets the users associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1645            *
1646            * @param pk the primary key of the user group
1647            * @param userPKs the primary keys of the users to be associated with the user group
1648            * @throws SystemException if a system exception occurred
1649            */
1650            public void setUsers(long pk, long[] userPKs)
1651                    throws com.liferay.portal.kernel.exception.SystemException;
1652    
1653            /**
1654            * Sets the users associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1655            *
1656            * @param pk the primary key of the user group
1657            * @param users the users to be associated with the user group
1658            * @throws SystemException if a system exception occurred
1659            */
1660            public void setUsers(long pk,
1661                    java.util.List<com.liferay.portal.model.User> users)
1662                    throws com.liferay.portal.kernel.exception.SystemException;
1663    }