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