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