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