001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.model.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 * Returns all the organizations where companyId = ?. 040 * 041 * @param companyId the company ID 042 * @return the matching organizations 043 * @throws SystemException if a system exception occurred 044 */ 045 public java.util.List<com.liferay.portal.model.Organization> findByCompanyId( 046 long companyId) 047 throws com.liferay.portal.kernel.exception.SystemException; 048 049 /** 050 * Returns a range of all the organizations where companyId = ?. 051 * 052 * <p> 053 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 054 * </p> 055 * 056 * @param companyId the company ID 057 * @param start the lower bound of the range of organizations 058 * @param end the upper bound of the range of organizations (not inclusive) 059 * @return the range of matching organizations 060 * @throws SystemException if a system exception occurred 061 */ 062 public java.util.List<com.liferay.portal.model.Organization> findByCompanyId( 063 long companyId, int start, int end) 064 throws com.liferay.portal.kernel.exception.SystemException; 065 066 /** 067 * Returns an ordered range of all the organizations where companyId = ?. 068 * 069 * <p> 070 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 071 * </p> 072 * 073 * @param companyId the company ID 074 * @param start the lower bound of the range of organizations 075 * @param end the upper bound of the range of organizations (not inclusive) 076 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 077 * @return the ordered range of matching organizations 078 * @throws SystemException if a system exception occurred 079 */ 080 public java.util.List<com.liferay.portal.model.Organization> findByCompanyId( 081 long companyId, int start, int end, 082 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 083 throws com.liferay.portal.kernel.exception.SystemException; 084 085 /** 086 * Returns the first organization in the ordered set where companyId = ?. 087 * 088 * @param companyId the company ID 089 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 090 * @return the first matching organization 091 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 092 * @throws SystemException if a system exception occurred 093 */ 094 public com.liferay.portal.model.Organization findByCompanyId_First( 095 long companyId, 096 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 097 throws com.liferay.portal.NoSuchOrganizationException, 098 com.liferay.portal.kernel.exception.SystemException; 099 100 /** 101 * Returns the first organization in the ordered set where companyId = ?. 102 * 103 * @param companyId the company ID 104 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 105 * @return the first matching organization, or <code>null</code> if a matching organization could not be found 106 * @throws SystemException if a system exception occurred 107 */ 108 public com.liferay.portal.model.Organization fetchByCompanyId_First( 109 long companyId, 110 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 111 throws com.liferay.portal.kernel.exception.SystemException; 112 113 /** 114 * Returns the last organization in the ordered set where companyId = ?. 115 * 116 * @param companyId the company ID 117 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 118 * @return the last matching organization 119 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 120 * @throws SystemException if a system exception occurred 121 */ 122 public com.liferay.portal.model.Organization findByCompanyId_Last( 123 long companyId, 124 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 125 throws com.liferay.portal.NoSuchOrganizationException, 126 com.liferay.portal.kernel.exception.SystemException; 127 128 /** 129 * Returns the last organization in the ordered set where companyId = ?. 130 * 131 * @param companyId the company ID 132 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 133 * @return the last matching organization, or <code>null</code> if a matching organization could not be found 134 * @throws SystemException if a system exception occurred 135 */ 136 public com.liferay.portal.model.Organization fetchByCompanyId_Last( 137 long companyId, 138 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 139 throws com.liferay.portal.kernel.exception.SystemException; 140 141 /** 142 * Returns the organizations before and after the current organization in the ordered set where companyId = ?. 143 * 144 * @param organizationId the primary key of the current organization 145 * @param companyId the company ID 146 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 147 * @return the previous, current, and next organization 148 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 149 * @throws SystemException if a system exception occurred 150 */ 151 public com.liferay.portal.model.Organization[] findByCompanyId_PrevAndNext( 152 long organizationId, long companyId, 153 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 154 throws com.liferay.portal.NoSuchOrganizationException, 155 com.liferay.portal.kernel.exception.SystemException; 156 157 /** 158 * Returns all the organizations that the user has permission to view where companyId = ?. 159 * 160 * @param companyId the company ID 161 * @return the matching organizations that the user has permission to view 162 * @throws SystemException if a system exception occurred 163 */ 164 public java.util.List<com.liferay.portal.model.Organization> filterFindByCompanyId( 165 long companyId) 166 throws com.liferay.portal.kernel.exception.SystemException; 167 168 /** 169 * Returns a range of all the organizations that the user has permission to view where companyId = ?. 170 * 171 * <p> 172 * 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.OrganizationModelImpl}. 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. 173 * </p> 174 * 175 * @param companyId the company ID 176 * @param start the lower bound of the range of organizations 177 * @param end the upper bound of the range of organizations (not inclusive) 178 * @return the range of matching organizations that the user has permission to view 179 * @throws SystemException if a system exception occurred 180 */ 181 public java.util.List<com.liferay.portal.model.Organization> filterFindByCompanyId( 182 long companyId, int start, int end) 183 throws com.liferay.portal.kernel.exception.SystemException; 184 185 /** 186 * Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?. 187 * 188 * <p> 189 * 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.OrganizationModelImpl}. 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. 190 * </p> 191 * 192 * @param companyId the company ID 193 * @param start the lower bound of the range of organizations 194 * @param end the upper bound of the range of organizations (not inclusive) 195 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 196 * @return the ordered range of matching organizations that the user has permission to view 197 * @throws SystemException if a system exception occurred 198 */ 199 public java.util.List<com.liferay.portal.model.Organization> filterFindByCompanyId( 200 long companyId, int start, int end, 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 of organizations that the user has permission to view 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[] filterFindByCompanyId_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 * Removes all the organizations where companyId = ? from the database. 222 * 223 * @param companyId the company ID 224 * @throws SystemException if a system exception occurred 225 */ 226 public void removeByCompanyId(long companyId) 227 throws com.liferay.portal.kernel.exception.SystemException; 228 229 /** 230 * Returns the number of organizations where companyId = ?. 231 * 232 * @param companyId the company ID 233 * @return the number of matching organizations 234 * @throws SystemException if a system exception occurred 235 */ 236 public int countByCompanyId(long companyId) 237 throws com.liferay.portal.kernel.exception.SystemException; 238 239 /** 240 * Returns the number of organizations that the user has permission to view where companyId = ?. 241 * 242 * @param companyId the company ID 243 * @return the number of matching organizations that the user has permission to view 244 * @throws SystemException if a system exception occurred 245 */ 246 public int filterCountByCompanyId(long companyId) 247 throws com.liferay.portal.kernel.exception.SystemException; 248 249 /** 250 * Returns all the organizations where companyId = ?. 251 * 252 * @param companyId the company ID 253 * @return the matching organizations 254 * @throws SystemException if a system exception occurred 255 */ 256 public java.util.List<com.liferay.portal.model.Organization> findByLocations( 257 long companyId) 258 throws com.liferay.portal.kernel.exception.SystemException; 259 260 /** 261 * Returns a range of all the organizations where companyId = ?. 262 * 263 * <p> 264 * 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.OrganizationModelImpl}. 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. 265 * </p> 266 * 267 * @param companyId the company ID 268 * @param start the lower bound of the range of organizations 269 * @param end the upper bound of the range of organizations (not inclusive) 270 * @return the range of matching organizations 271 * @throws SystemException if a system exception occurred 272 */ 273 public java.util.List<com.liferay.portal.model.Organization> findByLocations( 274 long companyId, int start, int end) 275 throws com.liferay.portal.kernel.exception.SystemException; 276 277 /** 278 * Returns an ordered range of all the organizations where companyId = ?. 279 * 280 * <p> 281 * 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.OrganizationModelImpl}. 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. 282 * </p> 283 * 284 * @param companyId the company ID 285 * @param start the lower bound of the range of organizations 286 * @param end the upper bound of the range of organizations (not inclusive) 287 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 288 * @return the ordered range of matching organizations 289 * @throws SystemException if a system exception occurred 290 */ 291 public java.util.List<com.liferay.portal.model.Organization> findByLocations( 292 long companyId, int start, int end, 293 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 294 throws com.liferay.portal.kernel.exception.SystemException; 295 296 /** 297 * Returns the first organization in the ordered set where companyId = ?. 298 * 299 * @param companyId the company ID 300 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 301 * @return the first matching organization 302 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 303 * @throws SystemException if a system exception occurred 304 */ 305 public com.liferay.portal.model.Organization findByLocations_First( 306 long companyId, 307 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 308 throws com.liferay.portal.NoSuchOrganizationException, 309 com.liferay.portal.kernel.exception.SystemException; 310 311 /** 312 * Returns the first organization in the ordered set where companyId = ?. 313 * 314 * @param companyId the company ID 315 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 316 * @return the first matching organization, or <code>null</code> if a matching organization could not be found 317 * @throws SystemException if a system exception occurred 318 */ 319 public com.liferay.portal.model.Organization fetchByLocations_First( 320 long companyId, 321 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 322 throws com.liferay.portal.kernel.exception.SystemException; 323 324 /** 325 * Returns the last organization in the ordered set where companyId = ?. 326 * 327 * @param companyId the company ID 328 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 329 * @return the last matching organization 330 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 331 * @throws SystemException if a system exception occurred 332 */ 333 public com.liferay.portal.model.Organization findByLocations_Last( 334 long companyId, 335 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 336 throws com.liferay.portal.NoSuchOrganizationException, 337 com.liferay.portal.kernel.exception.SystemException; 338 339 /** 340 * Returns the last organization in the ordered set where companyId = ?. 341 * 342 * @param companyId the company ID 343 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 344 * @return the last matching organization, or <code>null</code> if a matching organization could not be found 345 * @throws SystemException if a system exception occurred 346 */ 347 public com.liferay.portal.model.Organization fetchByLocations_Last( 348 long companyId, 349 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 350 throws com.liferay.portal.kernel.exception.SystemException; 351 352 /** 353 * Returns the organizations before and after the current organization in the ordered set where companyId = ?. 354 * 355 * @param organizationId the primary key of the current organization 356 * @param companyId the company ID 357 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 358 * @return the previous, current, and next organization 359 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 360 * @throws SystemException if a system exception occurred 361 */ 362 public com.liferay.portal.model.Organization[] findByLocations_PrevAndNext( 363 long organizationId, long companyId, 364 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 365 throws com.liferay.portal.NoSuchOrganizationException, 366 com.liferay.portal.kernel.exception.SystemException; 367 368 /** 369 * Returns all the organizations that the user has permission to view where companyId = ?. 370 * 371 * @param companyId the company ID 372 * @return the matching organizations that the user has permission to view 373 * @throws SystemException if a system exception occurred 374 */ 375 public java.util.List<com.liferay.portal.model.Organization> filterFindByLocations( 376 long companyId) 377 throws com.liferay.portal.kernel.exception.SystemException; 378 379 /** 380 * Returns a range of all the organizations that the user has permission to view where companyId = ?. 381 * 382 * <p> 383 * 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.OrganizationModelImpl}. 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. 384 * </p> 385 * 386 * @param companyId the company ID 387 * @param start the lower bound of the range of organizations 388 * @param end the upper bound of the range of organizations (not inclusive) 389 * @return the range of matching organizations that the user has permission to view 390 * @throws SystemException if a system exception occurred 391 */ 392 public java.util.List<com.liferay.portal.model.Organization> filterFindByLocations( 393 long companyId, int start, int end) 394 throws com.liferay.portal.kernel.exception.SystemException; 395 396 /** 397 * Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?. 398 * 399 * <p> 400 * 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.OrganizationModelImpl}. 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. 401 * </p> 402 * 403 * @param companyId the company ID 404 * @param start the lower bound of the range of organizations 405 * @param end the upper bound of the range of organizations (not inclusive) 406 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 407 * @return the ordered range of matching organizations that the user has permission to view 408 * @throws SystemException if a system exception occurred 409 */ 410 public java.util.List<com.liferay.portal.model.Organization> filterFindByLocations( 411 long companyId, int start, int end, 412 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 413 throws com.liferay.portal.kernel.exception.SystemException; 414 415 /** 416 * Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ?. 417 * 418 * @param organizationId the primary key of the current organization 419 * @param companyId the company ID 420 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 421 * @return the previous, current, and next organization 422 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 423 * @throws SystemException if a system exception occurred 424 */ 425 public com.liferay.portal.model.Organization[] filterFindByLocations_PrevAndNext( 426 long organizationId, long companyId, 427 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 428 throws com.liferay.portal.NoSuchOrganizationException, 429 com.liferay.portal.kernel.exception.SystemException; 430 431 /** 432 * Removes all the organizations where companyId = ? from the database. 433 * 434 * @param companyId the company ID 435 * @throws SystemException if a system exception occurred 436 */ 437 public void removeByLocations(long companyId) 438 throws com.liferay.portal.kernel.exception.SystemException; 439 440 /** 441 * Returns the number of organizations where companyId = ?. 442 * 443 * @param companyId the company ID 444 * @return the number of matching organizations 445 * @throws SystemException if a system exception occurred 446 */ 447 public int countByLocations(long companyId) 448 throws com.liferay.portal.kernel.exception.SystemException; 449 450 /** 451 * Returns the number of organizations that the user has permission to view where companyId = ?. 452 * 453 * @param companyId the company ID 454 * @return the number of matching organizations that the user has permission to view 455 * @throws SystemException if a system exception occurred 456 */ 457 public int filterCountByLocations(long companyId) 458 throws com.liferay.portal.kernel.exception.SystemException; 459 460 /** 461 * Returns all the organizations where companyId = ? and parentOrganizationId = ?. 462 * 463 * @param companyId the company ID 464 * @param parentOrganizationId the parent organization ID 465 * @return the matching organizations 466 * @throws SystemException if a system exception occurred 467 */ 468 public java.util.List<com.liferay.portal.model.Organization> findByC_P( 469 long companyId, long parentOrganizationId) 470 throws com.liferay.portal.kernel.exception.SystemException; 471 472 /** 473 * Returns a range of all the organizations where companyId = ? and parentOrganizationId = ?. 474 * 475 * <p> 476 * 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.OrganizationModelImpl}. 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. 477 * </p> 478 * 479 * @param companyId the company ID 480 * @param parentOrganizationId the parent organization ID 481 * @param start the lower bound of the range of organizations 482 * @param end the upper bound of the range of organizations (not inclusive) 483 * @return the range of matching organizations 484 * @throws SystemException if a system exception occurred 485 */ 486 public java.util.List<com.liferay.portal.model.Organization> findByC_P( 487 long companyId, long parentOrganizationId, int start, int end) 488 throws com.liferay.portal.kernel.exception.SystemException; 489 490 /** 491 * Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ?. 492 * 493 * <p> 494 * 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.OrganizationModelImpl}. 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. 495 * </p> 496 * 497 * @param companyId the company ID 498 * @param parentOrganizationId the parent organization ID 499 * @param start the lower bound of the range of organizations 500 * @param end the upper bound of the range of organizations (not inclusive) 501 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 502 * @return the ordered range of matching organizations 503 * @throws SystemException if a system exception occurred 504 */ 505 public java.util.List<com.liferay.portal.model.Organization> findByC_P( 506 long companyId, long parentOrganizationId, int start, int end, 507 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 508 throws com.liferay.portal.kernel.exception.SystemException; 509 510 /** 511 * Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?. 512 * 513 * @param companyId the company ID 514 * @param parentOrganizationId the parent organization ID 515 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 516 * @return the first matching organization 517 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 518 * @throws SystemException if a system exception occurred 519 */ 520 public com.liferay.portal.model.Organization findByC_P_First( 521 long companyId, long parentOrganizationId, 522 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 523 throws com.liferay.portal.NoSuchOrganizationException, 524 com.liferay.portal.kernel.exception.SystemException; 525 526 /** 527 * Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?. 528 * 529 * @param companyId the company ID 530 * @param parentOrganizationId the parent organization ID 531 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 532 * @return the first matching organization, or <code>null</code> if a matching organization could not be found 533 * @throws SystemException if a system exception occurred 534 */ 535 public com.liferay.portal.model.Organization fetchByC_P_First( 536 long companyId, long parentOrganizationId, 537 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 538 throws com.liferay.portal.kernel.exception.SystemException; 539 540 /** 541 * Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?. 542 * 543 * @param companyId the company ID 544 * @param parentOrganizationId the parent organization ID 545 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 546 * @return the last matching organization 547 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 548 * @throws SystemException if a system exception occurred 549 */ 550 public com.liferay.portal.model.Organization findByC_P_Last( 551 long companyId, long parentOrganizationId, 552 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 553 throws com.liferay.portal.NoSuchOrganizationException, 554 com.liferay.portal.kernel.exception.SystemException; 555 556 /** 557 * Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?. 558 * 559 * @param companyId the company ID 560 * @param parentOrganizationId the parent organization ID 561 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 562 * @return the last matching organization, or <code>null</code> if a matching organization could not be found 563 * @throws SystemException if a system exception occurred 564 */ 565 public com.liferay.portal.model.Organization fetchByC_P_Last( 566 long companyId, long parentOrganizationId, 567 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 568 throws com.liferay.portal.kernel.exception.SystemException; 569 570 /** 571 * Returns the organizations before and after the current organization in the ordered set where companyId = ? and parentOrganizationId = ?. 572 * 573 * @param organizationId the primary key of the current organization 574 * @param companyId the company ID 575 * @param parentOrganizationId the parent organization ID 576 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 577 * @return the previous, current, and next organization 578 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 579 * @throws SystemException if a system exception occurred 580 */ 581 public com.liferay.portal.model.Organization[] findByC_P_PrevAndNext( 582 long organizationId, long companyId, long parentOrganizationId, 583 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 584 throws com.liferay.portal.NoSuchOrganizationException, 585 com.liferay.portal.kernel.exception.SystemException; 586 587 /** 588 * Returns all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?. 589 * 590 * @param companyId the company ID 591 * @param parentOrganizationId the parent organization ID 592 * @return the matching organizations that the user has permission to view 593 * @throws SystemException if a system exception occurred 594 */ 595 public java.util.List<com.liferay.portal.model.Organization> filterFindByC_P( 596 long companyId, long parentOrganizationId) 597 throws com.liferay.portal.kernel.exception.SystemException; 598 599 /** 600 * Returns a range of all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?. 601 * 602 * <p> 603 * 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.OrganizationModelImpl}. 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. 604 * </p> 605 * 606 * @param companyId the company ID 607 * @param parentOrganizationId the parent organization ID 608 * @param start the lower bound of the range of organizations 609 * @param end the upper bound of the range of organizations (not inclusive) 610 * @return the range of matching organizations that the user has permission to view 611 * @throws SystemException if a system exception occurred 612 */ 613 public java.util.List<com.liferay.portal.model.Organization> filterFindByC_P( 614 long companyId, long parentOrganizationId, int start, int end) 615 throws com.liferay.portal.kernel.exception.SystemException; 616 617 /** 618 * Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and parentOrganizationId = ?. 619 * 620 * <p> 621 * 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.OrganizationModelImpl}. 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. 622 * </p> 623 * 624 * @param companyId the company ID 625 * @param parentOrganizationId the parent organization ID 626 * @param start the lower bound of the range of organizations 627 * @param end the upper bound of the range of organizations (not inclusive) 628 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 629 * @return the ordered range of matching organizations that the user has permission to view 630 * @throws SystemException if a system exception occurred 631 */ 632 public java.util.List<com.liferay.portal.model.Organization> filterFindByC_P( 633 long companyId, long parentOrganizationId, int start, int end, 634 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 635 throws com.liferay.portal.kernel.exception.SystemException; 636 637 /** 638 * 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 = ?. 639 * 640 * @param organizationId the primary key of the current organization 641 * @param companyId the company ID 642 * @param parentOrganizationId the parent organization ID 643 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 644 * @return the previous, current, and next organization 645 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 646 * @throws SystemException if a system exception occurred 647 */ 648 public com.liferay.portal.model.Organization[] filterFindByC_P_PrevAndNext( 649 long organizationId, long companyId, long parentOrganizationId, 650 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 651 throws com.liferay.portal.NoSuchOrganizationException, 652 com.liferay.portal.kernel.exception.SystemException; 653 654 /** 655 * Removes all the organizations where companyId = ? and parentOrganizationId = ? from the database. 656 * 657 * @param companyId the company ID 658 * @param parentOrganizationId the parent organization ID 659 * @throws SystemException if a system exception occurred 660 */ 661 public void removeByC_P(long companyId, long parentOrganizationId) 662 throws com.liferay.portal.kernel.exception.SystemException; 663 664 /** 665 * Returns the number of organizations where companyId = ? and parentOrganizationId = ?. 666 * 667 * @param companyId the company ID 668 * @param parentOrganizationId the parent organization ID 669 * @return the number of matching organizations 670 * @throws SystemException if a system exception occurred 671 */ 672 public int countByC_P(long companyId, long parentOrganizationId) 673 throws com.liferay.portal.kernel.exception.SystemException; 674 675 /** 676 * Returns the number of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?. 677 * 678 * @param companyId the company ID 679 * @param parentOrganizationId the parent organization ID 680 * @return the number of matching organizations that the user has permission to view 681 * @throws SystemException if a system exception occurred 682 */ 683 public int filterCountByC_P(long companyId, long parentOrganizationId) 684 throws com.liferay.portal.kernel.exception.SystemException; 685 686 /** 687 * Returns the organization where companyId = ? and name = ? or throws a {@link com.liferay.portal.NoSuchOrganizationException} if it could not be found. 688 * 689 * @param companyId the company ID 690 * @param name the name 691 * @return the matching organization 692 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 693 * @throws SystemException if a system exception occurred 694 */ 695 public com.liferay.portal.model.Organization findByC_N(long companyId, 696 java.lang.String name) 697 throws com.liferay.portal.NoSuchOrganizationException, 698 com.liferay.portal.kernel.exception.SystemException; 699 700 /** 701 * Returns the organization where companyId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 702 * 703 * @param companyId the company ID 704 * @param name the name 705 * @return the matching organization, or <code>null</code> if a matching organization could not be found 706 * @throws SystemException if a system exception occurred 707 */ 708 public com.liferay.portal.model.Organization fetchByC_N(long companyId, 709 java.lang.String name) 710 throws com.liferay.portal.kernel.exception.SystemException; 711 712 /** 713 * Returns the organization where companyId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 714 * 715 * @param companyId the company ID 716 * @param name the name 717 * @param retrieveFromCache whether to use the finder cache 718 * @return the matching organization, or <code>null</code> if a matching organization could not be found 719 * @throws SystemException if a system exception occurred 720 */ 721 public com.liferay.portal.model.Organization fetchByC_N(long companyId, 722 java.lang.String name, boolean retrieveFromCache) 723 throws com.liferay.portal.kernel.exception.SystemException; 724 725 /** 726 * Removes the organization where companyId = ? and name = ? from the database. 727 * 728 * @param companyId the company ID 729 * @param name the name 730 * @return the organization that was removed 731 * @throws SystemException if a system exception occurred 732 */ 733 public com.liferay.portal.model.Organization removeByC_N(long companyId, 734 java.lang.String name) 735 throws com.liferay.portal.NoSuchOrganizationException, 736 com.liferay.portal.kernel.exception.SystemException; 737 738 /** 739 * Returns the number of organizations where companyId = ? and name = ?. 740 * 741 * @param companyId the company ID 742 * @param name the name 743 * @return the number of matching organizations 744 * @throws SystemException if a system exception occurred 745 */ 746 public int countByC_N(long companyId, java.lang.String name) 747 throws com.liferay.portal.kernel.exception.SystemException; 748 749 /** 750 * Caches the organization in the entity cache if it is enabled. 751 * 752 * @param organization the organization 753 */ 754 public void cacheResult(com.liferay.portal.model.Organization organization); 755 756 /** 757 * Caches the organizations in the entity cache if it is enabled. 758 * 759 * @param organizations the organizations 760 */ 761 public void cacheResult( 762 java.util.List<com.liferay.portal.model.Organization> organizations); 763 764 /** 765 * Creates a new organization with the primary key. Does not add the organization to the database. 766 * 767 * @param organizationId the primary key for the new organization 768 * @return the new organization 769 */ 770 public com.liferay.portal.model.Organization create(long organizationId); 771 772 /** 773 * Removes the organization with the primary key from the database. Also notifies the appropriate model listeners. 774 * 775 * @param organizationId the primary key of the organization 776 * @return the organization that was removed 777 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 778 * @throws SystemException if a system exception occurred 779 */ 780 public com.liferay.portal.model.Organization remove(long organizationId) 781 throws com.liferay.portal.NoSuchOrganizationException, 782 com.liferay.portal.kernel.exception.SystemException; 783 784 public com.liferay.portal.model.Organization updateImpl( 785 com.liferay.portal.model.Organization organization) 786 throws com.liferay.portal.kernel.exception.SystemException; 787 788 /** 789 * Returns the organization with the primary key or throws a {@link com.liferay.portal.NoSuchOrganizationException} if it could not be found. 790 * 791 * @param organizationId the primary key of the organization 792 * @return the organization 793 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 794 * @throws SystemException if a system exception occurred 795 */ 796 public com.liferay.portal.model.Organization findByPrimaryKey( 797 long organizationId) 798 throws com.liferay.portal.NoSuchOrganizationException, 799 com.liferay.portal.kernel.exception.SystemException; 800 801 /** 802 * Returns the organization with the primary key or returns <code>null</code> if it could not be found. 803 * 804 * @param organizationId the primary key of the organization 805 * @return the organization, or <code>null</code> if a organization with the primary key could not be found 806 * @throws SystemException if a system exception occurred 807 */ 808 public com.liferay.portal.model.Organization fetchByPrimaryKey( 809 long organizationId) 810 throws com.liferay.portal.kernel.exception.SystemException; 811 812 /** 813 * Returns all the organizations. 814 * 815 * @return the organizations 816 * @throws SystemException if a system exception occurred 817 */ 818 public java.util.List<com.liferay.portal.model.Organization> findAll() 819 throws com.liferay.portal.kernel.exception.SystemException; 820 821 /** 822 * Returns a range of all the organizations. 823 * 824 * <p> 825 * 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.OrganizationModelImpl}. 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. 826 * </p> 827 * 828 * @param start the lower bound of the range of organizations 829 * @param end the upper bound of the range of organizations (not inclusive) 830 * @return the range of organizations 831 * @throws SystemException if a system exception occurred 832 */ 833 public java.util.List<com.liferay.portal.model.Organization> findAll( 834 int start, int end) 835 throws com.liferay.portal.kernel.exception.SystemException; 836 837 /** 838 * Returns an ordered range of all the organizations. 839 * 840 * <p> 841 * 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.OrganizationModelImpl}. 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. 842 * </p> 843 * 844 * @param start the lower bound of the range of organizations 845 * @param end the upper bound of the range of organizations (not inclusive) 846 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 847 * @return the ordered range of organizations 848 * @throws SystemException if a system exception occurred 849 */ 850 public java.util.List<com.liferay.portal.model.Organization> findAll( 851 int start, int end, 852 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 853 throws com.liferay.portal.kernel.exception.SystemException; 854 855 /** 856 * Removes all the organizations from the database. 857 * 858 * @throws SystemException if a system exception occurred 859 */ 860 public void removeAll() 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. 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.OrganizationModelImpl}. 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. 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. 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.OrganizationModelImpl}. 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. 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. 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.OrganizationModelImpl}. 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. 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. 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.OrganizationModelImpl}. 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. 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 }