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.User; 018 019 /** 020 * The persistence interface for the user 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 UserPersistenceImpl 028 * @see UserUtil 029 * @generated 030 */ 031 public interface UserPersistence extends BasePersistence<User> { 032 /** 033 * Caches the user in the entity cache if it is enabled. 034 * 035 * @param user the user to cache 036 */ 037 public void cacheResult(com.liferay.portal.model.User user); 038 039 /** 040 * Caches the users in the entity cache if it is enabled. 041 * 042 * @param users the users to cache 043 */ 044 public void cacheResult(java.util.List<com.liferay.portal.model.User> users); 045 046 /** 047 * Creates a new user with the primary key. 048 * 049 * @param userId the primary key for the new user 050 * @return the new user 051 */ 052 public com.liferay.portal.model.User create(long userId); 053 054 /** 055 * Removes the user with the primary key from the database. Also notifies the appropriate model listeners. 056 * 057 * @param userId the primary key of the user to remove 058 * @return the user that was removed 059 * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found 060 * @throws SystemException if a system exception occurred 061 */ 062 public com.liferay.portal.model.User remove(long userId) 063 throws com.liferay.portal.NoSuchUserException, 064 com.liferay.portal.kernel.exception.SystemException; 065 066 public com.liferay.portal.model.User updateImpl( 067 com.liferay.portal.model.User user, boolean merge) 068 throws com.liferay.portal.kernel.exception.SystemException; 069 070 /** 071 * Finds the user with the primary key or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found. 072 * 073 * @param userId the primary key of the user to find 074 * @return the user 075 * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found 076 * @throws SystemException if a system exception occurred 077 */ 078 public com.liferay.portal.model.User findByPrimaryKey(long userId) 079 throws com.liferay.portal.NoSuchUserException, 080 com.liferay.portal.kernel.exception.SystemException; 081 082 /** 083 * Finds the user with the primary key or returns <code>null</code> if it could not be found. 084 * 085 * @param userId the primary key of the user to find 086 * @return the user, or <code>null</code> if a user with the primary key could not be found 087 * @throws SystemException if a system exception occurred 088 */ 089 public com.liferay.portal.model.User fetchByPrimaryKey(long userId) 090 throws com.liferay.portal.kernel.exception.SystemException; 091 092 /** 093 * Finds all the users where uuid = ?. 094 * 095 * @param uuid the uuid to search with 096 * @return the matching users 097 * @throws SystemException if a system exception occurred 098 */ 099 public java.util.List<com.liferay.portal.model.User> findByUuid( 100 java.lang.String uuid) 101 throws com.liferay.portal.kernel.exception.SystemException; 102 103 /** 104 * Finds a range of all the users where uuid = ?. 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 uuid the uuid to search with 111 * @param start the lower bound of the range of users to return 112 * @param end the upper bound of the range of users to return (not inclusive) 113 * @return the range of matching users 114 * @throws SystemException if a system exception occurred 115 */ 116 public java.util.List<com.liferay.portal.model.User> findByUuid( 117 java.lang.String uuid, int start, int end) 118 throws com.liferay.portal.kernel.exception.SystemException; 119 120 /** 121 * Finds an ordered range of all the users where uuid = ?. 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 uuid the uuid to search with 128 * @param start the lower bound of the range of users to return 129 * @param end the upper bound of the range of users to return (not inclusive) 130 * @param orderByComparator the comparator to order the results by 131 * @return the ordered range of matching users 132 * @throws SystemException if a system exception occurred 133 */ 134 public java.util.List<com.liferay.portal.model.User> findByUuid( 135 java.lang.String uuid, 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 user in the ordered set where uuid = ?. 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 uuid the uuid to search with 147 * @param orderByComparator the comparator to order the set by 148 * @return the first matching user 149 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public com.liferay.portal.model.User findByUuid_First( 153 java.lang.String uuid, 154 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 155 throws com.liferay.portal.NoSuchUserException, 156 com.liferay.portal.kernel.exception.SystemException; 157 158 /** 159 * Finds the last user in the ordered set where uuid = ?. 160 * 161 * <p> 162 * 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. 163 * </p> 164 * 165 * @param uuid the uuid to search with 166 * @param orderByComparator the comparator to order the set by 167 * @return the last matching user 168 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 169 * @throws SystemException if a system exception occurred 170 */ 171 public com.liferay.portal.model.User findByUuid_Last( 172 java.lang.String uuid, 173 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 174 throws com.liferay.portal.NoSuchUserException, 175 com.liferay.portal.kernel.exception.SystemException; 176 177 /** 178 * Finds the users before and after the current user in the ordered set where uuid = ?. 179 * 180 * <p> 181 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 182 * </p> 183 * 184 * @param userId the primary key of the current user 185 * @param uuid the uuid to search with 186 * @param orderByComparator the comparator to order the set by 187 * @return the previous, current, and next user 188 * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found 189 * @throws SystemException if a system exception occurred 190 */ 191 public com.liferay.portal.model.User[] findByUuid_PrevAndNext(long userId, 192 java.lang.String uuid, 193 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 194 throws com.liferay.portal.NoSuchUserException, 195 com.liferay.portal.kernel.exception.SystemException; 196 197 /** 198 * Finds all the users where companyId = ?. 199 * 200 * @param companyId the company id to search with 201 * @return the matching users 202 * @throws SystemException if a system exception occurred 203 */ 204 public java.util.List<com.liferay.portal.model.User> findByCompanyId( 205 long companyId) 206 throws com.liferay.portal.kernel.exception.SystemException; 207 208 /** 209 * Finds a range of all the users where companyId = ?. 210 * 211 * <p> 212 * 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. 213 * </p> 214 * 215 * @param companyId the company id to search with 216 * @param start the lower bound of the range of users to return 217 * @param end the upper bound of the range of users to return (not inclusive) 218 * @return the range of matching users 219 * @throws SystemException if a system exception occurred 220 */ 221 public java.util.List<com.liferay.portal.model.User> findByCompanyId( 222 long companyId, int start, int end) 223 throws com.liferay.portal.kernel.exception.SystemException; 224 225 /** 226 * Finds an ordered range of all the users where companyId = ?. 227 * 228 * <p> 229 * 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. 230 * </p> 231 * 232 * @param companyId the company id to search with 233 * @param start the lower bound of the range of users to return 234 * @param end the upper bound of the range of users to return (not inclusive) 235 * @param orderByComparator the comparator to order the results by 236 * @return the ordered range of matching users 237 * @throws SystemException if a system exception occurred 238 */ 239 public java.util.List<com.liferay.portal.model.User> findByCompanyId( 240 long companyId, int start, int end, 241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 242 throws com.liferay.portal.kernel.exception.SystemException; 243 244 /** 245 * Finds the first user in the ordered set where companyId = ?. 246 * 247 * <p> 248 * 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. 249 * </p> 250 * 251 * @param companyId the company id to search with 252 * @param orderByComparator the comparator to order the set by 253 * @return the first matching user 254 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 255 * @throws SystemException if a system exception occurred 256 */ 257 public com.liferay.portal.model.User findByCompanyId_First(long companyId, 258 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 259 throws com.liferay.portal.NoSuchUserException, 260 com.liferay.portal.kernel.exception.SystemException; 261 262 /** 263 * Finds the last user in the ordered set where companyId = ?. 264 * 265 * <p> 266 * 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. 267 * </p> 268 * 269 * @param companyId the company id to search with 270 * @param orderByComparator the comparator to order the set by 271 * @return the last matching user 272 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 273 * @throws SystemException if a system exception occurred 274 */ 275 public com.liferay.portal.model.User findByCompanyId_Last(long companyId, 276 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 277 throws com.liferay.portal.NoSuchUserException, 278 com.liferay.portal.kernel.exception.SystemException; 279 280 /** 281 * Finds the users before and after the current user in the ordered set where companyId = ?. 282 * 283 * <p> 284 * 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. 285 * </p> 286 * 287 * @param userId the primary key of the current user 288 * @param companyId the company id to search with 289 * @param orderByComparator the comparator to order the set by 290 * @return the previous, current, and next user 291 * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found 292 * @throws SystemException if a system exception occurred 293 */ 294 public com.liferay.portal.model.User[] findByCompanyId_PrevAndNext( 295 long userId, long companyId, 296 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 297 throws com.liferay.portal.NoSuchUserException, 298 com.liferay.portal.kernel.exception.SystemException; 299 300 /** 301 * Finds the user where contactId = ? or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found. 302 * 303 * @param contactId the contact id to search with 304 * @return the matching user 305 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 306 * @throws SystemException if a system exception occurred 307 */ 308 public com.liferay.portal.model.User findByContactId(long contactId) 309 throws com.liferay.portal.NoSuchUserException, 310 com.liferay.portal.kernel.exception.SystemException; 311 312 /** 313 * Finds the user where contactId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 314 * 315 * @param contactId the contact id to search with 316 * @return the matching user, or <code>null</code> if a matching user could not be found 317 * @throws SystemException if a system exception occurred 318 */ 319 public com.liferay.portal.model.User fetchByContactId(long contactId) 320 throws com.liferay.portal.kernel.exception.SystemException; 321 322 /** 323 * Finds the user where contactId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 324 * 325 * @param contactId the contact id to search with 326 * @return the matching user, or <code>null</code> if a matching user could not be found 327 * @throws SystemException if a system exception occurred 328 */ 329 public com.liferay.portal.model.User fetchByContactId(long contactId, 330 boolean retrieveFromCache) 331 throws com.liferay.portal.kernel.exception.SystemException; 332 333 /** 334 * Finds all the users where emailAddress = ?. 335 * 336 * @param emailAddress the email address to search with 337 * @return the matching users 338 * @throws SystemException if a system exception occurred 339 */ 340 public java.util.List<com.liferay.portal.model.User> findByEmailAddress( 341 java.lang.String emailAddress) 342 throws com.liferay.portal.kernel.exception.SystemException; 343 344 /** 345 * Finds a range of all the users where emailAddress = ?. 346 * 347 * <p> 348 * 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. 349 * </p> 350 * 351 * @param emailAddress the email address to search with 352 * @param start the lower bound of the range of users to return 353 * @param end the upper bound of the range of users to return (not inclusive) 354 * @return the range of matching users 355 * @throws SystemException if a system exception occurred 356 */ 357 public java.util.List<com.liferay.portal.model.User> findByEmailAddress( 358 java.lang.String emailAddress, int start, int end) 359 throws com.liferay.portal.kernel.exception.SystemException; 360 361 /** 362 * Finds an ordered range of all the users where emailAddress = ?. 363 * 364 * <p> 365 * 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. 366 * </p> 367 * 368 * @param emailAddress the email address to search with 369 * @param start the lower bound of the range of users to return 370 * @param end the upper bound of the range of users to return (not inclusive) 371 * @param orderByComparator the comparator to order the results by 372 * @return the ordered range of matching users 373 * @throws SystemException if a system exception occurred 374 */ 375 public java.util.List<com.liferay.portal.model.User> findByEmailAddress( 376 java.lang.String emailAddress, int start, int end, 377 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 378 throws com.liferay.portal.kernel.exception.SystemException; 379 380 /** 381 * Finds the first user in the ordered set where emailAddress = ?. 382 * 383 * <p> 384 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 385 * </p> 386 * 387 * @param emailAddress the email address to search with 388 * @param orderByComparator the comparator to order the set by 389 * @return the first matching user 390 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 391 * @throws SystemException if a system exception occurred 392 */ 393 public com.liferay.portal.model.User findByEmailAddress_First( 394 java.lang.String emailAddress, 395 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 396 throws com.liferay.portal.NoSuchUserException, 397 com.liferay.portal.kernel.exception.SystemException; 398 399 /** 400 * Finds the last user in the ordered set where emailAddress = ?. 401 * 402 * <p> 403 * 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. 404 * </p> 405 * 406 * @param emailAddress the email address to search with 407 * @param orderByComparator the comparator to order the set by 408 * @return the last matching user 409 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 410 * @throws SystemException if a system exception occurred 411 */ 412 public com.liferay.portal.model.User findByEmailAddress_Last( 413 java.lang.String emailAddress, 414 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 415 throws com.liferay.portal.NoSuchUserException, 416 com.liferay.portal.kernel.exception.SystemException; 417 418 /** 419 * Finds the users before and after the current user in the ordered set where emailAddress = ?. 420 * 421 * <p> 422 * 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. 423 * </p> 424 * 425 * @param userId the primary key of the current user 426 * @param emailAddress the email address to search with 427 * @param orderByComparator the comparator to order the set by 428 * @return the previous, current, and next user 429 * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found 430 * @throws SystemException if a system exception occurred 431 */ 432 public com.liferay.portal.model.User[] findByEmailAddress_PrevAndNext( 433 long userId, java.lang.String emailAddress, 434 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 435 throws com.liferay.portal.NoSuchUserException, 436 com.liferay.portal.kernel.exception.SystemException; 437 438 /** 439 * Finds the user where portraitId = ? or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found. 440 * 441 * @param portraitId the portrait id to search with 442 * @return the matching user 443 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 444 * @throws SystemException if a system exception occurred 445 */ 446 public com.liferay.portal.model.User findByPortraitId(long portraitId) 447 throws com.liferay.portal.NoSuchUserException, 448 com.liferay.portal.kernel.exception.SystemException; 449 450 /** 451 * Finds the user where portraitId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 452 * 453 * @param portraitId the portrait id to search with 454 * @return the matching user, or <code>null</code> if a matching user could not be found 455 * @throws SystemException if a system exception occurred 456 */ 457 public com.liferay.portal.model.User fetchByPortraitId(long portraitId) 458 throws com.liferay.portal.kernel.exception.SystemException; 459 460 /** 461 * Finds the user where portraitId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 462 * 463 * @param portraitId the portrait id to search with 464 * @return the matching user, or <code>null</code> if a matching user could not be found 465 * @throws SystemException if a system exception occurred 466 */ 467 public com.liferay.portal.model.User fetchByPortraitId(long portraitId, 468 boolean retrieveFromCache) 469 throws com.liferay.portal.kernel.exception.SystemException; 470 471 /** 472 * Finds the user where companyId = ? and userId = ? or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found. 473 * 474 * @param companyId the company id to search with 475 * @param userId the user id to search with 476 * @return the matching user 477 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 478 * @throws SystemException if a system exception occurred 479 */ 480 public com.liferay.portal.model.User findByC_U(long companyId, long userId) 481 throws com.liferay.portal.NoSuchUserException, 482 com.liferay.portal.kernel.exception.SystemException; 483 484 /** 485 * Finds the user where companyId = ? and userId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 486 * 487 * @param companyId the company id to search with 488 * @param userId the user id to search with 489 * @return the matching user, or <code>null</code> if a matching user could not be found 490 * @throws SystemException if a system exception occurred 491 */ 492 public com.liferay.portal.model.User fetchByC_U(long companyId, long userId) 493 throws com.liferay.portal.kernel.exception.SystemException; 494 495 /** 496 * Finds the user where companyId = ? and userId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 497 * 498 * @param companyId the company id to search with 499 * @param userId the user id to search with 500 * @return the matching user, or <code>null</code> if a matching user could not be found 501 * @throws SystemException if a system exception occurred 502 */ 503 public com.liferay.portal.model.User fetchByC_U(long companyId, 504 long userId, boolean retrieveFromCache) 505 throws com.liferay.portal.kernel.exception.SystemException; 506 507 /** 508 * Finds the user where companyId = ? and defaultUser = ? or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found. 509 * 510 * @param companyId the company id to search with 511 * @param defaultUser the default user to search with 512 * @return the matching user 513 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 514 * @throws SystemException if a system exception occurred 515 */ 516 public com.liferay.portal.model.User findByC_DU(long companyId, 517 boolean defaultUser) 518 throws com.liferay.portal.NoSuchUserException, 519 com.liferay.portal.kernel.exception.SystemException; 520 521 /** 522 * Finds the user where companyId = ? and defaultUser = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 523 * 524 * @param companyId the company id to search with 525 * @param defaultUser the default user to search with 526 * @return the matching user, or <code>null</code> if a matching user could not be found 527 * @throws SystemException if a system exception occurred 528 */ 529 public com.liferay.portal.model.User fetchByC_DU(long companyId, 530 boolean defaultUser) 531 throws com.liferay.portal.kernel.exception.SystemException; 532 533 /** 534 * Finds the user where companyId = ? and defaultUser = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 535 * 536 * @param companyId the company id to search with 537 * @param defaultUser the default user to search with 538 * @return the matching user, or <code>null</code> if a matching user could not be found 539 * @throws SystemException if a system exception occurred 540 */ 541 public com.liferay.portal.model.User fetchByC_DU(long companyId, 542 boolean defaultUser, boolean retrieveFromCache) 543 throws com.liferay.portal.kernel.exception.SystemException; 544 545 /** 546 * Finds the user where companyId = ? and screenName = ? or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found. 547 * 548 * @param companyId the company id to search with 549 * @param screenName the screen name to search with 550 * @return the matching user 551 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 552 * @throws SystemException if a system exception occurred 553 */ 554 public com.liferay.portal.model.User findByC_SN(long companyId, 555 java.lang.String screenName) 556 throws com.liferay.portal.NoSuchUserException, 557 com.liferay.portal.kernel.exception.SystemException; 558 559 /** 560 * Finds the user where companyId = ? and screenName = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 561 * 562 * @param companyId the company id to search with 563 * @param screenName the screen name to search with 564 * @return the matching user, or <code>null</code> if a matching user could not be found 565 * @throws SystemException if a system exception occurred 566 */ 567 public com.liferay.portal.model.User fetchByC_SN(long companyId, 568 java.lang.String screenName) 569 throws com.liferay.portal.kernel.exception.SystemException; 570 571 /** 572 * Finds the user where companyId = ? and screenName = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 573 * 574 * @param companyId the company id to search with 575 * @param screenName the screen name to search with 576 * @return the matching user, or <code>null</code> if a matching user could not be found 577 * @throws SystemException if a system exception occurred 578 */ 579 public com.liferay.portal.model.User fetchByC_SN(long companyId, 580 java.lang.String screenName, boolean retrieveFromCache) 581 throws com.liferay.portal.kernel.exception.SystemException; 582 583 /** 584 * Finds the user where companyId = ? and emailAddress = ? or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found. 585 * 586 * @param companyId the company id to search with 587 * @param emailAddress the email address to search with 588 * @return the matching user 589 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 590 * @throws SystemException if a system exception occurred 591 */ 592 public com.liferay.portal.model.User findByC_EA(long companyId, 593 java.lang.String emailAddress) 594 throws com.liferay.portal.NoSuchUserException, 595 com.liferay.portal.kernel.exception.SystemException; 596 597 /** 598 * Finds the user where companyId = ? and emailAddress = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 599 * 600 * @param companyId the company id to search with 601 * @param emailAddress the email address to search with 602 * @return the matching user, or <code>null</code> if a matching user could not be found 603 * @throws SystemException if a system exception occurred 604 */ 605 public com.liferay.portal.model.User fetchByC_EA(long companyId, 606 java.lang.String emailAddress) 607 throws com.liferay.portal.kernel.exception.SystemException; 608 609 /** 610 * Finds the user where companyId = ? and emailAddress = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 611 * 612 * @param companyId the company id to search with 613 * @param emailAddress the email address to search with 614 * @return the matching user, or <code>null</code> if a matching user could not be found 615 * @throws SystemException if a system exception occurred 616 */ 617 public com.liferay.portal.model.User fetchByC_EA(long companyId, 618 java.lang.String emailAddress, boolean retrieveFromCache) 619 throws com.liferay.portal.kernel.exception.SystemException; 620 621 /** 622 * Finds the user where companyId = ? and facebookId = ? or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found. 623 * 624 * @param companyId the company id to search with 625 * @param facebookId the facebook id to search with 626 * @return the matching user 627 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 628 * @throws SystemException if a system exception occurred 629 */ 630 public com.liferay.portal.model.User findByC_FID(long companyId, 631 long facebookId) 632 throws com.liferay.portal.NoSuchUserException, 633 com.liferay.portal.kernel.exception.SystemException; 634 635 /** 636 * Finds the user where companyId = ? and facebookId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 637 * 638 * @param companyId the company id to search with 639 * @param facebookId the facebook id to search with 640 * @return the matching user, or <code>null</code> if a matching user could not be found 641 * @throws SystemException if a system exception occurred 642 */ 643 public com.liferay.portal.model.User fetchByC_FID(long companyId, 644 long facebookId) 645 throws com.liferay.portal.kernel.exception.SystemException; 646 647 /** 648 * Finds the user where companyId = ? and facebookId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 649 * 650 * @param companyId the company id to search with 651 * @param facebookId the facebook id to search with 652 * @return the matching user, or <code>null</code> if a matching user could not be found 653 * @throws SystemException if a system exception occurred 654 */ 655 public com.liferay.portal.model.User fetchByC_FID(long companyId, 656 long facebookId, boolean retrieveFromCache) 657 throws com.liferay.portal.kernel.exception.SystemException; 658 659 /** 660 * Finds the user where companyId = ? and openId = ? or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found. 661 * 662 * @param companyId the company id to search with 663 * @param openId the open id to search with 664 * @return the matching user 665 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 666 * @throws SystemException if a system exception occurred 667 */ 668 public com.liferay.portal.model.User findByC_O(long companyId, 669 java.lang.String openId) 670 throws com.liferay.portal.NoSuchUserException, 671 com.liferay.portal.kernel.exception.SystemException; 672 673 /** 674 * Finds the user where companyId = ? and openId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 675 * 676 * @param companyId the company id to search with 677 * @param openId the open id to search with 678 * @return the matching user, or <code>null</code> if a matching user could not be found 679 * @throws SystemException if a system exception occurred 680 */ 681 public com.liferay.portal.model.User fetchByC_O(long companyId, 682 java.lang.String openId) 683 throws com.liferay.portal.kernel.exception.SystemException; 684 685 /** 686 * Finds the user where companyId = ? and openId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 687 * 688 * @param companyId the company id to search with 689 * @param openId the open id to search with 690 * @return the matching user, or <code>null</code> if a matching user could not be found 691 * @throws SystemException if a system exception occurred 692 */ 693 public com.liferay.portal.model.User fetchByC_O(long companyId, 694 java.lang.String openId, boolean retrieveFromCache) 695 throws com.liferay.portal.kernel.exception.SystemException; 696 697 /** 698 * Finds all the users where companyId = ? and active = ?. 699 * 700 * @param companyId the company id to search with 701 * @param active the active to search with 702 * @return the matching users 703 * @throws SystemException if a system exception occurred 704 */ 705 public java.util.List<com.liferay.portal.model.User> findByC_A( 706 long companyId, boolean active) 707 throws com.liferay.portal.kernel.exception.SystemException; 708 709 /** 710 * Finds a range of all the users where companyId = ? and active = ?. 711 * 712 * <p> 713 * 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. 714 * </p> 715 * 716 * @param companyId the company id to search with 717 * @param active the active to search with 718 * @param start the lower bound of the range of users to return 719 * @param end the upper bound of the range of users to return (not inclusive) 720 * @return the range of matching users 721 * @throws SystemException if a system exception occurred 722 */ 723 public java.util.List<com.liferay.portal.model.User> findByC_A( 724 long companyId, boolean active, int start, int end) 725 throws com.liferay.portal.kernel.exception.SystemException; 726 727 /** 728 * Finds an ordered range of all the users where companyId = ? and active = ?. 729 * 730 * <p> 731 * 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. 732 * </p> 733 * 734 * @param companyId the company id to search with 735 * @param active the active to search with 736 * @param start the lower bound of the range of users to return 737 * @param end the upper bound of the range of users to return (not inclusive) 738 * @param orderByComparator the comparator to order the results by 739 * @return the ordered range of matching users 740 * @throws SystemException if a system exception occurred 741 */ 742 public java.util.List<com.liferay.portal.model.User> findByC_A( 743 long companyId, boolean active, int start, int end, 744 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 745 throws com.liferay.portal.kernel.exception.SystemException; 746 747 /** 748 * Finds the first user in the ordered set where companyId = ? and active = ?. 749 * 750 * <p> 751 * 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. 752 * </p> 753 * 754 * @param companyId the company id to search with 755 * @param active the active to search with 756 * @param orderByComparator the comparator to order the set by 757 * @return the first matching user 758 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 759 * @throws SystemException if a system exception occurred 760 */ 761 public com.liferay.portal.model.User findByC_A_First(long companyId, 762 boolean active, 763 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 764 throws com.liferay.portal.NoSuchUserException, 765 com.liferay.portal.kernel.exception.SystemException; 766 767 /** 768 * Finds the last user in the ordered set where companyId = ? and active = ?. 769 * 770 * <p> 771 * 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. 772 * </p> 773 * 774 * @param companyId the company id to search with 775 * @param active the active to search with 776 * @param orderByComparator the comparator to order the set by 777 * @return the last matching user 778 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 779 * @throws SystemException if a system exception occurred 780 */ 781 public com.liferay.portal.model.User findByC_A_Last(long companyId, 782 boolean active, 783 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 784 throws com.liferay.portal.NoSuchUserException, 785 com.liferay.portal.kernel.exception.SystemException; 786 787 /** 788 * Finds the users before and after the current user in the ordered set where companyId = ? and active = ?. 789 * 790 * <p> 791 * 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. 792 * </p> 793 * 794 * @param userId the primary key of the current user 795 * @param companyId the company id to search with 796 * @param active the active to search with 797 * @param orderByComparator the comparator to order the set by 798 * @return the previous, current, and next user 799 * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found 800 * @throws SystemException if a system exception occurred 801 */ 802 public com.liferay.portal.model.User[] findByC_A_PrevAndNext(long userId, 803 long companyId, boolean active, 804 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 805 throws com.liferay.portal.NoSuchUserException, 806 com.liferay.portal.kernel.exception.SystemException; 807 808 /** 809 * Finds all the users. 810 * 811 * @return the users 812 * @throws SystemException if a system exception occurred 813 */ 814 public java.util.List<com.liferay.portal.model.User> findAll() 815 throws com.liferay.portal.kernel.exception.SystemException; 816 817 /** 818 * Finds a range of all the users. 819 * 820 * <p> 821 * 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. 822 * </p> 823 * 824 * @param start the lower bound of the range of users to return 825 * @param end the upper bound of the range of users to return (not inclusive) 826 * @return the range of users 827 * @throws SystemException if a system exception occurred 828 */ 829 public java.util.List<com.liferay.portal.model.User> findAll(int start, 830 int end) throws com.liferay.portal.kernel.exception.SystemException; 831 832 /** 833 * Finds an ordered range of all the users. 834 * 835 * <p> 836 * 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. 837 * </p> 838 * 839 * @param start the lower bound of the range of users to return 840 * @param end the upper bound of the range of users to return (not inclusive) 841 * @param orderByComparator the comparator to order the results by 842 * @return the ordered range of users 843 * @throws SystemException if a system exception occurred 844 */ 845 public java.util.List<com.liferay.portal.model.User> findAll(int start, 846 int end, 847 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 848 throws com.liferay.portal.kernel.exception.SystemException; 849 850 /** 851 * Removes all the users where uuid = ? from the database. 852 * 853 * @param uuid the uuid to search with 854 * @throws SystemException if a system exception occurred 855 */ 856 public void removeByUuid(java.lang.String uuid) 857 throws com.liferay.portal.kernel.exception.SystemException; 858 859 /** 860 * Removes all the users where companyId = ? from the database. 861 * 862 * @param companyId the company id to search with 863 * @throws SystemException if a system exception occurred 864 */ 865 public void removeByCompanyId(long companyId) 866 throws com.liferay.portal.kernel.exception.SystemException; 867 868 /** 869 * Removes the user where contactId = ? from the database. 870 * 871 * @param contactId the contact id to search with 872 * @throws SystemException if a system exception occurred 873 */ 874 public void removeByContactId(long contactId) 875 throws com.liferay.portal.NoSuchUserException, 876 com.liferay.portal.kernel.exception.SystemException; 877 878 /** 879 * Removes all the users where emailAddress = ? from the database. 880 * 881 * @param emailAddress the email address to search with 882 * @throws SystemException if a system exception occurred 883 */ 884 public void removeByEmailAddress(java.lang.String emailAddress) 885 throws com.liferay.portal.kernel.exception.SystemException; 886 887 /** 888 * Removes the user where portraitId = ? from the database. 889 * 890 * @param portraitId the portrait id to search with 891 * @throws SystemException if a system exception occurred 892 */ 893 public void removeByPortraitId(long portraitId) 894 throws com.liferay.portal.NoSuchUserException, 895 com.liferay.portal.kernel.exception.SystemException; 896 897 /** 898 * Removes the user where companyId = ? and userId = ? from the database. 899 * 900 * @param companyId the company id to search with 901 * @param userId the user id to search with 902 * @throws SystemException if a system exception occurred 903 */ 904 public void removeByC_U(long companyId, long userId) 905 throws com.liferay.portal.NoSuchUserException, 906 com.liferay.portal.kernel.exception.SystemException; 907 908 /** 909 * Removes the user where companyId = ? and defaultUser = ? from the database. 910 * 911 * @param companyId the company id to search with 912 * @param defaultUser the default user to search with 913 * @throws SystemException if a system exception occurred 914 */ 915 public void removeByC_DU(long companyId, boolean defaultUser) 916 throws com.liferay.portal.NoSuchUserException, 917 com.liferay.portal.kernel.exception.SystemException; 918 919 /** 920 * Removes the user where companyId = ? and screenName = ? from the database. 921 * 922 * @param companyId the company id to search with 923 * @param screenName the screen name to search with 924 * @throws SystemException if a system exception occurred 925 */ 926 public void removeByC_SN(long companyId, java.lang.String screenName) 927 throws com.liferay.portal.NoSuchUserException, 928 com.liferay.portal.kernel.exception.SystemException; 929 930 /** 931 * Removes the user where companyId = ? and emailAddress = ? from the database. 932 * 933 * @param companyId the company id to search with 934 * @param emailAddress the email address to search with 935 * @throws SystemException if a system exception occurred 936 */ 937 public void removeByC_EA(long companyId, java.lang.String emailAddress) 938 throws com.liferay.portal.NoSuchUserException, 939 com.liferay.portal.kernel.exception.SystemException; 940 941 /** 942 * Removes the user where companyId = ? and facebookId = ? from the database. 943 * 944 * @param companyId the company id to search with 945 * @param facebookId the facebook id to search with 946 * @throws SystemException if a system exception occurred 947 */ 948 public void removeByC_FID(long companyId, long facebookId) 949 throws com.liferay.portal.NoSuchUserException, 950 com.liferay.portal.kernel.exception.SystemException; 951 952 /** 953 * Removes the user where companyId = ? and openId = ? from the database. 954 * 955 * @param companyId the company id to search with 956 * @param openId the open id to search with 957 * @throws SystemException if a system exception occurred 958 */ 959 public void removeByC_O(long companyId, java.lang.String openId) 960 throws com.liferay.portal.NoSuchUserException, 961 com.liferay.portal.kernel.exception.SystemException; 962 963 /** 964 * Removes all the users where companyId = ? and active = ? from the database. 965 * 966 * @param companyId the company id to search with 967 * @param active the active to search with 968 * @throws SystemException if a system exception occurred 969 */ 970 public void removeByC_A(long companyId, boolean active) 971 throws com.liferay.portal.kernel.exception.SystemException; 972 973 /** 974 * Removes all the users from the database. 975 * 976 * @throws SystemException if a system exception occurred 977 */ 978 public void removeAll() 979 throws com.liferay.portal.kernel.exception.SystemException; 980 981 /** 982 * Counts all the users where uuid = ?. 983 * 984 * @param uuid the uuid to search with 985 * @return the number of matching users 986 * @throws SystemException if a system exception occurred 987 */ 988 public int countByUuid(java.lang.String uuid) 989 throws com.liferay.portal.kernel.exception.SystemException; 990 991 /** 992 * Counts all the users where companyId = ?. 993 * 994 * @param companyId the company id to search with 995 * @return the number of matching users 996 * @throws SystemException if a system exception occurred 997 */ 998 public int countByCompanyId(long companyId) 999 throws com.liferay.portal.kernel.exception.SystemException; 1000 1001 /** 1002 * Counts all the users where contactId = ?. 1003 * 1004 * @param contactId the contact id to search with 1005 * @return the number of matching users 1006 * @throws SystemException if a system exception occurred 1007 */ 1008 public int countByContactId(long contactId) 1009 throws com.liferay.portal.kernel.exception.SystemException; 1010 1011 /** 1012 * Counts all the users where emailAddress = ?. 1013 * 1014 * @param emailAddress the email address to search with 1015 * @return the number of matching users 1016 * @throws SystemException if a system exception occurred 1017 */ 1018 public int countByEmailAddress(java.lang.String emailAddress) 1019 throws com.liferay.portal.kernel.exception.SystemException; 1020 1021 /** 1022 * Counts all the users where portraitId = ?. 1023 * 1024 * @param portraitId the portrait id to search with 1025 * @return the number of matching users 1026 * @throws SystemException if a system exception occurred 1027 */ 1028 public int countByPortraitId(long portraitId) 1029 throws com.liferay.portal.kernel.exception.SystemException; 1030 1031 /** 1032 * Counts all the users where companyId = ? and userId = ?. 1033 * 1034 * @param companyId the company id to search with 1035 * @param userId the user id to search with 1036 * @return the number of matching users 1037 * @throws SystemException if a system exception occurred 1038 */ 1039 public int countByC_U(long companyId, long userId) 1040 throws com.liferay.portal.kernel.exception.SystemException; 1041 1042 /** 1043 * Counts all the users where companyId = ? and defaultUser = ?. 1044 * 1045 * @param companyId the company id to search with 1046 * @param defaultUser the default user to search with 1047 * @return the number of matching users 1048 * @throws SystemException if a system exception occurred 1049 */ 1050 public int countByC_DU(long companyId, boolean defaultUser) 1051 throws com.liferay.portal.kernel.exception.SystemException; 1052 1053 /** 1054 * Counts all the users where companyId = ? and screenName = ?. 1055 * 1056 * @param companyId the company id to search with 1057 * @param screenName the screen name to search with 1058 * @return the number of matching users 1059 * @throws SystemException if a system exception occurred 1060 */ 1061 public int countByC_SN(long companyId, java.lang.String screenName) 1062 throws com.liferay.portal.kernel.exception.SystemException; 1063 1064 /** 1065 * Counts all the users where companyId = ? and emailAddress = ?. 1066 * 1067 * @param companyId the company id to search with 1068 * @param emailAddress the email address to search with 1069 * @return the number of matching users 1070 * @throws SystemException if a system exception occurred 1071 */ 1072 public int countByC_EA(long companyId, java.lang.String emailAddress) 1073 throws com.liferay.portal.kernel.exception.SystemException; 1074 1075 /** 1076 * Counts all the users where companyId = ? and facebookId = ?. 1077 * 1078 * @param companyId the company id to search with 1079 * @param facebookId the facebook id to search with 1080 * @return the number of matching users 1081 * @throws SystemException if a system exception occurred 1082 */ 1083 public int countByC_FID(long companyId, long facebookId) 1084 throws com.liferay.portal.kernel.exception.SystemException; 1085 1086 /** 1087 * Counts all the users where companyId = ? and openId = ?. 1088 * 1089 * @param companyId the company id to search with 1090 * @param openId the open id to search with 1091 * @return the number of matching users 1092 * @throws SystemException if a system exception occurred 1093 */ 1094 public int countByC_O(long companyId, java.lang.String openId) 1095 throws com.liferay.portal.kernel.exception.SystemException; 1096 1097 /** 1098 * Counts all the users where companyId = ? and active = ?. 1099 * 1100 * @param companyId the company id to search with 1101 * @param active the active to search with 1102 * @return the number of matching users 1103 * @throws SystemException if a system exception occurred 1104 */ 1105 public int countByC_A(long companyId, boolean active) 1106 throws com.liferay.portal.kernel.exception.SystemException; 1107 1108 /** 1109 * Counts all the users. 1110 * 1111 * @return the number of users 1112 * @throws SystemException if a system exception occurred 1113 */ 1114 public int countAll() 1115 throws com.liferay.portal.kernel.exception.SystemException; 1116 1117 /** 1118 * Gets all the groups associated with the user. 1119 * 1120 * @param pk the primary key of the user to get the associated groups for 1121 * @return the groups associated with the user 1122 * @throws SystemException if a system exception occurred 1123 */ 1124 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk) 1125 throws com.liferay.portal.kernel.exception.SystemException; 1126 1127 /** 1128 * Gets a range of all the groups associated with the user. 1129 * 1130 * <p> 1131 * 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. 1132 * </p> 1133 * 1134 * @param pk the primary key of the user to get the associated groups for 1135 * @param start the lower bound of the range of users to return 1136 * @param end the upper bound of the range of users to return (not inclusive) 1137 * @return the range of groups associated with the user 1138 * @throws SystemException if a system exception occurred 1139 */ 1140 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk, 1141 int start, int end) 1142 throws com.liferay.portal.kernel.exception.SystemException; 1143 1144 /** 1145 * Gets an ordered range of all the groups associated with the user. 1146 * 1147 * <p> 1148 * 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. 1149 * </p> 1150 * 1151 * @param pk the primary key of the user to get the associated groups for 1152 * @param start the lower bound of the range of users to return 1153 * @param end the upper bound of the range of users to return (not inclusive) 1154 * @param orderByComparator the comparator to order the results by 1155 * @return the ordered range of groups associated with the user 1156 * @throws SystemException if a system exception occurred 1157 */ 1158 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk, 1159 int start, int end, 1160 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1161 throws com.liferay.portal.kernel.exception.SystemException; 1162 1163 /** 1164 * Gets the number of groups associated with the user. 1165 * 1166 * @param pk the primary key of the user to get the number of associated groups for 1167 * @return the number of groups associated with the user 1168 * @throws SystemException if a system exception occurred 1169 */ 1170 public int getGroupsSize(long pk) 1171 throws com.liferay.portal.kernel.exception.SystemException; 1172 1173 /** 1174 * Determines whether the group is associated with the user. 1175 * 1176 * @param pk the primary key of the user 1177 * @param groupPK the primary key of the group 1178 * @return whether the group is associated with the user 1179 * @throws SystemException if a system exception occurred 1180 */ 1181 public boolean containsGroup(long pk, long groupPK) 1182 throws com.liferay.portal.kernel.exception.SystemException; 1183 1184 /** 1185 * Determines whether the user has any groups associated with it. 1186 * 1187 * @param pk the primary key of the user to check for associations with groups 1188 * @return whether the user has any groups associated with it 1189 * @throws SystemException if a system exception occurred 1190 */ 1191 public boolean containsGroups(long pk) 1192 throws com.liferay.portal.kernel.exception.SystemException; 1193 1194 /** 1195 * Adds an association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1196 * 1197 * @param pk the primary key of the user 1198 * @param groupPK the primary key of the group 1199 * @throws SystemException if a system exception occurred 1200 */ 1201 public void addGroup(long pk, long groupPK) 1202 throws com.liferay.portal.kernel.exception.SystemException; 1203 1204 /** 1205 * Adds an association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1206 * 1207 * @param pk the primary key of the user 1208 * @param group the group 1209 * @throws SystemException if a system exception occurred 1210 */ 1211 public void addGroup(long pk, com.liferay.portal.model.Group group) 1212 throws com.liferay.portal.kernel.exception.SystemException; 1213 1214 /** 1215 * Adds an association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1216 * 1217 * @param pk the primary key of the user 1218 * @param groupPKs the primary keys of the groups 1219 * @throws SystemException if a system exception occurred 1220 */ 1221 public void addGroups(long pk, long[] groupPKs) 1222 throws com.liferay.portal.kernel.exception.SystemException; 1223 1224 /** 1225 * Adds an association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1226 * 1227 * @param pk the primary key of the user 1228 * @param groups the groups 1229 * @throws SystemException if a system exception occurred 1230 */ 1231 public void addGroups(long pk, 1232 java.util.List<com.liferay.portal.model.Group> groups) 1233 throws com.liferay.portal.kernel.exception.SystemException; 1234 1235 /** 1236 * Clears all associations between the user and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1237 * 1238 * @param pk the primary key of the user to clear the associated groups from 1239 * @throws SystemException if a system exception occurred 1240 */ 1241 public void clearGroups(long pk) 1242 throws com.liferay.portal.kernel.exception.SystemException; 1243 1244 /** 1245 * Removes the association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1246 * 1247 * @param pk the primary key of the user 1248 * @param groupPK the primary key of the group 1249 * @throws SystemException if a system exception occurred 1250 */ 1251 public void removeGroup(long pk, long groupPK) 1252 throws com.liferay.portal.kernel.exception.SystemException; 1253 1254 /** 1255 * Removes the association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1256 * 1257 * @param pk the primary key of the user 1258 * @param group the group 1259 * @throws SystemException if a system exception occurred 1260 */ 1261 public void removeGroup(long pk, com.liferay.portal.model.Group group) 1262 throws com.liferay.portal.kernel.exception.SystemException; 1263 1264 /** 1265 * Removes the association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1266 * 1267 * @param pk the primary key of the user 1268 * @param groupPKs the primary keys of the groups 1269 * @throws SystemException if a system exception occurred 1270 */ 1271 public void removeGroups(long pk, long[] groupPKs) 1272 throws com.liferay.portal.kernel.exception.SystemException; 1273 1274 /** 1275 * Removes the association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1276 * 1277 * @param pk the primary key of the user 1278 * @param groups the groups 1279 * @throws SystemException if a system exception occurred 1280 */ 1281 public void removeGroups(long pk, 1282 java.util.List<com.liferay.portal.model.Group> groups) 1283 throws com.liferay.portal.kernel.exception.SystemException; 1284 1285 /** 1286 * Sets the groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1287 * 1288 * @param pk the primary key of the user to set the associations for 1289 * @param groupPKs the primary keys of the groups to be associated with the user 1290 * @throws SystemException if a system exception occurred 1291 */ 1292 public void setGroups(long pk, long[] groupPKs) 1293 throws com.liferay.portal.kernel.exception.SystemException; 1294 1295 /** 1296 * Sets the groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1297 * 1298 * @param pk the primary key of the user to set the associations for 1299 * @param groups the groups to be associated with the user 1300 * @throws SystemException if a system exception occurred 1301 */ 1302 public void setGroups(long pk, 1303 java.util.List<com.liferay.portal.model.Group> groups) 1304 throws com.liferay.portal.kernel.exception.SystemException; 1305 1306 /** 1307 * Gets all the organizations associated with the user. 1308 * 1309 * @param pk the primary key of the user to get the associated organizations for 1310 * @return the organizations associated with the user 1311 * @throws SystemException if a system exception occurred 1312 */ 1313 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 1314 long pk) throws com.liferay.portal.kernel.exception.SystemException; 1315 1316 /** 1317 * Gets a range of all the organizations associated with the user. 1318 * 1319 * <p> 1320 * 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. 1321 * </p> 1322 * 1323 * @param pk the primary key of the user to get the associated organizations for 1324 * @param start the lower bound of the range of users to return 1325 * @param end the upper bound of the range of users to return (not inclusive) 1326 * @return the range of organizations associated with the user 1327 * @throws SystemException if a system exception occurred 1328 */ 1329 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 1330 long pk, int start, int end) 1331 throws com.liferay.portal.kernel.exception.SystemException; 1332 1333 /** 1334 * Gets an ordered range of all the organizations associated with the user. 1335 * 1336 * <p> 1337 * 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. 1338 * </p> 1339 * 1340 * @param pk the primary key of the user to get the associated organizations for 1341 * @param start the lower bound of the range of users to return 1342 * @param end the upper bound of the range of users to return (not inclusive) 1343 * @param orderByComparator the comparator to order the results by 1344 * @return the ordered range of organizations associated with the user 1345 * @throws SystemException if a system exception occurred 1346 */ 1347 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 1348 long pk, int start, int end, 1349 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1350 throws com.liferay.portal.kernel.exception.SystemException; 1351 1352 /** 1353 * Gets the number of organizations associated with the user. 1354 * 1355 * @param pk the primary key of the user to get the number of associated organizations for 1356 * @return the number of organizations associated with the user 1357 * @throws SystemException if a system exception occurred 1358 */ 1359 public int getOrganizationsSize(long pk) 1360 throws com.liferay.portal.kernel.exception.SystemException; 1361 1362 /** 1363 * Determines whether the organization is associated with the user. 1364 * 1365 * @param pk the primary key of the user 1366 * @param organizationPK the primary key of the organization 1367 * @return whether the organization is associated with the user 1368 * @throws SystemException if a system exception occurred 1369 */ 1370 public boolean containsOrganization(long pk, long organizationPK) 1371 throws com.liferay.portal.kernel.exception.SystemException; 1372 1373 /** 1374 * Determines whether the user has any organizations associated with it. 1375 * 1376 * @param pk the primary key of the user to check for associations with organizations 1377 * @return whether the user has any organizations associated with it 1378 * @throws SystemException if a system exception occurred 1379 */ 1380 public boolean containsOrganizations(long pk) 1381 throws com.liferay.portal.kernel.exception.SystemException; 1382 1383 /** 1384 * Adds an association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1385 * 1386 * @param pk the primary key of the user 1387 * @param organizationPK the primary key of the organization 1388 * @throws SystemException if a system exception occurred 1389 */ 1390 public void addOrganization(long pk, long organizationPK) 1391 throws com.liferay.portal.kernel.exception.SystemException; 1392 1393 /** 1394 * Adds an association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1395 * 1396 * @param pk the primary key of the user 1397 * @param organization the organization 1398 * @throws SystemException if a system exception occurred 1399 */ 1400 public void addOrganization(long pk, 1401 com.liferay.portal.model.Organization organization) 1402 throws com.liferay.portal.kernel.exception.SystemException; 1403 1404 /** 1405 * Adds an association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1406 * 1407 * @param pk the primary key of the user 1408 * @param organizationPKs the primary keys of the organizations 1409 * @throws SystemException if a system exception occurred 1410 */ 1411 public void addOrganizations(long pk, long[] organizationPKs) 1412 throws com.liferay.portal.kernel.exception.SystemException; 1413 1414 /** 1415 * Adds an association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1416 * 1417 * @param pk the primary key of the user 1418 * @param organizations the organizations 1419 * @throws SystemException if a system exception occurred 1420 */ 1421 public void addOrganizations(long pk, 1422 java.util.List<com.liferay.portal.model.Organization> organizations) 1423 throws com.liferay.portal.kernel.exception.SystemException; 1424 1425 /** 1426 * Clears all associations between the user and its organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1427 * 1428 * @param pk the primary key of the user to clear the associated organizations from 1429 * @throws SystemException if a system exception occurred 1430 */ 1431 public void clearOrganizations(long pk) 1432 throws com.liferay.portal.kernel.exception.SystemException; 1433 1434 /** 1435 * Removes the association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1436 * 1437 * @param pk the primary key of the user 1438 * @param organizationPK the primary key of the organization 1439 * @throws SystemException if a system exception occurred 1440 */ 1441 public void removeOrganization(long pk, long organizationPK) 1442 throws com.liferay.portal.kernel.exception.SystemException; 1443 1444 /** 1445 * Removes the association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1446 * 1447 * @param pk the primary key of the user 1448 * @param organization the organization 1449 * @throws SystemException if a system exception occurred 1450 */ 1451 public void removeOrganization(long pk, 1452 com.liferay.portal.model.Organization organization) 1453 throws com.liferay.portal.kernel.exception.SystemException; 1454 1455 /** 1456 * Removes the association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1457 * 1458 * @param pk the primary key of the user 1459 * @param organizationPKs the primary keys of the organizations 1460 * @throws SystemException if a system exception occurred 1461 */ 1462 public void removeOrganizations(long pk, long[] organizationPKs) 1463 throws com.liferay.portal.kernel.exception.SystemException; 1464 1465 /** 1466 * Removes the association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1467 * 1468 * @param pk the primary key of the user 1469 * @param organizations the organizations 1470 * @throws SystemException if a system exception occurred 1471 */ 1472 public void removeOrganizations(long pk, 1473 java.util.List<com.liferay.portal.model.Organization> organizations) 1474 throws com.liferay.portal.kernel.exception.SystemException; 1475 1476 /** 1477 * Sets the organizations associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1478 * 1479 * @param pk the primary key of the user to set the associations for 1480 * @param organizationPKs the primary keys of the organizations to be associated with the user 1481 * @throws SystemException if a system exception occurred 1482 */ 1483 public void setOrganizations(long pk, long[] organizationPKs) 1484 throws com.liferay.portal.kernel.exception.SystemException; 1485 1486 /** 1487 * Sets the organizations associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1488 * 1489 * @param pk the primary key of the user to set the associations for 1490 * @param organizations the organizations to be associated with the user 1491 * @throws SystemException if a system exception occurred 1492 */ 1493 public void setOrganizations(long pk, 1494 java.util.List<com.liferay.portal.model.Organization> organizations) 1495 throws com.liferay.portal.kernel.exception.SystemException; 1496 1497 /** 1498 * Gets all the permissions associated with the user. 1499 * 1500 * @param pk the primary key of the user to get the associated permissions for 1501 * @return the permissions associated with the user 1502 * @throws SystemException if a system exception occurred 1503 */ 1504 public java.util.List<com.liferay.portal.model.Permission> getPermissions( 1505 long pk) throws com.liferay.portal.kernel.exception.SystemException; 1506 1507 /** 1508 * Gets a range of all the permissions associated with the user. 1509 * 1510 * <p> 1511 * 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. 1512 * </p> 1513 * 1514 * @param pk the primary key of the user to get the associated permissions for 1515 * @param start the lower bound of the range of users to return 1516 * @param end the upper bound of the range of users to return (not inclusive) 1517 * @return the range of permissions associated with the user 1518 * @throws SystemException if a system exception occurred 1519 */ 1520 public java.util.List<com.liferay.portal.model.Permission> getPermissions( 1521 long pk, int start, int end) 1522 throws com.liferay.portal.kernel.exception.SystemException; 1523 1524 /** 1525 * Gets an ordered range of all the permissions associated with the user. 1526 * 1527 * <p> 1528 * 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. 1529 * </p> 1530 * 1531 * @param pk the primary key of the user to get the associated permissions for 1532 * @param start the lower bound of the range of users to return 1533 * @param end the upper bound of the range of users to return (not inclusive) 1534 * @param orderByComparator the comparator to order the results by 1535 * @return the ordered range of permissions associated with the user 1536 * @throws SystemException if a system exception occurred 1537 */ 1538 public java.util.List<com.liferay.portal.model.Permission> getPermissions( 1539 long pk, int start, int end, 1540 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1541 throws com.liferay.portal.kernel.exception.SystemException; 1542 1543 /** 1544 * Gets the number of permissions associated with the user. 1545 * 1546 * @param pk the primary key of the user to get the number of associated permissions for 1547 * @return the number of permissions associated with the user 1548 * @throws SystemException if a system exception occurred 1549 */ 1550 public int getPermissionsSize(long pk) 1551 throws com.liferay.portal.kernel.exception.SystemException; 1552 1553 /** 1554 * Determines whether the permission is associated with the user. 1555 * 1556 * @param pk the primary key of the user 1557 * @param permissionPK the primary key of the permission 1558 * @return whether the permission is associated with the user 1559 * @throws SystemException if a system exception occurred 1560 */ 1561 public boolean containsPermission(long pk, long permissionPK) 1562 throws com.liferay.portal.kernel.exception.SystemException; 1563 1564 /** 1565 * Determines whether the user has any permissions associated with it. 1566 * 1567 * @param pk the primary key of the user to check for associations with permissions 1568 * @return whether the user has any permissions associated with it 1569 * @throws SystemException if a system exception occurred 1570 */ 1571 public boolean containsPermissions(long pk) 1572 throws com.liferay.portal.kernel.exception.SystemException; 1573 1574 /** 1575 * Adds an association between the user and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1576 * 1577 * @param pk the primary key of the user 1578 * @param permissionPK the primary key of the permission 1579 * @throws SystemException if a system exception occurred 1580 */ 1581 public void addPermission(long pk, long permissionPK) 1582 throws com.liferay.portal.kernel.exception.SystemException; 1583 1584 /** 1585 * Adds an association between the user and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1586 * 1587 * @param pk the primary key of the user 1588 * @param permission the permission 1589 * @throws SystemException if a system exception occurred 1590 */ 1591 public void addPermission(long pk, 1592 com.liferay.portal.model.Permission permission) 1593 throws com.liferay.portal.kernel.exception.SystemException; 1594 1595 /** 1596 * Adds an association between the user and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1597 * 1598 * @param pk the primary key of the user 1599 * @param permissionPKs the primary keys of the permissions 1600 * @throws SystemException if a system exception occurred 1601 */ 1602 public void addPermissions(long pk, long[] permissionPKs) 1603 throws com.liferay.portal.kernel.exception.SystemException; 1604 1605 /** 1606 * Adds an association between the user and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1607 * 1608 * @param pk the primary key of the user 1609 * @param permissions the permissions 1610 * @throws SystemException if a system exception occurred 1611 */ 1612 public void addPermissions(long pk, 1613 java.util.List<com.liferay.portal.model.Permission> permissions) 1614 throws com.liferay.portal.kernel.exception.SystemException; 1615 1616 /** 1617 * Clears all associations between the user and its permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1618 * 1619 * @param pk the primary key of the user to clear the associated permissions from 1620 * @throws SystemException if a system exception occurred 1621 */ 1622 public void clearPermissions(long pk) 1623 throws com.liferay.portal.kernel.exception.SystemException; 1624 1625 /** 1626 * Removes the association between the user and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1627 * 1628 * @param pk the primary key of the user 1629 * @param permissionPK the primary key of the permission 1630 * @throws SystemException if a system exception occurred 1631 */ 1632 public void removePermission(long pk, long permissionPK) 1633 throws com.liferay.portal.kernel.exception.SystemException; 1634 1635 /** 1636 * Removes the association between the user and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1637 * 1638 * @param pk the primary key of the user 1639 * @param permission the permission 1640 * @throws SystemException if a system exception occurred 1641 */ 1642 public void removePermission(long pk, 1643 com.liferay.portal.model.Permission permission) 1644 throws com.liferay.portal.kernel.exception.SystemException; 1645 1646 /** 1647 * Removes the association between the user and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1648 * 1649 * @param pk the primary key of the user 1650 * @param permissionPKs the primary keys of the permissions 1651 * @throws SystemException if a system exception occurred 1652 */ 1653 public void removePermissions(long pk, long[] permissionPKs) 1654 throws com.liferay.portal.kernel.exception.SystemException; 1655 1656 /** 1657 * Removes the association between the user and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1658 * 1659 * @param pk the primary key of the user 1660 * @param permissions the permissions 1661 * @throws SystemException if a system exception occurred 1662 */ 1663 public void removePermissions(long pk, 1664 java.util.List<com.liferay.portal.model.Permission> permissions) 1665 throws com.liferay.portal.kernel.exception.SystemException; 1666 1667 /** 1668 * Sets the permissions associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1669 * 1670 * @param pk the primary key of the user to set the associations for 1671 * @param permissionPKs the primary keys of the permissions to be associated with the user 1672 * @throws SystemException if a system exception occurred 1673 */ 1674 public void setPermissions(long pk, long[] permissionPKs) 1675 throws com.liferay.portal.kernel.exception.SystemException; 1676 1677 /** 1678 * Sets the permissions associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1679 * 1680 * @param pk the primary key of the user to set the associations for 1681 * @param permissions the permissions to be associated with the user 1682 * @throws SystemException if a system exception occurred 1683 */ 1684 public void setPermissions(long pk, 1685 java.util.List<com.liferay.portal.model.Permission> permissions) 1686 throws com.liferay.portal.kernel.exception.SystemException; 1687 1688 /** 1689 * Gets all the roles associated with the user. 1690 * 1691 * @param pk the primary key of the user to get the associated roles for 1692 * @return the roles associated with the user 1693 * @throws SystemException if a system exception occurred 1694 */ 1695 public java.util.List<com.liferay.portal.model.Role> getRoles(long pk) 1696 throws com.liferay.portal.kernel.exception.SystemException; 1697 1698 /** 1699 * Gets a range of all the roles associated with the user. 1700 * 1701 * <p> 1702 * 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. 1703 * </p> 1704 * 1705 * @param pk the primary key of the user to get the associated roles for 1706 * @param start the lower bound of the range of users to return 1707 * @param end the upper bound of the range of users to return (not inclusive) 1708 * @return the range of roles associated with the user 1709 * @throws SystemException if a system exception occurred 1710 */ 1711 public java.util.List<com.liferay.portal.model.Role> getRoles(long pk, 1712 int start, int end) 1713 throws com.liferay.portal.kernel.exception.SystemException; 1714 1715 /** 1716 * Gets an ordered range of all the roles associated with the user. 1717 * 1718 * <p> 1719 * 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. 1720 * </p> 1721 * 1722 * @param pk the primary key of the user to get the associated roles for 1723 * @param start the lower bound of the range of users to return 1724 * @param end the upper bound of the range of users to return (not inclusive) 1725 * @param orderByComparator the comparator to order the results by 1726 * @return the ordered range of roles associated with the user 1727 * @throws SystemException if a system exception occurred 1728 */ 1729 public java.util.List<com.liferay.portal.model.Role> getRoles(long pk, 1730 int start, int end, 1731 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1732 throws com.liferay.portal.kernel.exception.SystemException; 1733 1734 /** 1735 * Gets the number of roles associated with the user. 1736 * 1737 * @param pk the primary key of the user to get the number of associated roles for 1738 * @return the number of roles associated with the user 1739 * @throws SystemException if a system exception occurred 1740 */ 1741 public int getRolesSize(long pk) 1742 throws com.liferay.portal.kernel.exception.SystemException; 1743 1744 /** 1745 * Determines whether the role is associated with the user. 1746 * 1747 * @param pk the primary key of the user 1748 * @param rolePK the primary key of the role 1749 * @return whether the role is associated with the user 1750 * @throws SystemException if a system exception occurred 1751 */ 1752 public boolean containsRole(long pk, long rolePK) 1753 throws com.liferay.portal.kernel.exception.SystemException; 1754 1755 /** 1756 * Determines whether the user has any roles associated with it. 1757 * 1758 * @param pk the primary key of the user to check for associations with roles 1759 * @return whether the user has any roles associated with it 1760 * @throws SystemException if a system exception occurred 1761 */ 1762 public boolean containsRoles(long pk) 1763 throws com.liferay.portal.kernel.exception.SystemException; 1764 1765 /** 1766 * Adds an association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1767 * 1768 * @param pk the primary key of the user 1769 * @param rolePK the primary key of the role 1770 * @throws SystemException if a system exception occurred 1771 */ 1772 public void addRole(long pk, long rolePK) 1773 throws com.liferay.portal.kernel.exception.SystemException; 1774 1775 /** 1776 * Adds an association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1777 * 1778 * @param pk the primary key of the user 1779 * @param role the role 1780 * @throws SystemException if a system exception occurred 1781 */ 1782 public void addRole(long pk, com.liferay.portal.model.Role role) 1783 throws com.liferay.portal.kernel.exception.SystemException; 1784 1785 /** 1786 * Adds an association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1787 * 1788 * @param pk the primary key of the user 1789 * @param rolePKs the primary keys of the roles 1790 * @throws SystemException if a system exception occurred 1791 */ 1792 public void addRoles(long pk, long[] rolePKs) 1793 throws com.liferay.portal.kernel.exception.SystemException; 1794 1795 /** 1796 * Adds an association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1797 * 1798 * @param pk the primary key of the user 1799 * @param roles the roles 1800 * @throws SystemException if a system exception occurred 1801 */ 1802 public void addRoles(long pk, 1803 java.util.List<com.liferay.portal.model.Role> roles) 1804 throws com.liferay.portal.kernel.exception.SystemException; 1805 1806 /** 1807 * Clears all associations between the user and its roles. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1808 * 1809 * @param pk the primary key of the user to clear the associated roles from 1810 * @throws SystemException if a system exception occurred 1811 */ 1812 public void clearRoles(long pk) 1813 throws com.liferay.portal.kernel.exception.SystemException; 1814 1815 /** 1816 * Removes the association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1817 * 1818 * @param pk the primary key of the user 1819 * @param rolePK the primary key of the role 1820 * @throws SystemException if a system exception occurred 1821 */ 1822 public void removeRole(long pk, long rolePK) 1823 throws com.liferay.portal.kernel.exception.SystemException; 1824 1825 /** 1826 * Removes the association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1827 * 1828 * @param pk the primary key of the user 1829 * @param role the role 1830 * @throws SystemException if a system exception occurred 1831 */ 1832 public void removeRole(long pk, com.liferay.portal.model.Role role) 1833 throws com.liferay.portal.kernel.exception.SystemException; 1834 1835 /** 1836 * Removes the association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1837 * 1838 * @param pk the primary key of the user 1839 * @param rolePKs the primary keys of the roles 1840 * @throws SystemException if a system exception occurred 1841 */ 1842 public void removeRoles(long pk, long[] rolePKs) 1843 throws com.liferay.portal.kernel.exception.SystemException; 1844 1845 /** 1846 * Removes the association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1847 * 1848 * @param pk the primary key of the user 1849 * @param roles the roles 1850 * @throws SystemException if a system exception occurred 1851 */ 1852 public void removeRoles(long pk, 1853 java.util.List<com.liferay.portal.model.Role> roles) 1854 throws com.liferay.portal.kernel.exception.SystemException; 1855 1856 /** 1857 * Sets the roles associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1858 * 1859 * @param pk the primary key of the user to set the associations for 1860 * @param rolePKs the primary keys of the roles to be associated with the user 1861 * @throws SystemException if a system exception occurred 1862 */ 1863 public void setRoles(long pk, long[] rolePKs) 1864 throws com.liferay.portal.kernel.exception.SystemException; 1865 1866 /** 1867 * Sets the roles associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1868 * 1869 * @param pk the primary key of the user to set the associations for 1870 * @param roles the roles to be associated with the user 1871 * @throws SystemException if a system exception occurred 1872 */ 1873 public void setRoles(long pk, 1874 java.util.List<com.liferay.portal.model.Role> roles) 1875 throws com.liferay.portal.kernel.exception.SystemException; 1876 1877 /** 1878 * Gets all the teams associated with the user. 1879 * 1880 * @param pk the primary key of the user to get the associated teams for 1881 * @return the teams associated with the user 1882 * @throws SystemException if a system exception occurred 1883 */ 1884 public java.util.List<com.liferay.portal.model.Team> getTeams(long pk) 1885 throws com.liferay.portal.kernel.exception.SystemException; 1886 1887 /** 1888 * Gets a range of all the teams associated with the user. 1889 * 1890 * <p> 1891 * 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. 1892 * </p> 1893 * 1894 * @param pk the primary key of the user to get the associated teams for 1895 * @param start the lower bound of the range of users to return 1896 * @param end the upper bound of the range of users to return (not inclusive) 1897 * @return the range of teams associated with the user 1898 * @throws SystemException if a system exception occurred 1899 */ 1900 public java.util.List<com.liferay.portal.model.Team> getTeams(long pk, 1901 int start, int end) 1902 throws com.liferay.portal.kernel.exception.SystemException; 1903 1904 /** 1905 * Gets an ordered range of all the teams associated with the user. 1906 * 1907 * <p> 1908 * 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. 1909 * </p> 1910 * 1911 * @param pk the primary key of the user to get the associated teams for 1912 * @param start the lower bound of the range of users to return 1913 * @param end the upper bound of the range of users to return (not inclusive) 1914 * @param orderByComparator the comparator to order the results by 1915 * @return the ordered range of teams associated with the user 1916 * @throws SystemException if a system exception occurred 1917 */ 1918 public java.util.List<com.liferay.portal.model.Team> getTeams(long pk, 1919 int start, int end, 1920 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1921 throws com.liferay.portal.kernel.exception.SystemException; 1922 1923 /** 1924 * Gets the number of teams associated with the user. 1925 * 1926 * @param pk the primary key of the user to get the number of associated teams for 1927 * @return the number of teams associated with the user 1928 * @throws SystemException if a system exception occurred 1929 */ 1930 public int getTeamsSize(long pk) 1931 throws com.liferay.portal.kernel.exception.SystemException; 1932 1933 /** 1934 * Determines whether the team is associated with the user. 1935 * 1936 * @param pk the primary key of the user 1937 * @param teamPK the primary key of the team 1938 * @return whether the team is associated with the user 1939 * @throws SystemException if a system exception occurred 1940 */ 1941 public boolean containsTeam(long pk, long teamPK) 1942 throws com.liferay.portal.kernel.exception.SystemException; 1943 1944 /** 1945 * Determines whether the user has any teams associated with it. 1946 * 1947 * @param pk the primary key of the user to check for associations with teams 1948 * @return whether the user has any teams associated with it 1949 * @throws SystemException if a system exception occurred 1950 */ 1951 public boolean containsTeams(long pk) 1952 throws com.liferay.portal.kernel.exception.SystemException; 1953 1954 /** 1955 * Adds an association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1956 * 1957 * @param pk the primary key of the user 1958 * @param teamPK the primary key of the team 1959 * @throws SystemException if a system exception occurred 1960 */ 1961 public void addTeam(long pk, long teamPK) 1962 throws com.liferay.portal.kernel.exception.SystemException; 1963 1964 /** 1965 * Adds an association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1966 * 1967 * @param pk the primary key of the user 1968 * @param team the team 1969 * @throws SystemException if a system exception occurred 1970 */ 1971 public void addTeam(long pk, com.liferay.portal.model.Team team) 1972 throws com.liferay.portal.kernel.exception.SystemException; 1973 1974 /** 1975 * Adds an association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1976 * 1977 * @param pk the primary key of the user 1978 * @param teamPKs the primary keys of the teams 1979 * @throws SystemException if a system exception occurred 1980 */ 1981 public void addTeams(long pk, long[] teamPKs) 1982 throws com.liferay.portal.kernel.exception.SystemException; 1983 1984 /** 1985 * Adds an association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1986 * 1987 * @param pk the primary key of the user 1988 * @param teams the teams 1989 * @throws SystemException if a system exception occurred 1990 */ 1991 public void addTeams(long pk, 1992 java.util.List<com.liferay.portal.model.Team> teams) 1993 throws com.liferay.portal.kernel.exception.SystemException; 1994 1995 /** 1996 * Clears all associations between the user and its teams. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1997 * 1998 * @param pk the primary key of the user to clear the associated teams from 1999 * @throws SystemException if a system exception occurred 2000 */ 2001 public void clearTeams(long pk) 2002 throws com.liferay.portal.kernel.exception.SystemException; 2003 2004 /** 2005 * Removes the association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2006 * 2007 * @param pk the primary key of the user 2008 * @param teamPK the primary key of the team 2009 * @throws SystemException if a system exception occurred 2010 */ 2011 public void removeTeam(long pk, long teamPK) 2012 throws com.liferay.portal.kernel.exception.SystemException; 2013 2014 /** 2015 * Removes the association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2016 * 2017 * @param pk the primary key of the user 2018 * @param team the team 2019 * @throws SystemException if a system exception occurred 2020 */ 2021 public void removeTeam(long pk, com.liferay.portal.model.Team team) 2022 throws com.liferay.portal.kernel.exception.SystemException; 2023 2024 /** 2025 * Removes the association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2026 * 2027 * @param pk the primary key of the user 2028 * @param teamPKs the primary keys of the teams 2029 * @throws SystemException if a system exception occurred 2030 */ 2031 public void removeTeams(long pk, long[] teamPKs) 2032 throws com.liferay.portal.kernel.exception.SystemException; 2033 2034 /** 2035 * Removes the association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2036 * 2037 * @param pk the primary key of the user 2038 * @param teams the teams 2039 * @throws SystemException if a system exception occurred 2040 */ 2041 public void removeTeams(long pk, 2042 java.util.List<com.liferay.portal.model.Team> teams) 2043 throws com.liferay.portal.kernel.exception.SystemException; 2044 2045 /** 2046 * Sets the teams associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2047 * 2048 * @param pk the primary key of the user to set the associations for 2049 * @param teamPKs the primary keys of the teams to be associated with the user 2050 * @throws SystemException if a system exception occurred 2051 */ 2052 public void setTeams(long pk, long[] teamPKs) 2053 throws com.liferay.portal.kernel.exception.SystemException; 2054 2055 /** 2056 * Sets the teams associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2057 * 2058 * @param pk the primary key of the user to set the associations for 2059 * @param teams the teams to be associated with the user 2060 * @throws SystemException if a system exception occurred 2061 */ 2062 public void setTeams(long pk, 2063 java.util.List<com.liferay.portal.model.Team> teams) 2064 throws com.liferay.portal.kernel.exception.SystemException; 2065 2066 /** 2067 * Gets all the user groups associated with the user. 2068 * 2069 * @param pk the primary key of the user to get the associated user groups for 2070 * @return the user groups associated with the user 2071 * @throws SystemException if a system exception occurred 2072 */ 2073 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups( 2074 long pk) throws com.liferay.portal.kernel.exception.SystemException; 2075 2076 /** 2077 * Gets a range of all the user groups associated with the user. 2078 * 2079 * <p> 2080 * 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. 2081 * </p> 2082 * 2083 * @param pk the primary key of the user to get the associated user groups for 2084 * @param start the lower bound of the range of users to return 2085 * @param end the upper bound of the range of users to return (not inclusive) 2086 * @return the range of user groups associated with the user 2087 * @throws SystemException if a system exception occurred 2088 */ 2089 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups( 2090 long pk, int start, int end) 2091 throws com.liferay.portal.kernel.exception.SystemException; 2092 2093 /** 2094 * Gets an ordered range of all the user groups associated with the user. 2095 * 2096 * <p> 2097 * 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. 2098 * </p> 2099 * 2100 * @param pk the primary key of the user to get the associated user groups for 2101 * @param start the lower bound of the range of users to return 2102 * @param end the upper bound of the range of users to return (not inclusive) 2103 * @param orderByComparator the comparator to order the results by 2104 * @return the ordered range of user groups associated with the user 2105 * @throws SystemException if a system exception occurred 2106 */ 2107 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups( 2108 long pk, int start, int end, 2109 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2110 throws com.liferay.portal.kernel.exception.SystemException; 2111 2112 /** 2113 * Gets the number of user groups associated with the user. 2114 * 2115 * @param pk the primary key of the user to get the number of associated user groups for 2116 * @return the number of user groups associated with the user 2117 * @throws SystemException if a system exception occurred 2118 */ 2119 public int getUserGroupsSize(long pk) 2120 throws com.liferay.portal.kernel.exception.SystemException; 2121 2122 /** 2123 * Determines whether the user group is associated with the user. 2124 * 2125 * @param pk the primary key of the user 2126 * @param userGroupPK the primary key of the user group 2127 * @return whether the user group is associated with the user 2128 * @throws SystemException if a system exception occurred 2129 */ 2130 public boolean containsUserGroup(long pk, long userGroupPK) 2131 throws com.liferay.portal.kernel.exception.SystemException; 2132 2133 /** 2134 * Determines whether the user has any user groups associated with it. 2135 * 2136 * @param pk the primary key of the user to check for associations with user groups 2137 * @return whether the user has any user groups associated with it 2138 * @throws SystemException if a system exception occurred 2139 */ 2140 public boolean containsUserGroups(long pk) 2141 throws com.liferay.portal.kernel.exception.SystemException; 2142 2143 /** 2144 * Adds an association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2145 * 2146 * @param pk the primary key of the user 2147 * @param userGroupPK the primary key of the user group 2148 * @throws SystemException if a system exception occurred 2149 */ 2150 public void addUserGroup(long pk, long userGroupPK) 2151 throws com.liferay.portal.kernel.exception.SystemException; 2152 2153 /** 2154 * Adds an association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2155 * 2156 * @param pk the primary key of the user 2157 * @param userGroup the user group 2158 * @throws SystemException if a system exception occurred 2159 */ 2160 public void addUserGroup(long pk, 2161 com.liferay.portal.model.UserGroup userGroup) 2162 throws com.liferay.portal.kernel.exception.SystemException; 2163 2164 /** 2165 * Adds an association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2166 * 2167 * @param pk the primary key of the user 2168 * @param userGroupPKs the primary keys of the user groups 2169 * @throws SystemException if a system exception occurred 2170 */ 2171 public void addUserGroups(long pk, long[] userGroupPKs) 2172 throws com.liferay.portal.kernel.exception.SystemException; 2173 2174 /** 2175 * Adds an association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2176 * 2177 * @param pk the primary key of the user 2178 * @param userGroups the user groups 2179 * @throws SystemException if a system exception occurred 2180 */ 2181 public void addUserGroups(long pk, 2182 java.util.List<com.liferay.portal.model.UserGroup> userGroups) 2183 throws com.liferay.portal.kernel.exception.SystemException; 2184 2185 /** 2186 * Clears all associations between the user and its user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2187 * 2188 * @param pk the primary key of the user to clear the associated user groups from 2189 * @throws SystemException if a system exception occurred 2190 */ 2191 public void clearUserGroups(long pk) 2192 throws com.liferay.portal.kernel.exception.SystemException; 2193 2194 /** 2195 * Removes the association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2196 * 2197 * @param pk the primary key of the user 2198 * @param userGroupPK the primary key of the user group 2199 * @throws SystemException if a system exception occurred 2200 */ 2201 public void removeUserGroup(long pk, long userGroupPK) 2202 throws com.liferay.portal.kernel.exception.SystemException; 2203 2204 /** 2205 * Removes the association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2206 * 2207 * @param pk the primary key of the user 2208 * @param userGroup the user group 2209 * @throws SystemException if a system exception occurred 2210 */ 2211 public void removeUserGroup(long pk, 2212 com.liferay.portal.model.UserGroup userGroup) 2213 throws com.liferay.portal.kernel.exception.SystemException; 2214 2215 /** 2216 * Removes the association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2217 * 2218 * @param pk the primary key of the user 2219 * @param userGroupPKs the primary keys of the user groups 2220 * @throws SystemException if a system exception occurred 2221 */ 2222 public void removeUserGroups(long pk, long[] userGroupPKs) 2223 throws com.liferay.portal.kernel.exception.SystemException; 2224 2225 /** 2226 * Removes the association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2227 * 2228 * @param pk the primary key of the user 2229 * @param userGroups the user groups 2230 * @throws SystemException if a system exception occurred 2231 */ 2232 public void removeUserGroups(long pk, 2233 java.util.List<com.liferay.portal.model.UserGroup> userGroups) 2234 throws com.liferay.portal.kernel.exception.SystemException; 2235 2236 /** 2237 * Sets the user groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2238 * 2239 * @param pk the primary key of the user to set the associations for 2240 * @param userGroupPKs the primary keys of the user groups to be associated with the user 2241 * @throws SystemException if a system exception occurred 2242 */ 2243 public void setUserGroups(long pk, long[] userGroupPKs) 2244 throws com.liferay.portal.kernel.exception.SystemException; 2245 2246 /** 2247 * Sets the user groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2248 * 2249 * @param pk the primary key of the user to set the associations for 2250 * @param userGroups the user groups to be associated with the user 2251 * @throws SystemException if a system exception occurred 2252 */ 2253 public void setUserGroups(long pk, 2254 java.util.List<com.liferay.portal.model.UserGroup> userGroups) 2255 throws com.liferay.portal.kernel.exception.SystemException; 2256 }