001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.model.Organization; 018 019 /** 020 * The persistence interface for the organization service. 021 * 022 * <p> 023 * Caching information and settings can be found in <code>portal.properties</code> 024 * </p> 025 * 026 * @author Brian Wing Shun Chan 027 * @see OrganizationPersistenceImpl 028 * @see OrganizationUtil 029 * @generated 030 */ 031 public interface OrganizationPersistence extends BasePersistence<Organization> { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * Never modify or reference this interface directly. Always use {@link OrganizationUtil} to access the organization persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 036 */ 037 038 /** 039 * Caches the organization in the entity cache if it is enabled. 040 * 041 * @param organization the organization 042 */ 043 public void cacheResult(com.liferay.portal.model.Organization organization); 044 045 /** 046 * Caches the organizations in the entity cache if it is enabled. 047 * 048 * @param organizations the organizations 049 */ 050 public void cacheResult( 051 java.util.List<com.liferay.portal.model.Organization> organizations); 052 053 /** 054 * Creates a new organization with the primary key. Does not add the organization to the database. 055 * 056 * @param organizationId the primary key for the new organization 057 * @return the new organization 058 */ 059 public com.liferay.portal.model.Organization create(long organizationId); 060 061 /** 062 * Removes the organization with the primary key from the database. Also notifies the appropriate model listeners. 063 * 064 * @param organizationId the primary key of the organization 065 * @return the organization that was removed 066 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 067 * @throws SystemException if a system exception occurred 068 */ 069 public com.liferay.portal.model.Organization remove(long organizationId) 070 throws com.liferay.portal.NoSuchOrganizationException, 071 com.liferay.portal.kernel.exception.SystemException; 072 073 public com.liferay.portal.model.Organization updateImpl( 074 com.liferay.portal.model.Organization organization, boolean merge) 075 throws com.liferay.portal.kernel.exception.SystemException; 076 077 /** 078 * Returns the organization with the primary key or throws a {@link com.liferay.portal.NoSuchOrganizationException} if it could not be found. 079 * 080 * @param organizationId the primary key of the organization 081 * @return the organization 082 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 083 * @throws SystemException if a system exception occurred 084 */ 085 public com.liferay.portal.model.Organization findByPrimaryKey( 086 long organizationId) 087 throws com.liferay.portal.NoSuchOrganizationException, 088 com.liferay.portal.kernel.exception.SystemException; 089 090 /** 091 * Returns the organization with the primary key or returns <code>null</code> if it could not be found. 092 * 093 * @param organizationId the primary key of the organization 094 * @return the organization, or <code>null</code> if a organization with the primary key could not be found 095 * @throws SystemException if a system exception occurred 096 */ 097 public com.liferay.portal.model.Organization fetchByPrimaryKey( 098 long organizationId) 099 throws com.liferay.portal.kernel.exception.SystemException; 100 101 /** 102 * Returns all the organizations where companyId = ?. 103 * 104 * @param companyId the company ID 105 * @return the matching organizations 106 * @throws SystemException if a system exception occurred 107 */ 108 public java.util.List<com.liferay.portal.model.Organization> findByCompanyId( 109 long companyId) 110 throws com.liferay.portal.kernel.exception.SystemException; 111 112 /** 113 * Returns a range of all the organizations where companyId = ?. 114 * 115 * <p> 116 * 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. 117 * </p> 118 * 119 * @param companyId the company ID 120 * @param start the lower bound of the range of organizations 121 * @param end the upper bound of the range of organizations (not inclusive) 122 * @return the range of matching organizations 123 * @throws SystemException if a system exception occurred 124 */ 125 public java.util.List<com.liferay.portal.model.Organization> findByCompanyId( 126 long companyId, int start, int end) 127 throws com.liferay.portal.kernel.exception.SystemException; 128 129 /** 130 * Returns an ordered range of all the organizations where companyId = ?. 131 * 132 * <p> 133 * 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. 134 * </p> 135 * 136 * @param companyId the company ID 137 * @param start the lower bound of the range of organizations 138 * @param end the upper bound of the range of organizations (not inclusive) 139 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 140 * @return the ordered range of matching organizations 141 * @throws SystemException if a system exception occurred 142 */ 143 public java.util.List<com.liferay.portal.model.Organization> findByCompanyId( 144 long companyId, int start, int end, 145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 146 throws com.liferay.portal.kernel.exception.SystemException; 147 148 /** 149 * Returns the first organization in the ordered set where companyId = ?. 150 * 151 * @param companyId the company ID 152 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 153 * @return the first matching organization 154 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 155 * @throws SystemException if a system exception occurred 156 */ 157 public com.liferay.portal.model.Organization findByCompanyId_First( 158 long companyId, 159 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 160 throws com.liferay.portal.NoSuchOrganizationException, 161 com.liferay.portal.kernel.exception.SystemException; 162 163 /** 164 * Returns the first organization in the ordered set where companyId = ?. 165 * 166 * @param companyId the company ID 167 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 168 * @return the first matching organization, or <code>null</code> if a matching organization could not be found 169 * @throws SystemException if a system exception occurred 170 */ 171 public com.liferay.portal.model.Organization fetchByCompanyId_First( 172 long companyId, 173 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 174 throws com.liferay.portal.kernel.exception.SystemException; 175 176 /** 177 * Returns the last organization in the ordered set where companyId = ?. 178 * 179 * @param companyId the company ID 180 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 181 * @return the last matching organization 182 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 183 * @throws SystemException if a system exception occurred 184 */ 185 public com.liferay.portal.model.Organization findByCompanyId_Last( 186 long companyId, 187 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 188 throws com.liferay.portal.NoSuchOrganizationException, 189 com.liferay.portal.kernel.exception.SystemException; 190 191 /** 192 * Returns the last organization in the ordered set where companyId = ?. 193 * 194 * @param companyId the company ID 195 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 196 * @return the last matching organization, or <code>null</code> if a matching organization could not be found 197 * @throws SystemException if a system exception occurred 198 */ 199 public com.liferay.portal.model.Organization fetchByCompanyId_Last( 200 long companyId, 201 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 202 throws com.liferay.portal.kernel.exception.SystemException; 203 204 /** 205 * Returns the organizations before and after the current organization in the ordered set where companyId = ?. 206 * 207 * @param organizationId the primary key of the current organization 208 * @param companyId the company ID 209 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 210 * @return the previous, current, and next organization 211 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 212 * @throws SystemException if a system exception occurred 213 */ 214 public com.liferay.portal.model.Organization[] findByCompanyId_PrevAndNext( 215 long organizationId, long companyId, 216 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 217 throws com.liferay.portal.NoSuchOrganizationException, 218 com.liferay.portal.kernel.exception.SystemException; 219 220 /** 221 * Returns all the organizations that the user has permission to view where companyId = ?. 222 * 223 * @param companyId the company ID 224 * @return the matching organizations that the user has permission to view 225 * @throws SystemException if a system exception occurred 226 */ 227 public java.util.List<com.liferay.portal.model.Organization> filterFindByCompanyId( 228 long companyId) 229 throws com.liferay.portal.kernel.exception.SystemException; 230 231 /** 232 * Returns a range of all the organizations that the user has permission to view where companyId = ?. 233 * 234 * <p> 235 * 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. 236 * </p> 237 * 238 * @param companyId the company ID 239 * @param start the lower bound of the range of organizations 240 * @param end the upper bound of the range of organizations (not inclusive) 241 * @return the range of matching organizations that the user has permission to view 242 * @throws SystemException if a system exception occurred 243 */ 244 public java.util.List<com.liferay.portal.model.Organization> filterFindByCompanyId( 245 long companyId, int start, int end) 246 throws com.liferay.portal.kernel.exception.SystemException; 247 248 /** 249 * Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?. 250 * 251 * <p> 252 * 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. 253 * </p> 254 * 255 * @param companyId the company ID 256 * @param start the lower bound of the range of organizations 257 * @param end the upper bound of the range of organizations (not inclusive) 258 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 259 * @return the ordered range of matching organizations that the user has permission to view 260 * @throws SystemException if a system exception occurred 261 */ 262 public java.util.List<com.liferay.portal.model.Organization> filterFindByCompanyId( 263 long companyId, int start, int end, 264 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 265 throws com.liferay.portal.kernel.exception.SystemException; 266 267 /** 268 * Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ?. 269 * 270 * @param organizationId the primary key of the current organization 271 * @param companyId the company ID 272 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 273 * @return the previous, current, and next organization 274 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 275 * @throws SystemException if a system exception occurred 276 */ 277 public com.liferay.portal.model.Organization[] filterFindByCompanyId_PrevAndNext( 278 long organizationId, long companyId, 279 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 280 throws com.liferay.portal.NoSuchOrganizationException, 281 com.liferay.portal.kernel.exception.SystemException; 282 283 /** 284 * Returns all the organizations where companyId = ?. 285 * 286 * @param companyId the company ID 287 * @return the matching organizations 288 * @throws SystemException if a system exception occurred 289 */ 290 public java.util.List<com.liferay.portal.model.Organization> findByLocations( 291 long companyId) 292 throws com.liferay.portal.kernel.exception.SystemException; 293 294 /** 295 * Returns a range of all the organizations where companyId = ?. 296 * 297 * <p> 298 * 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. 299 * </p> 300 * 301 * @param companyId the company ID 302 * @param start the lower bound of the range of organizations 303 * @param end the upper bound of the range of organizations (not inclusive) 304 * @return the range of matching organizations 305 * @throws SystemException if a system exception occurred 306 */ 307 public java.util.List<com.liferay.portal.model.Organization> findByLocations( 308 long companyId, int start, int end) 309 throws com.liferay.portal.kernel.exception.SystemException; 310 311 /** 312 * Returns an ordered range of all the organizations where companyId = ?. 313 * 314 * <p> 315 * 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. 316 * </p> 317 * 318 * @param companyId the company ID 319 * @param start the lower bound of the range of organizations 320 * @param end the upper bound of the range of organizations (not inclusive) 321 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 322 * @return the ordered range of matching organizations 323 * @throws SystemException if a system exception occurred 324 */ 325 public java.util.List<com.liferay.portal.model.Organization> findByLocations( 326 long companyId, int start, int end, 327 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 328 throws com.liferay.portal.kernel.exception.SystemException; 329 330 /** 331 * Returns the first organization in the ordered set where companyId = ?. 332 * 333 * @param companyId the company ID 334 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 335 * @return the first matching organization 336 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 337 * @throws SystemException if a system exception occurred 338 */ 339 public com.liferay.portal.model.Organization findByLocations_First( 340 long companyId, 341 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 342 throws com.liferay.portal.NoSuchOrganizationException, 343 com.liferay.portal.kernel.exception.SystemException; 344 345 /** 346 * Returns the first organization in the ordered set where companyId = ?. 347 * 348 * @param companyId the company ID 349 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 350 * @return the first matching organization, or <code>null</code> if a matching organization could not be found 351 * @throws SystemException if a system exception occurred 352 */ 353 public com.liferay.portal.model.Organization fetchByLocations_First( 354 long companyId, 355 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 356 throws com.liferay.portal.kernel.exception.SystemException; 357 358 /** 359 * Returns the last organization in the ordered set where companyId = ?. 360 * 361 * @param companyId the company ID 362 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 363 * @return the last matching organization 364 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 365 * @throws SystemException if a system exception occurred 366 */ 367 public com.liferay.portal.model.Organization findByLocations_Last( 368 long companyId, 369 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 370 throws com.liferay.portal.NoSuchOrganizationException, 371 com.liferay.portal.kernel.exception.SystemException; 372 373 /** 374 * Returns the last organization in the ordered set where companyId = ?. 375 * 376 * @param companyId the company ID 377 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 378 * @return the last matching organization, or <code>null</code> if a matching organization could not be found 379 * @throws SystemException if a system exception occurred 380 */ 381 public com.liferay.portal.model.Organization fetchByLocations_Last( 382 long companyId, 383 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 384 throws com.liferay.portal.kernel.exception.SystemException; 385 386 /** 387 * Returns the organizations before and after the current organization in the ordered set where companyId = ?. 388 * 389 * @param organizationId the primary key of the current organization 390 * @param companyId the company ID 391 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 392 * @return the previous, current, and next organization 393 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 394 * @throws SystemException if a system exception occurred 395 */ 396 public com.liferay.portal.model.Organization[] findByLocations_PrevAndNext( 397 long organizationId, long companyId, 398 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 399 throws com.liferay.portal.NoSuchOrganizationException, 400 com.liferay.portal.kernel.exception.SystemException; 401 402 /** 403 * Returns all the organizations that the user has permission to view where companyId = ?. 404 * 405 * @param companyId the company ID 406 * @return the matching organizations that the user has permission to view 407 * @throws SystemException if a system exception occurred 408 */ 409 public java.util.List<com.liferay.portal.model.Organization> filterFindByLocations( 410 long companyId) 411 throws com.liferay.portal.kernel.exception.SystemException; 412 413 /** 414 * Returns a range of all the organizations that the user has permission to view where companyId = ?. 415 * 416 * <p> 417 * 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. 418 * </p> 419 * 420 * @param companyId the company ID 421 * @param start the lower bound of the range of organizations 422 * @param end the upper bound of the range of organizations (not inclusive) 423 * @return the range of matching organizations that the user has permission to view 424 * @throws SystemException if a system exception occurred 425 */ 426 public java.util.List<com.liferay.portal.model.Organization> filterFindByLocations( 427 long companyId, int start, int end) 428 throws com.liferay.portal.kernel.exception.SystemException; 429 430 /** 431 * Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?. 432 * 433 * <p> 434 * 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. 435 * </p> 436 * 437 * @param companyId the company ID 438 * @param start the lower bound of the range of organizations 439 * @param end the upper bound of the range of organizations (not inclusive) 440 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 441 * @return the ordered range of matching organizations that the user has permission to view 442 * @throws SystemException if a system exception occurred 443 */ 444 public java.util.List<com.liferay.portal.model.Organization> filterFindByLocations( 445 long companyId, int start, int end, 446 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 447 throws com.liferay.portal.kernel.exception.SystemException; 448 449 /** 450 * Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ?. 451 * 452 * @param organizationId the primary key of the current organization 453 * @param companyId the company ID 454 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 455 * @return the previous, current, and next organization 456 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 457 * @throws SystemException if a system exception occurred 458 */ 459 public com.liferay.portal.model.Organization[] filterFindByLocations_PrevAndNext( 460 long organizationId, long companyId, 461 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 462 throws com.liferay.portal.NoSuchOrganizationException, 463 com.liferay.portal.kernel.exception.SystemException; 464 465 /** 466 * Returns all the organizations where companyId = ? and parentOrganizationId = ?. 467 * 468 * @param companyId the company ID 469 * @param parentOrganizationId the parent organization ID 470 * @return the matching organizations 471 * @throws SystemException if a system exception occurred 472 */ 473 public java.util.List<com.liferay.portal.model.Organization> findByC_P( 474 long companyId, long parentOrganizationId) 475 throws com.liferay.portal.kernel.exception.SystemException; 476 477 /** 478 * Returns a range of all the organizations where companyId = ? and parentOrganizationId = ?. 479 * 480 * <p> 481 * 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. 482 * </p> 483 * 484 * @param companyId the company ID 485 * @param parentOrganizationId the parent organization ID 486 * @param start the lower bound of the range of organizations 487 * @param end the upper bound of the range of organizations (not inclusive) 488 * @return the range of matching organizations 489 * @throws SystemException if a system exception occurred 490 */ 491 public java.util.List<com.liferay.portal.model.Organization> findByC_P( 492 long companyId, long parentOrganizationId, int start, int end) 493 throws com.liferay.portal.kernel.exception.SystemException; 494 495 /** 496 * Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ?. 497 * 498 * <p> 499 * 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. 500 * </p> 501 * 502 * @param companyId the company ID 503 * @param parentOrganizationId the parent organization ID 504 * @param start the lower bound of the range of organizations 505 * @param end the upper bound of the range of organizations (not inclusive) 506 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 507 * @return the ordered range of matching organizations 508 * @throws SystemException if a system exception occurred 509 */ 510 public java.util.List<com.liferay.portal.model.Organization> findByC_P( 511 long companyId, long parentOrganizationId, int start, int end, 512 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 513 throws com.liferay.portal.kernel.exception.SystemException; 514 515 /** 516 * Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?. 517 * 518 * @param companyId the company ID 519 * @param parentOrganizationId the parent organization ID 520 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 521 * @return the first matching organization 522 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 523 * @throws SystemException if a system exception occurred 524 */ 525 public com.liferay.portal.model.Organization findByC_P_First( 526 long companyId, long parentOrganizationId, 527 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 528 throws com.liferay.portal.NoSuchOrganizationException, 529 com.liferay.portal.kernel.exception.SystemException; 530 531 /** 532 * Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?. 533 * 534 * @param companyId the company ID 535 * @param parentOrganizationId the parent organization ID 536 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 537 * @return the first matching organization, or <code>null</code> if a matching organization could not be found 538 * @throws SystemException if a system exception occurred 539 */ 540 public com.liferay.portal.model.Organization fetchByC_P_First( 541 long companyId, long parentOrganizationId, 542 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 543 throws com.liferay.portal.kernel.exception.SystemException; 544 545 /** 546 * Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?. 547 * 548 * @param companyId the company ID 549 * @param parentOrganizationId the parent organization ID 550 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 551 * @return the last matching organization 552 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 553 * @throws SystemException if a system exception occurred 554 */ 555 public com.liferay.portal.model.Organization findByC_P_Last( 556 long companyId, long parentOrganizationId, 557 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 558 throws com.liferay.portal.NoSuchOrganizationException, 559 com.liferay.portal.kernel.exception.SystemException; 560 561 /** 562 * Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?. 563 * 564 * @param companyId the company ID 565 * @param parentOrganizationId the parent organization ID 566 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 567 * @return the last matching organization, or <code>null</code> if a matching organization could not be found 568 * @throws SystemException if a system exception occurred 569 */ 570 public com.liferay.portal.model.Organization fetchByC_P_Last( 571 long companyId, long parentOrganizationId, 572 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 573 throws com.liferay.portal.kernel.exception.SystemException; 574 575 /** 576 * Returns the organizations before and after the current organization in the ordered set where companyId = ? and parentOrganizationId = ?. 577 * 578 * @param organizationId the primary key of the current organization 579 * @param companyId the company ID 580 * @param parentOrganizationId the parent organization ID 581 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 582 * @return the previous, current, and next organization 583 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 584 * @throws SystemException if a system exception occurred 585 */ 586 public com.liferay.portal.model.Organization[] findByC_P_PrevAndNext( 587 long organizationId, long companyId, long parentOrganizationId, 588 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 589 throws com.liferay.portal.NoSuchOrganizationException, 590 com.liferay.portal.kernel.exception.SystemException; 591 592 /** 593 * Returns all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?. 594 * 595 * @param companyId the company ID 596 * @param parentOrganizationId the parent organization ID 597 * @return the matching organizations that the user has permission to view 598 * @throws SystemException if a system exception occurred 599 */ 600 public java.util.List<com.liferay.portal.model.Organization> filterFindByC_P( 601 long companyId, long parentOrganizationId) 602 throws com.liferay.portal.kernel.exception.SystemException; 603 604 /** 605 * Returns a range of all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?. 606 * 607 * <p> 608 * 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. 609 * </p> 610 * 611 * @param companyId the company ID 612 * @param parentOrganizationId the parent organization ID 613 * @param start the lower bound of the range of organizations 614 * @param end the upper bound of the range of organizations (not inclusive) 615 * @return the range of matching organizations that the user has permission to view 616 * @throws SystemException if a system exception occurred 617 */ 618 public java.util.List<com.liferay.portal.model.Organization> filterFindByC_P( 619 long companyId, long parentOrganizationId, int start, int end) 620 throws com.liferay.portal.kernel.exception.SystemException; 621 622 /** 623 * Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and parentOrganizationId = ?. 624 * 625 * <p> 626 * 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. 627 * </p> 628 * 629 * @param companyId the company ID 630 * @param parentOrganizationId the parent organization ID 631 * @param start the lower bound of the range of organizations 632 * @param end the upper bound of the range of organizations (not inclusive) 633 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 634 * @return the ordered range of matching organizations that the user has permission to view 635 * @throws SystemException if a system exception occurred 636 */ 637 public java.util.List<com.liferay.portal.model.Organization> filterFindByC_P( 638 long companyId, long parentOrganizationId, int start, int end, 639 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 640 throws com.liferay.portal.kernel.exception.SystemException; 641 642 /** 643 * Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?. 644 * 645 * @param organizationId the primary key of the current organization 646 * @param companyId the company ID 647 * @param parentOrganizationId the parent organization ID 648 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 649 * @return the previous, current, and next organization 650 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 651 * @throws SystemException if a system exception occurred 652 */ 653 public com.liferay.portal.model.Organization[] filterFindByC_P_PrevAndNext( 654 long organizationId, long companyId, long parentOrganizationId, 655 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 656 throws com.liferay.portal.NoSuchOrganizationException, 657 com.liferay.portal.kernel.exception.SystemException; 658 659 /** 660 * Returns the organization where companyId = ? and name = ? or throws a {@link com.liferay.portal.NoSuchOrganizationException} if it could not be found. 661 * 662 * @param companyId the company ID 663 * @param name the name 664 * @return the matching organization 665 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 666 * @throws SystemException if a system exception occurred 667 */ 668 public com.liferay.portal.model.Organization findByC_N(long companyId, 669 java.lang.String name) 670 throws com.liferay.portal.NoSuchOrganizationException, 671 com.liferay.portal.kernel.exception.SystemException; 672 673 /** 674 * Returns the organization where companyId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 675 * 676 * @param companyId the company ID 677 * @param name the name 678 * @return the matching organization, or <code>null</code> if a matching organization could not be found 679 * @throws SystemException if a system exception occurred 680 */ 681 public com.liferay.portal.model.Organization fetchByC_N(long companyId, 682 java.lang.String name) 683 throws com.liferay.portal.kernel.exception.SystemException; 684 685 /** 686 * Returns the organization where companyId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 687 * 688 * @param companyId the company ID 689 * @param name the name 690 * @param retrieveFromCache whether to use the finder cache 691 * @return the matching organization, or <code>null</code> if a matching organization could not be found 692 * @throws SystemException if a system exception occurred 693 */ 694 public com.liferay.portal.model.Organization fetchByC_N(long companyId, 695 java.lang.String name, boolean retrieveFromCache) 696 throws com.liferay.portal.kernel.exception.SystemException; 697 698 /** 699 * Returns all the organizations. 700 * 701 * @return the organizations 702 * @throws SystemException if a system exception occurred 703 */ 704 public java.util.List<com.liferay.portal.model.Organization> findAll() 705 throws com.liferay.portal.kernel.exception.SystemException; 706 707 /** 708 * Returns a range of all the organizations. 709 * 710 * <p> 711 * 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. 712 * </p> 713 * 714 * @param start the lower bound of the range of organizations 715 * @param end the upper bound of the range of organizations (not inclusive) 716 * @return the range of organizations 717 * @throws SystemException if a system exception occurred 718 */ 719 public java.util.List<com.liferay.portal.model.Organization> findAll( 720 int start, int end) 721 throws com.liferay.portal.kernel.exception.SystemException; 722 723 /** 724 * Returns an ordered range of all the organizations. 725 * 726 * <p> 727 * 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. 728 * </p> 729 * 730 * @param start the lower bound of the range of organizations 731 * @param end the upper bound of the range of organizations (not inclusive) 732 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 733 * @return the ordered range of organizations 734 * @throws SystemException if a system exception occurred 735 */ 736 public java.util.List<com.liferay.portal.model.Organization> findAll( 737 int start, int end, 738 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 739 throws com.liferay.portal.kernel.exception.SystemException; 740 741 /** 742 * Removes all the organizations where companyId = ? from the database. 743 * 744 * @param companyId the company ID 745 * @throws SystemException if a system exception occurred 746 */ 747 public void removeByCompanyId(long companyId) 748 throws com.liferay.portal.kernel.exception.SystemException; 749 750 /** 751 * Removes all the organizations where companyId = ? from the database. 752 * 753 * @param companyId the company ID 754 * @throws SystemException if a system exception occurred 755 */ 756 public void removeByLocations(long companyId) 757 throws com.liferay.portal.kernel.exception.SystemException; 758 759 /** 760 * Removes all the organizations where companyId = ? and parentOrganizationId = ? from the database. 761 * 762 * @param companyId the company ID 763 * @param parentOrganizationId the parent organization ID 764 * @throws SystemException if a system exception occurred 765 */ 766 public void removeByC_P(long companyId, long parentOrganizationId) 767 throws com.liferay.portal.kernel.exception.SystemException; 768 769 /** 770 * Removes the organization where companyId = ? and name = ? from the database. 771 * 772 * @param companyId the company ID 773 * @param name the name 774 * @return the organization that was removed 775 * @throws SystemException if a system exception occurred 776 */ 777 public com.liferay.portal.model.Organization removeByC_N(long companyId, 778 java.lang.String name) 779 throws com.liferay.portal.NoSuchOrganizationException, 780 com.liferay.portal.kernel.exception.SystemException; 781 782 /** 783 * Removes all the organizations from the database. 784 * 785 * @throws SystemException if a system exception occurred 786 */ 787 public void removeAll() 788 throws com.liferay.portal.kernel.exception.SystemException; 789 790 /** 791 * Returns the number of organizations where companyId = ?. 792 * 793 * @param companyId the company ID 794 * @return the number of matching organizations 795 * @throws SystemException if a system exception occurred 796 */ 797 public int countByCompanyId(long companyId) 798 throws com.liferay.portal.kernel.exception.SystemException; 799 800 /** 801 * Returns the number of organizations that the user has permission to view where companyId = ?. 802 * 803 * @param companyId the company ID 804 * @return the number of matching organizations that the user has permission to view 805 * @throws SystemException if a system exception occurred 806 */ 807 public int filterCountByCompanyId(long companyId) 808 throws com.liferay.portal.kernel.exception.SystemException; 809 810 /** 811 * Returns the number of organizations where companyId = ?. 812 * 813 * @param companyId the company ID 814 * @return the number of matching organizations 815 * @throws SystemException if a system exception occurred 816 */ 817 public int countByLocations(long companyId) 818 throws com.liferay.portal.kernel.exception.SystemException; 819 820 /** 821 * Returns the number of organizations that the user has permission to view where companyId = ?. 822 * 823 * @param companyId the company ID 824 * @return the number of matching organizations that the user has permission to view 825 * @throws SystemException if a system exception occurred 826 */ 827 public int filterCountByLocations(long companyId) 828 throws com.liferay.portal.kernel.exception.SystemException; 829 830 /** 831 * Returns the number of organizations where companyId = ? and parentOrganizationId = ?. 832 * 833 * @param companyId the company ID 834 * @param parentOrganizationId the parent organization ID 835 * @return the number of matching organizations 836 * @throws SystemException if a system exception occurred 837 */ 838 public int countByC_P(long companyId, long parentOrganizationId) 839 throws com.liferay.portal.kernel.exception.SystemException; 840 841 /** 842 * Returns the number of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?. 843 * 844 * @param companyId the company ID 845 * @param parentOrganizationId the parent organization ID 846 * @return the number of matching organizations that the user has permission to view 847 * @throws SystemException if a system exception occurred 848 */ 849 public int filterCountByC_P(long companyId, long parentOrganizationId) 850 throws com.liferay.portal.kernel.exception.SystemException; 851 852 /** 853 * Returns the number of organizations where companyId = ? and name = ?. 854 * 855 * @param companyId the company ID 856 * @param name the name 857 * @return the number of matching organizations 858 * @throws SystemException if a system exception occurred 859 */ 860 public int countByC_N(long companyId, java.lang.String name) 861 throws com.liferay.portal.kernel.exception.SystemException; 862 863 /** 864 * Returns the number of organizations. 865 * 866 * @return the number of organizations 867 * @throws SystemException if a system exception occurred 868 */ 869 public int countAll() 870 throws com.liferay.portal.kernel.exception.SystemException; 871 872 /** 873 * Returns all the groups associated with the organization. 874 * 875 * @param pk the primary key of the organization 876 * @return the groups associated with the organization 877 * @throws SystemException if a system exception occurred 878 */ 879 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk) 880 throws com.liferay.portal.kernel.exception.SystemException; 881 882 /** 883 * Returns a range of all the groups associated with the organization. 884 * 885 * <p> 886 * 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. 887 * </p> 888 * 889 * @param pk the primary key of the organization 890 * @param start the lower bound of the range of organizations 891 * @param end the upper bound of the range of organizations (not inclusive) 892 * @return the range of groups associated with the organization 893 * @throws SystemException if a system exception occurred 894 */ 895 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk, 896 int start, int end) 897 throws com.liferay.portal.kernel.exception.SystemException; 898 899 /** 900 * Returns an ordered range of all the groups associated with the organization. 901 * 902 * <p> 903 * 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. 904 * </p> 905 * 906 * @param pk the primary key of the organization 907 * @param start the lower bound of the range of organizations 908 * @param end the upper bound of the range of organizations (not inclusive) 909 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 910 * @return the ordered range of groups associated with the organization 911 * @throws SystemException if a system exception occurred 912 */ 913 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk, 914 int start, int end, 915 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 916 throws com.liferay.portal.kernel.exception.SystemException; 917 918 /** 919 * Returns the number of groups associated with the organization. 920 * 921 * @param pk the primary key of the organization 922 * @return the number of groups associated with the organization 923 * @throws SystemException if a system exception occurred 924 */ 925 public int getGroupsSize(long pk) 926 throws com.liferay.portal.kernel.exception.SystemException; 927 928 /** 929 * Returns <code>true</code> if the group is associated with the organization. 930 * 931 * @param pk the primary key of the organization 932 * @param groupPK the primary key of the group 933 * @return <code>true</code> if the group is associated with the organization; <code>false</code> otherwise 934 * @throws SystemException if a system exception occurred 935 */ 936 public boolean containsGroup(long pk, long groupPK) 937 throws com.liferay.portal.kernel.exception.SystemException; 938 939 /** 940 * Returns <code>true</code> if the organization has any groups associated with it. 941 * 942 * @param pk the primary key of the organization to check for associations with groups 943 * @return <code>true</code> if the organization has any groups associated with it; <code>false</code> otherwise 944 * @throws SystemException if a system exception occurred 945 */ 946 public boolean containsGroups(long pk) 947 throws com.liferay.portal.kernel.exception.SystemException; 948 949 /** 950 * Adds an association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 951 * 952 * @param pk the primary key of the organization 953 * @param groupPK the primary key of the group 954 * @throws SystemException if a system exception occurred 955 */ 956 public void addGroup(long pk, long groupPK) 957 throws com.liferay.portal.kernel.exception.SystemException; 958 959 /** 960 * Adds an association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 961 * 962 * @param pk the primary key of the organization 963 * @param group the group 964 * @throws SystemException if a system exception occurred 965 */ 966 public void addGroup(long pk, com.liferay.portal.model.Group group) 967 throws com.liferay.portal.kernel.exception.SystemException; 968 969 /** 970 * Adds an association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 971 * 972 * @param pk the primary key of the organization 973 * @param groupPKs the primary keys of the groups 974 * @throws SystemException if a system exception occurred 975 */ 976 public void addGroups(long pk, long[] groupPKs) 977 throws com.liferay.portal.kernel.exception.SystemException; 978 979 /** 980 * Adds an association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 981 * 982 * @param pk the primary key of the organization 983 * @param groups the groups 984 * @throws SystemException if a system exception occurred 985 */ 986 public void addGroups(long pk, 987 java.util.List<com.liferay.portal.model.Group> groups) 988 throws com.liferay.portal.kernel.exception.SystemException; 989 990 /** 991 * Clears all associations between the organization and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 992 * 993 * @param pk the primary key of the organization to clear the associated groups from 994 * @throws SystemException if a system exception occurred 995 */ 996 public void clearGroups(long pk) 997 throws com.liferay.portal.kernel.exception.SystemException; 998 999 /** 1000 * Removes the association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1001 * 1002 * @param pk the primary key of the organization 1003 * @param groupPK the primary key of the group 1004 * @throws SystemException if a system exception occurred 1005 */ 1006 public void removeGroup(long pk, long groupPK) 1007 throws com.liferay.portal.kernel.exception.SystemException; 1008 1009 /** 1010 * Removes the association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1011 * 1012 * @param pk the primary key of the organization 1013 * @param group the group 1014 * @throws SystemException if a system exception occurred 1015 */ 1016 public void removeGroup(long pk, com.liferay.portal.model.Group group) 1017 throws com.liferay.portal.kernel.exception.SystemException; 1018 1019 /** 1020 * Removes the association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1021 * 1022 * @param pk the primary key of the organization 1023 * @param groupPKs the primary keys of the groups 1024 * @throws SystemException if a system exception occurred 1025 */ 1026 public void removeGroups(long pk, long[] groupPKs) 1027 throws com.liferay.portal.kernel.exception.SystemException; 1028 1029 /** 1030 * Removes the association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1031 * 1032 * @param pk the primary key of the organization 1033 * @param groups the groups 1034 * @throws SystemException if a system exception occurred 1035 */ 1036 public void removeGroups(long pk, 1037 java.util.List<com.liferay.portal.model.Group> groups) 1038 throws com.liferay.portal.kernel.exception.SystemException; 1039 1040 /** 1041 * Sets the groups associated with the organization, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1042 * 1043 * @param pk the primary key of the organization 1044 * @param groupPKs the primary keys of the groups to be associated with the organization 1045 * @throws SystemException if a system exception occurred 1046 */ 1047 public void setGroups(long pk, long[] groupPKs) 1048 throws com.liferay.portal.kernel.exception.SystemException; 1049 1050 /** 1051 * Sets the groups associated with the organization, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1052 * 1053 * @param pk the primary key of the organization 1054 * @param groups the groups to be associated with the organization 1055 * @throws SystemException if a system exception occurred 1056 */ 1057 public void setGroups(long pk, 1058 java.util.List<com.liferay.portal.model.Group> groups) 1059 throws com.liferay.portal.kernel.exception.SystemException; 1060 1061 /** 1062 * Returns all the users associated with the organization. 1063 * 1064 * @param pk the primary key of the organization 1065 * @return the users associated with the organization 1066 * @throws SystemException if a system exception occurred 1067 */ 1068 public java.util.List<com.liferay.portal.model.User> getUsers(long pk) 1069 throws com.liferay.portal.kernel.exception.SystemException; 1070 1071 /** 1072 * Returns a range of all the users associated with the organization. 1073 * 1074 * <p> 1075 * 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. 1076 * </p> 1077 * 1078 * @param pk the primary key of the organization 1079 * @param start the lower bound of the range of organizations 1080 * @param end the upper bound of the range of organizations (not inclusive) 1081 * @return the range of users associated with the organization 1082 * @throws SystemException if a system exception occurred 1083 */ 1084 public java.util.List<com.liferay.portal.model.User> getUsers(long pk, 1085 int start, int end) 1086 throws com.liferay.portal.kernel.exception.SystemException; 1087 1088 /** 1089 * Returns an ordered range of all the users associated with the organization. 1090 * 1091 * <p> 1092 * 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. 1093 * </p> 1094 * 1095 * @param pk the primary key of the organization 1096 * @param start the lower bound of the range of organizations 1097 * @param end the upper bound of the range of organizations (not inclusive) 1098 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1099 * @return the ordered range of users associated with the organization 1100 * @throws SystemException if a system exception occurred 1101 */ 1102 public java.util.List<com.liferay.portal.model.User> getUsers(long pk, 1103 int start, int end, 1104 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1105 throws com.liferay.portal.kernel.exception.SystemException; 1106 1107 /** 1108 * Returns the number of users associated with the organization. 1109 * 1110 * @param pk the primary key of the organization 1111 * @return the number of users associated with the organization 1112 * @throws SystemException if a system exception occurred 1113 */ 1114 public int getUsersSize(long pk) 1115 throws com.liferay.portal.kernel.exception.SystemException; 1116 1117 /** 1118 * Returns <code>true</code> if the user is associated with the organization. 1119 * 1120 * @param pk the primary key of the organization 1121 * @param userPK the primary key of the user 1122 * @return <code>true</code> if the user is associated with the organization; <code>false</code> otherwise 1123 * @throws SystemException if a system exception occurred 1124 */ 1125 public boolean containsUser(long pk, long userPK) 1126 throws com.liferay.portal.kernel.exception.SystemException; 1127 1128 /** 1129 * Returns <code>true</code> if the organization has any users associated with it. 1130 * 1131 * @param pk the primary key of the organization to check for associations with users 1132 * @return <code>true</code> if the organization has any users associated with it; <code>false</code> otherwise 1133 * @throws SystemException if a system exception occurred 1134 */ 1135 public boolean containsUsers(long pk) 1136 throws com.liferay.portal.kernel.exception.SystemException; 1137 1138 /** 1139 * Adds an association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1140 * 1141 * @param pk the primary key of the organization 1142 * @param userPK the primary key of the user 1143 * @throws SystemException if a system exception occurred 1144 */ 1145 public void addUser(long pk, long userPK) 1146 throws com.liferay.portal.kernel.exception.SystemException; 1147 1148 /** 1149 * Adds an association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1150 * 1151 * @param pk the primary key of the organization 1152 * @param user the user 1153 * @throws SystemException if a system exception occurred 1154 */ 1155 public void addUser(long pk, com.liferay.portal.model.User user) 1156 throws com.liferay.portal.kernel.exception.SystemException; 1157 1158 /** 1159 * Adds an association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1160 * 1161 * @param pk the primary key of the organization 1162 * @param userPKs the primary keys of the users 1163 * @throws SystemException if a system exception occurred 1164 */ 1165 public void addUsers(long pk, long[] userPKs) 1166 throws com.liferay.portal.kernel.exception.SystemException; 1167 1168 /** 1169 * Adds an association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1170 * 1171 * @param pk the primary key of the organization 1172 * @param users the users 1173 * @throws SystemException if a system exception occurred 1174 */ 1175 public void addUsers(long pk, 1176 java.util.List<com.liferay.portal.model.User> users) 1177 throws com.liferay.portal.kernel.exception.SystemException; 1178 1179 /** 1180 * Clears all associations between the organization and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1181 * 1182 * @param pk the primary key of the organization to clear the associated users from 1183 * @throws SystemException if a system exception occurred 1184 */ 1185 public void clearUsers(long pk) 1186 throws com.liferay.portal.kernel.exception.SystemException; 1187 1188 /** 1189 * Removes the association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1190 * 1191 * @param pk the primary key of the organization 1192 * @param userPK the primary key of the user 1193 * @throws SystemException if a system exception occurred 1194 */ 1195 public void removeUser(long pk, long userPK) 1196 throws com.liferay.portal.kernel.exception.SystemException; 1197 1198 /** 1199 * Removes the association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1200 * 1201 * @param pk the primary key of the organization 1202 * @param user the user 1203 * @throws SystemException if a system exception occurred 1204 */ 1205 public void removeUser(long pk, com.liferay.portal.model.User user) 1206 throws com.liferay.portal.kernel.exception.SystemException; 1207 1208 /** 1209 * Removes the association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1210 * 1211 * @param pk the primary key of the organization 1212 * @param userPKs the primary keys of the users 1213 * @throws SystemException if a system exception occurred 1214 */ 1215 public void removeUsers(long pk, long[] userPKs) 1216 throws com.liferay.portal.kernel.exception.SystemException; 1217 1218 /** 1219 * Removes the association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1220 * 1221 * @param pk the primary key of the organization 1222 * @param users the users 1223 * @throws SystemException if a system exception occurred 1224 */ 1225 public void removeUsers(long pk, 1226 java.util.List<com.liferay.portal.model.User> users) 1227 throws com.liferay.portal.kernel.exception.SystemException; 1228 1229 /** 1230 * Sets the users associated with the organization, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1231 * 1232 * @param pk the primary key of the organization 1233 * @param userPKs the primary keys of the users to be associated with the organization 1234 * @throws SystemException if a system exception occurred 1235 */ 1236 public void setUsers(long pk, long[] userPKs) 1237 throws com.liferay.portal.kernel.exception.SystemException; 1238 1239 /** 1240 * Sets the users associated with the organization, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1241 * 1242 * @param pk the primary key of the organization 1243 * @param users the users to be associated with the organization 1244 * @throws SystemException if a system exception occurred 1245 */ 1246 public void setUsers(long pk, 1247 java.util.List<com.liferay.portal.model.User> users) 1248 throws com.liferay.portal.kernel.exception.SystemException; 1249 }