001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.model.Organization; 020 021 /** 022 * The persistence interface for the organization service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see OrganizationPersistenceImpl 030 * @see OrganizationUtil 031 * @generated 032 */ 033 @ProviderType 034 public interface OrganizationPersistence extends BasePersistence<Organization> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * 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. 039 */ 040 041 /** 042 * Returns all the organizations where uuid = ?. 043 * 044 * @param uuid the uuid 045 * @return the matching organizations 046 * @throws SystemException if a system exception occurred 047 */ 048 public java.util.List<com.liferay.portal.model.Organization> findByUuid( 049 java.lang.String uuid) 050 throws com.liferay.portal.kernel.exception.SystemException; 051 052 /** 053 * Returns a range of all the organizations where uuid = ?. 054 * 055 * <p> 056 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.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. 057 * </p> 058 * 059 * @param uuid the uuid 060 * @param start the lower bound of the range of organizations 061 * @param end the upper bound of the range of organizations (not inclusive) 062 * @return the range of matching organizations 063 * @throws SystemException if a system exception occurred 064 */ 065 public java.util.List<com.liferay.portal.model.Organization> findByUuid( 066 java.lang.String uuid, int start, int end) 067 throws com.liferay.portal.kernel.exception.SystemException; 068 069 /** 070 * Returns an ordered range of all the organizations where uuid = ?. 071 * 072 * <p> 073 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.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. 074 * </p> 075 * 076 * @param uuid the uuid 077 * @param start the lower bound of the range of organizations 078 * @param end the upper bound of the range of organizations (not inclusive) 079 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 080 * @return the ordered range of matching organizations 081 * @throws SystemException if a system exception occurred 082 */ 083 public java.util.List<com.liferay.portal.model.Organization> findByUuid( 084 java.lang.String uuid, int start, int end, 085 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 086 throws com.liferay.portal.kernel.exception.SystemException; 087 088 /** 089 * Returns the first organization in the ordered set where uuid = ?. 090 * 091 * @param uuid the uuid 092 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 093 * @return the first matching organization 094 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 095 * @throws SystemException if a system exception occurred 096 */ 097 public com.liferay.portal.model.Organization findByUuid_First( 098 java.lang.String uuid, 099 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 100 throws com.liferay.portal.NoSuchOrganizationException, 101 com.liferay.portal.kernel.exception.SystemException; 102 103 /** 104 * Returns the first organization in the ordered set where uuid = ?. 105 * 106 * @param uuid the uuid 107 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 108 * @return the first matching organization, or <code>null</code> if a matching organization could not be found 109 * @throws SystemException if a system exception occurred 110 */ 111 public com.liferay.portal.model.Organization fetchByUuid_First( 112 java.lang.String uuid, 113 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 114 throws com.liferay.portal.kernel.exception.SystemException; 115 116 /** 117 * Returns the last organization in the ordered set where uuid = ?. 118 * 119 * @param uuid the uuid 120 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 121 * @return the last matching organization 122 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 123 * @throws SystemException if a system exception occurred 124 */ 125 public com.liferay.portal.model.Organization findByUuid_Last( 126 java.lang.String uuid, 127 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 128 throws com.liferay.portal.NoSuchOrganizationException, 129 com.liferay.portal.kernel.exception.SystemException; 130 131 /** 132 * Returns the last organization in the ordered set where uuid = ?. 133 * 134 * @param uuid the uuid 135 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 136 * @return the last matching organization, or <code>null</code> if a matching organization could not be found 137 * @throws SystemException if a system exception occurred 138 */ 139 public com.liferay.portal.model.Organization fetchByUuid_Last( 140 java.lang.String uuid, 141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 142 throws com.liferay.portal.kernel.exception.SystemException; 143 144 /** 145 * Returns the organizations before and after the current organization in the ordered set where uuid = ?. 146 * 147 * @param organizationId the primary key of the current organization 148 * @param uuid the uuid 149 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 150 * @return the previous, current, and next organization 151 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 152 * @throws SystemException if a system exception occurred 153 */ 154 public com.liferay.portal.model.Organization[] findByUuid_PrevAndNext( 155 long organizationId, java.lang.String uuid, 156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 157 throws com.liferay.portal.NoSuchOrganizationException, 158 com.liferay.portal.kernel.exception.SystemException; 159 160 /** 161 * Returns all the organizations that the user has permission to view where uuid = ?. 162 * 163 * @param uuid the uuid 164 * @return the matching organizations that the user has permission to view 165 * @throws SystemException if a system exception occurred 166 */ 167 public java.util.List<com.liferay.portal.model.Organization> filterFindByUuid( 168 java.lang.String uuid) 169 throws com.liferay.portal.kernel.exception.SystemException; 170 171 /** 172 * Returns a range of all the organizations that the user has permission to view where uuid = ?. 173 * 174 * <p> 175 * 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. 176 * </p> 177 * 178 * @param uuid the uuid 179 * @param start the lower bound of the range of organizations 180 * @param end the upper bound of the range of organizations (not inclusive) 181 * @return the range of matching organizations that the user has permission to view 182 * @throws SystemException if a system exception occurred 183 */ 184 public java.util.List<com.liferay.portal.model.Organization> filterFindByUuid( 185 java.lang.String uuid, int start, int end) 186 throws com.liferay.portal.kernel.exception.SystemException; 187 188 /** 189 * Returns an ordered range of all the organizations that the user has permissions to view where uuid = ?. 190 * 191 * <p> 192 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.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. 193 * </p> 194 * 195 * @param uuid the uuid 196 * @param start the lower bound of the range of organizations 197 * @param end the upper bound of the range of organizations (not inclusive) 198 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 199 * @return the ordered range of matching organizations that the user has permission to view 200 * @throws SystemException if a system exception occurred 201 */ 202 public java.util.List<com.liferay.portal.model.Organization> filterFindByUuid( 203 java.lang.String uuid, int start, int end, 204 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 205 throws com.liferay.portal.kernel.exception.SystemException; 206 207 /** 208 * Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where uuid = ?. 209 * 210 * @param organizationId the primary key of the current organization 211 * @param uuid the uuid 212 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 213 * @return the previous, current, and next organization 214 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 215 * @throws SystemException if a system exception occurred 216 */ 217 public com.liferay.portal.model.Organization[] filterFindByUuid_PrevAndNext( 218 long organizationId, java.lang.String uuid, 219 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 220 throws com.liferay.portal.NoSuchOrganizationException, 221 com.liferay.portal.kernel.exception.SystemException; 222 223 /** 224 * Removes all the organizations where uuid = ? from the database. 225 * 226 * @param uuid the uuid 227 * @throws SystemException if a system exception occurred 228 */ 229 public void removeByUuid(java.lang.String uuid) 230 throws com.liferay.portal.kernel.exception.SystemException; 231 232 /** 233 * Returns the number of organizations where uuid = ?. 234 * 235 * @param uuid the uuid 236 * @return the number of matching organizations 237 * @throws SystemException if a system exception occurred 238 */ 239 public int countByUuid(java.lang.String uuid) 240 throws com.liferay.portal.kernel.exception.SystemException; 241 242 /** 243 * Returns the number of organizations that the user has permission to view where uuid = ?. 244 * 245 * @param uuid the uuid 246 * @return the number of matching organizations that the user has permission to view 247 * @throws SystemException if a system exception occurred 248 */ 249 public int filterCountByUuid(java.lang.String uuid) 250 throws com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * Returns all the organizations where uuid = ? and companyId = ?. 254 * 255 * @param uuid the uuid 256 * @param companyId the company ID 257 * @return the matching organizations 258 * @throws SystemException if a system exception occurred 259 */ 260 public java.util.List<com.liferay.portal.model.Organization> findByUuid_C( 261 java.lang.String uuid, long companyId) 262 throws com.liferay.portal.kernel.exception.SystemException; 263 264 /** 265 * Returns a range of all the organizations where uuid = ? and companyId = ?. 266 * 267 * <p> 268 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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. 269 * </p> 270 * 271 * @param uuid the uuid 272 * @param companyId the company ID 273 * @param start the lower bound of the range of organizations 274 * @param end the upper bound of the range of organizations (not inclusive) 275 * @return the range of matching organizations 276 * @throws SystemException if a system exception occurred 277 */ 278 public java.util.List<com.liferay.portal.model.Organization> findByUuid_C( 279 java.lang.String uuid, long companyId, int start, int end) 280 throws com.liferay.portal.kernel.exception.SystemException; 281 282 /** 283 * Returns an ordered range of all the organizations where uuid = ? and companyId = ?. 284 * 285 * <p> 286 * 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. 287 * </p> 288 * 289 * @param uuid the uuid 290 * @param companyId the company ID 291 * @param start the lower bound of the range of organizations 292 * @param end the upper bound of the range of organizations (not inclusive) 293 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 294 * @return the ordered range of matching organizations 295 * @throws SystemException if a system exception occurred 296 */ 297 public java.util.List<com.liferay.portal.model.Organization> findByUuid_C( 298 java.lang.String uuid, long companyId, int start, int end, 299 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 300 throws com.liferay.portal.kernel.exception.SystemException; 301 302 /** 303 * Returns the first organization in the ordered set where uuid = ? and companyId = ?. 304 * 305 * @param uuid the uuid 306 * @param companyId the company ID 307 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 308 * @return the first matching organization 309 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 310 * @throws SystemException if a system exception occurred 311 */ 312 public com.liferay.portal.model.Organization findByUuid_C_First( 313 java.lang.String uuid, long companyId, 314 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 315 throws com.liferay.portal.NoSuchOrganizationException, 316 com.liferay.portal.kernel.exception.SystemException; 317 318 /** 319 * Returns the first organization in the ordered set where uuid = ? and companyId = ?. 320 * 321 * @param uuid the uuid 322 * @param companyId the company ID 323 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 324 * @return the first matching organization, or <code>null</code> if a matching organization could not be found 325 * @throws SystemException if a system exception occurred 326 */ 327 public com.liferay.portal.model.Organization fetchByUuid_C_First( 328 java.lang.String uuid, long companyId, 329 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 330 throws com.liferay.portal.kernel.exception.SystemException; 331 332 /** 333 * Returns the last organization in the ordered set where uuid = ? and companyId = ?. 334 * 335 * @param uuid the uuid 336 * @param companyId the company ID 337 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 338 * @return the last matching organization 339 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 340 * @throws SystemException if a system exception occurred 341 */ 342 public com.liferay.portal.model.Organization findByUuid_C_Last( 343 java.lang.String uuid, long companyId, 344 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 345 throws com.liferay.portal.NoSuchOrganizationException, 346 com.liferay.portal.kernel.exception.SystemException; 347 348 /** 349 * Returns the last organization in the ordered set where uuid = ? and companyId = ?. 350 * 351 * @param uuid the uuid 352 * @param companyId the company ID 353 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 354 * @return the last matching organization, or <code>null</code> if a matching organization could not be found 355 * @throws SystemException if a system exception occurred 356 */ 357 public com.liferay.portal.model.Organization fetchByUuid_C_Last( 358 java.lang.String uuid, long companyId, 359 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 360 throws com.liferay.portal.kernel.exception.SystemException; 361 362 /** 363 * Returns the organizations before and after the current organization in the ordered set where uuid = ? and companyId = ?. 364 * 365 * @param organizationId the primary key of the current organization 366 * @param uuid the uuid 367 * @param companyId the company ID 368 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 369 * @return the previous, current, and next organization 370 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 371 * @throws SystemException if a system exception occurred 372 */ 373 public com.liferay.portal.model.Organization[] findByUuid_C_PrevAndNext( 374 long organizationId, java.lang.String uuid, long companyId, 375 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 376 throws com.liferay.portal.NoSuchOrganizationException, 377 com.liferay.portal.kernel.exception.SystemException; 378 379 /** 380 * Returns all the organizations that the user has permission to view where uuid = ? and companyId = ?. 381 * 382 * @param uuid the uuid 383 * @param companyId the company ID 384 * @return the matching organizations that the user has permission to view 385 * @throws SystemException if a system exception occurred 386 */ 387 public java.util.List<com.liferay.portal.model.Organization> filterFindByUuid_C( 388 java.lang.String uuid, long companyId) 389 throws com.liferay.portal.kernel.exception.SystemException; 390 391 /** 392 * Returns a range of all the organizations that the user has permission to view where uuid = ? and companyId = ?. 393 * 394 * <p> 395 * 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. 396 * </p> 397 * 398 * @param uuid the uuid 399 * @param companyId the company ID 400 * @param start the lower bound of the range of organizations 401 * @param end the upper bound of the range of organizations (not inclusive) 402 * @return the range of matching organizations that the user has permission to view 403 * @throws SystemException if a system exception occurred 404 */ 405 public java.util.List<com.liferay.portal.model.Organization> filterFindByUuid_C( 406 java.lang.String uuid, long companyId, int start, int end) 407 throws com.liferay.portal.kernel.exception.SystemException; 408 409 /** 410 * Returns an ordered range of all the organizations that the user has permissions to view where uuid = ? and companyId = ?. 411 * 412 * <p> 413 * 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. 414 * </p> 415 * 416 * @param uuid the uuid 417 * @param companyId the company ID 418 * @param start the lower bound of the range of organizations 419 * @param end the upper bound of the range of organizations (not inclusive) 420 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 421 * @return the ordered range of matching organizations that the user has permission to view 422 * @throws SystemException if a system exception occurred 423 */ 424 public java.util.List<com.liferay.portal.model.Organization> filterFindByUuid_C( 425 java.lang.String uuid, long companyId, int start, int end, 426 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 427 throws com.liferay.portal.kernel.exception.SystemException; 428 429 /** 430 * Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where uuid = ? and companyId = ?. 431 * 432 * @param organizationId the primary key of the current organization 433 * @param uuid the uuid 434 * @param companyId the company ID 435 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 436 * @return the previous, current, and next organization 437 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 438 * @throws SystemException if a system exception occurred 439 */ 440 public com.liferay.portal.model.Organization[] filterFindByUuid_C_PrevAndNext( 441 long organizationId, java.lang.String uuid, long companyId, 442 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 443 throws com.liferay.portal.NoSuchOrganizationException, 444 com.liferay.portal.kernel.exception.SystemException; 445 446 /** 447 * Removes all the organizations where uuid = ? and companyId = ? from the database. 448 * 449 * @param uuid the uuid 450 * @param companyId the company ID 451 * @throws SystemException if a system exception occurred 452 */ 453 public void removeByUuid_C(java.lang.String uuid, long companyId) 454 throws com.liferay.portal.kernel.exception.SystemException; 455 456 /** 457 * Returns the number of organizations where uuid = ? and companyId = ?. 458 * 459 * @param uuid the uuid 460 * @param companyId the company ID 461 * @return the number of matching organizations 462 * @throws SystemException if a system exception occurred 463 */ 464 public int countByUuid_C(java.lang.String uuid, long companyId) 465 throws com.liferay.portal.kernel.exception.SystemException; 466 467 /** 468 * Returns the number of organizations that the user has permission to view where uuid = ? and companyId = ?. 469 * 470 * @param uuid the uuid 471 * @param companyId the company ID 472 * @return the number of matching organizations that the user has permission to view 473 * @throws SystemException if a system exception occurred 474 */ 475 public int filterCountByUuid_C(java.lang.String uuid, long companyId) 476 throws com.liferay.portal.kernel.exception.SystemException; 477 478 /** 479 * Returns all the organizations where companyId = ?. 480 * 481 * @param companyId the company ID 482 * @return the matching organizations 483 * @throws SystemException if a system exception occurred 484 */ 485 public java.util.List<com.liferay.portal.model.Organization> findByCompanyId( 486 long companyId) 487 throws com.liferay.portal.kernel.exception.SystemException; 488 489 /** 490 * Returns a range of all the organizations where companyId = ?. 491 * 492 * <p> 493 * 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. 494 * </p> 495 * 496 * @param companyId the company ID 497 * @param start the lower bound of the range of organizations 498 * @param end the upper bound of the range of organizations (not inclusive) 499 * @return the range of matching organizations 500 * @throws SystemException if a system exception occurred 501 */ 502 public java.util.List<com.liferay.portal.model.Organization> findByCompanyId( 503 long companyId, int start, int end) 504 throws com.liferay.portal.kernel.exception.SystemException; 505 506 /** 507 * Returns an ordered range of all the organizations where companyId = ?. 508 * 509 * <p> 510 * 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. 511 * </p> 512 * 513 * @param companyId the company ID 514 * @param start the lower bound of the range of organizations 515 * @param end the upper bound of the range of organizations (not inclusive) 516 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 517 * @return the ordered range of matching organizations 518 * @throws SystemException if a system exception occurred 519 */ 520 public java.util.List<com.liferay.portal.model.Organization> findByCompanyId( 521 long companyId, int start, int end, 522 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 523 throws com.liferay.portal.kernel.exception.SystemException; 524 525 /** 526 * Returns the first organization in the ordered set where companyId = ?. 527 * 528 * @param companyId the company ID 529 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 530 * @return the first matching organization 531 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 532 * @throws SystemException if a system exception occurred 533 */ 534 public com.liferay.portal.model.Organization findByCompanyId_First( 535 long companyId, 536 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 537 throws com.liferay.portal.NoSuchOrganizationException, 538 com.liferay.portal.kernel.exception.SystemException; 539 540 /** 541 * Returns the first organization in the ordered set where companyId = ?. 542 * 543 * @param companyId the company ID 544 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 545 * @return the first matching organization, or <code>null</code> if a matching organization could not be found 546 * @throws SystemException if a system exception occurred 547 */ 548 public com.liferay.portal.model.Organization fetchByCompanyId_First( 549 long companyId, 550 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 551 throws com.liferay.portal.kernel.exception.SystemException; 552 553 /** 554 * Returns the last organization in the ordered set where companyId = ?. 555 * 556 * @param companyId the company ID 557 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 558 * @return the last matching organization 559 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 560 * @throws SystemException if a system exception occurred 561 */ 562 public com.liferay.portal.model.Organization findByCompanyId_Last( 563 long companyId, 564 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 565 throws com.liferay.portal.NoSuchOrganizationException, 566 com.liferay.portal.kernel.exception.SystemException; 567 568 /** 569 * Returns the last organization in the ordered set where companyId = ?. 570 * 571 * @param companyId the company ID 572 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 573 * @return the last matching organization, or <code>null</code> if a matching organization could not be found 574 * @throws SystemException if a system exception occurred 575 */ 576 public com.liferay.portal.model.Organization fetchByCompanyId_Last( 577 long companyId, 578 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 579 throws com.liferay.portal.kernel.exception.SystemException; 580 581 /** 582 * Returns the organizations before and after the current organization in the ordered set where companyId = ?. 583 * 584 * @param organizationId the primary key of the current organization 585 * @param companyId the company ID 586 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 587 * @return the previous, current, and next organization 588 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 589 * @throws SystemException if a system exception occurred 590 */ 591 public com.liferay.portal.model.Organization[] findByCompanyId_PrevAndNext( 592 long organizationId, long companyId, 593 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 594 throws com.liferay.portal.NoSuchOrganizationException, 595 com.liferay.portal.kernel.exception.SystemException; 596 597 /** 598 * Returns all the organizations that the user has permission to view where companyId = ?. 599 * 600 * @param companyId the company ID 601 * @return the matching organizations that the user has permission to view 602 * @throws SystemException if a system exception occurred 603 */ 604 public java.util.List<com.liferay.portal.model.Organization> filterFindByCompanyId( 605 long companyId) 606 throws com.liferay.portal.kernel.exception.SystemException; 607 608 /** 609 * Returns a range of all the organizations that the user has permission to view where companyId = ?. 610 * 611 * <p> 612 * 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. 613 * </p> 614 * 615 * @param companyId the company ID 616 * @param start the lower bound of the range of organizations 617 * @param end the upper bound of the range of organizations (not inclusive) 618 * @return the range of matching organizations that the user has permission to view 619 * @throws SystemException if a system exception occurred 620 */ 621 public java.util.List<com.liferay.portal.model.Organization> filterFindByCompanyId( 622 long companyId, int start, int end) 623 throws com.liferay.portal.kernel.exception.SystemException; 624 625 /** 626 * Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?. 627 * 628 * <p> 629 * 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. 630 * </p> 631 * 632 * @param companyId the company ID 633 * @param start the lower bound of the range of organizations 634 * @param end the upper bound of the range of organizations (not inclusive) 635 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 636 * @return the ordered range of matching organizations that the user has permission to view 637 * @throws SystemException if a system exception occurred 638 */ 639 public java.util.List<com.liferay.portal.model.Organization> filterFindByCompanyId( 640 long companyId, int start, int end, 641 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 642 throws com.liferay.portal.kernel.exception.SystemException; 643 644 /** 645 * Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ?. 646 * 647 * @param organizationId the primary key of the current organization 648 * @param companyId the company ID 649 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 650 * @return the previous, current, and next organization 651 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 652 * @throws SystemException if a system exception occurred 653 */ 654 public com.liferay.portal.model.Organization[] filterFindByCompanyId_PrevAndNext( 655 long organizationId, long companyId, 656 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 657 throws com.liferay.portal.NoSuchOrganizationException, 658 com.liferay.portal.kernel.exception.SystemException; 659 660 /** 661 * Removes all the organizations where companyId = ? from the database. 662 * 663 * @param companyId the company ID 664 * @throws SystemException if a system exception occurred 665 */ 666 public void removeByCompanyId(long companyId) 667 throws com.liferay.portal.kernel.exception.SystemException; 668 669 /** 670 * Returns the number of organizations where companyId = ?. 671 * 672 * @param companyId the company ID 673 * @return the number of matching organizations 674 * @throws SystemException if a system exception occurred 675 */ 676 public int countByCompanyId(long companyId) 677 throws com.liferay.portal.kernel.exception.SystemException; 678 679 /** 680 * Returns the number of organizations that the user has permission to view where companyId = ?. 681 * 682 * @param companyId the company ID 683 * @return the number of matching organizations that the user has permission to view 684 * @throws SystemException if a system exception occurred 685 */ 686 public int filterCountByCompanyId(long companyId) 687 throws com.liferay.portal.kernel.exception.SystemException; 688 689 /** 690 * Returns all the organizations where companyId = ?. 691 * 692 * @param companyId the company ID 693 * @return the matching organizations 694 * @throws SystemException if a system exception occurred 695 */ 696 public java.util.List<com.liferay.portal.model.Organization> findByLocations( 697 long companyId) 698 throws com.liferay.portal.kernel.exception.SystemException; 699 700 /** 701 * Returns a range of all the organizations where companyId = ?. 702 * 703 * <p> 704 * 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. 705 * </p> 706 * 707 * @param companyId the company ID 708 * @param start the lower bound of the range of organizations 709 * @param end the upper bound of the range of organizations (not inclusive) 710 * @return the range of matching organizations 711 * @throws SystemException if a system exception occurred 712 */ 713 public java.util.List<com.liferay.portal.model.Organization> findByLocations( 714 long companyId, int start, int end) 715 throws com.liferay.portal.kernel.exception.SystemException; 716 717 /** 718 * Returns an ordered range of all the organizations where companyId = ?. 719 * 720 * <p> 721 * 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. 722 * </p> 723 * 724 * @param companyId the company ID 725 * @param start the lower bound of the range of organizations 726 * @param end the upper bound of the range of organizations (not inclusive) 727 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 728 * @return the ordered range of matching organizations 729 * @throws SystemException if a system exception occurred 730 */ 731 public java.util.List<com.liferay.portal.model.Organization> findByLocations( 732 long companyId, int start, int end, 733 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 734 throws com.liferay.portal.kernel.exception.SystemException; 735 736 /** 737 * Returns the first organization in the ordered set where companyId = ?. 738 * 739 * @param companyId the company ID 740 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 741 * @return the first matching organization 742 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 743 * @throws SystemException if a system exception occurred 744 */ 745 public com.liferay.portal.model.Organization findByLocations_First( 746 long companyId, 747 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 748 throws com.liferay.portal.NoSuchOrganizationException, 749 com.liferay.portal.kernel.exception.SystemException; 750 751 /** 752 * Returns the first organization in the ordered set where companyId = ?. 753 * 754 * @param companyId the company ID 755 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 756 * @return the first matching organization, or <code>null</code> if a matching organization could not be found 757 * @throws SystemException if a system exception occurred 758 */ 759 public com.liferay.portal.model.Organization fetchByLocations_First( 760 long companyId, 761 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 762 throws com.liferay.portal.kernel.exception.SystemException; 763 764 /** 765 * Returns the last organization in the ordered set where companyId = ?. 766 * 767 * @param companyId the company ID 768 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 769 * @return the last matching organization 770 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 771 * @throws SystemException if a system exception occurred 772 */ 773 public com.liferay.portal.model.Organization findByLocations_Last( 774 long companyId, 775 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 776 throws com.liferay.portal.NoSuchOrganizationException, 777 com.liferay.portal.kernel.exception.SystemException; 778 779 /** 780 * Returns the last organization in the ordered set where companyId = ?. 781 * 782 * @param companyId the company ID 783 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 784 * @return the last matching organization, or <code>null</code> if a matching organization could not be found 785 * @throws SystemException if a system exception occurred 786 */ 787 public com.liferay.portal.model.Organization fetchByLocations_Last( 788 long companyId, 789 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 790 throws com.liferay.portal.kernel.exception.SystemException; 791 792 /** 793 * Returns the organizations before and after the current organization in the ordered set where companyId = ?. 794 * 795 * @param organizationId the primary key of the current organization 796 * @param companyId the company ID 797 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 798 * @return the previous, current, and next organization 799 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 800 * @throws SystemException if a system exception occurred 801 */ 802 public com.liferay.portal.model.Organization[] findByLocations_PrevAndNext( 803 long organizationId, long companyId, 804 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 805 throws com.liferay.portal.NoSuchOrganizationException, 806 com.liferay.portal.kernel.exception.SystemException; 807 808 /** 809 * Returns all the organizations that the user has permission to view where companyId = ?. 810 * 811 * @param companyId the company ID 812 * @return the matching organizations that the user has permission to view 813 * @throws SystemException if a system exception occurred 814 */ 815 public java.util.List<com.liferay.portal.model.Organization> filterFindByLocations( 816 long companyId) 817 throws com.liferay.portal.kernel.exception.SystemException; 818 819 /** 820 * Returns a range of all the organizations that the user has permission to view where companyId = ?. 821 * 822 * <p> 823 * 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. 824 * </p> 825 * 826 * @param companyId the company ID 827 * @param start the lower bound of the range of organizations 828 * @param end the upper bound of the range of organizations (not inclusive) 829 * @return the range of matching organizations that the user has permission to view 830 * @throws SystemException if a system exception occurred 831 */ 832 public java.util.List<com.liferay.portal.model.Organization> filterFindByLocations( 833 long companyId, int start, int end) 834 throws com.liferay.portal.kernel.exception.SystemException; 835 836 /** 837 * Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?. 838 * 839 * <p> 840 * 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. 841 * </p> 842 * 843 * @param companyId the company ID 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 matching organizations that the user has permission to view 848 * @throws SystemException if a system exception occurred 849 */ 850 public java.util.List<com.liferay.portal.model.Organization> filterFindByLocations( 851 long companyId, int start, int end, 852 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 853 throws com.liferay.portal.kernel.exception.SystemException; 854 855 /** 856 * Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ?. 857 * 858 * @param organizationId the primary key of the current organization 859 * @param companyId the company ID 860 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 861 * @return the previous, current, and next organization 862 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 863 * @throws SystemException if a system exception occurred 864 */ 865 public com.liferay.portal.model.Organization[] filterFindByLocations_PrevAndNext( 866 long organizationId, long companyId, 867 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 868 throws com.liferay.portal.NoSuchOrganizationException, 869 com.liferay.portal.kernel.exception.SystemException; 870 871 /** 872 * Removes all the organizations where companyId = ? from the database. 873 * 874 * @param companyId the company ID 875 * @throws SystemException if a system exception occurred 876 */ 877 public void removeByLocations(long companyId) 878 throws com.liferay.portal.kernel.exception.SystemException; 879 880 /** 881 * Returns the number of organizations where companyId = ?. 882 * 883 * @param companyId the company ID 884 * @return the number of matching organizations 885 * @throws SystemException if a system exception occurred 886 */ 887 public int countByLocations(long companyId) 888 throws com.liferay.portal.kernel.exception.SystemException; 889 890 /** 891 * Returns the number of organizations that the user has permission to view where companyId = ?. 892 * 893 * @param companyId the company ID 894 * @return the number of matching organizations that the user has permission to view 895 * @throws SystemException if a system exception occurred 896 */ 897 public int filterCountByLocations(long companyId) 898 throws com.liferay.portal.kernel.exception.SystemException; 899 900 /** 901 * Returns all the organizations where companyId = ? and parentOrganizationId = ?. 902 * 903 * @param companyId the company ID 904 * @param parentOrganizationId the parent organization ID 905 * @return the matching organizations 906 * @throws SystemException if a system exception occurred 907 */ 908 public java.util.List<com.liferay.portal.model.Organization> findByC_P( 909 long companyId, long parentOrganizationId) 910 throws com.liferay.portal.kernel.exception.SystemException; 911 912 /** 913 * Returns a range of all the organizations where companyId = ? and parentOrganizationId = ?. 914 * 915 * <p> 916 * 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. 917 * </p> 918 * 919 * @param companyId the company ID 920 * @param parentOrganizationId the parent organization ID 921 * @param start the lower bound of the range of organizations 922 * @param end the upper bound of the range of organizations (not inclusive) 923 * @return the range of matching organizations 924 * @throws SystemException if a system exception occurred 925 */ 926 public java.util.List<com.liferay.portal.model.Organization> findByC_P( 927 long companyId, long parentOrganizationId, int start, int end) 928 throws com.liferay.portal.kernel.exception.SystemException; 929 930 /** 931 * Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ?. 932 * 933 * <p> 934 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.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. 935 * </p> 936 * 937 * @param companyId the company ID 938 * @param parentOrganizationId the parent organization ID 939 * @param start the lower bound of the range of organizations 940 * @param end the upper bound of the range of organizations (not inclusive) 941 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 942 * @return the ordered range of matching organizations 943 * @throws SystemException if a system exception occurred 944 */ 945 public java.util.List<com.liferay.portal.model.Organization> findByC_P( 946 long companyId, long parentOrganizationId, int start, int end, 947 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 948 throws com.liferay.portal.kernel.exception.SystemException; 949 950 /** 951 * Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?. 952 * 953 * @param companyId the company ID 954 * @param parentOrganizationId the parent organization ID 955 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 956 * @return the first matching organization 957 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 958 * @throws SystemException if a system exception occurred 959 */ 960 public com.liferay.portal.model.Organization findByC_P_First( 961 long companyId, long parentOrganizationId, 962 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 963 throws com.liferay.portal.NoSuchOrganizationException, 964 com.liferay.portal.kernel.exception.SystemException; 965 966 /** 967 * Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?. 968 * 969 * @param companyId the company ID 970 * @param parentOrganizationId the parent organization ID 971 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 972 * @return the first matching organization, or <code>null</code> if a matching organization could not be found 973 * @throws SystemException if a system exception occurred 974 */ 975 public com.liferay.portal.model.Organization fetchByC_P_First( 976 long companyId, long parentOrganizationId, 977 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 978 throws com.liferay.portal.kernel.exception.SystemException; 979 980 /** 981 * Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?. 982 * 983 * @param companyId the company ID 984 * @param parentOrganizationId the parent organization ID 985 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 986 * @return the last matching organization 987 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 988 * @throws SystemException if a system exception occurred 989 */ 990 public com.liferay.portal.model.Organization findByC_P_Last( 991 long companyId, long parentOrganizationId, 992 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 993 throws com.liferay.portal.NoSuchOrganizationException, 994 com.liferay.portal.kernel.exception.SystemException; 995 996 /** 997 * Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?. 998 * 999 * @param companyId the company ID 1000 * @param parentOrganizationId the parent organization ID 1001 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1002 * @return the last matching organization, or <code>null</code> if a matching organization could not be found 1003 * @throws SystemException if a system exception occurred 1004 */ 1005 public com.liferay.portal.model.Organization fetchByC_P_Last( 1006 long companyId, long parentOrganizationId, 1007 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1008 throws com.liferay.portal.kernel.exception.SystemException; 1009 1010 /** 1011 * Returns the organizations before and after the current organization in the ordered set where companyId = ? and parentOrganizationId = ?. 1012 * 1013 * @param organizationId the primary key of the current organization 1014 * @param companyId the company ID 1015 * @param parentOrganizationId the parent organization ID 1016 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1017 * @return the previous, current, and next organization 1018 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 1019 * @throws SystemException if a system exception occurred 1020 */ 1021 public com.liferay.portal.model.Organization[] findByC_P_PrevAndNext( 1022 long organizationId, long companyId, long parentOrganizationId, 1023 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1024 throws com.liferay.portal.NoSuchOrganizationException, 1025 com.liferay.portal.kernel.exception.SystemException; 1026 1027 /** 1028 * Returns all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?. 1029 * 1030 * @param companyId the company ID 1031 * @param parentOrganizationId the parent organization ID 1032 * @return the matching organizations that the user has permission to view 1033 * @throws SystemException if a system exception occurred 1034 */ 1035 public java.util.List<com.liferay.portal.model.Organization> filterFindByC_P( 1036 long companyId, long parentOrganizationId) 1037 throws com.liferay.portal.kernel.exception.SystemException; 1038 1039 /** 1040 * Returns a range of all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?. 1041 * 1042 * <p> 1043 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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. 1044 * </p> 1045 * 1046 * @param companyId the company ID 1047 * @param parentOrganizationId the parent organization ID 1048 * @param start the lower bound of the range of organizations 1049 * @param end the upper bound of the range of organizations (not inclusive) 1050 * @return the range of matching organizations that the user has permission to view 1051 * @throws SystemException if a system exception occurred 1052 */ 1053 public java.util.List<com.liferay.portal.model.Organization> filterFindByC_P( 1054 long companyId, long parentOrganizationId, int start, int end) 1055 throws com.liferay.portal.kernel.exception.SystemException; 1056 1057 /** 1058 * Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and parentOrganizationId = ?. 1059 * 1060 * <p> 1061 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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. 1062 * </p> 1063 * 1064 * @param companyId the company ID 1065 * @param parentOrganizationId the parent organization ID 1066 * @param start the lower bound of the range of organizations 1067 * @param end the upper bound of the range of organizations (not inclusive) 1068 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1069 * @return the ordered range of matching organizations that the user has permission to view 1070 * @throws SystemException if a system exception occurred 1071 */ 1072 public java.util.List<com.liferay.portal.model.Organization> filterFindByC_P( 1073 long companyId, long parentOrganizationId, int start, int end, 1074 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1075 throws com.liferay.portal.kernel.exception.SystemException; 1076 1077 /** 1078 * 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 = ?. 1079 * 1080 * @param organizationId the primary key of the current organization 1081 * @param companyId the company ID 1082 * @param parentOrganizationId the parent organization ID 1083 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1084 * @return the previous, current, and next organization 1085 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 1086 * @throws SystemException if a system exception occurred 1087 */ 1088 public com.liferay.portal.model.Organization[] filterFindByC_P_PrevAndNext( 1089 long organizationId, long companyId, long parentOrganizationId, 1090 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1091 throws com.liferay.portal.NoSuchOrganizationException, 1092 com.liferay.portal.kernel.exception.SystemException; 1093 1094 /** 1095 * Removes all the organizations where companyId = ? and parentOrganizationId = ? from the database. 1096 * 1097 * @param companyId the company ID 1098 * @param parentOrganizationId the parent organization ID 1099 * @throws SystemException if a system exception occurred 1100 */ 1101 public void removeByC_P(long companyId, long parentOrganizationId) 1102 throws com.liferay.portal.kernel.exception.SystemException; 1103 1104 /** 1105 * Returns the number of organizations where companyId = ? and parentOrganizationId = ?. 1106 * 1107 * @param companyId the company ID 1108 * @param parentOrganizationId the parent organization ID 1109 * @return the number of matching organizations 1110 * @throws SystemException if a system exception occurred 1111 */ 1112 public int countByC_P(long companyId, long parentOrganizationId) 1113 throws com.liferay.portal.kernel.exception.SystemException; 1114 1115 /** 1116 * Returns the number of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?. 1117 * 1118 * @param companyId the company ID 1119 * @param parentOrganizationId the parent organization ID 1120 * @return the number of matching organizations that the user has permission to view 1121 * @throws SystemException if a system exception occurred 1122 */ 1123 public int filterCountByC_P(long companyId, long parentOrganizationId) 1124 throws com.liferay.portal.kernel.exception.SystemException; 1125 1126 /** 1127 * Returns all the organizations where companyId = ? and treePath LIKE ?. 1128 * 1129 * @param companyId the company ID 1130 * @param treePath the tree path 1131 * @return the matching organizations 1132 * @throws SystemException if a system exception occurred 1133 */ 1134 public java.util.List<com.liferay.portal.model.Organization> findByC_T( 1135 long companyId, java.lang.String treePath) 1136 throws com.liferay.portal.kernel.exception.SystemException; 1137 1138 /** 1139 * Returns a range of all the organizations where companyId = ? and treePath LIKE ?. 1140 * 1141 * <p> 1142 * 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. 1143 * </p> 1144 * 1145 * @param companyId the company ID 1146 * @param treePath the tree path 1147 * @param start the lower bound of the range of organizations 1148 * @param end the upper bound of the range of organizations (not inclusive) 1149 * @return the range of matching organizations 1150 * @throws SystemException if a system exception occurred 1151 */ 1152 public java.util.List<com.liferay.portal.model.Organization> findByC_T( 1153 long companyId, java.lang.String treePath, int start, int end) 1154 throws com.liferay.portal.kernel.exception.SystemException; 1155 1156 /** 1157 * Returns an ordered range of all the organizations where companyId = ? and treePath LIKE ?. 1158 * 1159 * <p> 1160 * 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. 1161 * </p> 1162 * 1163 * @param companyId the company ID 1164 * @param treePath the tree path 1165 * @param start the lower bound of the range of organizations 1166 * @param end the upper bound of the range of organizations (not inclusive) 1167 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1168 * @return the ordered range of matching organizations 1169 * @throws SystemException if a system exception occurred 1170 */ 1171 public java.util.List<com.liferay.portal.model.Organization> findByC_T( 1172 long companyId, java.lang.String treePath, int start, int end, 1173 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1174 throws com.liferay.portal.kernel.exception.SystemException; 1175 1176 /** 1177 * Returns the first organization in the ordered set where companyId = ? and treePath LIKE ?. 1178 * 1179 * @param companyId the company ID 1180 * @param treePath the tree path 1181 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1182 * @return the first matching organization 1183 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 1184 * @throws SystemException if a system exception occurred 1185 */ 1186 public com.liferay.portal.model.Organization findByC_T_First( 1187 long companyId, java.lang.String treePath, 1188 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1189 throws com.liferay.portal.NoSuchOrganizationException, 1190 com.liferay.portal.kernel.exception.SystemException; 1191 1192 /** 1193 * Returns the first organization in the ordered set where companyId = ? and treePath LIKE ?. 1194 * 1195 * @param companyId the company ID 1196 * @param treePath the tree path 1197 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1198 * @return the first matching organization, or <code>null</code> if a matching organization could not be found 1199 * @throws SystemException if a system exception occurred 1200 */ 1201 public com.liferay.portal.model.Organization fetchByC_T_First( 1202 long companyId, java.lang.String treePath, 1203 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1204 throws com.liferay.portal.kernel.exception.SystemException; 1205 1206 /** 1207 * Returns the last organization in the ordered set where companyId = ? and treePath LIKE ?. 1208 * 1209 * @param companyId the company ID 1210 * @param treePath the tree path 1211 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1212 * @return the last matching organization 1213 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 1214 * @throws SystemException if a system exception occurred 1215 */ 1216 public com.liferay.portal.model.Organization findByC_T_Last( 1217 long companyId, java.lang.String treePath, 1218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1219 throws com.liferay.portal.NoSuchOrganizationException, 1220 com.liferay.portal.kernel.exception.SystemException; 1221 1222 /** 1223 * Returns the last organization in the ordered set where companyId = ? and treePath LIKE ?. 1224 * 1225 * @param companyId the company ID 1226 * @param treePath the tree path 1227 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1228 * @return the last matching organization, or <code>null</code> if a matching organization could not be found 1229 * @throws SystemException if a system exception occurred 1230 */ 1231 public com.liferay.portal.model.Organization fetchByC_T_Last( 1232 long companyId, java.lang.String treePath, 1233 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1234 throws com.liferay.portal.kernel.exception.SystemException; 1235 1236 /** 1237 * Returns the organizations before and after the current organization in the ordered set where companyId = ? and treePath LIKE ?. 1238 * 1239 * @param organizationId the primary key of the current organization 1240 * @param companyId the company ID 1241 * @param treePath the tree path 1242 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1243 * @return the previous, current, and next organization 1244 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 1245 * @throws SystemException if a system exception occurred 1246 */ 1247 public com.liferay.portal.model.Organization[] findByC_T_PrevAndNext( 1248 long organizationId, long companyId, java.lang.String treePath, 1249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1250 throws com.liferay.portal.NoSuchOrganizationException, 1251 com.liferay.portal.kernel.exception.SystemException; 1252 1253 /** 1254 * Returns all the organizations that the user has permission to view where companyId = ? and treePath LIKE ?. 1255 * 1256 * @param companyId the company ID 1257 * @param treePath the tree path 1258 * @return the matching organizations that the user has permission to view 1259 * @throws SystemException if a system exception occurred 1260 */ 1261 public java.util.List<com.liferay.portal.model.Organization> filterFindByC_T( 1262 long companyId, java.lang.String treePath) 1263 throws com.liferay.portal.kernel.exception.SystemException; 1264 1265 /** 1266 * Returns a range of all the organizations that the user has permission to view where companyId = ? and treePath LIKE ?. 1267 * 1268 * <p> 1269 * 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. 1270 * </p> 1271 * 1272 * @param companyId the company ID 1273 * @param treePath the tree path 1274 * @param start the lower bound of the range of organizations 1275 * @param end the upper bound of the range of organizations (not inclusive) 1276 * @return the range of matching organizations that the user has permission to view 1277 * @throws SystemException if a system exception occurred 1278 */ 1279 public java.util.List<com.liferay.portal.model.Organization> filterFindByC_T( 1280 long companyId, java.lang.String treePath, int start, int end) 1281 throws com.liferay.portal.kernel.exception.SystemException; 1282 1283 /** 1284 * Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and treePath LIKE ?. 1285 * 1286 * <p> 1287 * 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. 1288 * </p> 1289 * 1290 * @param companyId the company ID 1291 * @param treePath the tree path 1292 * @param start the lower bound of the range of organizations 1293 * @param end the upper bound of the range of organizations (not inclusive) 1294 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1295 * @return the ordered range of matching organizations that the user has permission to view 1296 * @throws SystemException if a system exception occurred 1297 */ 1298 public java.util.List<com.liferay.portal.model.Organization> filterFindByC_T( 1299 long companyId, java.lang.String treePath, int start, int end, 1300 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1301 throws com.liferay.portal.kernel.exception.SystemException; 1302 1303 /** 1304 * 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 treePath LIKE ?. 1305 * 1306 * @param organizationId the primary key of the current organization 1307 * @param companyId the company ID 1308 * @param treePath the tree path 1309 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1310 * @return the previous, current, and next organization 1311 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 1312 * @throws SystemException if a system exception occurred 1313 */ 1314 public com.liferay.portal.model.Organization[] filterFindByC_T_PrevAndNext( 1315 long organizationId, long companyId, java.lang.String treePath, 1316 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1317 throws com.liferay.portal.NoSuchOrganizationException, 1318 com.liferay.portal.kernel.exception.SystemException; 1319 1320 /** 1321 * Removes all the organizations where companyId = ? and treePath LIKE ? from the database. 1322 * 1323 * @param companyId the company ID 1324 * @param treePath the tree path 1325 * @throws SystemException if a system exception occurred 1326 */ 1327 public void removeByC_T(long companyId, java.lang.String treePath) 1328 throws com.liferay.portal.kernel.exception.SystemException; 1329 1330 /** 1331 * Returns the number of organizations where companyId = ? and treePath LIKE ?. 1332 * 1333 * @param companyId the company ID 1334 * @param treePath the tree path 1335 * @return the number of matching organizations 1336 * @throws SystemException if a system exception occurred 1337 */ 1338 public int countByC_T(long companyId, java.lang.String treePath) 1339 throws com.liferay.portal.kernel.exception.SystemException; 1340 1341 /** 1342 * Returns the number of organizations that the user has permission to view where companyId = ? and treePath LIKE ?. 1343 * 1344 * @param companyId the company ID 1345 * @param treePath the tree path 1346 * @return the number of matching organizations that the user has permission to view 1347 * @throws SystemException if a system exception occurred 1348 */ 1349 public int filterCountByC_T(long companyId, java.lang.String treePath) 1350 throws com.liferay.portal.kernel.exception.SystemException; 1351 1352 /** 1353 * Returns the organization where companyId = ? and name = ? or throws a {@link com.liferay.portal.NoSuchOrganizationException} if it could not be found. 1354 * 1355 * @param companyId the company ID 1356 * @param name the name 1357 * @return the matching organization 1358 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 1359 * @throws SystemException if a system exception occurred 1360 */ 1361 public com.liferay.portal.model.Organization findByC_N(long companyId, 1362 java.lang.String name) 1363 throws com.liferay.portal.NoSuchOrganizationException, 1364 com.liferay.portal.kernel.exception.SystemException; 1365 1366 /** 1367 * Returns the organization where companyId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1368 * 1369 * @param companyId the company ID 1370 * @param name the name 1371 * @return the matching organization, or <code>null</code> if a matching organization could not be found 1372 * @throws SystemException if a system exception occurred 1373 */ 1374 public com.liferay.portal.model.Organization fetchByC_N(long companyId, 1375 java.lang.String name) 1376 throws com.liferay.portal.kernel.exception.SystemException; 1377 1378 /** 1379 * Returns the organization where companyId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1380 * 1381 * @param companyId the company ID 1382 * @param name the name 1383 * @param retrieveFromCache whether to use the finder cache 1384 * @return the matching organization, or <code>null</code> if a matching organization could not be found 1385 * @throws SystemException if a system exception occurred 1386 */ 1387 public com.liferay.portal.model.Organization fetchByC_N(long companyId, 1388 java.lang.String name, boolean retrieveFromCache) 1389 throws com.liferay.portal.kernel.exception.SystemException; 1390 1391 /** 1392 * Removes the organization where companyId = ? and name = ? from the database. 1393 * 1394 * @param companyId the company ID 1395 * @param name the name 1396 * @return the organization that was removed 1397 * @throws SystemException if a system exception occurred 1398 */ 1399 public com.liferay.portal.model.Organization removeByC_N(long companyId, 1400 java.lang.String name) 1401 throws com.liferay.portal.NoSuchOrganizationException, 1402 com.liferay.portal.kernel.exception.SystemException; 1403 1404 /** 1405 * Returns the number of organizations where companyId = ? and name = ?. 1406 * 1407 * @param companyId the company ID 1408 * @param name the name 1409 * @return the number of matching organizations 1410 * @throws SystemException if a system exception occurred 1411 */ 1412 public int countByC_N(long companyId, java.lang.String name) 1413 throws com.liferay.portal.kernel.exception.SystemException; 1414 1415 /** 1416 * Returns all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?. 1417 * 1418 * @param organizationId the organization ID 1419 * @param companyId the company ID 1420 * @param parentOrganizationId the parent organization ID 1421 * @return the matching organizations 1422 * @throws SystemException if a system exception occurred 1423 */ 1424 public java.util.List<com.liferay.portal.model.Organization> findByO_C_P( 1425 long organizationId, long companyId, long parentOrganizationId) 1426 throws com.liferay.portal.kernel.exception.SystemException; 1427 1428 /** 1429 * Returns a range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?. 1430 * 1431 * <p> 1432 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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. 1433 * </p> 1434 * 1435 * @param organizationId the organization ID 1436 * @param companyId the company ID 1437 * @param parentOrganizationId the parent organization ID 1438 * @param start the lower bound of the range of organizations 1439 * @param end the upper bound of the range of organizations (not inclusive) 1440 * @return the range of matching organizations 1441 * @throws SystemException if a system exception occurred 1442 */ 1443 public java.util.List<com.liferay.portal.model.Organization> findByO_C_P( 1444 long organizationId, long companyId, long parentOrganizationId, 1445 int start, int end) 1446 throws com.liferay.portal.kernel.exception.SystemException; 1447 1448 /** 1449 * Returns an ordered range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?. 1450 * 1451 * <p> 1452 * 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. 1453 * </p> 1454 * 1455 * @param organizationId the organization ID 1456 * @param companyId the company ID 1457 * @param parentOrganizationId the parent organization ID 1458 * @param start the lower bound of the range of organizations 1459 * @param end the upper bound of the range of organizations (not inclusive) 1460 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1461 * @return the ordered range of matching organizations 1462 * @throws SystemException if a system exception occurred 1463 */ 1464 public java.util.List<com.liferay.portal.model.Organization> findByO_C_P( 1465 long organizationId, long companyId, long parentOrganizationId, 1466 int start, int end, 1467 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1468 throws com.liferay.portal.kernel.exception.SystemException; 1469 1470 /** 1471 * Returns the first organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?. 1472 * 1473 * @param organizationId the organization ID 1474 * @param companyId the company ID 1475 * @param parentOrganizationId the parent organization ID 1476 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1477 * @return the first matching organization 1478 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 1479 * @throws SystemException if a system exception occurred 1480 */ 1481 public com.liferay.portal.model.Organization findByO_C_P_First( 1482 long organizationId, long companyId, long parentOrganizationId, 1483 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1484 throws com.liferay.portal.NoSuchOrganizationException, 1485 com.liferay.portal.kernel.exception.SystemException; 1486 1487 /** 1488 * Returns the first organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?. 1489 * 1490 * @param organizationId the organization ID 1491 * @param companyId the company ID 1492 * @param parentOrganizationId the parent organization ID 1493 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1494 * @return the first matching organization, or <code>null</code> if a matching organization could not be found 1495 * @throws SystemException if a system exception occurred 1496 */ 1497 public com.liferay.portal.model.Organization fetchByO_C_P_First( 1498 long organizationId, long companyId, long parentOrganizationId, 1499 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1500 throws com.liferay.portal.kernel.exception.SystemException; 1501 1502 /** 1503 * Returns the last organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?. 1504 * 1505 * @param organizationId the organization ID 1506 * @param companyId the company ID 1507 * @param parentOrganizationId the parent organization ID 1508 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1509 * @return the last matching organization 1510 * @throws com.liferay.portal.NoSuchOrganizationException if a matching organization could not be found 1511 * @throws SystemException if a system exception occurred 1512 */ 1513 public com.liferay.portal.model.Organization findByO_C_P_Last( 1514 long organizationId, long companyId, long parentOrganizationId, 1515 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1516 throws com.liferay.portal.NoSuchOrganizationException, 1517 com.liferay.portal.kernel.exception.SystemException; 1518 1519 /** 1520 * Returns the last organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?. 1521 * 1522 * @param organizationId the organization ID 1523 * @param companyId the company ID 1524 * @param parentOrganizationId the parent organization ID 1525 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1526 * @return the last matching organization, or <code>null</code> if a matching organization could not be found 1527 * @throws SystemException if a system exception occurred 1528 */ 1529 public com.liferay.portal.model.Organization fetchByO_C_P_Last( 1530 long organizationId, long companyId, long parentOrganizationId, 1531 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1532 throws com.liferay.portal.kernel.exception.SystemException; 1533 1534 /** 1535 * Returns all the organizations that the user has permission to view where organizationId > ? and companyId = ? and parentOrganizationId = ?. 1536 * 1537 * @param organizationId the organization ID 1538 * @param companyId the company ID 1539 * @param parentOrganizationId the parent organization ID 1540 * @return the matching organizations that the user has permission to view 1541 * @throws SystemException if a system exception occurred 1542 */ 1543 public java.util.List<com.liferay.portal.model.Organization> filterFindByO_C_P( 1544 long organizationId, long companyId, long parentOrganizationId) 1545 throws com.liferay.portal.kernel.exception.SystemException; 1546 1547 /** 1548 * Returns a range of all the organizations that the user has permission to view where organizationId > ? and companyId = ? and parentOrganizationId = ?. 1549 * 1550 * <p> 1551 * 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. 1552 * </p> 1553 * 1554 * @param organizationId the organization ID 1555 * @param companyId the company ID 1556 * @param parentOrganizationId the parent organization ID 1557 * @param start the lower bound of the range of organizations 1558 * @param end the upper bound of the range of organizations (not inclusive) 1559 * @return the range of matching organizations that the user has permission to view 1560 * @throws SystemException if a system exception occurred 1561 */ 1562 public java.util.List<com.liferay.portal.model.Organization> filterFindByO_C_P( 1563 long organizationId, long companyId, long parentOrganizationId, 1564 int start, int end) 1565 throws com.liferay.portal.kernel.exception.SystemException; 1566 1567 /** 1568 * Returns an ordered range of all the organizations that the user has permissions to view where organizationId > ? and companyId = ? and parentOrganizationId = ?. 1569 * 1570 * <p> 1571 * 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. 1572 * </p> 1573 * 1574 * @param organizationId the organization ID 1575 * @param companyId the company ID 1576 * @param parentOrganizationId the parent organization ID 1577 * @param start the lower bound of the range of organizations 1578 * @param end the upper bound of the range of organizations (not inclusive) 1579 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1580 * @return the ordered range of matching organizations that the user has permission to view 1581 * @throws SystemException if a system exception occurred 1582 */ 1583 public java.util.List<com.liferay.portal.model.Organization> filterFindByO_C_P( 1584 long organizationId, long companyId, long parentOrganizationId, 1585 int start, int end, 1586 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1587 throws com.liferay.portal.kernel.exception.SystemException; 1588 1589 /** 1590 * Removes all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ? from the database. 1591 * 1592 * @param organizationId the organization ID 1593 * @param companyId the company ID 1594 * @param parentOrganizationId the parent organization ID 1595 * @throws SystemException if a system exception occurred 1596 */ 1597 public void removeByO_C_P(long organizationId, long companyId, 1598 long parentOrganizationId) 1599 throws com.liferay.portal.kernel.exception.SystemException; 1600 1601 /** 1602 * Returns the number of organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?. 1603 * 1604 * @param organizationId the organization ID 1605 * @param companyId the company ID 1606 * @param parentOrganizationId the parent organization ID 1607 * @return the number of matching organizations 1608 * @throws SystemException if a system exception occurred 1609 */ 1610 public int countByO_C_P(long organizationId, long companyId, 1611 long parentOrganizationId) 1612 throws com.liferay.portal.kernel.exception.SystemException; 1613 1614 /** 1615 * Returns the number of organizations that the user has permission to view where organizationId > ? and companyId = ? and parentOrganizationId = ?. 1616 * 1617 * @param organizationId the organization ID 1618 * @param companyId the company ID 1619 * @param parentOrganizationId the parent organization ID 1620 * @return the number of matching organizations that the user has permission to view 1621 * @throws SystemException if a system exception occurred 1622 */ 1623 public int filterCountByO_C_P(long organizationId, long companyId, 1624 long parentOrganizationId) 1625 throws com.liferay.portal.kernel.exception.SystemException; 1626 1627 /** 1628 * Caches the organization in the entity cache if it is enabled. 1629 * 1630 * @param organization the organization 1631 */ 1632 public void cacheResult(com.liferay.portal.model.Organization organization); 1633 1634 /** 1635 * Caches the organizations in the entity cache if it is enabled. 1636 * 1637 * @param organizations the organizations 1638 */ 1639 public void cacheResult( 1640 java.util.List<com.liferay.portal.model.Organization> organizations); 1641 1642 /** 1643 * Creates a new organization with the primary key. Does not add the organization to the database. 1644 * 1645 * @param organizationId the primary key for the new organization 1646 * @return the new organization 1647 */ 1648 public com.liferay.portal.model.Organization create(long organizationId); 1649 1650 /** 1651 * Removes the organization with the primary key from the database. Also notifies the appropriate model listeners. 1652 * 1653 * @param organizationId the primary key of the organization 1654 * @return the organization that was removed 1655 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 1656 * @throws SystemException if a system exception occurred 1657 */ 1658 public com.liferay.portal.model.Organization remove(long organizationId) 1659 throws com.liferay.portal.NoSuchOrganizationException, 1660 com.liferay.portal.kernel.exception.SystemException; 1661 1662 public com.liferay.portal.model.Organization updateImpl( 1663 com.liferay.portal.model.Organization organization) 1664 throws com.liferay.portal.kernel.exception.SystemException; 1665 1666 /** 1667 * Returns the organization with the primary key or throws a {@link com.liferay.portal.NoSuchOrganizationException} if it could not be found. 1668 * 1669 * @param organizationId the primary key of the organization 1670 * @return the organization 1671 * @throws com.liferay.portal.NoSuchOrganizationException if a organization with the primary key could not be found 1672 * @throws SystemException if a system exception occurred 1673 */ 1674 public com.liferay.portal.model.Organization findByPrimaryKey( 1675 long organizationId) 1676 throws com.liferay.portal.NoSuchOrganizationException, 1677 com.liferay.portal.kernel.exception.SystemException; 1678 1679 /** 1680 * Returns the organization with the primary key or returns <code>null</code> if it could not be found. 1681 * 1682 * @param organizationId the primary key of the organization 1683 * @return the organization, or <code>null</code> if a organization with the primary key could not be found 1684 * @throws SystemException if a system exception occurred 1685 */ 1686 public com.liferay.portal.model.Organization fetchByPrimaryKey( 1687 long organizationId) 1688 throws com.liferay.portal.kernel.exception.SystemException; 1689 1690 /** 1691 * Returns all the organizations. 1692 * 1693 * @return the organizations 1694 * @throws SystemException if a system exception occurred 1695 */ 1696 public java.util.List<com.liferay.portal.model.Organization> findAll() 1697 throws com.liferay.portal.kernel.exception.SystemException; 1698 1699 /** 1700 * Returns a range of all the organizations. 1701 * 1702 * <p> 1703 * 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. 1704 * </p> 1705 * 1706 * @param start the lower bound of the range of organizations 1707 * @param end the upper bound of the range of organizations (not inclusive) 1708 * @return the range of organizations 1709 * @throws SystemException if a system exception occurred 1710 */ 1711 public java.util.List<com.liferay.portal.model.Organization> findAll( 1712 int start, int end) 1713 throws com.liferay.portal.kernel.exception.SystemException; 1714 1715 /** 1716 * Returns an ordered range of all the organizations. 1717 * 1718 * <p> 1719 * 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. 1720 * </p> 1721 * 1722 * @param start the lower bound of the range of organizations 1723 * @param end the upper bound of the range of organizations (not inclusive) 1724 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1725 * @return the ordered range of organizations 1726 * @throws SystemException if a system exception occurred 1727 */ 1728 public java.util.List<com.liferay.portal.model.Organization> findAll( 1729 int start, int end, 1730 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1731 throws com.liferay.portal.kernel.exception.SystemException; 1732 1733 /** 1734 * Removes all the organizations from the database. 1735 * 1736 * @throws SystemException if a system exception occurred 1737 */ 1738 public void removeAll() 1739 throws com.liferay.portal.kernel.exception.SystemException; 1740 1741 /** 1742 * Returns the number of organizations. 1743 * 1744 * @return the number of organizations 1745 * @throws SystemException if a system exception occurred 1746 */ 1747 public int countAll() 1748 throws com.liferay.portal.kernel.exception.SystemException; 1749 1750 /** 1751 * Returns all the groups associated with the organization. 1752 * 1753 * @param pk the primary key of the organization 1754 * @return the groups associated with the organization 1755 * @throws SystemException if a system exception occurred 1756 */ 1757 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk) 1758 throws com.liferay.portal.kernel.exception.SystemException; 1759 1760 /** 1761 * Returns a range of all the groups associated with the organization. 1762 * 1763 * <p> 1764 * 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. 1765 * </p> 1766 * 1767 * @param pk the primary key of the organization 1768 * @param start the lower bound of the range of organizations 1769 * @param end the upper bound of the range of organizations (not inclusive) 1770 * @return the range of groups associated with the organization 1771 * @throws SystemException if a system exception occurred 1772 */ 1773 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk, 1774 int start, int end) 1775 throws com.liferay.portal.kernel.exception.SystemException; 1776 1777 /** 1778 * Returns an ordered range of all the groups associated with the organization. 1779 * 1780 * <p> 1781 * 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. 1782 * </p> 1783 * 1784 * @param pk the primary key of the organization 1785 * @param start the lower bound of the range of organizations 1786 * @param end the upper bound of the range of organizations (not inclusive) 1787 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1788 * @return the ordered range of groups associated with the organization 1789 * @throws SystemException if a system exception occurred 1790 */ 1791 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk, 1792 int start, int end, 1793 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1794 throws com.liferay.portal.kernel.exception.SystemException; 1795 1796 /** 1797 * Returns the number of groups associated with the organization. 1798 * 1799 * @param pk the primary key of the organization 1800 * @return the number of groups associated with the organization 1801 * @throws SystemException if a system exception occurred 1802 */ 1803 public int getGroupsSize(long pk) 1804 throws com.liferay.portal.kernel.exception.SystemException; 1805 1806 /** 1807 * Returns <code>true</code> if the group is associated with the organization. 1808 * 1809 * @param pk the primary key of the organization 1810 * @param groupPK the primary key of the group 1811 * @return <code>true</code> if the group is associated with the organization; <code>false</code> otherwise 1812 * @throws SystemException if a system exception occurred 1813 */ 1814 public boolean containsGroup(long pk, long groupPK) 1815 throws com.liferay.portal.kernel.exception.SystemException; 1816 1817 /** 1818 * Returns <code>true</code> if the organization has any groups associated with it. 1819 * 1820 * @param pk the primary key of the organization to check for associations with groups 1821 * @return <code>true</code> if the organization has any groups associated with it; <code>false</code> otherwise 1822 * @throws SystemException if a system exception occurred 1823 */ 1824 public boolean containsGroups(long pk) 1825 throws com.liferay.portal.kernel.exception.SystemException; 1826 1827 /** 1828 * Adds an association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1829 * 1830 * @param pk the primary key of the organization 1831 * @param groupPK the primary key of the group 1832 * @throws SystemException if a system exception occurred 1833 */ 1834 public void addGroup(long pk, long groupPK) 1835 throws com.liferay.portal.kernel.exception.SystemException; 1836 1837 /** 1838 * Adds an association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1839 * 1840 * @param pk the primary key of the organization 1841 * @param group the group 1842 * @throws SystemException if a system exception occurred 1843 */ 1844 public void addGroup(long pk, com.liferay.portal.model.Group group) 1845 throws com.liferay.portal.kernel.exception.SystemException; 1846 1847 /** 1848 * Adds an association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1849 * 1850 * @param pk the primary key of the organization 1851 * @param groupPKs the primary keys of the groups 1852 * @throws SystemException if a system exception occurred 1853 */ 1854 public void addGroups(long pk, long[] groupPKs) 1855 throws com.liferay.portal.kernel.exception.SystemException; 1856 1857 /** 1858 * Adds an association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1859 * 1860 * @param pk the primary key of the organization 1861 * @param groups the groups 1862 * @throws SystemException if a system exception occurred 1863 */ 1864 public void addGroups(long pk, 1865 java.util.List<com.liferay.portal.model.Group> groups) 1866 throws com.liferay.portal.kernel.exception.SystemException; 1867 1868 /** 1869 * Clears all associations between the organization and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1870 * 1871 * @param pk the primary key of the organization to clear the associated groups from 1872 * @throws SystemException if a system exception occurred 1873 */ 1874 public void clearGroups(long pk) 1875 throws com.liferay.portal.kernel.exception.SystemException; 1876 1877 /** 1878 * Removes the association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1879 * 1880 * @param pk the primary key of the organization 1881 * @param groupPK the primary key of the group 1882 * @throws SystemException if a system exception occurred 1883 */ 1884 public void removeGroup(long pk, long groupPK) 1885 throws com.liferay.portal.kernel.exception.SystemException; 1886 1887 /** 1888 * Removes the association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1889 * 1890 * @param pk the primary key of the organization 1891 * @param group the group 1892 * @throws SystemException if a system exception occurred 1893 */ 1894 public void removeGroup(long pk, com.liferay.portal.model.Group group) 1895 throws com.liferay.portal.kernel.exception.SystemException; 1896 1897 /** 1898 * Removes the association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1899 * 1900 * @param pk the primary key of the organization 1901 * @param groupPKs the primary keys of the groups 1902 * @throws SystemException if a system exception occurred 1903 */ 1904 public void removeGroups(long pk, long[] groupPKs) 1905 throws com.liferay.portal.kernel.exception.SystemException; 1906 1907 /** 1908 * Removes the association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1909 * 1910 * @param pk the primary key of the organization 1911 * @param groups the groups 1912 * @throws SystemException if a system exception occurred 1913 */ 1914 public void removeGroups(long pk, 1915 java.util.List<com.liferay.portal.model.Group> groups) 1916 throws com.liferay.portal.kernel.exception.SystemException; 1917 1918 /** 1919 * 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. 1920 * 1921 * @param pk the primary key of the organization 1922 * @param groupPKs the primary keys of the groups to be associated with the organization 1923 * @throws SystemException if a system exception occurred 1924 */ 1925 public void setGroups(long pk, long[] groupPKs) 1926 throws com.liferay.portal.kernel.exception.SystemException; 1927 1928 /** 1929 * 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. 1930 * 1931 * @param pk the primary key of the organization 1932 * @param groups the groups to be associated with the organization 1933 * @throws SystemException if a system exception occurred 1934 */ 1935 public void setGroups(long pk, 1936 java.util.List<com.liferay.portal.model.Group> groups) 1937 throws com.liferay.portal.kernel.exception.SystemException; 1938 1939 /** 1940 * Returns all the users associated with the organization. 1941 * 1942 * @param pk the primary key of the organization 1943 * @return the users associated with the organization 1944 * @throws SystemException if a system exception occurred 1945 */ 1946 public java.util.List<com.liferay.portal.model.User> getUsers(long pk) 1947 throws com.liferay.portal.kernel.exception.SystemException; 1948 1949 /** 1950 * Returns a range of all the users associated with the organization. 1951 * 1952 * <p> 1953 * 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. 1954 * </p> 1955 * 1956 * @param pk the primary key of the organization 1957 * @param start the lower bound of the range of organizations 1958 * @param end the upper bound of the range of organizations (not inclusive) 1959 * @return the range of users associated with the organization 1960 * @throws SystemException if a system exception occurred 1961 */ 1962 public java.util.List<com.liferay.portal.model.User> getUsers(long pk, 1963 int start, int end) 1964 throws com.liferay.portal.kernel.exception.SystemException; 1965 1966 /** 1967 * Returns an ordered range of all the users associated with the organization. 1968 * 1969 * <p> 1970 * 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. 1971 * </p> 1972 * 1973 * @param pk the primary key of the organization 1974 * @param start the lower bound of the range of organizations 1975 * @param end the upper bound of the range of organizations (not inclusive) 1976 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1977 * @return the ordered range of users associated with the organization 1978 * @throws SystemException if a system exception occurred 1979 */ 1980 public java.util.List<com.liferay.portal.model.User> getUsers(long pk, 1981 int start, int end, 1982 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1983 throws com.liferay.portal.kernel.exception.SystemException; 1984 1985 /** 1986 * Returns the number of users associated with the organization. 1987 * 1988 * @param pk the primary key of the organization 1989 * @return the number of users associated with the organization 1990 * @throws SystemException if a system exception occurred 1991 */ 1992 public int getUsersSize(long pk) 1993 throws com.liferay.portal.kernel.exception.SystemException; 1994 1995 /** 1996 * Returns <code>true</code> if the user is associated with the organization. 1997 * 1998 * @param pk the primary key of the organization 1999 * @param userPK the primary key of the user 2000 * @return <code>true</code> if the user is associated with the organization; <code>false</code> otherwise 2001 * @throws SystemException if a system exception occurred 2002 */ 2003 public boolean containsUser(long pk, long userPK) 2004 throws com.liferay.portal.kernel.exception.SystemException; 2005 2006 /** 2007 * Returns <code>true</code> if the organization has any users associated with it. 2008 * 2009 * @param pk the primary key of the organization to check for associations with users 2010 * @return <code>true</code> if the organization has any users associated with it; <code>false</code> otherwise 2011 * @throws SystemException if a system exception occurred 2012 */ 2013 public boolean containsUsers(long pk) 2014 throws com.liferay.portal.kernel.exception.SystemException; 2015 2016 /** 2017 * Adds an association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2018 * 2019 * @param pk the primary key of the organization 2020 * @param userPK the primary key of the user 2021 * @throws SystemException if a system exception occurred 2022 */ 2023 public void addUser(long pk, long userPK) 2024 throws com.liferay.portal.kernel.exception.SystemException; 2025 2026 /** 2027 * Adds an association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2028 * 2029 * @param pk the primary key of the organization 2030 * @param user the user 2031 * @throws SystemException if a system exception occurred 2032 */ 2033 public void addUser(long pk, com.liferay.portal.model.User user) 2034 throws com.liferay.portal.kernel.exception.SystemException; 2035 2036 /** 2037 * Adds an association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2038 * 2039 * @param pk the primary key of the organization 2040 * @param userPKs the primary keys of the users 2041 * @throws SystemException if a system exception occurred 2042 */ 2043 public void addUsers(long pk, long[] userPKs) 2044 throws com.liferay.portal.kernel.exception.SystemException; 2045 2046 /** 2047 * Adds an association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2048 * 2049 * @param pk the primary key of the organization 2050 * @param users the users 2051 * @throws SystemException if a system exception occurred 2052 */ 2053 public void addUsers(long pk, 2054 java.util.List<com.liferay.portal.model.User> users) 2055 throws com.liferay.portal.kernel.exception.SystemException; 2056 2057 /** 2058 * Clears all associations between the organization and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2059 * 2060 * @param pk the primary key of the organization to clear the associated users from 2061 * @throws SystemException if a system exception occurred 2062 */ 2063 public void clearUsers(long pk) 2064 throws com.liferay.portal.kernel.exception.SystemException; 2065 2066 /** 2067 * Removes the association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2068 * 2069 * @param pk the primary key of the organization 2070 * @param userPK the primary key of the user 2071 * @throws SystemException if a system exception occurred 2072 */ 2073 public void removeUser(long pk, long userPK) 2074 throws com.liferay.portal.kernel.exception.SystemException; 2075 2076 /** 2077 * Removes the association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2078 * 2079 * @param pk the primary key of the organization 2080 * @param user the user 2081 * @throws SystemException if a system exception occurred 2082 */ 2083 public void removeUser(long pk, com.liferay.portal.model.User user) 2084 throws com.liferay.portal.kernel.exception.SystemException; 2085 2086 /** 2087 * Removes the association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2088 * 2089 * @param pk the primary key of the organization 2090 * @param userPKs the primary keys of the users 2091 * @throws SystemException if a system exception occurred 2092 */ 2093 public void removeUsers(long pk, long[] userPKs) 2094 throws com.liferay.portal.kernel.exception.SystemException; 2095 2096 /** 2097 * Removes the association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2098 * 2099 * @param pk the primary key of the organization 2100 * @param users the users 2101 * @throws SystemException if a system exception occurred 2102 */ 2103 public void removeUsers(long pk, 2104 java.util.List<com.liferay.portal.model.User> users) 2105 throws com.liferay.portal.kernel.exception.SystemException; 2106 2107 /** 2108 * 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. 2109 * 2110 * @param pk the primary key of the organization 2111 * @param userPKs the primary keys of the users to be associated with the organization 2112 * @throws SystemException if a system exception occurred 2113 */ 2114 public void setUsers(long pk, long[] userPKs) 2115 throws com.liferay.portal.kernel.exception.SystemException; 2116 2117 /** 2118 * 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. 2119 * 2120 * @param pk the primary key of the organization 2121 * @param users the users to be associated with the organization 2122 * @throws SystemException if a system exception occurred 2123 */ 2124 public void setUsers(long pk, 2125 java.util.List<com.liferay.portal.model.User> users) 2126 throws com.liferay.portal.kernel.exception.SystemException; 2127 }