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