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