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