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