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