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