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