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.Team;
018    
019    /**
020     * The persistence interface for the team 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 TeamPersistenceImpl
028     * @see TeamUtil
029     * @generated
030     */
031    public interface TeamPersistence extends BasePersistence<Team> {
032            /**
033            * Caches the team in the entity cache if it is enabled.
034            *
035            * @param team the team to cache
036            */
037            public void cacheResult(com.liferay.portal.model.Team team);
038    
039            /**
040            * Caches the teams in the entity cache if it is enabled.
041            *
042            * @param teams the teams to cache
043            */
044            public void cacheResult(java.util.List<com.liferay.portal.model.Team> teams);
045    
046            /**
047            * Creates a new team with the primary key.
048            *
049            * @param teamId the primary key for the new team
050            * @return the new team
051            */
052            public com.liferay.portal.model.Team create(long teamId);
053    
054            /**
055            * Removes the team with the primary key from the database. Also notifies the appropriate model listeners.
056            *
057            * @param teamId the primary key of the team to remove
058            * @return the team that was removed
059            * @throws com.liferay.portal.NoSuchTeamException if a team with the primary key could not be found
060            * @throws SystemException if a system exception occurred
061            */
062            public com.liferay.portal.model.Team remove(long teamId)
063                    throws com.liferay.portal.NoSuchTeamException,
064                            com.liferay.portal.kernel.exception.SystemException;
065    
066            public com.liferay.portal.model.Team updateImpl(
067                    com.liferay.portal.model.Team team, boolean merge)
068                    throws com.liferay.portal.kernel.exception.SystemException;
069    
070            /**
071            * Finds the team with the primary key or throws a {@link com.liferay.portal.NoSuchTeamException} if it could not be found.
072            *
073            * @param teamId the primary key of the team to find
074            * @return the team
075            * @throws com.liferay.portal.NoSuchTeamException if a team with the primary key could not be found
076            * @throws SystemException if a system exception occurred
077            */
078            public com.liferay.portal.model.Team findByPrimaryKey(long teamId)
079                    throws com.liferay.portal.NoSuchTeamException,
080                            com.liferay.portal.kernel.exception.SystemException;
081    
082            /**
083            * Finds the team with the primary key or returns <code>null</code> if it could not be found.
084            *
085            * @param teamId the primary key of the team to find
086            * @return the team, or <code>null</code> if a team with the primary key could not be found
087            * @throws SystemException if a system exception occurred
088            */
089            public com.liferay.portal.model.Team fetchByPrimaryKey(long teamId)
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    
092            /**
093            * Finds all the teams where groupId = &#63;.
094            *
095            * @param groupId the group id to search with
096            * @return the matching teams
097            * @throws SystemException if a system exception occurred
098            */
099            public java.util.List<com.liferay.portal.model.Team> findByGroupId(
100                    long groupId)
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            /**
104            * Finds a range of all the teams where groupId = &#63;.
105            *
106            * <p>
107            * 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.
108            * </p>
109            *
110            * @param groupId the group id to search with
111            * @param start the lower bound of the range of teams to return
112            * @param end the upper bound of the range of teams to return (not inclusive)
113            * @return the range of matching teams
114            * @throws SystemException if a system exception occurred
115            */
116            public java.util.List<com.liferay.portal.model.Team> findByGroupId(
117                    long groupId, int start, int end)
118                    throws com.liferay.portal.kernel.exception.SystemException;
119    
120            /**
121            * Finds an ordered range of all the teams where groupId = &#63;.
122            *
123            * <p>
124            * 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.
125            * </p>
126            *
127            * @param groupId the group id to search with
128            * @param start the lower bound of the range of teams to return
129            * @param end the upper bound of the range of teams to return (not inclusive)
130            * @param orderByComparator the comparator to order the results by
131            * @return the ordered range of matching teams
132            * @throws SystemException if a system exception occurred
133            */
134            public java.util.List<com.liferay.portal.model.Team> findByGroupId(
135                    long groupId, int start, int end,
136                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137                    throws com.liferay.portal.kernel.exception.SystemException;
138    
139            /**
140            * Finds the first team in the ordered set where groupId = &#63;.
141            *
142            * <p>
143            * 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.
144            * </p>
145            *
146            * @param groupId the group id to search with
147            * @param orderByComparator the comparator to order the set by
148            * @return the first matching team
149            * @throws com.liferay.portal.NoSuchTeamException if a matching team could not be found
150            * @throws SystemException if a system exception occurred
151            */
152            public com.liferay.portal.model.Team findByGroupId_First(long groupId,
153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154                    throws com.liferay.portal.NoSuchTeamException,
155                            com.liferay.portal.kernel.exception.SystemException;
156    
157            /**
158            * Finds the last team in the ordered set where groupId = &#63;.
159            *
160            * <p>
161            * 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.
162            * </p>
163            *
164            * @param groupId the group id to search with
165            * @param orderByComparator the comparator to order the set by
166            * @return the last matching team
167            * @throws com.liferay.portal.NoSuchTeamException if a matching team could not be found
168            * @throws SystemException if a system exception occurred
169            */
170            public com.liferay.portal.model.Team findByGroupId_Last(long groupId,
171                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172                    throws com.liferay.portal.NoSuchTeamException,
173                            com.liferay.portal.kernel.exception.SystemException;
174    
175            /**
176            * Finds the teams before and after the current team in the ordered set where groupId = &#63;.
177            *
178            * <p>
179            * 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.
180            * </p>
181            *
182            * @param teamId the primary key of the current team
183            * @param groupId the group id to search with
184            * @param orderByComparator the comparator to order the set by
185            * @return the previous, current, and next team
186            * @throws com.liferay.portal.NoSuchTeamException if a team with the primary key could not be found
187            * @throws SystemException if a system exception occurred
188            */
189            public com.liferay.portal.model.Team[] findByGroupId_PrevAndNext(
190                    long teamId, long groupId,
191                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
192                    throws com.liferay.portal.NoSuchTeamException,
193                            com.liferay.portal.kernel.exception.SystemException;
194    
195            /**
196            * Filters by the user's permissions and finds all the teams where groupId = &#63;.
197            *
198            * @param groupId the group id to search with
199            * @return the matching teams that the user has permission to view
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portal.model.Team> filterFindByGroupId(
203                    long groupId)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            /**
207            * Filters by the user's permissions and finds a range of all the teams where groupId = &#63;.
208            *
209            * <p>
210            * 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.
211            * </p>
212            *
213            * @param groupId the group id to search with
214            * @param start the lower bound of the range of teams to return
215            * @param end the upper bound of the range of teams to return (not inclusive)
216            * @return the range of matching teams that the user has permission to view
217            * @throws SystemException if a system exception occurred
218            */
219            public java.util.List<com.liferay.portal.model.Team> filterFindByGroupId(
220                    long groupId, int start, int end)
221                    throws com.liferay.portal.kernel.exception.SystemException;
222    
223            /**
224            * Filters by the user's permissions and finds an ordered range of all the teams where groupId = &#63;.
225            *
226            * <p>
227            * 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.
228            * </p>
229            *
230            * @param groupId the group id to search with
231            * @param start the lower bound of the range of teams to return
232            * @param end the upper bound of the range of teams to return (not inclusive)
233            * @param orderByComparator the comparator to order the results by
234            * @return the ordered range of matching teams that the user has permission to view
235            * @throws SystemException if a system exception occurred
236            */
237            public java.util.List<com.liferay.portal.model.Team> filterFindByGroupId(
238                    long groupId, int start, int end,
239                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
240                    throws com.liferay.portal.kernel.exception.SystemException;
241    
242            /**
243            * Finds the team where groupId = &#63; and name = &#63; or throws a {@link com.liferay.portal.NoSuchTeamException} if it could not be found.
244            *
245            * @param groupId the group id to search with
246            * @param name the name to search with
247            * @return the matching team
248            * @throws com.liferay.portal.NoSuchTeamException if a matching team could not be found
249            * @throws SystemException if a system exception occurred
250            */
251            public com.liferay.portal.model.Team findByG_N(long groupId,
252                    java.lang.String name)
253                    throws com.liferay.portal.NoSuchTeamException,
254                            com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * Finds the team where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
258            *
259            * @param groupId the group id to search with
260            * @param name the name to search with
261            * @return the matching team, or <code>null</code> if a matching team could not be found
262            * @throws SystemException if a system exception occurred
263            */
264            public com.liferay.portal.model.Team fetchByG_N(long groupId,
265                    java.lang.String name)
266                    throws com.liferay.portal.kernel.exception.SystemException;
267    
268            /**
269            * Finds the team where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
270            *
271            * @param groupId the group id to search with
272            * @param name the name to search with
273            * @return the matching team, or <code>null</code> if a matching team could not be found
274            * @throws SystemException if a system exception occurred
275            */
276            public com.liferay.portal.model.Team fetchByG_N(long groupId,
277                    java.lang.String name, boolean retrieveFromCache)
278                    throws com.liferay.portal.kernel.exception.SystemException;
279    
280            /**
281            * Finds all the teams.
282            *
283            * @return the teams
284            * @throws SystemException if a system exception occurred
285            */
286            public java.util.List<com.liferay.portal.model.Team> findAll()
287                    throws com.liferay.portal.kernel.exception.SystemException;
288    
289            /**
290            * Finds a range of all the teams.
291            *
292            * <p>
293            * 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.
294            * </p>
295            *
296            * @param start the lower bound of the range of teams to return
297            * @param end the upper bound of the range of teams to return (not inclusive)
298            * @return the range of teams
299            * @throws SystemException if a system exception occurred
300            */
301            public java.util.List<com.liferay.portal.model.Team> findAll(int start,
302                    int end) throws com.liferay.portal.kernel.exception.SystemException;
303    
304            /**
305            * Finds an ordered range of all the teams.
306            *
307            * <p>
308            * 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.
309            * </p>
310            *
311            * @param start the lower bound of the range of teams to return
312            * @param end the upper bound of the range of teams to return (not inclusive)
313            * @param orderByComparator the comparator to order the results by
314            * @return the ordered range of teams
315            * @throws SystemException if a system exception occurred
316            */
317            public java.util.List<com.liferay.portal.model.Team> findAll(int start,
318                    int end,
319                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
320                    throws com.liferay.portal.kernel.exception.SystemException;
321    
322            /**
323            * Removes all the teams where groupId = &#63; from the database.
324            *
325            * @param groupId the group id to search with
326            * @throws SystemException if a system exception occurred
327            */
328            public void removeByGroupId(long groupId)
329                    throws com.liferay.portal.kernel.exception.SystemException;
330    
331            /**
332            * Removes the team where groupId = &#63; and name = &#63; from the database.
333            *
334            * @param groupId the group id to search with
335            * @param name the name to search with
336            * @throws SystemException if a system exception occurred
337            */
338            public void removeByG_N(long groupId, java.lang.String name)
339                    throws com.liferay.portal.NoSuchTeamException,
340                            com.liferay.portal.kernel.exception.SystemException;
341    
342            /**
343            * Removes all the teams from the database.
344            *
345            * @throws SystemException if a system exception occurred
346            */
347            public void removeAll()
348                    throws com.liferay.portal.kernel.exception.SystemException;
349    
350            /**
351            * Counts all the teams where groupId = &#63;.
352            *
353            * @param groupId the group id to search with
354            * @return the number of matching teams
355            * @throws SystemException if a system exception occurred
356            */
357            public int countByGroupId(long groupId)
358                    throws com.liferay.portal.kernel.exception.SystemException;
359    
360            /**
361            * Filters by the user's permissions and counts all the teams where groupId = &#63;.
362            *
363            * @param groupId the group id to search with
364            * @return the number of matching teams that the user has permission to view
365            * @throws SystemException if a system exception occurred
366            */
367            public int filterCountByGroupId(long groupId)
368                    throws com.liferay.portal.kernel.exception.SystemException;
369    
370            /**
371            * Counts all the teams where groupId = &#63; and name = &#63;.
372            *
373            * @param groupId the group id to search with
374            * @param name the name to search with
375            * @return the number of matching teams
376            * @throws SystemException if a system exception occurred
377            */
378            public int countByG_N(long groupId, java.lang.String name)
379                    throws com.liferay.portal.kernel.exception.SystemException;
380    
381            /**
382            * Filters by the user's permissions and counts all the teams where groupId = &#63; and name = &#63;.
383            *
384            * @param groupId the group id to search with
385            * @param name the name to search with
386            * @return the number of matching teams that the user has permission to view
387            * @throws SystemException if a system exception occurred
388            */
389            public int filterCountByG_N(long groupId, java.lang.String name)
390                    throws com.liferay.portal.kernel.exception.SystemException;
391    
392            /**
393            * Counts all the teams.
394            *
395            * @return the number of teams
396            * @throws SystemException if a system exception occurred
397            */
398            public int countAll()
399                    throws com.liferay.portal.kernel.exception.SystemException;
400    
401            /**
402            * Gets all the users associated with the team.
403            *
404            * @param pk the primary key of the team to get the associated users for
405            * @return the users associated with the team
406            * @throws SystemException if a system exception occurred
407            */
408            public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
409                    throws com.liferay.portal.kernel.exception.SystemException;
410    
411            /**
412            * Gets a range of all the users associated with the team.
413            *
414            * <p>
415            * 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.
416            * </p>
417            *
418            * @param pk the primary key of the team to get the associated users for
419            * @param start the lower bound of the range of teams to return
420            * @param end the upper bound of the range of teams to return (not inclusive)
421            * @return the range of users associated with the team
422            * @throws SystemException if a system exception occurred
423            */
424            public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
425                    int start, int end)
426                    throws com.liferay.portal.kernel.exception.SystemException;
427    
428            /**
429            * Gets an ordered range of all the users associated with the team.
430            *
431            * <p>
432            * 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.
433            * </p>
434            *
435            * @param pk the primary key of the team to get the associated users for
436            * @param start the lower bound of the range of teams to return
437            * @param end the upper bound of the range of teams to return (not inclusive)
438            * @param orderByComparator the comparator to order the results by
439            * @return the ordered range of users associated with the team
440            * @throws SystemException if a system exception occurred
441            */
442            public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
443                    int start, int end,
444                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
445                    throws com.liferay.portal.kernel.exception.SystemException;
446    
447            /**
448            * Gets the number of users associated with the team.
449            *
450            * @param pk the primary key of the team to get the number of associated users for
451            * @return the number of users associated with the team
452            * @throws SystemException if a system exception occurred
453            */
454            public int getUsersSize(long pk)
455                    throws com.liferay.portal.kernel.exception.SystemException;
456    
457            /**
458            * Determines whether the user is associated with the team.
459            *
460            * @param pk the primary key of the team
461            * @param userPK the primary key of the user
462            * @return whether the user is associated with the team
463            * @throws SystemException if a system exception occurred
464            */
465            public boolean containsUser(long pk, long userPK)
466                    throws com.liferay.portal.kernel.exception.SystemException;
467    
468            /**
469            * Determines whether the team has any users associated with it.
470            *
471            * @param pk the primary key of the team to check for associations with users
472            * @return whether the team has any users associated with it
473            * @throws SystemException if a system exception occurred
474            */
475            public boolean containsUsers(long pk)
476                    throws com.liferay.portal.kernel.exception.SystemException;
477    
478            /**
479            * Adds an association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
480            *
481            * @param pk the primary key of the team
482            * @param userPK the primary key of the user
483            * @throws SystemException if a system exception occurred
484            */
485            public void addUser(long pk, long userPK)
486                    throws com.liferay.portal.kernel.exception.SystemException;
487    
488            /**
489            * Adds an association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
490            *
491            * @param pk the primary key of the team
492            * @param user the user
493            * @throws SystemException if a system exception occurred
494            */
495            public void addUser(long pk, com.liferay.portal.model.User user)
496                    throws com.liferay.portal.kernel.exception.SystemException;
497    
498            /**
499            * Adds an association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
500            *
501            * @param pk the primary key of the team
502            * @param userPKs the primary keys of the users
503            * @throws SystemException if a system exception occurred
504            */
505            public void addUsers(long pk, long[] userPKs)
506                    throws com.liferay.portal.kernel.exception.SystemException;
507    
508            /**
509            * Adds an association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
510            *
511            * @param pk the primary key of the team
512            * @param users the users
513            * @throws SystemException if a system exception occurred
514            */
515            public void addUsers(long pk,
516                    java.util.List<com.liferay.portal.model.User> users)
517                    throws com.liferay.portal.kernel.exception.SystemException;
518    
519            /**
520            * Clears all associations between the team and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
521            *
522            * @param pk the primary key of the team to clear the associated users from
523            * @throws SystemException if a system exception occurred
524            */
525            public void clearUsers(long pk)
526                    throws com.liferay.portal.kernel.exception.SystemException;
527    
528            /**
529            * Removes the association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
530            *
531            * @param pk the primary key of the team
532            * @param userPK the primary key of the user
533            * @throws SystemException if a system exception occurred
534            */
535            public void removeUser(long pk, long userPK)
536                    throws com.liferay.portal.kernel.exception.SystemException;
537    
538            /**
539            * Removes the association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
540            *
541            * @param pk the primary key of the team
542            * @param user the user
543            * @throws SystemException if a system exception occurred
544            */
545            public void removeUser(long pk, com.liferay.portal.model.User user)
546                    throws com.liferay.portal.kernel.exception.SystemException;
547    
548            /**
549            * Removes the association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
550            *
551            * @param pk the primary key of the team
552            * @param userPKs the primary keys of the users
553            * @throws SystemException if a system exception occurred
554            */
555            public void removeUsers(long pk, long[] userPKs)
556                    throws com.liferay.portal.kernel.exception.SystemException;
557    
558            /**
559            * Removes the association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
560            *
561            * @param pk the primary key of the team
562            * @param users the users
563            * @throws SystemException if a system exception occurred
564            */
565            public void removeUsers(long pk,
566                    java.util.List<com.liferay.portal.model.User> users)
567                    throws com.liferay.portal.kernel.exception.SystemException;
568    
569            /**
570            * Sets the users associated with the team, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
571            *
572            * @param pk the primary key of the team to set the associations for
573            * @param userPKs the primary keys of the users to be associated with the team
574            * @throws SystemException if a system exception occurred
575            */
576            public void setUsers(long pk, long[] userPKs)
577                    throws com.liferay.portal.kernel.exception.SystemException;
578    
579            /**
580            * Sets the users associated with the team, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
581            *
582            * @param pk the primary key of the team to set the associations for
583            * @param users the users to be associated with the team
584            * @throws SystemException if a system exception occurred
585            */
586            public void setUsers(long pk,
587                    java.util.List<com.liferay.portal.model.User> users)
588                    throws com.liferay.portal.kernel.exception.SystemException;
589    }