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