001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.model.User; 018 019 /** 020 * The persistence interface for the user service. 021 * 022 * <p> 023 * Caching information and settings can be found in <code>portal.properties</code> 024 * </p> 025 * 026 * @author Brian Wing Shun Chan 027 * @see UserPersistenceImpl 028 * @see UserUtil 029 * @generated 030 */ 031 public interface UserPersistence extends BasePersistence<User> { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * Never modify or reference this interface directly. Always use {@link UserUtil} to access the user persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 036 */ 037 038 /** 039 * Caches the user in the entity cache if it is enabled. 040 * 041 * @param user the user 042 */ 043 public void cacheResult(com.liferay.portal.model.User user); 044 045 /** 046 * Caches the users in the entity cache if it is enabled. 047 * 048 * @param users the users 049 */ 050 public void cacheResult(java.util.List<com.liferay.portal.model.User> users); 051 052 /** 053 * Creates a new user with the primary key. Does not add the user to the database. 054 * 055 * @param userId the primary key for the new user 056 * @return the new user 057 */ 058 public com.liferay.portal.model.User create(long userId); 059 060 /** 061 * Removes the user with the primary key from the database. Also notifies the appropriate model listeners. 062 * 063 * @param userId the primary key of the user 064 * @return the user that was removed 065 * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found 066 * @throws SystemException if a system exception occurred 067 */ 068 public com.liferay.portal.model.User remove(long userId) 069 throws com.liferay.portal.NoSuchUserException, 070 com.liferay.portal.kernel.exception.SystemException; 071 072 public com.liferay.portal.model.User updateImpl( 073 com.liferay.portal.model.User user, boolean merge) 074 throws com.liferay.portal.kernel.exception.SystemException; 075 076 /** 077 * Returns the user with the primary key or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found. 078 * 079 * @param userId the primary key of the user 080 * @return the user 081 * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found 082 * @throws SystemException if a system exception occurred 083 */ 084 public com.liferay.portal.model.User findByPrimaryKey(long userId) 085 throws com.liferay.portal.NoSuchUserException, 086 com.liferay.portal.kernel.exception.SystemException; 087 088 /** 089 * Returns the user with the primary key or returns <code>null</code> if it could not be found. 090 * 091 * @param userId the primary key of the user 092 * @return the user, or <code>null</code> if a user with the primary key could not be found 093 * @throws SystemException if a system exception occurred 094 */ 095 public com.liferay.portal.model.User fetchByPrimaryKey(long userId) 096 throws com.liferay.portal.kernel.exception.SystemException; 097 098 /** 099 * Returns all the users where uuid = ?. 100 * 101 * @param uuid the uuid 102 * @return the matching users 103 * @throws SystemException if a system exception occurred 104 */ 105 public java.util.List<com.liferay.portal.model.User> findByUuid( 106 java.lang.String uuid) 107 throws com.liferay.portal.kernel.exception.SystemException; 108 109 /** 110 * Returns a range of all the users where uuid = ?. 111 * 112 * <p> 113 * 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. 114 * </p> 115 * 116 * @param uuid the uuid 117 * @param start the lower bound of the range of users 118 * @param end the upper bound of the range of users (not inclusive) 119 * @return the range of matching users 120 * @throws SystemException if a system exception occurred 121 */ 122 public java.util.List<com.liferay.portal.model.User> findByUuid( 123 java.lang.String uuid, int start, int end) 124 throws com.liferay.portal.kernel.exception.SystemException; 125 126 /** 127 * Returns an ordered range of all the users where uuid = ?. 128 * 129 * <p> 130 * 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. 131 * </p> 132 * 133 * @param uuid the uuid 134 * @param start the lower bound of the range of users 135 * @param end the upper bound of the range of users (not inclusive) 136 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 137 * @return the ordered range of matching users 138 * @throws SystemException if a system exception occurred 139 */ 140 public java.util.List<com.liferay.portal.model.User> findByUuid( 141 java.lang.String uuid, int start, int end, 142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 143 throws com.liferay.portal.kernel.exception.SystemException; 144 145 /** 146 * Returns the first user in the ordered set where uuid = ?. 147 * 148 * @param uuid the uuid 149 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 150 * @return the first matching user 151 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 152 * @throws SystemException if a system exception occurred 153 */ 154 public com.liferay.portal.model.User findByUuid_First( 155 java.lang.String uuid, 156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 157 throws com.liferay.portal.NoSuchUserException, 158 com.liferay.portal.kernel.exception.SystemException; 159 160 /** 161 * Returns the first user in the ordered set where uuid = ?. 162 * 163 * @param uuid the uuid 164 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 165 * @return the first matching user, or <code>null</code> if a matching user could not be found 166 * @throws SystemException if a system exception occurred 167 */ 168 public com.liferay.portal.model.User fetchByUuid_First( 169 java.lang.String uuid, 170 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 171 throws com.liferay.portal.kernel.exception.SystemException; 172 173 /** 174 * Returns the last user in the ordered set where uuid = ?. 175 * 176 * @param uuid the uuid 177 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 178 * @return the last matching user 179 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 180 * @throws SystemException if a system exception occurred 181 */ 182 public com.liferay.portal.model.User findByUuid_Last( 183 java.lang.String uuid, 184 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 185 throws com.liferay.portal.NoSuchUserException, 186 com.liferay.portal.kernel.exception.SystemException; 187 188 /** 189 * Returns the last user in the ordered set where uuid = ?. 190 * 191 * @param uuid the uuid 192 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 193 * @return the last matching user, or <code>null</code> if a matching user could not be found 194 * @throws SystemException if a system exception occurred 195 */ 196 public com.liferay.portal.model.User fetchByUuid_Last( 197 java.lang.String uuid, 198 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 199 throws com.liferay.portal.kernel.exception.SystemException; 200 201 /** 202 * Returns the users before and after the current user in the ordered set where uuid = ?. 203 * 204 * @param userId the primary key of the current user 205 * @param uuid the uuid 206 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 207 * @return the previous, current, and next user 208 * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found 209 * @throws SystemException if a system exception occurred 210 */ 211 public com.liferay.portal.model.User[] findByUuid_PrevAndNext(long userId, 212 java.lang.String uuid, 213 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 214 throws com.liferay.portal.NoSuchUserException, 215 com.liferay.portal.kernel.exception.SystemException; 216 217 /** 218 * Returns all the users where companyId = ?. 219 * 220 * @param companyId the company ID 221 * @return the matching users 222 * @throws SystemException if a system exception occurred 223 */ 224 public java.util.List<com.liferay.portal.model.User> findByCompanyId( 225 long companyId) 226 throws com.liferay.portal.kernel.exception.SystemException; 227 228 /** 229 * Returns a range of all the users where companyId = ?. 230 * 231 * <p> 232 * 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. 233 * </p> 234 * 235 * @param companyId the company ID 236 * @param start the lower bound of the range of users 237 * @param end the upper bound of the range of users (not inclusive) 238 * @return the range of matching users 239 * @throws SystemException if a system exception occurred 240 */ 241 public java.util.List<com.liferay.portal.model.User> findByCompanyId( 242 long companyId, int start, int end) 243 throws com.liferay.portal.kernel.exception.SystemException; 244 245 /** 246 * Returns an ordered range of all the users where companyId = ?. 247 * 248 * <p> 249 * 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. 250 * </p> 251 * 252 * @param companyId the company ID 253 * @param start the lower bound of the range of users 254 * @param end the upper bound of the range of users (not inclusive) 255 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 256 * @return the ordered range of matching users 257 * @throws SystemException if a system exception occurred 258 */ 259 public java.util.List<com.liferay.portal.model.User> findByCompanyId( 260 long companyId, int start, int end, 261 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 262 throws com.liferay.portal.kernel.exception.SystemException; 263 264 /** 265 * Returns the first user in the ordered set where companyId = ?. 266 * 267 * @param companyId the company ID 268 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 269 * @return the first matching user 270 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 271 * @throws SystemException if a system exception occurred 272 */ 273 public com.liferay.portal.model.User findByCompanyId_First(long companyId, 274 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 275 throws com.liferay.portal.NoSuchUserException, 276 com.liferay.portal.kernel.exception.SystemException; 277 278 /** 279 * Returns the first user in the ordered set where companyId = ?. 280 * 281 * @param companyId the company ID 282 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 283 * @return the first matching user, or <code>null</code> if a matching user could not be found 284 * @throws SystemException if a system exception occurred 285 */ 286 public com.liferay.portal.model.User fetchByCompanyId_First( 287 long companyId, 288 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 289 throws com.liferay.portal.kernel.exception.SystemException; 290 291 /** 292 * Returns the last user in the ordered set where companyId = ?. 293 * 294 * @param companyId the company ID 295 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 296 * @return the last matching user 297 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 298 * @throws SystemException if a system exception occurred 299 */ 300 public com.liferay.portal.model.User findByCompanyId_Last(long companyId, 301 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 302 throws com.liferay.portal.NoSuchUserException, 303 com.liferay.portal.kernel.exception.SystemException; 304 305 /** 306 * Returns the last user in the ordered set where companyId = ?. 307 * 308 * @param companyId the company ID 309 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 310 * @return the last matching user, or <code>null</code> if a matching user could not be found 311 * @throws SystemException if a system exception occurred 312 */ 313 public com.liferay.portal.model.User fetchByCompanyId_Last(long companyId, 314 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 315 throws com.liferay.portal.kernel.exception.SystemException; 316 317 /** 318 * Returns the users before and after the current user in the ordered set where companyId = ?. 319 * 320 * @param userId the primary key of the current user 321 * @param companyId the company ID 322 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 323 * @return the previous, current, and next user 324 * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found 325 * @throws SystemException if a system exception occurred 326 */ 327 public com.liferay.portal.model.User[] findByCompanyId_PrevAndNext( 328 long userId, long companyId, 329 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 330 throws com.liferay.portal.NoSuchUserException, 331 com.liferay.portal.kernel.exception.SystemException; 332 333 /** 334 * Returns the user where contactId = ? or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found. 335 * 336 * @param contactId the contact ID 337 * @return the matching user 338 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 339 * @throws SystemException if a system exception occurred 340 */ 341 public com.liferay.portal.model.User findByContactId(long contactId) 342 throws com.liferay.portal.NoSuchUserException, 343 com.liferay.portal.kernel.exception.SystemException; 344 345 /** 346 * Returns the user where contactId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 347 * 348 * @param contactId the contact ID 349 * @return the matching user, or <code>null</code> if a matching user could not be found 350 * @throws SystemException if a system exception occurred 351 */ 352 public com.liferay.portal.model.User fetchByContactId(long contactId) 353 throws com.liferay.portal.kernel.exception.SystemException; 354 355 /** 356 * Returns the user where contactId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 357 * 358 * @param contactId the contact ID 359 * @param retrieveFromCache whether to use the finder cache 360 * @return the matching user, or <code>null</code> if a matching user could not be found 361 * @throws SystemException if a system exception occurred 362 */ 363 public com.liferay.portal.model.User fetchByContactId(long contactId, 364 boolean retrieveFromCache) 365 throws com.liferay.portal.kernel.exception.SystemException; 366 367 /** 368 * Returns all the users where emailAddress = ?. 369 * 370 * @param emailAddress the email address 371 * @return the matching users 372 * @throws SystemException if a system exception occurred 373 */ 374 public java.util.List<com.liferay.portal.model.User> findByEmailAddress( 375 java.lang.String emailAddress) 376 throws com.liferay.portal.kernel.exception.SystemException; 377 378 /** 379 * Returns a range of all the users where emailAddress = ?. 380 * 381 * <p> 382 * 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. 383 * </p> 384 * 385 * @param emailAddress the email address 386 * @param start the lower bound of the range of users 387 * @param end the upper bound of the range of users (not inclusive) 388 * @return the range of matching users 389 * @throws SystemException if a system exception occurred 390 */ 391 public java.util.List<com.liferay.portal.model.User> findByEmailAddress( 392 java.lang.String emailAddress, int start, int end) 393 throws com.liferay.portal.kernel.exception.SystemException; 394 395 /** 396 * Returns an ordered range of all the users where emailAddress = ?. 397 * 398 * <p> 399 * 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. 400 * </p> 401 * 402 * @param emailAddress the email address 403 * @param start the lower bound of the range of users 404 * @param end the upper bound of the range of users (not inclusive) 405 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 406 * @return the ordered range of matching users 407 * @throws SystemException if a system exception occurred 408 */ 409 public java.util.List<com.liferay.portal.model.User> findByEmailAddress( 410 java.lang.String emailAddress, int start, int end, 411 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 412 throws com.liferay.portal.kernel.exception.SystemException; 413 414 /** 415 * Returns the first user in the ordered set where emailAddress = ?. 416 * 417 * @param emailAddress the email address 418 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 419 * @return the first matching user 420 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 421 * @throws SystemException if a system exception occurred 422 */ 423 public com.liferay.portal.model.User findByEmailAddress_First( 424 java.lang.String emailAddress, 425 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 426 throws com.liferay.portal.NoSuchUserException, 427 com.liferay.portal.kernel.exception.SystemException; 428 429 /** 430 * Returns the first user in the ordered set where emailAddress = ?. 431 * 432 * @param emailAddress the email address 433 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 434 * @return the first matching user, or <code>null</code> if a matching user could not be found 435 * @throws SystemException if a system exception occurred 436 */ 437 public com.liferay.portal.model.User fetchByEmailAddress_First( 438 java.lang.String emailAddress, 439 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 440 throws com.liferay.portal.kernel.exception.SystemException; 441 442 /** 443 * Returns the last user in the ordered set where emailAddress = ?. 444 * 445 * @param emailAddress the email address 446 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 447 * @return the last matching user 448 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 449 * @throws SystemException if a system exception occurred 450 */ 451 public com.liferay.portal.model.User findByEmailAddress_Last( 452 java.lang.String emailAddress, 453 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 454 throws com.liferay.portal.NoSuchUserException, 455 com.liferay.portal.kernel.exception.SystemException; 456 457 /** 458 * Returns the last user in the ordered set where emailAddress = ?. 459 * 460 * @param emailAddress the email address 461 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 462 * @return the last matching user, or <code>null</code> if a matching user could not be found 463 * @throws SystemException if a system exception occurred 464 */ 465 public com.liferay.portal.model.User fetchByEmailAddress_Last( 466 java.lang.String emailAddress, 467 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 468 throws com.liferay.portal.kernel.exception.SystemException; 469 470 /** 471 * Returns the users before and after the current user in the ordered set where emailAddress = ?. 472 * 473 * @param userId the primary key of the current user 474 * @param emailAddress the email address 475 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 476 * @return the previous, current, and next user 477 * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found 478 * @throws SystemException if a system exception occurred 479 */ 480 public com.liferay.portal.model.User[] findByEmailAddress_PrevAndNext( 481 long userId, java.lang.String emailAddress, 482 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 483 throws com.liferay.portal.NoSuchUserException, 484 com.liferay.portal.kernel.exception.SystemException; 485 486 /** 487 * Returns the user where portraitId = ? or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found. 488 * 489 * @param portraitId the portrait ID 490 * @return the matching user 491 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 492 * @throws SystemException if a system exception occurred 493 */ 494 public com.liferay.portal.model.User findByPortraitId(long portraitId) 495 throws com.liferay.portal.NoSuchUserException, 496 com.liferay.portal.kernel.exception.SystemException; 497 498 /** 499 * Returns the user where portraitId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 500 * 501 * @param portraitId the portrait ID 502 * @return the matching user, or <code>null</code> if a matching user could not be found 503 * @throws SystemException if a system exception occurred 504 */ 505 public com.liferay.portal.model.User fetchByPortraitId(long portraitId) 506 throws com.liferay.portal.kernel.exception.SystemException; 507 508 /** 509 * Returns the user where portraitId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 510 * 511 * @param portraitId the portrait ID 512 * @param retrieveFromCache whether to use the finder cache 513 * @return the matching user, or <code>null</code> if a matching user could not be found 514 * @throws SystemException if a system exception occurred 515 */ 516 public com.liferay.portal.model.User fetchByPortraitId(long portraitId, 517 boolean retrieveFromCache) 518 throws com.liferay.portal.kernel.exception.SystemException; 519 520 /** 521 * Returns the user where companyId = ? and userId = ? or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found. 522 * 523 * @param companyId the company ID 524 * @param userId the user ID 525 * @return the matching user 526 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 527 * @throws SystemException if a system exception occurred 528 */ 529 public com.liferay.portal.model.User findByC_U(long companyId, long userId) 530 throws com.liferay.portal.NoSuchUserException, 531 com.liferay.portal.kernel.exception.SystemException; 532 533 /** 534 * Returns the user where companyId = ? and userId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 535 * 536 * @param companyId the company ID 537 * @param userId the user ID 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_U(long companyId, long userId) 542 throws com.liferay.portal.kernel.exception.SystemException; 543 544 /** 545 * Returns the user where companyId = ? and userId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 546 * 547 * @param companyId the company ID 548 * @param userId the user ID 549 * @param retrieveFromCache whether to use the finder cache 550 * @return the matching user, or <code>null</code> if a matching user could not be found 551 * @throws SystemException if a system exception occurred 552 */ 553 public com.liferay.portal.model.User fetchByC_U(long companyId, 554 long userId, boolean retrieveFromCache) 555 throws com.liferay.portal.kernel.exception.SystemException; 556 557 /** 558 * Returns all the users where companyId = ? and createDate = ?. 559 * 560 * @param companyId the company ID 561 * @param createDate the create date 562 * @return the matching users 563 * @throws SystemException if a system exception occurred 564 */ 565 public java.util.List<com.liferay.portal.model.User> findByC_CD( 566 long companyId, java.util.Date createDate) 567 throws com.liferay.portal.kernel.exception.SystemException; 568 569 /** 570 * Returns a range of all the users where companyId = ? and createDate = ?. 571 * 572 * <p> 573 * 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. 574 * </p> 575 * 576 * @param companyId the company ID 577 * @param createDate the create date 578 * @param start the lower bound of the range of users 579 * @param end the upper bound of the range of users (not inclusive) 580 * @return the range of matching users 581 * @throws SystemException if a system exception occurred 582 */ 583 public java.util.List<com.liferay.portal.model.User> findByC_CD( 584 long companyId, java.util.Date createDate, int start, int end) 585 throws com.liferay.portal.kernel.exception.SystemException; 586 587 /** 588 * Returns an ordered range of all the users where companyId = ? and createDate = ?. 589 * 590 * <p> 591 * 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. 592 * </p> 593 * 594 * @param companyId the company ID 595 * @param createDate the create date 596 * @param start the lower bound of the range of users 597 * @param end the upper bound of the range of users (not inclusive) 598 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 599 * @return the ordered range of matching users 600 * @throws SystemException if a system exception occurred 601 */ 602 public java.util.List<com.liferay.portal.model.User> findByC_CD( 603 long companyId, java.util.Date createDate, int start, int end, 604 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 605 throws com.liferay.portal.kernel.exception.SystemException; 606 607 /** 608 * Returns the first user in the ordered set where companyId = ? and createDate = ?. 609 * 610 * @param companyId the company ID 611 * @param createDate the create date 612 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 613 * @return the first matching user 614 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 615 * @throws SystemException if a system exception occurred 616 */ 617 public com.liferay.portal.model.User findByC_CD_First(long companyId, 618 java.util.Date createDate, 619 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 620 throws com.liferay.portal.NoSuchUserException, 621 com.liferay.portal.kernel.exception.SystemException; 622 623 /** 624 * Returns the first user in the ordered set where companyId = ? and createDate = ?. 625 * 626 * @param companyId the company ID 627 * @param createDate the create date 628 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 629 * @return the first matching user, or <code>null</code> if a matching user could not be found 630 * @throws SystemException if a system exception occurred 631 */ 632 public com.liferay.portal.model.User fetchByC_CD_First(long companyId, 633 java.util.Date createDate, 634 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 635 throws com.liferay.portal.kernel.exception.SystemException; 636 637 /** 638 * Returns the last user in the ordered set where companyId = ? and createDate = ?. 639 * 640 * @param companyId the company ID 641 * @param createDate the create date 642 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 643 * @return the last matching user 644 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 645 * @throws SystemException if a system exception occurred 646 */ 647 public com.liferay.portal.model.User findByC_CD_Last(long companyId, 648 java.util.Date createDate, 649 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 650 throws com.liferay.portal.NoSuchUserException, 651 com.liferay.portal.kernel.exception.SystemException; 652 653 /** 654 * Returns the last user in the ordered set where companyId = ? and createDate = ?. 655 * 656 * @param companyId the company ID 657 * @param createDate the create date 658 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 659 * @return the last matching user, or <code>null</code> if a matching user could not be found 660 * @throws SystemException if a system exception occurred 661 */ 662 public com.liferay.portal.model.User fetchByC_CD_Last(long companyId, 663 java.util.Date createDate, 664 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 665 throws com.liferay.portal.kernel.exception.SystemException; 666 667 /** 668 * Returns the users before and after the current user in the ordered set where companyId = ? and createDate = ?. 669 * 670 * @param userId the primary key of the current user 671 * @param companyId the company ID 672 * @param createDate the create date 673 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 674 * @return the previous, current, and next user 675 * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found 676 * @throws SystemException if a system exception occurred 677 */ 678 public com.liferay.portal.model.User[] findByC_CD_PrevAndNext(long userId, 679 long companyId, java.util.Date createDate, 680 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 681 throws com.liferay.portal.NoSuchUserException, 682 com.liferay.portal.kernel.exception.SystemException; 683 684 /** 685 * Returns all the users where companyId = ? and modifiedDate = ?. 686 * 687 * @param companyId the company ID 688 * @param modifiedDate the modified date 689 * @return the matching users 690 * @throws SystemException if a system exception occurred 691 */ 692 public java.util.List<com.liferay.portal.model.User> findByC_MD( 693 long companyId, java.util.Date modifiedDate) 694 throws com.liferay.portal.kernel.exception.SystemException; 695 696 /** 697 * Returns a range of all the users where companyId = ? and modifiedDate = ?. 698 * 699 * <p> 700 * 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. 701 * </p> 702 * 703 * @param companyId the company ID 704 * @param modifiedDate the modified date 705 * @param start the lower bound of the range of users 706 * @param end the upper bound of the range of users (not inclusive) 707 * @return the range of matching users 708 * @throws SystemException if a system exception occurred 709 */ 710 public java.util.List<com.liferay.portal.model.User> findByC_MD( 711 long companyId, java.util.Date modifiedDate, int start, int end) 712 throws com.liferay.portal.kernel.exception.SystemException; 713 714 /** 715 * Returns an ordered range of all the users where companyId = ? and modifiedDate = ?. 716 * 717 * <p> 718 * 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. 719 * </p> 720 * 721 * @param companyId the company ID 722 * @param modifiedDate the modified date 723 * @param start the lower bound of the range of users 724 * @param end the upper bound of the range of users (not inclusive) 725 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 726 * @return the ordered range of matching users 727 * @throws SystemException if a system exception occurred 728 */ 729 public java.util.List<com.liferay.portal.model.User> findByC_MD( 730 long companyId, java.util.Date modifiedDate, int start, int end, 731 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 732 throws com.liferay.portal.kernel.exception.SystemException; 733 734 /** 735 * Returns the first user in the ordered set where companyId = ? and modifiedDate = ?. 736 * 737 * @param companyId the company ID 738 * @param modifiedDate the modified date 739 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 740 * @return the first matching user 741 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 742 * @throws SystemException if a system exception occurred 743 */ 744 public com.liferay.portal.model.User findByC_MD_First(long companyId, 745 java.util.Date modifiedDate, 746 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 747 throws com.liferay.portal.NoSuchUserException, 748 com.liferay.portal.kernel.exception.SystemException; 749 750 /** 751 * Returns the first user in the ordered set where companyId = ? and modifiedDate = ?. 752 * 753 * @param companyId the company ID 754 * @param modifiedDate the modified date 755 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 756 * @return the first matching user, or <code>null</code> if a matching user could not be found 757 * @throws SystemException if a system exception occurred 758 */ 759 public com.liferay.portal.model.User fetchByC_MD_First(long companyId, 760 java.util.Date modifiedDate, 761 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 762 throws com.liferay.portal.kernel.exception.SystemException; 763 764 /** 765 * Returns the last user in the ordered set where companyId = ? and modifiedDate = ?. 766 * 767 * @param companyId the company ID 768 * @param modifiedDate the modified date 769 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 770 * @return the last matching user 771 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 772 * @throws SystemException if a system exception occurred 773 */ 774 public com.liferay.portal.model.User findByC_MD_Last(long companyId, 775 java.util.Date modifiedDate, 776 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 777 throws com.liferay.portal.NoSuchUserException, 778 com.liferay.portal.kernel.exception.SystemException; 779 780 /** 781 * Returns the last user in the ordered set where companyId = ? and modifiedDate = ?. 782 * 783 * @param companyId the company ID 784 * @param modifiedDate the modified date 785 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 786 * @return the last matching user, or <code>null</code> if a matching user could not be found 787 * @throws SystemException if a system exception occurred 788 */ 789 public com.liferay.portal.model.User fetchByC_MD_Last(long companyId, 790 java.util.Date modifiedDate, 791 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 792 throws com.liferay.portal.kernel.exception.SystemException; 793 794 /** 795 * Returns the users before and after the current user in the ordered set where companyId = ? and modifiedDate = ?. 796 * 797 * @param userId the primary key of the current user 798 * @param companyId the company ID 799 * @param modifiedDate the modified date 800 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 801 * @return the previous, current, and next user 802 * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found 803 * @throws SystemException if a system exception occurred 804 */ 805 public com.liferay.portal.model.User[] findByC_MD_PrevAndNext(long userId, 806 long companyId, java.util.Date modifiedDate, 807 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 808 throws com.liferay.portal.NoSuchUserException, 809 com.liferay.portal.kernel.exception.SystemException; 810 811 /** 812 * Returns the user where companyId = ? and defaultUser = ? or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found. 813 * 814 * @param companyId the company ID 815 * @param defaultUser the default user 816 * @return the matching user 817 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 818 * @throws SystemException if a system exception occurred 819 */ 820 public com.liferay.portal.model.User findByC_DU(long companyId, 821 boolean defaultUser) 822 throws com.liferay.portal.NoSuchUserException, 823 com.liferay.portal.kernel.exception.SystemException; 824 825 /** 826 * Returns the user where companyId = ? and defaultUser = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 827 * 828 * @param companyId the company ID 829 * @param defaultUser the default user 830 * @return the matching user, or <code>null</code> if a matching user could not be found 831 * @throws SystemException if a system exception occurred 832 */ 833 public com.liferay.portal.model.User fetchByC_DU(long companyId, 834 boolean defaultUser) 835 throws com.liferay.portal.kernel.exception.SystemException; 836 837 /** 838 * Returns the user where companyId = ? and defaultUser = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 839 * 840 * @param companyId the company ID 841 * @param defaultUser the default user 842 * @param retrieveFromCache whether to use the finder cache 843 * @return the matching user, or <code>null</code> if a matching user could not be found 844 * @throws SystemException if a system exception occurred 845 */ 846 public com.liferay.portal.model.User fetchByC_DU(long companyId, 847 boolean defaultUser, boolean retrieveFromCache) 848 throws com.liferay.portal.kernel.exception.SystemException; 849 850 /** 851 * Returns the user where companyId = ? and screenName = ? or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found. 852 * 853 * @param companyId the company ID 854 * @param screenName the screen name 855 * @return the matching user 856 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 857 * @throws SystemException if a system exception occurred 858 */ 859 public com.liferay.portal.model.User findByC_SN(long companyId, 860 java.lang.String screenName) 861 throws com.liferay.portal.NoSuchUserException, 862 com.liferay.portal.kernel.exception.SystemException; 863 864 /** 865 * Returns the user where companyId = ? and screenName = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 866 * 867 * @param companyId the company ID 868 * @param screenName the screen name 869 * @return the matching user, or <code>null</code> if a matching user could not be found 870 * @throws SystemException if a system exception occurred 871 */ 872 public com.liferay.portal.model.User fetchByC_SN(long companyId, 873 java.lang.String screenName) 874 throws com.liferay.portal.kernel.exception.SystemException; 875 876 /** 877 * Returns the user where companyId = ? and screenName = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 878 * 879 * @param companyId the company ID 880 * @param screenName the screen name 881 * @param retrieveFromCache whether to use the finder cache 882 * @return the matching user, or <code>null</code> if a matching user could not be found 883 * @throws SystemException if a system exception occurred 884 */ 885 public com.liferay.portal.model.User fetchByC_SN(long companyId, 886 java.lang.String screenName, boolean retrieveFromCache) 887 throws com.liferay.portal.kernel.exception.SystemException; 888 889 /** 890 * Returns the user where companyId = ? and emailAddress = ? or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found. 891 * 892 * @param companyId the company ID 893 * @param emailAddress the email address 894 * @return the matching user 895 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 896 * @throws SystemException if a system exception occurred 897 */ 898 public com.liferay.portal.model.User findByC_EA(long companyId, 899 java.lang.String emailAddress) 900 throws com.liferay.portal.NoSuchUserException, 901 com.liferay.portal.kernel.exception.SystemException; 902 903 /** 904 * Returns the user where companyId = ? and emailAddress = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 905 * 906 * @param companyId the company ID 907 * @param emailAddress the email address 908 * @return the matching user, or <code>null</code> if a matching user could not be found 909 * @throws SystemException if a system exception occurred 910 */ 911 public com.liferay.portal.model.User fetchByC_EA(long companyId, 912 java.lang.String emailAddress) 913 throws com.liferay.portal.kernel.exception.SystemException; 914 915 /** 916 * Returns the user where companyId = ? and emailAddress = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 917 * 918 * @param companyId the company ID 919 * @param emailAddress the email address 920 * @param retrieveFromCache whether to use the finder cache 921 * @return the matching user, or <code>null</code> if a matching user could not be found 922 * @throws SystemException if a system exception occurred 923 */ 924 public com.liferay.portal.model.User fetchByC_EA(long companyId, 925 java.lang.String emailAddress, boolean retrieveFromCache) 926 throws com.liferay.portal.kernel.exception.SystemException; 927 928 /** 929 * Returns the user where companyId = ? and facebookId = ? or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found. 930 * 931 * @param companyId the company ID 932 * @param facebookId the facebook ID 933 * @return the matching user 934 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 935 * @throws SystemException if a system exception occurred 936 */ 937 public com.liferay.portal.model.User findByC_FID(long companyId, 938 long facebookId) 939 throws com.liferay.portal.NoSuchUserException, 940 com.liferay.portal.kernel.exception.SystemException; 941 942 /** 943 * Returns the user where companyId = ? and facebookId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 944 * 945 * @param companyId the company ID 946 * @param facebookId the facebook ID 947 * @return the matching user, or <code>null</code> if a matching user could not be found 948 * @throws SystemException if a system exception occurred 949 */ 950 public com.liferay.portal.model.User fetchByC_FID(long companyId, 951 long facebookId) 952 throws com.liferay.portal.kernel.exception.SystemException; 953 954 /** 955 * Returns the user where companyId = ? and facebookId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 956 * 957 * @param companyId the company ID 958 * @param facebookId the facebook ID 959 * @param retrieveFromCache whether to use the finder cache 960 * @return the matching user, or <code>null</code> if a matching user could not be found 961 * @throws SystemException if a system exception occurred 962 */ 963 public com.liferay.portal.model.User fetchByC_FID(long companyId, 964 long facebookId, boolean retrieveFromCache) 965 throws com.liferay.portal.kernel.exception.SystemException; 966 967 /** 968 * Returns the user where companyId = ? and openId = ? or throws a {@link com.liferay.portal.NoSuchUserException} if it could not be found. 969 * 970 * @param companyId the company ID 971 * @param openId the open ID 972 * @return the matching user 973 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 974 * @throws SystemException if a system exception occurred 975 */ 976 public com.liferay.portal.model.User findByC_O(long companyId, 977 java.lang.String openId) 978 throws com.liferay.portal.NoSuchUserException, 979 com.liferay.portal.kernel.exception.SystemException; 980 981 /** 982 * Returns the user where companyId = ? and openId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 983 * 984 * @param companyId the company ID 985 * @param openId the open ID 986 * @return the matching user, or <code>null</code> if a matching user could not be found 987 * @throws SystemException if a system exception occurred 988 */ 989 public com.liferay.portal.model.User fetchByC_O(long companyId, 990 java.lang.String openId) 991 throws com.liferay.portal.kernel.exception.SystemException; 992 993 /** 994 * Returns the user where companyId = ? and openId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 995 * 996 * @param companyId the company ID 997 * @param openId the open ID 998 * @param retrieveFromCache whether to use the finder cache 999 * @return the matching user, or <code>null</code> if a matching user could not be found 1000 * @throws SystemException if a system exception occurred 1001 */ 1002 public com.liferay.portal.model.User fetchByC_O(long companyId, 1003 java.lang.String openId, boolean retrieveFromCache) 1004 throws com.liferay.portal.kernel.exception.SystemException; 1005 1006 /** 1007 * Returns all the users where companyId = ? and status = ?. 1008 * 1009 * @param companyId the company ID 1010 * @param status the status 1011 * @return the matching users 1012 * @throws SystemException if a system exception occurred 1013 */ 1014 public java.util.List<com.liferay.portal.model.User> findByC_S( 1015 long companyId, int status) 1016 throws com.liferay.portal.kernel.exception.SystemException; 1017 1018 /** 1019 * Returns a range of all the users where companyId = ? and status = ?. 1020 * 1021 * <p> 1022 * 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. 1023 * </p> 1024 * 1025 * @param companyId the company ID 1026 * @param status the status 1027 * @param start the lower bound of the range of users 1028 * @param end the upper bound of the range of users (not inclusive) 1029 * @return the range of matching users 1030 * @throws SystemException if a system exception occurred 1031 */ 1032 public java.util.List<com.liferay.portal.model.User> findByC_S( 1033 long companyId, int status, int start, int end) 1034 throws com.liferay.portal.kernel.exception.SystemException; 1035 1036 /** 1037 * Returns an ordered range of all the users where companyId = ? and status = ?. 1038 * 1039 * <p> 1040 * 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. 1041 * </p> 1042 * 1043 * @param companyId the company ID 1044 * @param status the status 1045 * @param start the lower bound of the range of users 1046 * @param end the upper bound of the range of users (not inclusive) 1047 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1048 * @return the ordered range of matching users 1049 * @throws SystemException if a system exception occurred 1050 */ 1051 public java.util.List<com.liferay.portal.model.User> findByC_S( 1052 long companyId, int status, int start, int end, 1053 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1054 throws com.liferay.portal.kernel.exception.SystemException; 1055 1056 /** 1057 * Returns the first user in the ordered set where companyId = ? and status = ?. 1058 * 1059 * @param companyId the company ID 1060 * @param status the status 1061 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1062 * @return the first matching user 1063 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 1064 * @throws SystemException if a system exception occurred 1065 */ 1066 public com.liferay.portal.model.User findByC_S_First(long companyId, 1067 int status, 1068 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1069 throws com.liferay.portal.NoSuchUserException, 1070 com.liferay.portal.kernel.exception.SystemException; 1071 1072 /** 1073 * Returns the first user in the ordered set where companyId = ? and status = ?. 1074 * 1075 * @param companyId the company ID 1076 * @param status the status 1077 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1078 * @return the first matching user, or <code>null</code> if a matching user could not be found 1079 * @throws SystemException if a system exception occurred 1080 */ 1081 public com.liferay.portal.model.User fetchByC_S_First(long companyId, 1082 int status, 1083 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1084 throws com.liferay.portal.kernel.exception.SystemException; 1085 1086 /** 1087 * Returns the last user in the ordered set where companyId = ? and status = ?. 1088 * 1089 * @param companyId the company ID 1090 * @param status the status 1091 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1092 * @return the last matching user 1093 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 1094 * @throws SystemException if a system exception occurred 1095 */ 1096 public com.liferay.portal.model.User findByC_S_Last(long companyId, 1097 int status, 1098 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1099 throws com.liferay.portal.NoSuchUserException, 1100 com.liferay.portal.kernel.exception.SystemException; 1101 1102 /** 1103 * Returns the last user in the ordered set where companyId = ? and status = ?. 1104 * 1105 * @param companyId the company ID 1106 * @param status the status 1107 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1108 * @return the last matching user, or <code>null</code> if a matching user could not be found 1109 * @throws SystemException if a system exception occurred 1110 */ 1111 public com.liferay.portal.model.User fetchByC_S_Last(long companyId, 1112 int status, 1113 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1114 throws com.liferay.portal.kernel.exception.SystemException; 1115 1116 /** 1117 * Returns the users before and after the current user in the ordered set where companyId = ? and status = ?. 1118 * 1119 * @param userId the primary key of the current user 1120 * @param companyId the company ID 1121 * @param status the status 1122 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1123 * @return the previous, current, and next user 1124 * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found 1125 * @throws SystemException if a system exception occurred 1126 */ 1127 public com.liferay.portal.model.User[] findByC_S_PrevAndNext(long userId, 1128 long companyId, int status, 1129 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1130 throws com.liferay.portal.NoSuchUserException, 1131 com.liferay.portal.kernel.exception.SystemException; 1132 1133 /** 1134 * Returns all the users where companyId = ? and createDate = ? and modifiedDate = ?. 1135 * 1136 * @param companyId the company ID 1137 * @param createDate the create date 1138 * @param modifiedDate the modified date 1139 * @return the matching users 1140 * @throws SystemException if a system exception occurred 1141 */ 1142 public java.util.List<com.liferay.portal.model.User> findByC_CD_MD( 1143 long companyId, java.util.Date createDate, java.util.Date modifiedDate) 1144 throws com.liferay.portal.kernel.exception.SystemException; 1145 1146 /** 1147 * Returns a range of all the users where companyId = ? and createDate = ? and modifiedDate = ?. 1148 * 1149 * <p> 1150 * 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. 1151 * </p> 1152 * 1153 * @param companyId the company ID 1154 * @param createDate the create date 1155 * @param modifiedDate the modified date 1156 * @param start the lower bound of the range of users 1157 * @param end the upper bound of the range of users (not inclusive) 1158 * @return the range of matching users 1159 * @throws SystemException if a system exception occurred 1160 */ 1161 public java.util.List<com.liferay.portal.model.User> findByC_CD_MD( 1162 long companyId, java.util.Date createDate, java.util.Date modifiedDate, 1163 int start, int end) 1164 throws com.liferay.portal.kernel.exception.SystemException; 1165 1166 /** 1167 * Returns an ordered range of all the users where companyId = ? and createDate = ? and modifiedDate = ?. 1168 * 1169 * <p> 1170 * 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. 1171 * </p> 1172 * 1173 * @param companyId the company ID 1174 * @param createDate the create date 1175 * @param modifiedDate the modified date 1176 * @param start the lower bound of the range of users 1177 * @param end the upper bound of the range of users (not inclusive) 1178 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1179 * @return the ordered range of matching users 1180 * @throws SystemException if a system exception occurred 1181 */ 1182 public java.util.List<com.liferay.portal.model.User> findByC_CD_MD( 1183 long companyId, java.util.Date createDate, java.util.Date modifiedDate, 1184 int start, int end, 1185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1186 throws com.liferay.portal.kernel.exception.SystemException; 1187 1188 /** 1189 * Returns the first user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?. 1190 * 1191 * @param companyId the company ID 1192 * @param createDate the create date 1193 * @param modifiedDate the modified date 1194 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1195 * @return the first matching user 1196 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 1197 * @throws SystemException if a system exception occurred 1198 */ 1199 public com.liferay.portal.model.User findByC_CD_MD_First(long companyId, 1200 java.util.Date createDate, java.util.Date modifiedDate, 1201 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1202 throws com.liferay.portal.NoSuchUserException, 1203 com.liferay.portal.kernel.exception.SystemException; 1204 1205 /** 1206 * Returns the first user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?. 1207 * 1208 * @param companyId the company ID 1209 * @param createDate the create date 1210 * @param modifiedDate the modified date 1211 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1212 * @return the first matching user, or <code>null</code> if a matching user could not be found 1213 * @throws SystemException if a system exception occurred 1214 */ 1215 public com.liferay.portal.model.User fetchByC_CD_MD_First(long companyId, 1216 java.util.Date createDate, java.util.Date modifiedDate, 1217 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1218 throws com.liferay.portal.kernel.exception.SystemException; 1219 1220 /** 1221 * Returns the last user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?. 1222 * 1223 * @param companyId the company ID 1224 * @param createDate the create date 1225 * @param modifiedDate the modified date 1226 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1227 * @return the last matching user 1228 * @throws com.liferay.portal.NoSuchUserException if a matching user could not be found 1229 * @throws SystemException if a system exception occurred 1230 */ 1231 public com.liferay.portal.model.User findByC_CD_MD_Last(long companyId, 1232 java.util.Date createDate, java.util.Date modifiedDate, 1233 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1234 throws com.liferay.portal.NoSuchUserException, 1235 com.liferay.portal.kernel.exception.SystemException; 1236 1237 /** 1238 * Returns the last user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?. 1239 * 1240 * @param companyId the company ID 1241 * @param createDate the create date 1242 * @param modifiedDate the modified date 1243 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1244 * @return the last matching user, or <code>null</code> if a matching user could not be found 1245 * @throws SystemException if a system exception occurred 1246 */ 1247 public com.liferay.portal.model.User fetchByC_CD_MD_Last(long companyId, 1248 java.util.Date createDate, java.util.Date modifiedDate, 1249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1250 throws com.liferay.portal.kernel.exception.SystemException; 1251 1252 /** 1253 * Returns the users before and after the current user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?. 1254 * 1255 * @param userId the primary key of the current user 1256 * @param companyId the company ID 1257 * @param createDate the create date 1258 * @param modifiedDate the modified date 1259 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1260 * @return the previous, current, and next user 1261 * @throws com.liferay.portal.NoSuchUserException if a user with the primary key could not be found 1262 * @throws SystemException if a system exception occurred 1263 */ 1264 public com.liferay.portal.model.User[] findByC_CD_MD_PrevAndNext( 1265 long userId, long companyId, java.util.Date createDate, 1266 java.util.Date modifiedDate, 1267 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1268 throws com.liferay.portal.NoSuchUserException, 1269 com.liferay.portal.kernel.exception.SystemException; 1270 1271 /** 1272 * Returns all the users. 1273 * 1274 * @return the users 1275 * @throws SystemException if a system exception occurred 1276 */ 1277 public java.util.List<com.liferay.portal.model.User> findAll() 1278 throws com.liferay.portal.kernel.exception.SystemException; 1279 1280 /** 1281 * Returns a range of all the users. 1282 * 1283 * <p> 1284 * 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. 1285 * </p> 1286 * 1287 * @param start the lower bound of the range of users 1288 * @param end the upper bound of the range of users (not inclusive) 1289 * @return the range of users 1290 * @throws SystemException if a system exception occurred 1291 */ 1292 public java.util.List<com.liferay.portal.model.User> findAll(int start, 1293 int end) throws com.liferay.portal.kernel.exception.SystemException; 1294 1295 /** 1296 * Returns an ordered range of all the users. 1297 * 1298 * <p> 1299 * 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. 1300 * </p> 1301 * 1302 * @param start the lower bound of the range of users 1303 * @param end the upper bound of the range of users (not inclusive) 1304 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1305 * @return the ordered range of users 1306 * @throws SystemException if a system exception occurred 1307 */ 1308 public java.util.List<com.liferay.portal.model.User> findAll(int start, 1309 int end, 1310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1311 throws com.liferay.portal.kernel.exception.SystemException; 1312 1313 /** 1314 * Removes all the users where uuid = ? from the database. 1315 * 1316 * @param uuid the uuid 1317 * @throws SystemException if a system exception occurred 1318 */ 1319 public void removeByUuid(java.lang.String uuid) 1320 throws com.liferay.portal.kernel.exception.SystemException; 1321 1322 /** 1323 * Removes all the users where companyId = ? from the database. 1324 * 1325 * @param companyId the company ID 1326 * @throws SystemException if a system exception occurred 1327 */ 1328 public void removeByCompanyId(long companyId) 1329 throws com.liferay.portal.kernel.exception.SystemException; 1330 1331 /** 1332 * Removes the user where contactId = ? from the database. 1333 * 1334 * @param contactId the contact ID 1335 * @return the user that was removed 1336 * @throws SystemException if a system exception occurred 1337 */ 1338 public com.liferay.portal.model.User removeByContactId(long contactId) 1339 throws com.liferay.portal.NoSuchUserException, 1340 com.liferay.portal.kernel.exception.SystemException; 1341 1342 /** 1343 * Removes all the users where emailAddress = ? from the database. 1344 * 1345 * @param emailAddress the email address 1346 * @throws SystemException if a system exception occurred 1347 */ 1348 public void removeByEmailAddress(java.lang.String emailAddress) 1349 throws com.liferay.portal.kernel.exception.SystemException; 1350 1351 /** 1352 * Removes the user where portraitId = ? from the database. 1353 * 1354 * @param portraitId the portrait ID 1355 * @return the user that was removed 1356 * @throws SystemException if a system exception occurred 1357 */ 1358 public com.liferay.portal.model.User removeByPortraitId(long portraitId) 1359 throws com.liferay.portal.NoSuchUserException, 1360 com.liferay.portal.kernel.exception.SystemException; 1361 1362 /** 1363 * Removes the user where companyId = ? and userId = ? from the database. 1364 * 1365 * @param companyId the company ID 1366 * @param userId the user ID 1367 * @return the user that was removed 1368 * @throws SystemException if a system exception occurred 1369 */ 1370 public com.liferay.portal.model.User removeByC_U(long companyId, long userId) 1371 throws com.liferay.portal.NoSuchUserException, 1372 com.liferay.portal.kernel.exception.SystemException; 1373 1374 /** 1375 * Removes all the users where companyId = ? and createDate = ? from the database. 1376 * 1377 * @param companyId the company ID 1378 * @param createDate the create date 1379 * @throws SystemException if a system exception occurred 1380 */ 1381 public void removeByC_CD(long companyId, java.util.Date createDate) 1382 throws com.liferay.portal.kernel.exception.SystemException; 1383 1384 /** 1385 * Removes all the users where companyId = ? and modifiedDate = ? from the database. 1386 * 1387 * @param companyId the company ID 1388 * @param modifiedDate the modified date 1389 * @throws SystemException if a system exception occurred 1390 */ 1391 public void removeByC_MD(long companyId, java.util.Date modifiedDate) 1392 throws com.liferay.portal.kernel.exception.SystemException; 1393 1394 /** 1395 * Removes the user where companyId = ? and defaultUser = ? from the database. 1396 * 1397 * @param companyId the company ID 1398 * @param defaultUser the default user 1399 * @return the user that was removed 1400 * @throws SystemException if a system exception occurred 1401 */ 1402 public com.liferay.portal.model.User removeByC_DU(long companyId, 1403 boolean defaultUser) 1404 throws com.liferay.portal.NoSuchUserException, 1405 com.liferay.portal.kernel.exception.SystemException; 1406 1407 /** 1408 * Removes the user where companyId = ? and screenName = ? from the database. 1409 * 1410 * @param companyId the company ID 1411 * @param screenName the screen name 1412 * @return the user that was removed 1413 * @throws SystemException if a system exception occurred 1414 */ 1415 public com.liferay.portal.model.User removeByC_SN(long companyId, 1416 java.lang.String screenName) 1417 throws com.liferay.portal.NoSuchUserException, 1418 com.liferay.portal.kernel.exception.SystemException; 1419 1420 /** 1421 * Removes the user where companyId = ? and emailAddress = ? from the database. 1422 * 1423 * @param companyId the company ID 1424 * @param emailAddress the email address 1425 * @return the user that was removed 1426 * @throws SystemException if a system exception occurred 1427 */ 1428 public com.liferay.portal.model.User removeByC_EA(long companyId, 1429 java.lang.String emailAddress) 1430 throws com.liferay.portal.NoSuchUserException, 1431 com.liferay.portal.kernel.exception.SystemException; 1432 1433 /** 1434 * Removes the user where companyId = ? and facebookId = ? from the database. 1435 * 1436 * @param companyId the company ID 1437 * @param facebookId the facebook ID 1438 * @return the user that was removed 1439 * @throws SystemException if a system exception occurred 1440 */ 1441 public com.liferay.portal.model.User removeByC_FID(long companyId, 1442 long facebookId) 1443 throws com.liferay.portal.NoSuchUserException, 1444 com.liferay.portal.kernel.exception.SystemException; 1445 1446 /** 1447 * Removes the user where companyId = ? and openId = ? from the database. 1448 * 1449 * @param companyId the company ID 1450 * @param openId the open ID 1451 * @return the user that was removed 1452 * @throws SystemException if a system exception occurred 1453 */ 1454 public com.liferay.portal.model.User removeByC_O(long companyId, 1455 java.lang.String openId) 1456 throws com.liferay.portal.NoSuchUserException, 1457 com.liferay.portal.kernel.exception.SystemException; 1458 1459 /** 1460 * Removes all the users where companyId = ? and status = ? from the database. 1461 * 1462 * @param companyId the company ID 1463 * @param status the status 1464 * @throws SystemException if a system exception occurred 1465 */ 1466 public void removeByC_S(long companyId, int status) 1467 throws com.liferay.portal.kernel.exception.SystemException; 1468 1469 /** 1470 * Removes all the users where companyId = ? and createDate = ? and modifiedDate = ? from the database. 1471 * 1472 * @param companyId the company ID 1473 * @param createDate the create date 1474 * @param modifiedDate the modified date 1475 * @throws SystemException if a system exception occurred 1476 */ 1477 public void removeByC_CD_MD(long companyId, java.util.Date createDate, 1478 java.util.Date modifiedDate) 1479 throws com.liferay.portal.kernel.exception.SystemException; 1480 1481 /** 1482 * Removes all the users from the database. 1483 * 1484 * @throws SystemException if a system exception occurred 1485 */ 1486 public void removeAll() 1487 throws com.liferay.portal.kernel.exception.SystemException; 1488 1489 /** 1490 * Returns the number of users where uuid = ?. 1491 * 1492 * @param uuid the uuid 1493 * @return the number of matching users 1494 * @throws SystemException if a system exception occurred 1495 */ 1496 public int countByUuid(java.lang.String uuid) 1497 throws com.liferay.portal.kernel.exception.SystemException; 1498 1499 /** 1500 * Returns the number of users where companyId = ?. 1501 * 1502 * @param companyId the company ID 1503 * @return the number of matching users 1504 * @throws SystemException if a system exception occurred 1505 */ 1506 public int countByCompanyId(long companyId) 1507 throws com.liferay.portal.kernel.exception.SystemException; 1508 1509 /** 1510 * Returns the number of users where contactId = ?. 1511 * 1512 * @param contactId the contact ID 1513 * @return the number of matching users 1514 * @throws SystemException if a system exception occurred 1515 */ 1516 public int countByContactId(long contactId) 1517 throws com.liferay.portal.kernel.exception.SystemException; 1518 1519 /** 1520 * Returns the number of users where emailAddress = ?. 1521 * 1522 * @param emailAddress the email address 1523 * @return the number of matching users 1524 * @throws SystemException if a system exception occurred 1525 */ 1526 public int countByEmailAddress(java.lang.String emailAddress) 1527 throws com.liferay.portal.kernel.exception.SystemException; 1528 1529 /** 1530 * Returns the number of users where portraitId = ?. 1531 * 1532 * @param portraitId the portrait ID 1533 * @return the number of matching users 1534 * @throws SystemException if a system exception occurred 1535 */ 1536 public int countByPortraitId(long portraitId) 1537 throws com.liferay.portal.kernel.exception.SystemException; 1538 1539 /** 1540 * Returns the number of users where companyId = ? and userId = ?. 1541 * 1542 * @param companyId the company ID 1543 * @param userId the user ID 1544 * @return the number of matching users 1545 * @throws SystemException if a system exception occurred 1546 */ 1547 public int countByC_U(long companyId, long userId) 1548 throws com.liferay.portal.kernel.exception.SystemException; 1549 1550 /** 1551 * Returns the number of users where companyId = ? and createDate = ?. 1552 * 1553 * @param companyId the company ID 1554 * @param createDate the create date 1555 * @return the number of matching users 1556 * @throws SystemException if a system exception occurred 1557 */ 1558 public int countByC_CD(long companyId, java.util.Date createDate) 1559 throws com.liferay.portal.kernel.exception.SystemException; 1560 1561 /** 1562 * Returns the number of users where companyId = ? and modifiedDate = ?. 1563 * 1564 * @param companyId the company ID 1565 * @param modifiedDate the modified date 1566 * @return the number of matching users 1567 * @throws SystemException if a system exception occurred 1568 */ 1569 public int countByC_MD(long companyId, java.util.Date modifiedDate) 1570 throws com.liferay.portal.kernel.exception.SystemException; 1571 1572 /** 1573 * Returns the number of users where companyId = ? and defaultUser = ?. 1574 * 1575 * @param companyId the company ID 1576 * @param defaultUser the default user 1577 * @return the number of matching users 1578 * @throws SystemException if a system exception occurred 1579 */ 1580 public int countByC_DU(long companyId, boolean defaultUser) 1581 throws com.liferay.portal.kernel.exception.SystemException; 1582 1583 /** 1584 * Returns the number of users where companyId = ? and screenName = ?. 1585 * 1586 * @param companyId the company ID 1587 * @param screenName the screen name 1588 * @return the number of matching users 1589 * @throws SystemException if a system exception occurred 1590 */ 1591 public int countByC_SN(long companyId, java.lang.String screenName) 1592 throws com.liferay.portal.kernel.exception.SystemException; 1593 1594 /** 1595 * Returns the number of users where companyId = ? and emailAddress = ?. 1596 * 1597 * @param companyId the company ID 1598 * @param emailAddress the email address 1599 * @return the number of matching users 1600 * @throws SystemException if a system exception occurred 1601 */ 1602 public int countByC_EA(long companyId, java.lang.String emailAddress) 1603 throws com.liferay.portal.kernel.exception.SystemException; 1604 1605 /** 1606 * Returns the number of users where companyId = ? and facebookId = ?. 1607 * 1608 * @param companyId the company ID 1609 * @param facebookId the facebook ID 1610 * @return the number of matching users 1611 * @throws SystemException if a system exception occurred 1612 */ 1613 public int countByC_FID(long companyId, long facebookId) 1614 throws com.liferay.portal.kernel.exception.SystemException; 1615 1616 /** 1617 * Returns the number of users where companyId = ? and openId = ?. 1618 * 1619 * @param companyId the company ID 1620 * @param openId the open ID 1621 * @return the number of matching users 1622 * @throws SystemException if a system exception occurred 1623 */ 1624 public int countByC_O(long companyId, java.lang.String openId) 1625 throws com.liferay.portal.kernel.exception.SystemException; 1626 1627 /** 1628 * Returns the number of users where companyId = ? and status = ?. 1629 * 1630 * @param companyId the company ID 1631 * @param status the status 1632 * @return the number of matching users 1633 * @throws SystemException if a system exception occurred 1634 */ 1635 public int countByC_S(long companyId, int status) 1636 throws com.liferay.portal.kernel.exception.SystemException; 1637 1638 /** 1639 * Returns the number of users where companyId = ? and createDate = ? and modifiedDate = ?. 1640 * 1641 * @param companyId the company ID 1642 * @param createDate the create date 1643 * @param modifiedDate the modified date 1644 * @return the number of matching users 1645 * @throws SystemException if a system exception occurred 1646 */ 1647 public int countByC_CD_MD(long companyId, java.util.Date createDate, 1648 java.util.Date modifiedDate) 1649 throws com.liferay.portal.kernel.exception.SystemException; 1650 1651 /** 1652 * Returns the number of users. 1653 * 1654 * @return the number of users 1655 * @throws SystemException if a system exception occurred 1656 */ 1657 public int countAll() 1658 throws com.liferay.portal.kernel.exception.SystemException; 1659 1660 /** 1661 * Returns all the groups associated with the user. 1662 * 1663 * @param pk the primary key of the user 1664 * @return the groups associated with the user 1665 * @throws SystemException if a system exception occurred 1666 */ 1667 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk) 1668 throws com.liferay.portal.kernel.exception.SystemException; 1669 1670 /** 1671 * Returns a range of all the groups associated with the user. 1672 * 1673 * <p> 1674 * 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. 1675 * </p> 1676 * 1677 * @param pk the primary key of the user 1678 * @param start the lower bound of the range of users 1679 * @param end the upper bound of the range of users (not inclusive) 1680 * @return the range of groups associated with the user 1681 * @throws SystemException if a system exception occurred 1682 */ 1683 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk, 1684 int start, int end) 1685 throws com.liferay.portal.kernel.exception.SystemException; 1686 1687 /** 1688 * Returns an ordered range of all the groups associated with the user. 1689 * 1690 * <p> 1691 * 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. 1692 * </p> 1693 * 1694 * @param pk the primary key of the user 1695 * @param start the lower bound of the range of users 1696 * @param end the upper bound of the range of users (not inclusive) 1697 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1698 * @return the ordered range of groups associated with the user 1699 * @throws SystemException if a system exception occurred 1700 */ 1701 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk, 1702 int start, int end, 1703 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1704 throws com.liferay.portal.kernel.exception.SystemException; 1705 1706 /** 1707 * Returns the number of groups associated with the user. 1708 * 1709 * @param pk the primary key of the user 1710 * @return the number of groups associated with the user 1711 * @throws SystemException if a system exception occurred 1712 */ 1713 public int getGroupsSize(long pk) 1714 throws com.liferay.portal.kernel.exception.SystemException; 1715 1716 /** 1717 * Returns <code>true</code> if the group is associated with the user. 1718 * 1719 * @param pk the primary key of the user 1720 * @param groupPK the primary key of the group 1721 * @return <code>true</code> if the group is associated with the user; <code>false</code> otherwise 1722 * @throws SystemException if a system exception occurred 1723 */ 1724 public boolean containsGroup(long pk, long groupPK) 1725 throws com.liferay.portal.kernel.exception.SystemException; 1726 1727 /** 1728 * Returns <code>true</code> if the user has any groups associated with it. 1729 * 1730 * @param pk the primary key of the user to check for associations with groups 1731 * @return <code>true</code> if the user has any groups associated with it; <code>false</code> otherwise 1732 * @throws SystemException if a system exception occurred 1733 */ 1734 public boolean containsGroups(long pk) 1735 throws com.liferay.portal.kernel.exception.SystemException; 1736 1737 /** 1738 * Adds an association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1739 * 1740 * @param pk the primary key of the user 1741 * @param groupPK the primary key of the group 1742 * @throws SystemException if a system exception occurred 1743 */ 1744 public void addGroup(long pk, long groupPK) 1745 throws com.liferay.portal.kernel.exception.SystemException; 1746 1747 /** 1748 * Adds an association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1749 * 1750 * @param pk the primary key of the user 1751 * @param group the group 1752 * @throws SystemException if a system exception occurred 1753 */ 1754 public void addGroup(long pk, com.liferay.portal.model.Group group) 1755 throws com.liferay.portal.kernel.exception.SystemException; 1756 1757 /** 1758 * Adds an association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1759 * 1760 * @param pk the primary key of the user 1761 * @param groupPKs the primary keys of the groups 1762 * @throws SystemException if a system exception occurred 1763 */ 1764 public void addGroups(long pk, long[] groupPKs) 1765 throws com.liferay.portal.kernel.exception.SystemException; 1766 1767 /** 1768 * Adds an association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1769 * 1770 * @param pk the primary key of the user 1771 * @param groups the groups 1772 * @throws SystemException if a system exception occurred 1773 */ 1774 public void addGroups(long pk, 1775 java.util.List<com.liferay.portal.model.Group> groups) 1776 throws com.liferay.portal.kernel.exception.SystemException; 1777 1778 /** 1779 * Clears all associations between the user and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1780 * 1781 * @param pk the primary key of the user to clear the associated groups from 1782 * @throws SystemException if a system exception occurred 1783 */ 1784 public void clearGroups(long pk) 1785 throws com.liferay.portal.kernel.exception.SystemException; 1786 1787 /** 1788 * Removes the association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1789 * 1790 * @param pk the primary key of the user 1791 * @param groupPK the primary key of the group 1792 * @throws SystemException if a system exception occurred 1793 */ 1794 public void removeGroup(long pk, long groupPK) 1795 throws com.liferay.portal.kernel.exception.SystemException; 1796 1797 /** 1798 * Removes the association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1799 * 1800 * @param pk the primary key of the user 1801 * @param group the group 1802 * @throws SystemException if a system exception occurred 1803 */ 1804 public void removeGroup(long pk, com.liferay.portal.model.Group group) 1805 throws com.liferay.portal.kernel.exception.SystemException; 1806 1807 /** 1808 * Removes the association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1809 * 1810 * @param pk the primary key of the user 1811 * @param groupPKs the primary keys of the groups 1812 * @throws SystemException if a system exception occurred 1813 */ 1814 public void removeGroups(long pk, long[] groupPKs) 1815 throws com.liferay.portal.kernel.exception.SystemException; 1816 1817 /** 1818 * Removes the association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1819 * 1820 * @param pk the primary key of the user 1821 * @param groups the groups 1822 * @throws SystemException if a system exception occurred 1823 */ 1824 public void removeGroups(long pk, 1825 java.util.List<com.liferay.portal.model.Group> groups) 1826 throws com.liferay.portal.kernel.exception.SystemException; 1827 1828 /** 1829 * 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. 1830 * 1831 * @param pk the primary key of the user 1832 * @param groupPKs the primary keys of the groups to be associated with the user 1833 * @throws SystemException if a system exception occurred 1834 */ 1835 public void setGroups(long pk, long[] groupPKs) 1836 throws com.liferay.portal.kernel.exception.SystemException; 1837 1838 /** 1839 * 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. 1840 * 1841 * @param pk the primary key of the user 1842 * @param groups the groups to be associated with the user 1843 * @throws SystemException if a system exception occurred 1844 */ 1845 public void setGroups(long pk, 1846 java.util.List<com.liferay.portal.model.Group> groups) 1847 throws com.liferay.portal.kernel.exception.SystemException; 1848 1849 /** 1850 * Returns all the organizations associated with the user. 1851 * 1852 * @param pk the primary key of the user 1853 * @return the organizations associated with the user 1854 * @throws SystemException if a system exception occurred 1855 */ 1856 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 1857 long pk) throws com.liferay.portal.kernel.exception.SystemException; 1858 1859 /** 1860 * Returns a range of all the organizations associated with the user. 1861 * 1862 * <p> 1863 * 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. 1864 * </p> 1865 * 1866 * @param pk the primary key of the user 1867 * @param start the lower bound of the range of users 1868 * @param end the upper bound of the range of users (not inclusive) 1869 * @return the range of organizations associated with the user 1870 * @throws SystemException if a system exception occurred 1871 */ 1872 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 1873 long pk, int start, int end) 1874 throws com.liferay.portal.kernel.exception.SystemException; 1875 1876 /** 1877 * Returns an ordered range of all the organizations associated with the user. 1878 * 1879 * <p> 1880 * 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. 1881 * </p> 1882 * 1883 * @param pk the primary key of the user 1884 * @param start the lower bound of the range of users 1885 * @param end the upper bound of the range of users (not inclusive) 1886 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1887 * @return the ordered range of organizations associated with the user 1888 * @throws SystemException if a system exception occurred 1889 */ 1890 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 1891 long pk, int start, int end, 1892 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1893 throws com.liferay.portal.kernel.exception.SystemException; 1894 1895 /** 1896 * Returns the number of organizations associated with the user. 1897 * 1898 * @param pk the primary key of the user 1899 * @return the number of organizations associated with the user 1900 * @throws SystemException if a system exception occurred 1901 */ 1902 public int getOrganizationsSize(long pk) 1903 throws com.liferay.portal.kernel.exception.SystemException; 1904 1905 /** 1906 * Returns <code>true</code> if the organization is associated with the user. 1907 * 1908 * @param pk the primary key of the user 1909 * @param organizationPK the primary key of the organization 1910 * @return <code>true</code> if the organization is associated with the user; <code>false</code> otherwise 1911 * @throws SystemException if a system exception occurred 1912 */ 1913 public boolean containsOrganization(long pk, long organizationPK) 1914 throws com.liferay.portal.kernel.exception.SystemException; 1915 1916 /** 1917 * Returns <code>true</code> if the user has any organizations associated with it. 1918 * 1919 * @param pk the primary key of the user to check for associations with organizations 1920 * @return <code>true</code> if the user has any organizations associated with it; <code>false</code> otherwise 1921 * @throws SystemException if a system exception occurred 1922 */ 1923 public boolean containsOrganizations(long pk) 1924 throws com.liferay.portal.kernel.exception.SystemException; 1925 1926 /** 1927 * Adds an association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1928 * 1929 * @param pk the primary key of the user 1930 * @param organizationPK the primary key of the organization 1931 * @throws SystemException if a system exception occurred 1932 */ 1933 public void addOrganization(long pk, long organizationPK) 1934 throws com.liferay.portal.kernel.exception.SystemException; 1935 1936 /** 1937 * Adds an association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1938 * 1939 * @param pk the primary key of the user 1940 * @param organization the organization 1941 * @throws SystemException if a system exception occurred 1942 */ 1943 public void addOrganization(long pk, 1944 com.liferay.portal.model.Organization organization) 1945 throws com.liferay.portal.kernel.exception.SystemException; 1946 1947 /** 1948 * Adds an association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1949 * 1950 * @param pk the primary key of the user 1951 * @param organizationPKs the primary keys of the organizations 1952 * @throws SystemException if a system exception occurred 1953 */ 1954 public void addOrganizations(long pk, long[] organizationPKs) 1955 throws com.liferay.portal.kernel.exception.SystemException; 1956 1957 /** 1958 * Adds an association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1959 * 1960 * @param pk the primary key of the user 1961 * @param organizations the organizations 1962 * @throws SystemException if a system exception occurred 1963 */ 1964 public void addOrganizations(long pk, 1965 java.util.List<com.liferay.portal.model.Organization> organizations) 1966 throws com.liferay.portal.kernel.exception.SystemException; 1967 1968 /** 1969 * Clears all associations between the user and its organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1970 * 1971 * @param pk the primary key of the user to clear the associated organizations from 1972 * @throws SystemException if a system exception occurred 1973 */ 1974 public void clearOrganizations(long pk) 1975 throws com.liferay.portal.kernel.exception.SystemException; 1976 1977 /** 1978 * Removes the association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1979 * 1980 * @param pk the primary key of the user 1981 * @param organizationPK the primary key of the organization 1982 * @throws SystemException if a system exception occurred 1983 */ 1984 public void removeOrganization(long pk, long organizationPK) 1985 throws com.liferay.portal.kernel.exception.SystemException; 1986 1987 /** 1988 * Removes the association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1989 * 1990 * @param pk the primary key of the user 1991 * @param organization the organization 1992 * @throws SystemException if a system exception occurred 1993 */ 1994 public void removeOrganization(long pk, 1995 com.liferay.portal.model.Organization organization) 1996 throws com.liferay.portal.kernel.exception.SystemException; 1997 1998 /** 1999 * Removes the association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2000 * 2001 * @param pk the primary key of the user 2002 * @param organizationPKs the primary keys of the organizations 2003 * @throws SystemException if a system exception occurred 2004 */ 2005 public void removeOrganizations(long pk, long[] organizationPKs) 2006 throws com.liferay.portal.kernel.exception.SystemException; 2007 2008 /** 2009 * Removes the association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2010 * 2011 * @param pk the primary key of the user 2012 * @param organizations the organizations 2013 * @throws SystemException if a system exception occurred 2014 */ 2015 public void removeOrganizations(long pk, 2016 java.util.List<com.liferay.portal.model.Organization> organizations) 2017 throws com.liferay.portal.kernel.exception.SystemException; 2018 2019 /** 2020 * 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. 2021 * 2022 * @param pk the primary key of the user 2023 * @param organizationPKs the primary keys of the organizations to be associated with the user 2024 * @throws SystemException if a system exception occurred 2025 */ 2026 public void setOrganizations(long pk, long[] organizationPKs) 2027 throws com.liferay.portal.kernel.exception.SystemException; 2028 2029 /** 2030 * 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. 2031 * 2032 * @param pk the primary key of the user 2033 * @param organizations the organizations to be associated with the user 2034 * @throws SystemException if a system exception occurred 2035 */ 2036 public void setOrganizations(long pk, 2037 java.util.List<com.liferay.portal.model.Organization> organizations) 2038 throws com.liferay.portal.kernel.exception.SystemException; 2039 2040 /** 2041 * Returns all the permissions associated with the user. 2042 * 2043 * @param pk the primary key of the user 2044 * @return the permissions associated with the user 2045 * @throws SystemException if a system exception occurred 2046 */ 2047 public java.util.List<com.liferay.portal.model.Permission> getPermissions( 2048 long pk) throws com.liferay.portal.kernel.exception.SystemException; 2049 2050 /** 2051 * Returns a range of all the permissions associated with the user. 2052 * 2053 * <p> 2054 * 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. 2055 * </p> 2056 * 2057 * @param pk the primary key of the user 2058 * @param start the lower bound of the range of users 2059 * @param end the upper bound of the range of users (not inclusive) 2060 * @return the range of permissions associated with the user 2061 * @throws SystemException if a system exception occurred 2062 */ 2063 public java.util.List<com.liferay.portal.model.Permission> getPermissions( 2064 long pk, int start, int end) 2065 throws com.liferay.portal.kernel.exception.SystemException; 2066 2067 /** 2068 * Returns an ordered range of all the permissions associated with the user. 2069 * 2070 * <p> 2071 * 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. 2072 * </p> 2073 * 2074 * @param pk the primary key of the user 2075 * @param start the lower bound of the range of users 2076 * @param end the upper bound of the range of users (not inclusive) 2077 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2078 * @return the ordered range of permissions associated with the user 2079 * @throws SystemException if a system exception occurred 2080 */ 2081 public java.util.List<com.liferay.portal.model.Permission> getPermissions( 2082 long pk, int start, int end, 2083 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2084 throws com.liferay.portal.kernel.exception.SystemException; 2085 2086 /** 2087 * Returns the number of permissions associated with the user. 2088 * 2089 * @param pk the primary key of the user 2090 * @return the number of permissions associated with the user 2091 * @throws SystemException if a system exception occurred 2092 */ 2093 public int getPermissionsSize(long pk) 2094 throws com.liferay.portal.kernel.exception.SystemException; 2095 2096 /** 2097 * Returns <code>true</code> if the permission is associated with the user. 2098 * 2099 * @param pk the primary key of the user 2100 * @param permissionPK the primary key of the permission 2101 * @return <code>true</code> if the permission is associated with the user; <code>false</code> otherwise 2102 * @throws SystemException if a system exception occurred 2103 */ 2104 public boolean containsPermission(long pk, long permissionPK) 2105 throws com.liferay.portal.kernel.exception.SystemException; 2106 2107 /** 2108 * Returns <code>true</code> if the user has any permissions associated with it. 2109 * 2110 * @param pk the primary key of the user to check for associations with permissions 2111 * @return <code>true</code> if the user has any permissions associated with it; <code>false</code> otherwise 2112 * @throws SystemException if a system exception occurred 2113 */ 2114 public boolean containsPermissions(long pk) 2115 throws com.liferay.portal.kernel.exception.SystemException; 2116 2117 /** 2118 * Adds an association between the user and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2119 * 2120 * @param pk the primary key of the user 2121 * @param permissionPK the primary key of the permission 2122 * @throws SystemException if a system exception occurred 2123 */ 2124 public void addPermission(long pk, long permissionPK) 2125 throws com.liferay.portal.kernel.exception.SystemException; 2126 2127 /** 2128 * Adds an association between the user and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2129 * 2130 * @param pk the primary key of the user 2131 * @param permission the permission 2132 * @throws SystemException if a system exception occurred 2133 */ 2134 public void addPermission(long pk, 2135 com.liferay.portal.model.Permission permission) 2136 throws com.liferay.portal.kernel.exception.SystemException; 2137 2138 /** 2139 * Adds an association between the user and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2140 * 2141 * @param pk the primary key of the user 2142 * @param permissionPKs the primary keys of the permissions 2143 * @throws SystemException if a system exception occurred 2144 */ 2145 public void addPermissions(long pk, long[] permissionPKs) 2146 throws com.liferay.portal.kernel.exception.SystemException; 2147 2148 /** 2149 * Adds an association between the user and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2150 * 2151 * @param pk the primary key of the user 2152 * @param permissions the permissions 2153 * @throws SystemException if a system exception occurred 2154 */ 2155 public void addPermissions(long pk, 2156 java.util.List<com.liferay.portal.model.Permission> permissions) 2157 throws com.liferay.portal.kernel.exception.SystemException; 2158 2159 /** 2160 * Clears all associations between the user and its permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2161 * 2162 * @param pk the primary key of the user to clear the associated permissions from 2163 * @throws SystemException if a system exception occurred 2164 */ 2165 public void clearPermissions(long pk) 2166 throws com.liferay.portal.kernel.exception.SystemException; 2167 2168 /** 2169 * Removes the association between the user and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2170 * 2171 * @param pk the primary key of the user 2172 * @param permissionPK the primary key of the permission 2173 * @throws SystemException if a system exception occurred 2174 */ 2175 public void removePermission(long pk, long permissionPK) 2176 throws com.liferay.portal.kernel.exception.SystemException; 2177 2178 /** 2179 * Removes the association between the user and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2180 * 2181 * @param pk the primary key of the user 2182 * @param permission the permission 2183 * @throws SystemException if a system exception occurred 2184 */ 2185 public void removePermission(long pk, 2186 com.liferay.portal.model.Permission permission) 2187 throws com.liferay.portal.kernel.exception.SystemException; 2188 2189 /** 2190 * Removes the association between the user and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2191 * 2192 * @param pk the primary key of the user 2193 * @param permissionPKs the primary keys of the permissions 2194 * @throws SystemException if a system exception occurred 2195 */ 2196 public void removePermissions(long pk, long[] permissionPKs) 2197 throws com.liferay.portal.kernel.exception.SystemException; 2198 2199 /** 2200 * Removes the association between the user and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2201 * 2202 * @param pk the primary key of the user 2203 * @param permissions the permissions 2204 * @throws SystemException if a system exception occurred 2205 */ 2206 public void removePermissions(long pk, 2207 java.util.List<com.liferay.portal.model.Permission> permissions) 2208 throws com.liferay.portal.kernel.exception.SystemException; 2209 2210 /** 2211 * 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. 2212 * 2213 * @param pk the primary key of the user 2214 * @param permissionPKs the primary keys of the permissions to be associated with the user 2215 * @throws SystemException if a system exception occurred 2216 */ 2217 public void setPermissions(long pk, long[] permissionPKs) 2218 throws com.liferay.portal.kernel.exception.SystemException; 2219 2220 /** 2221 * 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. 2222 * 2223 * @param pk the primary key of the user 2224 * @param permissions the permissions to be associated with the user 2225 * @throws SystemException if a system exception occurred 2226 */ 2227 public void setPermissions(long pk, 2228 java.util.List<com.liferay.portal.model.Permission> permissions) 2229 throws com.liferay.portal.kernel.exception.SystemException; 2230 2231 /** 2232 * Returns all the roles associated with the user. 2233 * 2234 * @param pk the primary key of the user 2235 * @return the roles associated with the user 2236 * @throws SystemException if a system exception occurred 2237 */ 2238 public java.util.List<com.liferay.portal.model.Role> getRoles(long pk) 2239 throws com.liferay.portal.kernel.exception.SystemException; 2240 2241 /** 2242 * Returns a range of all the roles associated with the user. 2243 * 2244 * <p> 2245 * 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. 2246 * </p> 2247 * 2248 * @param pk the primary key of the user 2249 * @param start the lower bound of the range of users 2250 * @param end the upper bound of the range of users (not inclusive) 2251 * @return the range of roles associated with the user 2252 * @throws SystemException if a system exception occurred 2253 */ 2254 public java.util.List<com.liferay.portal.model.Role> getRoles(long pk, 2255 int start, int end) 2256 throws com.liferay.portal.kernel.exception.SystemException; 2257 2258 /** 2259 * Returns an ordered range of all the roles associated with the user. 2260 * 2261 * <p> 2262 * 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. 2263 * </p> 2264 * 2265 * @param pk the primary key of the user 2266 * @param start the lower bound of the range of users 2267 * @param end the upper bound of the range of users (not inclusive) 2268 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2269 * @return the ordered range of roles associated with the user 2270 * @throws SystemException if a system exception occurred 2271 */ 2272 public java.util.List<com.liferay.portal.model.Role> getRoles(long pk, 2273 int start, int end, 2274 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2275 throws com.liferay.portal.kernel.exception.SystemException; 2276 2277 /** 2278 * Returns the number of roles associated with the user. 2279 * 2280 * @param pk the primary key of the user 2281 * @return the number of roles associated with the user 2282 * @throws SystemException if a system exception occurred 2283 */ 2284 public int getRolesSize(long pk) 2285 throws com.liferay.portal.kernel.exception.SystemException; 2286 2287 /** 2288 * Returns <code>true</code> if the role is associated with the user. 2289 * 2290 * @param pk the primary key of the user 2291 * @param rolePK the primary key of the role 2292 * @return <code>true</code> if the role is associated with the user; <code>false</code> otherwise 2293 * @throws SystemException if a system exception occurred 2294 */ 2295 public boolean containsRole(long pk, long rolePK) 2296 throws com.liferay.portal.kernel.exception.SystemException; 2297 2298 /** 2299 * Returns <code>true</code> if the user has any roles associated with it. 2300 * 2301 * @param pk the primary key of the user to check for associations with roles 2302 * @return <code>true</code> if the user has any roles associated with it; <code>false</code> otherwise 2303 * @throws SystemException if a system exception occurred 2304 */ 2305 public boolean containsRoles(long pk) 2306 throws com.liferay.portal.kernel.exception.SystemException; 2307 2308 /** 2309 * Adds an association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2310 * 2311 * @param pk the primary key of the user 2312 * @param rolePK the primary key of the role 2313 * @throws SystemException if a system exception occurred 2314 */ 2315 public void addRole(long pk, long rolePK) 2316 throws com.liferay.portal.kernel.exception.SystemException; 2317 2318 /** 2319 * Adds an association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2320 * 2321 * @param pk the primary key of the user 2322 * @param role the role 2323 * @throws SystemException if a system exception occurred 2324 */ 2325 public void addRole(long pk, com.liferay.portal.model.Role role) 2326 throws com.liferay.portal.kernel.exception.SystemException; 2327 2328 /** 2329 * Adds an association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2330 * 2331 * @param pk the primary key of the user 2332 * @param rolePKs the primary keys of the roles 2333 * @throws SystemException if a system exception occurred 2334 */ 2335 public void addRoles(long pk, long[] rolePKs) 2336 throws com.liferay.portal.kernel.exception.SystemException; 2337 2338 /** 2339 * Adds an association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2340 * 2341 * @param pk the primary key of the user 2342 * @param roles the roles 2343 * @throws SystemException if a system exception occurred 2344 */ 2345 public void addRoles(long pk, 2346 java.util.List<com.liferay.portal.model.Role> roles) 2347 throws com.liferay.portal.kernel.exception.SystemException; 2348 2349 /** 2350 * Clears all associations between the user and its roles. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2351 * 2352 * @param pk the primary key of the user to clear the associated roles from 2353 * @throws SystemException if a system exception occurred 2354 */ 2355 public void clearRoles(long pk) 2356 throws com.liferay.portal.kernel.exception.SystemException; 2357 2358 /** 2359 * Removes the association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2360 * 2361 * @param pk the primary key of the user 2362 * @param rolePK the primary key of the role 2363 * @throws SystemException if a system exception occurred 2364 */ 2365 public void removeRole(long pk, long rolePK) 2366 throws com.liferay.portal.kernel.exception.SystemException; 2367 2368 /** 2369 * Removes the association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2370 * 2371 * @param pk the primary key of the user 2372 * @param role the role 2373 * @throws SystemException if a system exception occurred 2374 */ 2375 public void removeRole(long pk, com.liferay.portal.model.Role role) 2376 throws com.liferay.portal.kernel.exception.SystemException; 2377 2378 /** 2379 * Removes the association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2380 * 2381 * @param pk the primary key of the user 2382 * @param rolePKs the primary keys of the roles 2383 * @throws SystemException if a system exception occurred 2384 */ 2385 public void removeRoles(long pk, long[] rolePKs) 2386 throws com.liferay.portal.kernel.exception.SystemException; 2387 2388 /** 2389 * Removes the association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2390 * 2391 * @param pk the primary key of the user 2392 * @param roles the roles 2393 * @throws SystemException if a system exception occurred 2394 */ 2395 public void removeRoles(long pk, 2396 java.util.List<com.liferay.portal.model.Role> roles) 2397 throws com.liferay.portal.kernel.exception.SystemException; 2398 2399 /** 2400 * 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. 2401 * 2402 * @param pk the primary key of the user 2403 * @param rolePKs the primary keys of the roles to be associated with the user 2404 * @throws SystemException if a system exception occurred 2405 */ 2406 public void setRoles(long pk, long[] rolePKs) 2407 throws com.liferay.portal.kernel.exception.SystemException; 2408 2409 /** 2410 * 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. 2411 * 2412 * @param pk the primary key of the user 2413 * @param roles the roles to be associated with the user 2414 * @throws SystemException if a system exception occurred 2415 */ 2416 public void setRoles(long pk, 2417 java.util.List<com.liferay.portal.model.Role> roles) 2418 throws com.liferay.portal.kernel.exception.SystemException; 2419 2420 /** 2421 * Returns all the teams associated with the user. 2422 * 2423 * @param pk the primary key of the user 2424 * @return the teams associated with the user 2425 * @throws SystemException if a system exception occurred 2426 */ 2427 public java.util.List<com.liferay.portal.model.Team> getTeams(long pk) 2428 throws com.liferay.portal.kernel.exception.SystemException; 2429 2430 /** 2431 * Returns a range of all the teams associated with the user. 2432 * 2433 * <p> 2434 * 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. 2435 * </p> 2436 * 2437 * @param pk the primary key of the user 2438 * @param start the lower bound of the range of users 2439 * @param end the upper bound of the range of users (not inclusive) 2440 * @return the range of teams associated with the user 2441 * @throws SystemException if a system exception occurred 2442 */ 2443 public java.util.List<com.liferay.portal.model.Team> getTeams(long pk, 2444 int start, int end) 2445 throws com.liferay.portal.kernel.exception.SystemException; 2446 2447 /** 2448 * Returns an ordered range of all the teams associated with the user. 2449 * 2450 * <p> 2451 * 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. 2452 * </p> 2453 * 2454 * @param pk the primary key of the user 2455 * @param start the lower bound of the range of users 2456 * @param end the upper bound of the range of users (not inclusive) 2457 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2458 * @return the ordered range of teams associated with the user 2459 * @throws SystemException if a system exception occurred 2460 */ 2461 public java.util.List<com.liferay.portal.model.Team> getTeams(long pk, 2462 int start, int end, 2463 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2464 throws com.liferay.portal.kernel.exception.SystemException; 2465 2466 /** 2467 * Returns the number of teams associated with the user. 2468 * 2469 * @param pk the primary key of the user 2470 * @return the number of teams associated with the user 2471 * @throws SystemException if a system exception occurred 2472 */ 2473 public int getTeamsSize(long pk) 2474 throws com.liferay.portal.kernel.exception.SystemException; 2475 2476 /** 2477 * Returns <code>true</code> if the team is associated with the user. 2478 * 2479 * @param pk the primary key of the user 2480 * @param teamPK the primary key of the team 2481 * @return <code>true</code> if the team is associated with the user; <code>false</code> otherwise 2482 * @throws SystemException if a system exception occurred 2483 */ 2484 public boolean containsTeam(long pk, long teamPK) 2485 throws com.liferay.portal.kernel.exception.SystemException; 2486 2487 /** 2488 * Returns <code>true</code> if the user has any teams associated with it. 2489 * 2490 * @param pk the primary key of the user to check for associations with teams 2491 * @return <code>true</code> if the user has any teams associated with it; <code>false</code> otherwise 2492 * @throws SystemException if a system exception occurred 2493 */ 2494 public boolean containsTeams(long pk) 2495 throws com.liferay.portal.kernel.exception.SystemException; 2496 2497 /** 2498 * Adds an association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2499 * 2500 * @param pk the primary key of the user 2501 * @param teamPK the primary key of the team 2502 * @throws SystemException if a system exception occurred 2503 */ 2504 public void addTeam(long pk, long teamPK) 2505 throws com.liferay.portal.kernel.exception.SystemException; 2506 2507 /** 2508 * Adds an association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2509 * 2510 * @param pk the primary key of the user 2511 * @param team the team 2512 * @throws SystemException if a system exception occurred 2513 */ 2514 public void addTeam(long pk, com.liferay.portal.model.Team team) 2515 throws com.liferay.portal.kernel.exception.SystemException; 2516 2517 /** 2518 * Adds an association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2519 * 2520 * @param pk the primary key of the user 2521 * @param teamPKs the primary keys of the teams 2522 * @throws SystemException if a system exception occurred 2523 */ 2524 public void addTeams(long pk, long[] teamPKs) 2525 throws com.liferay.portal.kernel.exception.SystemException; 2526 2527 /** 2528 * Adds an association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2529 * 2530 * @param pk the primary key of the user 2531 * @param teams the teams 2532 * @throws SystemException if a system exception occurred 2533 */ 2534 public void addTeams(long pk, 2535 java.util.List<com.liferay.portal.model.Team> teams) 2536 throws com.liferay.portal.kernel.exception.SystemException; 2537 2538 /** 2539 * Clears all associations between the user and its teams. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2540 * 2541 * @param pk the primary key of the user to clear the associated teams from 2542 * @throws SystemException if a system exception occurred 2543 */ 2544 public void clearTeams(long pk) 2545 throws com.liferay.portal.kernel.exception.SystemException; 2546 2547 /** 2548 * Removes the association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2549 * 2550 * @param pk the primary key of the user 2551 * @param teamPK the primary key of the team 2552 * @throws SystemException if a system exception occurred 2553 */ 2554 public void removeTeam(long pk, long teamPK) 2555 throws com.liferay.portal.kernel.exception.SystemException; 2556 2557 /** 2558 * Removes the association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2559 * 2560 * @param pk the primary key of the user 2561 * @param team the team 2562 * @throws SystemException if a system exception occurred 2563 */ 2564 public void removeTeam(long pk, com.liferay.portal.model.Team team) 2565 throws com.liferay.portal.kernel.exception.SystemException; 2566 2567 /** 2568 * Removes the association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2569 * 2570 * @param pk the primary key of the user 2571 * @param teamPKs the primary keys of the teams 2572 * @throws SystemException if a system exception occurred 2573 */ 2574 public void removeTeams(long pk, long[] teamPKs) 2575 throws com.liferay.portal.kernel.exception.SystemException; 2576 2577 /** 2578 * Removes the association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2579 * 2580 * @param pk the primary key of the user 2581 * @param teams the teams 2582 * @throws SystemException if a system exception occurred 2583 */ 2584 public void removeTeams(long pk, 2585 java.util.List<com.liferay.portal.model.Team> teams) 2586 throws com.liferay.portal.kernel.exception.SystemException; 2587 2588 /** 2589 * 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. 2590 * 2591 * @param pk the primary key of the user 2592 * @param teamPKs the primary keys of the teams to be associated with the user 2593 * @throws SystemException if a system exception occurred 2594 */ 2595 public void setTeams(long pk, long[] teamPKs) 2596 throws com.liferay.portal.kernel.exception.SystemException; 2597 2598 /** 2599 * 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. 2600 * 2601 * @param pk the primary key of the user 2602 * @param teams the teams to be associated with the user 2603 * @throws SystemException if a system exception occurred 2604 */ 2605 public void setTeams(long pk, 2606 java.util.List<com.liferay.portal.model.Team> teams) 2607 throws com.liferay.portal.kernel.exception.SystemException; 2608 2609 /** 2610 * Returns all the user groups associated with the user. 2611 * 2612 * @param pk the primary key of the user 2613 * @return the user groups associated with the user 2614 * @throws SystemException if a system exception occurred 2615 */ 2616 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups( 2617 long pk) throws com.liferay.portal.kernel.exception.SystemException; 2618 2619 /** 2620 * Returns a range of all the user groups associated with the user. 2621 * 2622 * <p> 2623 * 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. 2624 * </p> 2625 * 2626 * @param pk the primary key of the user 2627 * @param start the lower bound of the range of users 2628 * @param end the upper bound of the range of users (not inclusive) 2629 * @return the range of user groups associated with the user 2630 * @throws SystemException if a system exception occurred 2631 */ 2632 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups( 2633 long pk, int start, int end) 2634 throws com.liferay.portal.kernel.exception.SystemException; 2635 2636 /** 2637 * Returns an ordered range of all the user groups associated with the user. 2638 * 2639 * <p> 2640 * 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. 2641 * </p> 2642 * 2643 * @param pk the primary key of the user 2644 * @param start the lower bound of the range of users 2645 * @param end the upper bound of the range of users (not inclusive) 2646 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2647 * @return the ordered range of user groups associated with the user 2648 * @throws SystemException if a system exception occurred 2649 */ 2650 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups( 2651 long pk, int start, int end, 2652 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2653 throws com.liferay.portal.kernel.exception.SystemException; 2654 2655 /** 2656 * Returns the number of user groups associated with the user. 2657 * 2658 * @param pk the primary key of the user 2659 * @return the number of user groups associated with the user 2660 * @throws SystemException if a system exception occurred 2661 */ 2662 public int getUserGroupsSize(long pk) 2663 throws com.liferay.portal.kernel.exception.SystemException; 2664 2665 /** 2666 * Returns <code>true</code> if the user group is associated with the user. 2667 * 2668 * @param pk the primary key of the user 2669 * @param userGroupPK the primary key of the user group 2670 * @return <code>true</code> if the user group is associated with the user; <code>false</code> otherwise 2671 * @throws SystemException if a system exception occurred 2672 */ 2673 public boolean containsUserGroup(long pk, long userGroupPK) 2674 throws com.liferay.portal.kernel.exception.SystemException; 2675 2676 /** 2677 * Returns <code>true</code> if the user has any user groups associated with it. 2678 * 2679 * @param pk the primary key of the user to check for associations with user groups 2680 * @return <code>true</code> if the user has any user groups associated with it; <code>false</code> otherwise 2681 * @throws SystemException if a system exception occurred 2682 */ 2683 public boolean containsUserGroups(long pk) 2684 throws com.liferay.portal.kernel.exception.SystemException; 2685 2686 /** 2687 * Adds an association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2688 * 2689 * @param pk the primary key of the user 2690 * @param userGroupPK the primary key of the user group 2691 * @throws SystemException if a system exception occurred 2692 */ 2693 public void addUserGroup(long pk, long userGroupPK) 2694 throws com.liferay.portal.kernel.exception.SystemException; 2695 2696 /** 2697 * Adds an association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2698 * 2699 * @param pk the primary key of the user 2700 * @param userGroup the user group 2701 * @throws SystemException if a system exception occurred 2702 */ 2703 public void addUserGroup(long pk, 2704 com.liferay.portal.model.UserGroup userGroup) 2705 throws com.liferay.portal.kernel.exception.SystemException; 2706 2707 /** 2708 * Adds an association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2709 * 2710 * @param pk the primary key of the user 2711 * @param userGroupPKs the primary keys of the user groups 2712 * @throws SystemException if a system exception occurred 2713 */ 2714 public void addUserGroups(long pk, long[] userGroupPKs) 2715 throws com.liferay.portal.kernel.exception.SystemException; 2716 2717 /** 2718 * Adds an association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2719 * 2720 * @param pk the primary key of the user 2721 * @param userGroups the user groups 2722 * @throws SystemException if a system exception occurred 2723 */ 2724 public void addUserGroups(long pk, 2725 java.util.List<com.liferay.portal.model.UserGroup> userGroups) 2726 throws com.liferay.portal.kernel.exception.SystemException; 2727 2728 /** 2729 * Clears all associations between the user and its user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2730 * 2731 * @param pk the primary key of the user to clear the associated user groups from 2732 * @throws SystemException if a system exception occurred 2733 */ 2734 public void clearUserGroups(long pk) 2735 throws com.liferay.portal.kernel.exception.SystemException; 2736 2737 /** 2738 * Removes the association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2739 * 2740 * @param pk the primary key of the user 2741 * @param userGroupPK the primary key of the user group 2742 * @throws SystemException if a system exception occurred 2743 */ 2744 public void removeUserGroup(long pk, long userGroupPK) 2745 throws com.liferay.portal.kernel.exception.SystemException; 2746 2747 /** 2748 * Removes the association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2749 * 2750 * @param pk the primary key of the user 2751 * @param userGroup the user group 2752 * @throws SystemException if a system exception occurred 2753 */ 2754 public void removeUserGroup(long pk, 2755 com.liferay.portal.model.UserGroup userGroup) 2756 throws com.liferay.portal.kernel.exception.SystemException; 2757 2758 /** 2759 * Removes the association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2760 * 2761 * @param pk the primary key of the user 2762 * @param userGroupPKs the primary keys of the user groups 2763 * @throws SystemException if a system exception occurred 2764 */ 2765 public void removeUserGroups(long pk, long[] userGroupPKs) 2766 throws com.liferay.portal.kernel.exception.SystemException; 2767 2768 /** 2769 * Removes the association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2770 * 2771 * @param pk the primary key of the user 2772 * @param userGroups the user groups 2773 * @throws SystemException if a system exception occurred 2774 */ 2775 public void removeUserGroups(long pk, 2776 java.util.List<com.liferay.portal.model.UserGroup> userGroups) 2777 throws com.liferay.portal.kernel.exception.SystemException; 2778 2779 /** 2780 * 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. 2781 * 2782 * @param pk the primary key of the user 2783 * @param userGroupPKs the primary keys of the user groups to be associated with the user 2784 * @throws SystemException if a system exception occurred 2785 */ 2786 public void setUserGroups(long pk, long[] userGroupPKs) 2787 throws com.liferay.portal.kernel.exception.SystemException; 2788 2789 /** 2790 * 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. 2791 * 2792 * @param pk the primary key of the user 2793 * @param userGroups the user groups to be associated with the user 2794 * @throws SystemException if a system exception occurred 2795 */ 2796 public void setUserGroups(long pk, 2797 java.util.List<com.liferay.portal.model.UserGroup> userGroups) 2798 throws com.liferay.portal.kernel.exception.SystemException; 2799 }