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