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