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