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