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