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