001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.model.Team; 018 019 /** 020 * The persistence interface for the team service. 021 * 022 * <p> 023 * Caching information and settings can be found in <code>portal.properties</code> 024 * </p> 025 * 026 * @author Brian Wing Shun Chan 027 * @see TeamPersistenceImpl 028 * @see TeamUtil 029 * @generated 030 */ 031 public interface TeamPersistence extends BasePersistence<Team> { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * 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. 036 */ 037 038 /** 039 * Returns all the teams where groupId = ?. 040 * 041 * @param groupId the group ID 042 * @return the matching teams 043 * @throws SystemException if a system exception occurred 044 */ 045 public java.util.List<com.liferay.portal.model.Team> findByGroupId( 046 long groupId) 047 throws com.liferay.portal.kernel.exception.SystemException; 048 049 /** 050 * Returns a range of all the teams where groupId = ?. 051 * 052 * <p> 053 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.TeamModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 054 * </p> 055 * 056 * @param groupId the group ID 057 * @param start the lower bound of the range of teams 058 * @param end the upper bound of the range of teams (not inclusive) 059 * @return the range of matching teams 060 * @throws SystemException if a system exception occurred 061 */ 062 public java.util.List<com.liferay.portal.model.Team> findByGroupId( 063 long groupId, int start, int end) 064 throws com.liferay.portal.kernel.exception.SystemException; 065 066 /** 067 * Returns an ordered range of all the teams where groupId = ?. 068 * 069 * <p> 070 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.TeamModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 071 * </p> 072 * 073 * @param groupId the group ID 074 * @param start the lower bound of the range of teams 075 * @param end the upper bound of the range of teams (not inclusive) 076 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 077 * @return the ordered range of matching teams 078 * @throws SystemException if a system exception occurred 079 */ 080 public java.util.List<com.liferay.portal.model.Team> findByGroupId( 081 long groupId, int start, int end, 082 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 083 throws com.liferay.portal.kernel.exception.SystemException; 084 085 /** 086 * Returns the first team in the ordered set where groupId = ?. 087 * 088 * @param groupId the group ID 089 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 090 * @return the first matching team 091 * @throws com.liferay.portal.NoSuchTeamException if a matching team could not be found 092 * @throws SystemException if a system exception occurred 093 */ 094 public com.liferay.portal.model.Team findByGroupId_First(long groupId, 095 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 096 throws com.liferay.portal.NoSuchTeamException, 097 com.liferay.portal.kernel.exception.SystemException; 098 099 /** 100 * Returns the first team in the ordered set where groupId = ?. 101 * 102 * @param groupId the group ID 103 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 104 * @return the first matching team, or <code>null</code> if a matching team could not be found 105 * @throws SystemException if a system exception occurred 106 */ 107 public com.liferay.portal.model.Team fetchByGroupId_First(long groupId, 108 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 109 throws com.liferay.portal.kernel.exception.SystemException; 110 111 /** 112 * Returns the last team in the ordered set where groupId = ?. 113 * 114 * @param groupId the group ID 115 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 116 * @return the last matching team 117 * @throws com.liferay.portal.NoSuchTeamException if a matching team could not be found 118 * @throws SystemException if a system exception occurred 119 */ 120 public com.liferay.portal.model.Team findByGroupId_Last(long groupId, 121 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 122 throws com.liferay.portal.NoSuchTeamException, 123 com.liferay.portal.kernel.exception.SystemException; 124 125 /** 126 * Returns the last team in the ordered set where groupId = ?. 127 * 128 * @param groupId the group ID 129 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 130 * @return the last matching team, or <code>null</code> if a matching team could not be found 131 * @throws SystemException if a system exception occurred 132 */ 133 public com.liferay.portal.model.Team fetchByGroupId_Last(long groupId, 134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 135 throws com.liferay.portal.kernel.exception.SystemException; 136 137 /** 138 * Returns the teams before and after the current team in the ordered set where groupId = ?. 139 * 140 * @param teamId the primary key of the current team 141 * @param groupId the group ID 142 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 143 * @return the previous, current, and next team 144 * @throws com.liferay.portal.NoSuchTeamException if a team with the primary key could not be found 145 * @throws SystemException if a system exception occurred 146 */ 147 public com.liferay.portal.model.Team[] findByGroupId_PrevAndNext( 148 long teamId, long groupId, 149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 150 throws com.liferay.portal.NoSuchTeamException, 151 com.liferay.portal.kernel.exception.SystemException; 152 153 /** 154 * Returns all the teams that the user has permission to view where groupId = ?. 155 * 156 * @param groupId the group ID 157 * @return the matching teams that the user has permission to view 158 * @throws SystemException if a system exception occurred 159 */ 160 public java.util.List<com.liferay.portal.model.Team> filterFindByGroupId( 161 long groupId) 162 throws com.liferay.portal.kernel.exception.SystemException; 163 164 /** 165 * Returns a range of all the teams that the user has permission to view where groupId = ?. 166 * 167 * <p> 168 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.TeamModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 169 * </p> 170 * 171 * @param groupId the group ID 172 * @param start the lower bound of the range of teams 173 * @param end the upper bound of the range of teams (not inclusive) 174 * @return the range of matching teams that the user has permission to view 175 * @throws SystemException if a system exception occurred 176 */ 177 public java.util.List<com.liferay.portal.model.Team> filterFindByGroupId( 178 long groupId, int start, int end) 179 throws com.liferay.portal.kernel.exception.SystemException; 180 181 /** 182 * Returns an ordered range of all the teams that the user has permissions to view where groupId = ?. 183 * 184 * <p> 185 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.TeamModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 186 * </p> 187 * 188 * @param groupId the group ID 189 * @param start the lower bound of the range of teams 190 * @param end the upper bound of the range of teams (not inclusive) 191 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 192 * @return the ordered range of matching teams that the user has permission to view 193 * @throws SystemException if a system exception occurred 194 */ 195 public java.util.List<com.liferay.portal.model.Team> filterFindByGroupId( 196 long groupId, int start, int end, 197 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 198 throws com.liferay.portal.kernel.exception.SystemException; 199 200 /** 201 * Returns the teams before and after the current team in the ordered set of teams that the user has permission to view where groupId = ?. 202 * 203 * @param teamId the primary key of the current team 204 * @param groupId the group ID 205 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 206 * @return the previous, current, and next team 207 * @throws com.liferay.portal.NoSuchTeamException if a team with the primary key could not be found 208 * @throws SystemException if a system exception occurred 209 */ 210 public com.liferay.portal.model.Team[] filterFindByGroupId_PrevAndNext( 211 long teamId, long groupId, 212 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 213 throws com.liferay.portal.NoSuchTeamException, 214 com.liferay.portal.kernel.exception.SystemException; 215 216 /** 217 * Removes all the teams where groupId = ? from the database. 218 * 219 * @param groupId the group ID 220 * @throws SystemException if a system exception occurred 221 */ 222 public void removeByGroupId(long groupId) 223 throws com.liferay.portal.kernel.exception.SystemException; 224 225 /** 226 * Returns the number of teams where groupId = ?. 227 * 228 * @param groupId the group ID 229 * @return the number of matching teams 230 * @throws SystemException if a system exception occurred 231 */ 232 public int countByGroupId(long groupId) 233 throws com.liferay.portal.kernel.exception.SystemException; 234 235 /** 236 * Returns the number of teams that the user has permission to view where groupId = ?. 237 * 238 * @param groupId the group ID 239 * @return the number of matching teams that the user has permission to view 240 * @throws SystemException if a system exception occurred 241 */ 242 public int filterCountByGroupId(long groupId) 243 throws com.liferay.portal.kernel.exception.SystemException; 244 245 /** 246 * Returns the team where groupId = ? and name = ? or throws a {@link com.liferay.portal.NoSuchTeamException} if it could not be found. 247 * 248 * @param groupId the group ID 249 * @param name the name 250 * @return the matching team 251 * @throws com.liferay.portal.NoSuchTeamException if a matching team could not be found 252 * @throws SystemException if a system exception occurred 253 */ 254 public com.liferay.portal.model.Team findByG_N(long groupId, 255 java.lang.String name) 256 throws com.liferay.portal.NoSuchTeamException, 257 com.liferay.portal.kernel.exception.SystemException; 258 259 /** 260 * Returns the team where groupId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 261 * 262 * @param groupId the group ID 263 * @param name the name 264 * @return the matching team, or <code>null</code> if a matching team could not be found 265 * @throws SystemException if a system exception occurred 266 */ 267 public com.liferay.portal.model.Team fetchByG_N(long groupId, 268 java.lang.String name) 269 throws com.liferay.portal.kernel.exception.SystemException; 270 271 /** 272 * Returns the team where groupId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 273 * 274 * @param groupId the group ID 275 * @param name the name 276 * @param retrieveFromCache whether to use the finder cache 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 * Removes the team where groupId = ? and name = ? from the database. 286 * 287 * @param groupId the group ID 288 * @param name the name 289 * @return the team that was removed 290 * @throws SystemException if a system exception occurred 291 */ 292 public com.liferay.portal.model.Team removeByG_N(long groupId, 293 java.lang.String name) 294 throws com.liferay.portal.NoSuchTeamException, 295 com.liferay.portal.kernel.exception.SystemException; 296 297 /** 298 * Returns the number of teams where groupId = ? and name = ?. 299 * 300 * @param groupId the group ID 301 * @param name the name 302 * @return the number of matching teams 303 * @throws SystemException if a system exception occurred 304 */ 305 public int countByG_N(long groupId, java.lang.String name) 306 throws com.liferay.portal.kernel.exception.SystemException; 307 308 /** 309 * Caches the team in the entity cache if it is enabled. 310 * 311 * @param team the team 312 */ 313 public void cacheResult(com.liferay.portal.model.Team team); 314 315 /** 316 * Caches the teams in the entity cache if it is enabled. 317 * 318 * @param teams the teams 319 */ 320 public void cacheResult(java.util.List<com.liferay.portal.model.Team> teams); 321 322 /** 323 * Creates a new team with the primary key. Does not add the team to the database. 324 * 325 * @param teamId the primary key for the new team 326 * @return the new team 327 */ 328 public com.liferay.portal.model.Team create(long teamId); 329 330 /** 331 * Removes the team with the primary key from the database. Also notifies the appropriate model listeners. 332 * 333 * @param teamId the primary key of the team 334 * @return the team that was removed 335 * @throws com.liferay.portal.NoSuchTeamException if a team with the primary key could not be found 336 * @throws SystemException if a system exception occurred 337 */ 338 public com.liferay.portal.model.Team remove(long teamId) 339 throws com.liferay.portal.NoSuchTeamException, 340 com.liferay.portal.kernel.exception.SystemException; 341 342 public com.liferay.portal.model.Team updateImpl( 343 com.liferay.portal.model.Team team) 344 throws com.liferay.portal.kernel.exception.SystemException; 345 346 /** 347 * Returns the team with the primary key or throws a {@link com.liferay.portal.NoSuchTeamException} if it could not be found. 348 * 349 * @param teamId the primary key of the team 350 * @return the team 351 * @throws com.liferay.portal.NoSuchTeamException if a team with the primary key could not be found 352 * @throws SystemException if a system exception occurred 353 */ 354 public com.liferay.portal.model.Team findByPrimaryKey(long teamId) 355 throws com.liferay.portal.NoSuchTeamException, 356 com.liferay.portal.kernel.exception.SystemException; 357 358 /** 359 * Returns the team with the primary key or returns <code>null</code> if it could not be found. 360 * 361 * @param teamId the primary key of the team 362 * @return the team, or <code>null</code> if a team with the primary key could not be found 363 * @throws SystemException if a system exception occurred 364 */ 365 public com.liferay.portal.model.Team fetchByPrimaryKey(long teamId) 366 throws com.liferay.portal.kernel.exception.SystemException; 367 368 /** 369 * Returns all the teams. 370 * 371 * @return the teams 372 * @throws SystemException if a system exception occurred 373 */ 374 public java.util.List<com.liferay.portal.model.Team> findAll() 375 throws com.liferay.portal.kernel.exception.SystemException; 376 377 /** 378 * Returns a range of all the teams. 379 * 380 * <p> 381 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.TeamModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 382 * </p> 383 * 384 * @param start the lower bound of the range of teams 385 * @param end the upper bound of the range of teams (not inclusive) 386 * @return the range of teams 387 * @throws SystemException if a system exception occurred 388 */ 389 public java.util.List<com.liferay.portal.model.Team> findAll(int start, 390 int end) throws com.liferay.portal.kernel.exception.SystemException; 391 392 /** 393 * Returns an ordered range of all the teams. 394 * 395 * <p> 396 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.TeamModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 397 * </p> 398 * 399 * @param start the lower bound of the range of teams 400 * @param end the upper bound of the range of teams (not inclusive) 401 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 402 * @return the ordered range of teams 403 * @throws SystemException if a system exception occurred 404 */ 405 public java.util.List<com.liferay.portal.model.Team> findAll(int start, 406 int end, 407 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 408 throws com.liferay.portal.kernel.exception.SystemException; 409 410 /** 411 * Removes all the teams from the database. 412 * 413 * @throws SystemException if a system exception occurred 414 */ 415 public void removeAll() 416 throws com.liferay.portal.kernel.exception.SystemException; 417 418 /** 419 * Returns the number of teams. 420 * 421 * @return the number of teams 422 * @throws SystemException if a system exception occurred 423 */ 424 public int countAll() 425 throws com.liferay.portal.kernel.exception.SystemException; 426 427 /** 428 * Returns all the users associated with the team. 429 * 430 * @param pk the primary key of the team 431 * @return the users associated with the team 432 * @throws SystemException if a system exception occurred 433 */ 434 public java.util.List<com.liferay.portal.model.User> getUsers(long pk) 435 throws com.liferay.portal.kernel.exception.SystemException; 436 437 /** 438 * Returns a range of all the users associated with the team. 439 * 440 * <p> 441 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.TeamModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 442 * </p> 443 * 444 * @param pk the primary key of the team 445 * @param start the lower bound of the range of teams 446 * @param end the upper bound of the range of teams (not inclusive) 447 * @return the range of users associated with the team 448 * @throws SystemException if a system exception occurred 449 */ 450 public java.util.List<com.liferay.portal.model.User> getUsers(long pk, 451 int start, int end) 452 throws com.liferay.portal.kernel.exception.SystemException; 453 454 /** 455 * Returns an ordered range of all the users associated with the team. 456 * 457 * <p> 458 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.TeamModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 459 * </p> 460 * 461 * @param pk the primary key of the team 462 * @param start the lower bound of the range of teams 463 * @param end the upper bound of the range of teams (not inclusive) 464 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 465 * @return the ordered range of users associated with the team 466 * @throws SystemException if a system exception occurred 467 */ 468 public java.util.List<com.liferay.portal.model.User> getUsers(long pk, 469 int start, int end, 470 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 471 throws com.liferay.portal.kernel.exception.SystemException; 472 473 /** 474 * Returns the number of users associated with the team. 475 * 476 * @param pk the primary key of the team 477 * @return the number of users associated with the team 478 * @throws SystemException if a system exception occurred 479 */ 480 public int getUsersSize(long pk) 481 throws com.liferay.portal.kernel.exception.SystemException; 482 483 /** 484 * Returns <code>true</code> if the user is associated with the team. 485 * 486 * @param pk the primary key of the team 487 * @param userPK the primary key of the user 488 * @return <code>true</code> if the user is associated with the team; <code>false</code> otherwise 489 * @throws SystemException if a system exception occurred 490 */ 491 public boolean containsUser(long pk, long userPK) 492 throws com.liferay.portal.kernel.exception.SystemException; 493 494 /** 495 * Returns <code>true</code> if the team has any users associated with it. 496 * 497 * @param pk the primary key of the team to check for associations with users 498 * @return <code>true</code> if the team has any users associated with it; <code>false</code> otherwise 499 * @throws SystemException if a system exception occurred 500 */ 501 public boolean containsUsers(long pk) 502 throws com.liferay.portal.kernel.exception.SystemException; 503 504 /** 505 * Adds an association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 506 * 507 * @param pk the primary key of the team 508 * @param userPK the primary key of the user 509 * @throws SystemException if a system exception occurred 510 */ 511 public void addUser(long pk, long userPK) 512 throws com.liferay.portal.kernel.exception.SystemException; 513 514 /** 515 * Adds an association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 516 * 517 * @param pk the primary key of the team 518 * @param user the user 519 * @throws SystemException if a system exception occurred 520 */ 521 public void addUser(long pk, com.liferay.portal.model.User user) 522 throws com.liferay.portal.kernel.exception.SystemException; 523 524 /** 525 * Adds an association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 526 * 527 * @param pk the primary key of the team 528 * @param userPKs the primary keys of the users 529 * @throws SystemException if a system exception occurred 530 */ 531 public void addUsers(long pk, long[] userPKs) 532 throws com.liferay.portal.kernel.exception.SystemException; 533 534 /** 535 * Adds an association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 536 * 537 * @param pk the primary key of the team 538 * @param users the users 539 * @throws SystemException if a system exception occurred 540 */ 541 public void addUsers(long pk, 542 java.util.List<com.liferay.portal.model.User> users) 543 throws com.liferay.portal.kernel.exception.SystemException; 544 545 /** 546 * Clears all associations between the team and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 547 * 548 * @param pk the primary key of the team to clear the associated users from 549 * @throws SystemException if a system exception occurred 550 */ 551 public void clearUsers(long pk) 552 throws com.liferay.portal.kernel.exception.SystemException; 553 554 /** 555 * Removes the association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 556 * 557 * @param pk the primary key of the team 558 * @param userPK the primary key of the user 559 * @throws SystemException if a system exception occurred 560 */ 561 public void removeUser(long pk, long userPK) 562 throws com.liferay.portal.kernel.exception.SystemException; 563 564 /** 565 * Removes the association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 566 * 567 * @param pk the primary key of the team 568 * @param user the user 569 * @throws SystemException if a system exception occurred 570 */ 571 public void removeUser(long pk, com.liferay.portal.model.User user) 572 throws com.liferay.portal.kernel.exception.SystemException; 573 574 /** 575 * Removes the association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 576 * 577 * @param pk the primary key of the team 578 * @param userPKs the primary keys of the users 579 * @throws SystemException if a system exception occurred 580 */ 581 public void removeUsers(long pk, long[] userPKs) 582 throws com.liferay.portal.kernel.exception.SystemException; 583 584 /** 585 * Removes the association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 586 * 587 * @param pk the primary key of the team 588 * @param users the users 589 * @throws SystemException if a system exception occurred 590 */ 591 public void removeUsers(long pk, 592 java.util.List<com.liferay.portal.model.User> users) 593 throws com.liferay.portal.kernel.exception.SystemException; 594 595 /** 596 * 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. 597 * 598 * @param pk the primary key of the team 599 * @param userPKs the primary keys of the users to be associated with the team 600 * @throws SystemException if a system exception occurred 601 */ 602 public void setUsers(long pk, long[] userPKs) 603 throws com.liferay.portal.kernel.exception.SystemException; 604 605 /** 606 * 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. 607 * 608 * @param pk the primary key of the team 609 * @param users the users to be associated with the team 610 * @throws SystemException if a system exception occurred 611 */ 612 public void setUsers(long pk, 613 java.util.List<com.liferay.portal.model.User> users) 614 throws com.liferay.portal.kernel.exception.SystemException; 615 616 /** 617 * Returns all the user groups associated with the team. 618 * 619 * @param pk the primary key of the team 620 * @return the user groups associated with the team 621 * @throws SystemException if a system exception occurred 622 */ 623 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups( 624 long pk) throws com.liferay.portal.kernel.exception.SystemException; 625 626 /** 627 * Returns a range of all the user groups associated with the team. 628 * 629 * <p> 630 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.TeamModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 631 * </p> 632 * 633 * @param pk the primary key of the team 634 * @param start the lower bound of the range of teams 635 * @param end the upper bound of the range of teams (not inclusive) 636 * @return the range of user groups associated with the team 637 * @throws SystemException if a system exception occurred 638 */ 639 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups( 640 long pk, int start, int end) 641 throws com.liferay.portal.kernel.exception.SystemException; 642 643 /** 644 * Returns an ordered range of all the user groups associated with the team. 645 * 646 * <p> 647 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.TeamModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 648 * </p> 649 * 650 * @param pk the primary key of the team 651 * @param start the lower bound of the range of teams 652 * @param end the upper bound of the range of teams (not inclusive) 653 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 654 * @return the ordered range of user groups associated with the team 655 * @throws SystemException if a system exception occurred 656 */ 657 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups( 658 long pk, int start, int end, 659 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 660 throws com.liferay.portal.kernel.exception.SystemException; 661 662 /** 663 * Returns the number of user groups associated with the team. 664 * 665 * @param pk the primary key of the team 666 * @return the number of user groups associated with the team 667 * @throws SystemException if a system exception occurred 668 */ 669 public int getUserGroupsSize(long pk) 670 throws com.liferay.portal.kernel.exception.SystemException; 671 672 /** 673 * Returns <code>true</code> if the user group is associated with the team. 674 * 675 * @param pk the primary key of the team 676 * @param userGroupPK the primary key of the user group 677 * @return <code>true</code> if the user group is associated with the team; <code>false</code> otherwise 678 * @throws SystemException if a system exception occurred 679 */ 680 public boolean containsUserGroup(long pk, long userGroupPK) 681 throws com.liferay.portal.kernel.exception.SystemException; 682 683 /** 684 * Returns <code>true</code> if the team has any user groups associated with it. 685 * 686 * @param pk the primary key of the team to check for associations with user groups 687 * @return <code>true</code> if the team has any user groups associated with it; <code>false</code> otherwise 688 * @throws SystemException if a system exception occurred 689 */ 690 public boolean containsUserGroups(long pk) 691 throws com.liferay.portal.kernel.exception.SystemException; 692 693 /** 694 * Adds an association between the team and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 695 * 696 * @param pk the primary key of the team 697 * @param userGroupPK the primary key of the user group 698 * @throws SystemException if a system exception occurred 699 */ 700 public void addUserGroup(long pk, long userGroupPK) 701 throws com.liferay.portal.kernel.exception.SystemException; 702 703 /** 704 * Adds an association between the team and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 705 * 706 * @param pk the primary key of the team 707 * @param userGroup the user group 708 * @throws SystemException if a system exception occurred 709 */ 710 public void addUserGroup(long pk, 711 com.liferay.portal.model.UserGroup userGroup) 712 throws com.liferay.portal.kernel.exception.SystemException; 713 714 /** 715 * Adds an association between the team and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 716 * 717 * @param pk the primary key of the team 718 * @param userGroupPKs the primary keys of the user groups 719 * @throws SystemException if a system exception occurred 720 */ 721 public void addUserGroups(long pk, long[] userGroupPKs) 722 throws com.liferay.portal.kernel.exception.SystemException; 723 724 /** 725 * Adds an association between the team and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 726 * 727 * @param pk the primary key of the team 728 * @param userGroups the user groups 729 * @throws SystemException if a system exception occurred 730 */ 731 public void addUserGroups(long pk, 732 java.util.List<com.liferay.portal.model.UserGroup> userGroups) 733 throws com.liferay.portal.kernel.exception.SystemException; 734 735 /** 736 * Clears all associations between the team and its user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 737 * 738 * @param pk the primary key of the team to clear the associated user groups from 739 * @throws SystemException if a system exception occurred 740 */ 741 public void clearUserGroups(long pk) 742 throws com.liferay.portal.kernel.exception.SystemException; 743 744 /** 745 * Removes the association between the team and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 746 * 747 * @param pk the primary key of the team 748 * @param userGroupPK the primary key of the user group 749 * @throws SystemException if a system exception occurred 750 */ 751 public void removeUserGroup(long pk, long userGroupPK) 752 throws com.liferay.portal.kernel.exception.SystemException; 753 754 /** 755 * Removes the association between the team and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 756 * 757 * @param pk the primary key of the team 758 * @param userGroup the user group 759 * @throws SystemException if a system exception occurred 760 */ 761 public void removeUserGroup(long pk, 762 com.liferay.portal.model.UserGroup userGroup) 763 throws com.liferay.portal.kernel.exception.SystemException; 764 765 /** 766 * Removes the association between the team and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 767 * 768 * @param pk the primary key of the team 769 * @param userGroupPKs the primary keys of the user groups 770 * @throws SystemException if a system exception occurred 771 */ 772 public void removeUserGroups(long pk, long[] userGroupPKs) 773 throws com.liferay.portal.kernel.exception.SystemException; 774 775 /** 776 * Removes the association between the team and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 777 * 778 * @param pk the primary key of the team 779 * @param userGroups the user groups 780 * @throws SystemException if a system exception occurred 781 */ 782 public void removeUserGroups(long pk, 783 java.util.List<com.liferay.portal.model.UserGroup> userGroups) 784 throws com.liferay.portal.kernel.exception.SystemException; 785 786 /** 787 * Sets the user groups associated with the team, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 788 * 789 * @param pk the primary key of the team 790 * @param userGroupPKs the primary keys of the user groups to be associated with the team 791 * @throws SystemException if a system exception occurred 792 */ 793 public void setUserGroups(long pk, long[] userGroupPKs) 794 throws com.liferay.portal.kernel.exception.SystemException; 795 796 /** 797 * Sets the user groups associated with the team, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 798 * 799 * @param pk the primary key of the team 800 * @param userGroups the user groups to be associated with the team 801 * @throws SystemException if a system exception occurred 802 */ 803 public void setUserGroups(long pk, 804 java.util.List<com.liferay.portal.model.UserGroup> userGroups) 805 throws com.liferay.portal.kernel.exception.SystemException; 806 }