001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.model.Group; 018 019 /** 020 * The persistence interface for the group service. 021 * 022 * <p> 023 * Caching information and settings can be found in <code>portal.properties</code> 024 * </p> 025 * 026 * @author Brian Wing Shun Chan 027 * @see GroupPersistenceImpl 028 * @see GroupUtil 029 * @generated 030 */ 031 public interface GroupPersistence extends BasePersistence<Group> { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * Never modify or reference this interface directly. Always use {@link GroupUtil} to access the group persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 036 */ 037 038 /** 039 * Returns all the groups where uuid = ?. 040 * 041 * @param uuid the uuid 042 * @return the matching groups 043 * @throws SystemException if a system exception occurred 044 */ 045 public java.util.List<com.liferay.portal.model.Group> findByUuid( 046 java.lang.String uuid) 047 throws com.liferay.portal.kernel.exception.SystemException; 048 049 /** 050 * Returns a range of all the groups where uuid = ?. 051 * 052 * <p> 053 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 054 * </p> 055 * 056 * @param uuid the uuid 057 * @param start the lower bound of the range of groups 058 * @param end the upper bound of the range of groups (not inclusive) 059 * @return the range of matching groups 060 * @throws SystemException if a system exception occurred 061 */ 062 public java.util.List<com.liferay.portal.model.Group> findByUuid( 063 java.lang.String uuid, int start, int end) 064 throws com.liferay.portal.kernel.exception.SystemException; 065 066 /** 067 * Returns an ordered range of all the groups where uuid = ?. 068 * 069 * <p> 070 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 071 * </p> 072 * 073 * @param uuid the uuid 074 * @param start the lower bound of the range of groups 075 * @param end the upper bound of the range of groups (not inclusive) 076 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 077 * @return the ordered range of matching groups 078 * @throws SystemException if a system exception occurred 079 */ 080 public java.util.List<com.liferay.portal.model.Group> findByUuid( 081 java.lang.String uuid, int start, int end, 082 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 083 throws com.liferay.portal.kernel.exception.SystemException; 084 085 /** 086 * Returns the first group in the ordered set where uuid = ?. 087 * 088 * @param uuid the uuid 089 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 090 * @return the first matching group 091 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 092 * @throws SystemException if a system exception occurred 093 */ 094 public com.liferay.portal.model.Group findByUuid_First( 095 java.lang.String uuid, 096 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 097 throws com.liferay.portal.NoSuchGroupException, 098 com.liferay.portal.kernel.exception.SystemException; 099 100 /** 101 * Returns the first group in the ordered set where uuid = ?. 102 * 103 * @param uuid the uuid 104 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 105 * @return the first matching group, or <code>null</code> if a matching group could not be found 106 * @throws SystemException if a system exception occurred 107 */ 108 public com.liferay.portal.model.Group fetchByUuid_First( 109 java.lang.String uuid, 110 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 111 throws com.liferay.portal.kernel.exception.SystemException; 112 113 /** 114 * Returns the last group in the ordered set where uuid = ?. 115 * 116 * @param uuid the uuid 117 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 118 * @return the last matching group 119 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 120 * @throws SystemException if a system exception occurred 121 */ 122 public com.liferay.portal.model.Group findByUuid_Last( 123 java.lang.String uuid, 124 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 125 throws com.liferay.portal.NoSuchGroupException, 126 com.liferay.portal.kernel.exception.SystemException; 127 128 /** 129 * Returns the last group in the ordered set where uuid = ?. 130 * 131 * @param uuid the uuid 132 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 133 * @return the last matching group, or <code>null</code> if a matching group could not be found 134 * @throws SystemException if a system exception occurred 135 */ 136 public com.liferay.portal.model.Group fetchByUuid_Last( 137 java.lang.String uuid, 138 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 139 throws com.liferay.portal.kernel.exception.SystemException; 140 141 /** 142 * Returns the groups before and after the current group in the ordered set where uuid = ?. 143 * 144 * @param groupId the primary key of the current group 145 * @param uuid the uuid 146 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 147 * @return the previous, current, and next group 148 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 149 * @throws SystemException if a system exception occurred 150 */ 151 public com.liferay.portal.model.Group[] findByUuid_PrevAndNext( 152 long groupId, java.lang.String uuid, 153 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 154 throws com.liferay.portal.NoSuchGroupException, 155 com.liferay.portal.kernel.exception.SystemException; 156 157 /** 158 * Removes all the groups where uuid = ? from the database. 159 * 160 * @param uuid the uuid 161 * @throws SystemException if a system exception occurred 162 */ 163 public void removeByUuid(java.lang.String uuid) 164 throws com.liferay.portal.kernel.exception.SystemException; 165 166 /** 167 * Returns the number of groups where uuid = ?. 168 * 169 * @param uuid the uuid 170 * @return the number of matching groups 171 * @throws SystemException if a system exception occurred 172 */ 173 public int countByUuid(java.lang.String uuid) 174 throws com.liferay.portal.kernel.exception.SystemException; 175 176 /** 177 * Returns the group where uuid = ? and groupId = ? or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found. 178 * 179 * @param uuid the uuid 180 * @param groupId the group ID 181 * @return the matching group 182 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 183 * @throws SystemException if a system exception occurred 184 */ 185 public com.liferay.portal.model.Group findByUUID_G(java.lang.String uuid, 186 long groupId) 187 throws com.liferay.portal.NoSuchGroupException, 188 com.liferay.portal.kernel.exception.SystemException; 189 190 /** 191 * Returns the group where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 192 * 193 * @param uuid the uuid 194 * @param groupId the group ID 195 * @return the matching group, or <code>null</code> if a matching group could not be found 196 * @throws SystemException if a system exception occurred 197 */ 198 public com.liferay.portal.model.Group fetchByUUID_G(java.lang.String uuid, 199 long groupId) 200 throws com.liferay.portal.kernel.exception.SystemException; 201 202 /** 203 * Returns the group where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 204 * 205 * @param uuid the uuid 206 * @param groupId the group ID 207 * @param retrieveFromCache whether to use the finder cache 208 * @return the matching group, or <code>null</code> if a matching group could not be found 209 * @throws SystemException if a system exception occurred 210 */ 211 public com.liferay.portal.model.Group fetchByUUID_G(java.lang.String uuid, 212 long groupId, boolean retrieveFromCache) 213 throws com.liferay.portal.kernel.exception.SystemException; 214 215 /** 216 * Removes the group where uuid = ? and groupId = ? from the database. 217 * 218 * @param uuid the uuid 219 * @param groupId the group ID 220 * @return the group that was removed 221 * @throws SystemException if a system exception occurred 222 */ 223 public com.liferay.portal.model.Group removeByUUID_G( 224 java.lang.String uuid, long groupId) 225 throws com.liferay.portal.NoSuchGroupException, 226 com.liferay.portal.kernel.exception.SystemException; 227 228 /** 229 * Returns the number of groups where uuid = ? and groupId = ?. 230 * 231 * @param uuid the uuid 232 * @param groupId the group ID 233 * @return the number of matching groups 234 * @throws SystemException if a system exception occurred 235 */ 236 public int countByUUID_G(java.lang.String uuid, long groupId) 237 throws com.liferay.portal.kernel.exception.SystemException; 238 239 /** 240 * Returns all the groups where uuid = ? and companyId = ?. 241 * 242 * @param uuid the uuid 243 * @param companyId the company ID 244 * @return the matching groups 245 * @throws SystemException if a system exception occurred 246 */ 247 public java.util.List<com.liferay.portal.model.Group> findByUuid_C( 248 java.lang.String uuid, long companyId) 249 throws com.liferay.portal.kernel.exception.SystemException; 250 251 /** 252 * Returns a range of all the groups where uuid = ? and companyId = ?. 253 * 254 * <p> 255 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 256 * </p> 257 * 258 * @param uuid the uuid 259 * @param companyId the company ID 260 * @param start the lower bound of the range of groups 261 * @param end the upper bound of the range of groups (not inclusive) 262 * @return the range of matching groups 263 * @throws SystemException if a system exception occurred 264 */ 265 public java.util.List<com.liferay.portal.model.Group> findByUuid_C( 266 java.lang.String uuid, long companyId, int start, int end) 267 throws com.liferay.portal.kernel.exception.SystemException; 268 269 /** 270 * Returns an ordered range of all the groups where uuid = ? and 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 274 * </p> 275 * 276 * @param uuid the uuid 277 * @param companyId the company ID 278 * @param start the lower bound of the range of groups 279 * @param end the upper bound of the range of groups (not inclusive) 280 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 281 * @return the ordered range of matching groups 282 * @throws SystemException if a system exception occurred 283 */ 284 public java.util.List<com.liferay.portal.model.Group> findByUuid_C( 285 java.lang.String uuid, long companyId, int start, int end, 286 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 287 throws com.liferay.portal.kernel.exception.SystemException; 288 289 /** 290 * Returns the first group in the ordered set where uuid = ? and companyId = ?. 291 * 292 * @param uuid the uuid 293 * @param companyId the company ID 294 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 295 * @return the first matching group 296 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 297 * @throws SystemException if a system exception occurred 298 */ 299 public com.liferay.portal.model.Group findByUuid_C_First( 300 java.lang.String uuid, long companyId, 301 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 302 throws com.liferay.portal.NoSuchGroupException, 303 com.liferay.portal.kernel.exception.SystemException; 304 305 /** 306 * Returns the first group in the ordered set where uuid = ? and companyId = ?. 307 * 308 * @param uuid the uuid 309 * @param companyId the company ID 310 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 311 * @return the first matching group, or <code>null</code> if a matching group could not be found 312 * @throws SystemException if a system exception occurred 313 */ 314 public com.liferay.portal.model.Group fetchByUuid_C_First( 315 java.lang.String uuid, long companyId, 316 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 317 throws com.liferay.portal.kernel.exception.SystemException; 318 319 /** 320 * Returns the last group in the ordered set where uuid = ? and companyId = ?. 321 * 322 * @param uuid the uuid 323 * @param companyId the company ID 324 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 325 * @return the last matching group 326 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 327 * @throws SystemException if a system exception occurred 328 */ 329 public com.liferay.portal.model.Group findByUuid_C_Last( 330 java.lang.String uuid, long companyId, 331 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 332 throws com.liferay.portal.NoSuchGroupException, 333 com.liferay.portal.kernel.exception.SystemException; 334 335 /** 336 * Returns the last group in the ordered set where uuid = ? and companyId = ?. 337 * 338 * @param uuid the uuid 339 * @param companyId the company ID 340 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 341 * @return the last matching group, or <code>null</code> if a matching group could not be found 342 * @throws SystemException if a system exception occurred 343 */ 344 public com.liferay.portal.model.Group fetchByUuid_C_Last( 345 java.lang.String uuid, long companyId, 346 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 347 throws com.liferay.portal.kernel.exception.SystemException; 348 349 /** 350 * Returns the groups before and after the current group in the ordered set where uuid = ? and companyId = ?. 351 * 352 * @param groupId the primary key of the current group 353 * @param uuid the uuid 354 * @param companyId the company ID 355 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 356 * @return the previous, current, and next group 357 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 358 * @throws SystemException if a system exception occurred 359 */ 360 public com.liferay.portal.model.Group[] findByUuid_C_PrevAndNext( 361 long groupId, java.lang.String uuid, long companyId, 362 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 363 throws com.liferay.portal.NoSuchGroupException, 364 com.liferay.portal.kernel.exception.SystemException; 365 366 /** 367 * Removes all the groups where uuid = ? and companyId = ? from the database. 368 * 369 * @param uuid the uuid 370 * @param companyId the company ID 371 * @throws SystemException if a system exception occurred 372 */ 373 public void removeByUuid_C(java.lang.String uuid, long companyId) 374 throws com.liferay.portal.kernel.exception.SystemException; 375 376 /** 377 * Returns the number of groups where uuid = ? and companyId = ?. 378 * 379 * @param uuid the uuid 380 * @param companyId the company ID 381 * @return the number of matching groups 382 * @throws SystemException if a system exception occurred 383 */ 384 public int countByUuid_C(java.lang.String uuid, long companyId) 385 throws com.liferay.portal.kernel.exception.SystemException; 386 387 /** 388 * Returns all the groups where companyId = ?. 389 * 390 * @param companyId the company ID 391 * @return the matching groups 392 * @throws SystemException if a system exception occurred 393 */ 394 public java.util.List<com.liferay.portal.model.Group> findByCompanyId( 395 long companyId) 396 throws com.liferay.portal.kernel.exception.SystemException; 397 398 /** 399 * Returns a range of all the groups where companyId = ?. 400 * 401 * <p> 402 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 403 * </p> 404 * 405 * @param companyId the company ID 406 * @param start the lower bound of the range of groups 407 * @param end the upper bound of the range of groups (not inclusive) 408 * @return the range of matching groups 409 * @throws SystemException if a system exception occurred 410 */ 411 public java.util.List<com.liferay.portal.model.Group> findByCompanyId( 412 long companyId, int start, int end) 413 throws com.liferay.portal.kernel.exception.SystemException; 414 415 /** 416 * Returns an ordered range of all the groups where companyId = ?. 417 * 418 * <p> 419 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 420 * </p> 421 * 422 * @param companyId the company ID 423 * @param start the lower bound of the range of groups 424 * @param end the upper bound of the range of groups (not inclusive) 425 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 426 * @return the ordered range of matching groups 427 * @throws SystemException if a system exception occurred 428 */ 429 public java.util.List<com.liferay.portal.model.Group> findByCompanyId( 430 long companyId, int start, int end, 431 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 432 throws com.liferay.portal.kernel.exception.SystemException; 433 434 /** 435 * Returns the first group in the ordered set where companyId = ?. 436 * 437 * @param companyId the company ID 438 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 439 * @return the first matching group 440 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 441 * @throws SystemException if a system exception occurred 442 */ 443 public com.liferay.portal.model.Group findByCompanyId_First( 444 long companyId, 445 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 446 throws com.liferay.portal.NoSuchGroupException, 447 com.liferay.portal.kernel.exception.SystemException; 448 449 /** 450 * Returns the first group in the ordered set where companyId = ?. 451 * 452 * @param companyId the company ID 453 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 454 * @return the first matching group, or <code>null</code> if a matching group could not be found 455 * @throws SystemException if a system exception occurred 456 */ 457 public com.liferay.portal.model.Group fetchByCompanyId_First( 458 long companyId, 459 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 460 throws com.liferay.portal.kernel.exception.SystemException; 461 462 /** 463 * Returns the last group in the ordered set where companyId = ?. 464 * 465 * @param companyId the company ID 466 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 467 * @return the last matching group 468 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 469 * @throws SystemException if a system exception occurred 470 */ 471 public com.liferay.portal.model.Group findByCompanyId_Last(long companyId, 472 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 473 throws com.liferay.portal.NoSuchGroupException, 474 com.liferay.portal.kernel.exception.SystemException; 475 476 /** 477 * Returns the last group in the ordered set where companyId = ?. 478 * 479 * @param companyId the company ID 480 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 481 * @return the last matching group, or <code>null</code> if a matching group could not be found 482 * @throws SystemException if a system exception occurred 483 */ 484 public com.liferay.portal.model.Group fetchByCompanyId_Last( 485 long companyId, 486 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 487 throws com.liferay.portal.kernel.exception.SystemException; 488 489 /** 490 * Returns the groups before and after the current group in the ordered set where companyId = ?. 491 * 492 * @param groupId the primary key of the current group 493 * @param companyId the company ID 494 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 495 * @return the previous, current, and next group 496 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 497 * @throws SystemException if a system exception occurred 498 */ 499 public com.liferay.portal.model.Group[] findByCompanyId_PrevAndNext( 500 long groupId, long companyId, 501 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 502 throws com.liferay.portal.NoSuchGroupException, 503 com.liferay.portal.kernel.exception.SystemException; 504 505 /** 506 * Removes all the groups where companyId = ? from the database. 507 * 508 * @param companyId the company ID 509 * @throws SystemException if a system exception occurred 510 */ 511 public void removeByCompanyId(long companyId) 512 throws com.liferay.portal.kernel.exception.SystemException; 513 514 /** 515 * Returns the number of groups where companyId = ?. 516 * 517 * @param companyId the company ID 518 * @return the number of matching groups 519 * @throws SystemException if a system exception occurred 520 */ 521 public int countByCompanyId(long companyId) 522 throws com.liferay.portal.kernel.exception.SystemException; 523 524 /** 525 * Returns the group where liveGroupId = ? or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found. 526 * 527 * @param liveGroupId the live group ID 528 * @return the matching group 529 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 530 * @throws SystemException if a system exception occurred 531 */ 532 public com.liferay.portal.model.Group findByLiveGroupId(long liveGroupId) 533 throws com.liferay.portal.NoSuchGroupException, 534 com.liferay.portal.kernel.exception.SystemException; 535 536 /** 537 * Returns the group where liveGroupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 538 * 539 * @param liveGroupId the live group ID 540 * @return the matching group, or <code>null</code> if a matching group could not be found 541 * @throws SystemException if a system exception occurred 542 */ 543 public com.liferay.portal.model.Group fetchByLiveGroupId(long liveGroupId) 544 throws com.liferay.portal.kernel.exception.SystemException; 545 546 /** 547 * Returns the group where liveGroupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 548 * 549 * @param liveGroupId the live group ID 550 * @param retrieveFromCache whether to use the finder cache 551 * @return the matching group, or <code>null</code> if a matching group could not be found 552 * @throws SystemException if a system exception occurred 553 */ 554 public com.liferay.portal.model.Group fetchByLiveGroupId(long liveGroupId, 555 boolean retrieveFromCache) 556 throws com.liferay.portal.kernel.exception.SystemException; 557 558 /** 559 * Removes the group where liveGroupId = ? from the database. 560 * 561 * @param liveGroupId the live group ID 562 * @return the group that was removed 563 * @throws SystemException if a system exception occurred 564 */ 565 public com.liferay.portal.model.Group removeByLiveGroupId(long liveGroupId) 566 throws com.liferay.portal.NoSuchGroupException, 567 com.liferay.portal.kernel.exception.SystemException; 568 569 /** 570 * Returns the number of groups where liveGroupId = ?. 571 * 572 * @param liveGroupId the live group ID 573 * @return the number of matching groups 574 * @throws SystemException if a system exception occurred 575 */ 576 public int countByLiveGroupId(long liveGroupId) 577 throws com.liferay.portal.kernel.exception.SystemException; 578 579 /** 580 * Returns all the groups where companyId = ? and parentGroupId = ?. 581 * 582 * @param companyId the company ID 583 * @param parentGroupId the parent group ID 584 * @return the matching groups 585 * @throws SystemException if a system exception occurred 586 */ 587 public java.util.List<com.liferay.portal.model.Group> findByC_P( 588 long companyId, long parentGroupId) 589 throws com.liferay.portal.kernel.exception.SystemException; 590 591 /** 592 * Returns a range of all the groups where companyId = ? and parentGroupId = ?. 593 * 594 * <p> 595 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 596 * </p> 597 * 598 * @param companyId the company ID 599 * @param parentGroupId the parent group ID 600 * @param start the lower bound of the range of groups 601 * @param end the upper bound of the range of groups (not inclusive) 602 * @return the range of matching groups 603 * @throws SystemException if a system exception occurred 604 */ 605 public java.util.List<com.liferay.portal.model.Group> findByC_P( 606 long companyId, long parentGroupId, int start, int end) 607 throws com.liferay.portal.kernel.exception.SystemException; 608 609 /** 610 * Returns an ordered range of all the groups where companyId = ? and parentGroupId = ?. 611 * 612 * <p> 613 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 614 * </p> 615 * 616 * @param companyId the company ID 617 * @param parentGroupId the parent group ID 618 * @param start the lower bound of the range of groups 619 * @param end the upper bound of the range of groups (not inclusive) 620 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 621 * @return the ordered range of matching groups 622 * @throws SystemException if a system exception occurred 623 */ 624 public java.util.List<com.liferay.portal.model.Group> findByC_P( 625 long companyId, long parentGroupId, int start, int end, 626 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 627 throws com.liferay.portal.kernel.exception.SystemException; 628 629 /** 630 * Returns the first group in the ordered set where companyId = ? and parentGroupId = ?. 631 * 632 * @param companyId the company ID 633 * @param parentGroupId the parent group ID 634 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 635 * @return the first matching group 636 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 637 * @throws SystemException if a system exception occurred 638 */ 639 public com.liferay.portal.model.Group findByC_P_First(long companyId, 640 long parentGroupId, 641 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 642 throws com.liferay.portal.NoSuchGroupException, 643 com.liferay.portal.kernel.exception.SystemException; 644 645 /** 646 * Returns the first group in the ordered set where companyId = ? and parentGroupId = ?. 647 * 648 * @param companyId the company ID 649 * @param parentGroupId the parent group ID 650 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 651 * @return the first matching group, or <code>null</code> if a matching group could not be found 652 * @throws SystemException if a system exception occurred 653 */ 654 public com.liferay.portal.model.Group fetchByC_P_First(long companyId, 655 long parentGroupId, 656 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 657 throws com.liferay.portal.kernel.exception.SystemException; 658 659 /** 660 * Returns the last group in the ordered set where companyId = ? and parentGroupId = ?. 661 * 662 * @param companyId the company ID 663 * @param parentGroupId the parent group ID 664 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 665 * @return the last matching group 666 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 667 * @throws SystemException if a system exception occurred 668 */ 669 public com.liferay.portal.model.Group findByC_P_Last(long companyId, 670 long parentGroupId, 671 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 672 throws com.liferay.portal.NoSuchGroupException, 673 com.liferay.portal.kernel.exception.SystemException; 674 675 /** 676 * Returns the last group in the ordered set where companyId = ? and parentGroupId = ?. 677 * 678 * @param companyId the company ID 679 * @param parentGroupId the parent group ID 680 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 681 * @return the last matching group, or <code>null</code> if a matching group could not be found 682 * @throws SystemException if a system exception occurred 683 */ 684 public com.liferay.portal.model.Group fetchByC_P_Last(long companyId, 685 long parentGroupId, 686 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 687 throws com.liferay.portal.kernel.exception.SystemException; 688 689 /** 690 * Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ?. 691 * 692 * @param groupId the primary key of the current group 693 * @param companyId the company ID 694 * @param parentGroupId the parent group ID 695 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 696 * @return the previous, current, and next group 697 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 698 * @throws SystemException if a system exception occurred 699 */ 700 public com.liferay.portal.model.Group[] findByC_P_PrevAndNext( 701 long groupId, long companyId, long parentGroupId, 702 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 703 throws com.liferay.portal.NoSuchGroupException, 704 com.liferay.portal.kernel.exception.SystemException; 705 706 /** 707 * Removes all the groups where companyId = ? and parentGroupId = ? from the database. 708 * 709 * @param companyId the company ID 710 * @param parentGroupId the parent group ID 711 * @throws SystemException if a system exception occurred 712 */ 713 public void removeByC_P(long companyId, long parentGroupId) 714 throws com.liferay.portal.kernel.exception.SystemException; 715 716 /** 717 * Returns the number of groups where companyId = ? and parentGroupId = ?. 718 * 719 * @param companyId the company ID 720 * @param parentGroupId the parent group ID 721 * @return the number of matching groups 722 * @throws SystemException if a system exception occurred 723 */ 724 public int countByC_P(long companyId, long parentGroupId) 725 throws com.liferay.portal.kernel.exception.SystemException; 726 727 /** 728 * Returns the group where companyId = ? and name = ? or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found. 729 * 730 * @param companyId the company ID 731 * @param name the name 732 * @return the matching group 733 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 734 * @throws SystemException if a system exception occurred 735 */ 736 public com.liferay.portal.model.Group findByC_N(long companyId, 737 java.lang.String name) 738 throws com.liferay.portal.NoSuchGroupException, 739 com.liferay.portal.kernel.exception.SystemException; 740 741 /** 742 * Returns the group where companyId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 743 * 744 * @param companyId the company ID 745 * @param name the name 746 * @return the matching group, or <code>null</code> if a matching group could not be found 747 * @throws SystemException if a system exception occurred 748 */ 749 public com.liferay.portal.model.Group fetchByC_N(long companyId, 750 java.lang.String name) 751 throws com.liferay.portal.kernel.exception.SystemException; 752 753 /** 754 * Returns the group where companyId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 755 * 756 * @param companyId the company ID 757 * @param name the name 758 * @param retrieveFromCache whether to use the finder cache 759 * @return the matching group, or <code>null</code> if a matching group could not be found 760 * @throws SystemException if a system exception occurred 761 */ 762 public com.liferay.portal.model.Group fetchByC_N(long companyId, 763 java.lang.String name, boolean retrieveFromCache) 764 throws com.liferay.portal.kernel.exception.SystemException; 765 766 /** 767 * Removes the group where companyId = ? and name = ? from the database. 768 * 769 * @param companyId the company ID 770 * @param name the name 771 * @return the group that was removed 772 * @throws SystemException if a system exception occurred 773 */ 774 public com.liferay.portal.model.Group removeByC_N(long companyId, 775 java.lang.String name) 776 throws com.liferay.portal.NoSuchGroupException, 777 com.liferay.portal.kernel.exception.SystemException; 778 779 /** 780 * Returns the number of groups where companyId = ? and name = ?. 781 * 782 * @param companyId the company ID 783 * @param name the name 784 * @return the number of matching groups 785 * @throws SystemException if a system exception occurred 786 */ 787 public int countByC_N(long companyId, java.lang.String name) 788 throws com.liferay.portal.kernel.exception.SystemException; 789 790 /** 791 * Returns the group where companyId = ? and friendlyURL = ? or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found. 792 * 793 * @param companyId the company ID 794 * @param friendlyURL the friendly u r l 795 * @return the matching group 796 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 797 * @throws SystemException if a system exception occurred 798 */ 799 public com.liferay.portal.model.Group findByC_F(long companyId, 800 java.lang.String friendlyURL) 801 throws com.liferay.portal.NoSuchGroupException, 802 com.liferay.portal.kernel.exception.SystemException; 803 804 /** 805 * Returns the group where companyId = ? and friendlyURL = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 806 * 807 * @param companyId the company ID 808 * @param friendlyURL the friendly u r l 809 * @return the matching group, or <code>null</code> if a matching group could not be found 810 * @throws SystemException if a system exception occurred 811 */ 812 public com.liferay.portal.model.Group fetchByC_F(long companyId, 813 java.lang.String friendlyURL) 814 throws com.liferay.portal.kernel.exception.SystemException; 815 816 /** 817 * Returns the group where companyId = ? and friendlyURL = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 818 * 819 * @param companyId the company ID 820 * @param friendlyURL the friendly u r l 821 * @param retrieveFromCache whether to use the finder cache 822 * @return the matching group, or <code>null</code> if a matching group could not be found 823 * @throws SystemException if a system exception occurred 824 */ 825 public com.liferay.portal.model.Group fetchByC_F(long companyId, 826 java.lang.String friendlyURL, boolean retrieveFromCache) 827 throws com.liferay.portal.kernel.exception.SystemException; 828 829 /** 830 * Removes the group where companyId = ? and friendlyURL = ? from the database. 831 * 832 * @param companyId the company ID 833 * @param friendlyURL the friendly u r l 834 * @return the group that was removed 835 * @throws SystemException if a system exception occurred 836 */ 837 public com.liferay.portal.model.Group removeByC_F(long companyId, 838 java.lang.String friendlyURL) 839 throws com.liferay.portal.NoSuchGroupException, 840 com.liferay.portal.kernel.exception.SystemException; 841 842 /** 843 * Returns the number of groups where companyId = ? and friendlyURL = ?. 844 * 845 * @param companyId the company ID 846 * @param friendlyURL the friendly u r l 847 * @return the number of matching groups 848 * @throws SystemException if a system exception occurred 849 */ 850 public int countByC_F(long companyId, java.lang.String friendlyURL) 851 throws com.liferay.portal.kernel.exception.SystemException; 852 853 /** 854 * Returns all the groups where companyId = ? and site = ?. 855 * 856 * @param companyId the company ID 857 * @param site the site 858 * @return the matching groups 859 * @throws SystemException if a system exception occurred 860 */ 861 public java.util.List<com.liferay.portal.model.Group> findByC_S( 862 long companyId, boolean site) 863 throws com.liferay.portal.kernel.exception.SystemException; 864 865 /** 866 * Returns a range of all the groups where companyId = ? and site = ?. 867 * 868 * <p> 869 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 870 * </p> 871 * 872 * @param companyId the company ID 873 * @param site the site 874 * @param start the lower bound of the range of groups 875 * @param end the upper bound of the range of groups (not inclusive) 876 * @return the range of matching groups 877 * @throws SystemException if a system exception occurred 878 */ 879 public java.util.List<com.liferay.portal.model.Group> findByC_S( 880 long companyId, boolean site, int start, int end) 881 throws com.liferay.portal.kernel.exception.SystemException; 882 883 /** 884 * Returns an ordered range of all the groups where companyId = ? and site = ?. 885 * 886 * <p> 887 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 888 * </p> 889 * 890 * @param companyId the company ID 891 * @param site the site 892 * @param start the lower bound of the range of groups 893 * @param end the upper bound of the range of groups (not inclusive) 894 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 895 * @return the ordered range of matching groups 896 * @throws SystemException if a system exception occurred 897 */ 898 public java.util.List<com.liferay.portal.model.Group> findByC_S( 899 long companyId, boolean site, int start, int end, 900 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 901 throws com.liferay.portal.kernel.exception.SystemException; 902 903 /** 904 * Returns the first group in the ordered set where companyId = ? and site = ?. 905 * 906 * @param companyId the company ID 907 * @param site the site 908 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 909 * @return the first matching group 910 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 911 * @throws SystemException if a system exception occurred 912 */ 913 public com.liferay.portal.model.Group findByC_S_First(long companyId, 914 boolean site, 915 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 916 throws com.liferay.portal.NoSuchGroupException, 917 com.liferay.portal.kernel.exception.SystemException; 918 919 /** 920 * Returns the first group in the ordered set where companyId = ? and site = ?. 921 * 922 * @param companyId the company ID 923 * @param site the site 924 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 925 * @return the first matching group, or <code>null</code> if a matching group could not be found 926 * @throws SystemException if a system exception occurred 927 */ 928 public com.liferay.portal.model.Group fetchByC_S_First(long companyId, 929 boolean site, 930 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 931 throws com.liferay.portal.kernel.exception.SystemException; 932 933 /** 934 * Returns the last group in the ordered set where companyId = ? and site = ?. 935 * 936 * @param companyId the company ID 937 * @param site the site 938 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 939 * @return the last matching group 940 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 941 * @throws SystemException if a system exception occurred 942 */ 943 public com.liferay.portal.model.Group findByC_S_Last(long companyId, 944 boolean site, 945 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 946 throws com.liferay.portal.NoSuchGroupException, 947 com.liferay.portal.kernel.exception.SystemException; 948 949 /** 950 * Returns the last group in the ordered set where companyId = ? and site = ?. 951 * 952 * @param companyId the company ID 953 * @param site the site 954 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 955 * @return the last matching group, or <code>null</code> if a matching group could not be found 956 * @throws SystemException if a system exception occurred 957 */ 958 public com.liferay.portal.model.Group fetchByC_S_Last(long companyId, 959 boolean site, 960 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 961 throws com.liferay.portal.kernel.exception.SystemException; 962 963 /** 964 * Returns the groups before and after the current group in the ordered set where companyId = ? and site = ?. 965 * 966 * @param groupId the primary key of the current group 967 * @param companyId the company ID 968 * @param site the site 969 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 970 * @return the previous, current, and next group 971 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 972 * @throws SystemException if a system exception occurred 973 */ 974 public com.liferay.portal.model.Group[] findByC_S_PrevAndNext( 975 long groupId, long companyId, boolean site, 976 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 977 throws com.liferay.portal.NoSuchGroupException, 978 com.liferay.portal.kernel.exception.SystemException; 979 980 /** 981 * Removes all the groups where companyId = ? and site = ? from the database. 982 * 983 * @param companyId the company ID 984 * @param site the site 985 * @throws SystemException if a system exception occurred 986 */ 987 public void removeByC_S(long companyId, boolean site) 988 throws com.liferay.portal.kernel.exception.SystemException; 989 990 /** 991 * Returns the number of groups where companyId = ? and site = ?. 992 * 993 * @param companyId the company ID 994 * @param site the site 995 * @return the number of matching groups 996 * @throws SystemException if a system exception occurred 997 */ 998 public int countByC_S(long companyId, boolean site) 999 throws com.liferay.portal.kernel.exception.SystemException; 1000 1001 /** 1002 * Returns all the groups where type = ? and active = ?. 1003 * 1004 * @param type the type 1005 * @param active the active 1006 * @return the matching groups 1007 * @throws SystemException if a system exception occurred 1008 */ 1009 public java.util.List<com.liferay.portal.model.Group> findByT_A(int type, 1010 boolean active) 1011 throws com.liferay.portal.kernel.exception.SystemException; 1012 1013 /** 1014 * Returns a range of all the groups where type = ? and active = ?. 1015 * 1016 * <p> 1017 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1018 * </p> 1019 * 1020 * @param type the type 1021 * @param active the active 1022 * @param start the lower bound of the range of groups 1023 * @param end the upper bound of the range of groups (not inclusive) 1024 * @return the range of matching groups 1025 * @throws SystemException if a system exception occurred 1026 */ 1027 public java.util.List<com.liferay.portal.model.Group> findByT_A(int type, 1028 boolean active, int start, int end) 1029 throws com.liferay.portal.kernel.exception.SystemException; 1030 1031 /** 1032 * Returns an ordered range of all the groups where type = ? and active = ?. 1033 * 1034 * <p> 1035 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1036 * </p> 1037 * 1038 * @param type the type 1039 * @param active the active 1040 * @param start the lower bound of the range of groups 1041 * @param end the upper bound of the range of groups (not inclusive) 1042 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1043 * @return the ordered range of matching groups 1044 * @throws SystemException if a system exception occurred 1045 */ 1046 public java.util.List<com.liferay.portal.model.Group> findByT_A(int type, 1047 boolean active, int start, int end, 1048 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1049 throws com.liferay.portal.kernel.exception.SystemException; 1050 1051 /** 1052 * Returns the first group in the ordered set where type = ? and active = ?. 1053 * 1054 * @param type the type 1055 * @param active the active 1056 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1057 * @return the first matching group 1058 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1059 * @throws SystemException if a system exception occurred 1060 */ 1061 public com.liferay.portal.model.Group findByT_A_First(int type, 1062 boolean active, 1063 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1064 throws com.liferay.portal.NoSuchGroupException, 1065 com.liferay.portal.kernel.exception.SystemException; 1066 1067 /** 1068 * Returns the first group in the ordered set where type = ? and active = ?. 1069 * 1070 * @param type the type 1071 * @param active the active 1072 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1073 * @return the first matching group, or <code>null</code> if a matching group could not be found 1074 * @throws SystemException if a system exception occurred 1075 */ 1076 public com.liferay.portal.model.Group fetchByT_A_First(int type, 1077 boolean active, 1078 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1079 throws com.liferay.portal.kernel.exception.SystemException; 1080 1081 /** 1082 * Returns the last group in the ordered set where type = ? and active = ?. 1083 * 1084 * @param type the type 1085 * @param active the active 1086 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1087 * @return the last matching group 1088 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1089 * @throws SystemException if a system exception occurred 1090 */ 1091 public com.liferay.portal.model.Group findByT_A_Last(int type, 1092 boolean active, 1093 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1094 throws com.liferay.portal.NoSuchGroupException, 1095 com.liferay.portal.kernel.exception.SystemException; 1096 1097 /** 1098 * Returns the last group in the ordered set where type = ? and active = ?. 1099 * 1100 * @param type the type 1101 * @param active the active 1102 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1103 * @return the last matching group, or <code>null</code> if a matching group could not be found 1104 * @throws SystemException if a system exception occurred 1105 */ 1106 public com.liferay.portal.model.Group fetchByT_A_Last(int type, 1107 boolean active, 1108 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1109 throws com.liferay.portal.kernel.exception.SystemException; 1110 1111 /** 1112 * Returns the groups before and after the current group in the ordered set where type = ? and active = ?. 1113 * 1114 * @param groupId the primary key of the current group 1115 * @param type the type 1116 * @param active the active 1117 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1118 * @return the previous, current, and next group 1119 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 1120 * @throws SystemException if a system exception occurred 1121 */ 1122 public com.liferay.portal.model.Group[] findByT_A_PrevAndNext( 1123 long groupId, int type, boolean active, 1124 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1125 throws com.liferay.portal.NoSuchGroupException, 1126 com.liferay.portal.kernel.exception.SystemException; 1127 1128 /** 1129 * Removes all the groups where type = ? and active = ? from the database. 1130 * 1131 * @param type the type 1132 * @param active the active 1133 * @throws SystemException if a system exception occurred 1134 */ 1135 public void removeByT_A(int type, boolean active) 1136 throws com.liferay.portal.kernel.exception.SystemException; 1137 1138 /** 1139 * Returns the number of groups where type = ? and active = ?. 1140 * 1141 * @param type the type 1142 * @param active the active 1143 * @return the number of matching groups 1144 * @throws SystemException if a system exception occurred 1145 */ 1146 public int countByT_A(int type, boolean active) 1147 throws com.liferay.portal.kernel.exception.SystemException; 1148 1149 /** 1150 * Returns the group where companyId = ? and classNameId = ? and classPK = ? or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found. 1151 * 1152 * @param companyId the company ID 1153 * @param classNameId the class name ID 1154 * @param classPK the class p k 1155 * @return the matching group 1156 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1157 * @throws SystemException if a system exception occurred 1158 */ 1159 public com.liferay.portal.model.Group findByC_C_C(long companyId, 1160 long classNameId, long classPK) 1161 throws com.liferay.portal.NoSuchGroupException, 1162 com.liferay.portal.kernel.exception.SystemException; 1163 1164 /** 1165 * Returns the group where companyId = ? and classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1166 * 1167 * @param companyId the company ID 1168 * @param classNameId the class name ID 1169 * @param classPK the class p k 1170 * @return the matching group, or <code>null</code> if a matching group could not be found 1171 * @throws SystemException if a system exception occurred 1172 */ 1173 public com.liferay.portal.model.Group fetchByC_C_C(long companyId, 1174 long classNameId, long classPK) 1175 throws com.liferay.portal.kernel.exception.SystemException; 1176 1177 /** 1178 * Returns the group where companyId = ? and classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1179 * 1180 * @param companyId the company ID 1181 * @param classNameId the class name ID 1182 * @param classPK the class p k 1183 * @param retrieveFromCache whether to use the finder cache 1184 * @return the matching group, or <code>null</code> if a matching group could not be found 1185 * @throws SystemException if a system exception occurred 1186 */ 1187 public com.liferay.portal.model.Group fetchByC_C_C(long companyId, 1188 long classNameId, long classPK, boolean retrieveFromCache) 1189 throws com.liferay.portal.kernel.exception.SystemException; 1190 1191 /** 1192 * Removes the group where companyId = ? and classNameId = ? and classPK = ? from the database. 1193 * 1194 * @param companyId the company ID 1195 * @param classNameId the class name ID 1196 * @param classPK the class p k 1197 * @return the group that was removed 1198 * @throws SystemException if a system exception occurred 1199 */ 1200 public com.liferay.portal.model.Group removeByC_C_C(long companyId, 1201 long classNameId, long classPK) 1202 throws com.liferay.portal.NoSuchGroupException, 1203 com.liferay.portal.kernel.exception.SystemException; 1204 1205 /** 1206 * Returns the number of groups where companyId = ? and classNameId = ? and classPK = ?. 1207 * 1208 * @param companyId the company ID 1209 * @param classNameId the class name ID 1210 * @param classPK the class p k 1211 * @return the number of matching groups 1212 * @throws SystemException if a system exception occurred 1213 */ 1214 public int countByC_C_C(long companyId, long classNameId, long classPK) 1215 throws com.liferay.portal.kernel.exception.SystemException; 1216 1217 /** 1218 * Returns all the groups where companyId = ? and classNameId = ? and parentGroupId = ?. 1219 * 1220 * @param companyId the company ID 1221 * @param classNameId the class name ID 1222 * @param parentGroupId the parent group ID 1223 * @return the matching groups 1224 * @throws SystemException if a system exception occurred 1225 */ 1226 public java.util.List<com.liferay.portal.model.Group> findByC_C_P( 1227 long companyId, long classNameId, long parentGroupId) 1228 throws com.liferay.portal.kernel.exception.SystemException; 1229 1230 /** 1231 * Returns a range of all the groups where companyId = ? and classNameId = ? and parentGroupId = ?. 1232 * 1233 * <p> 1234 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1235 * </p> 1236 * 1237 * @param companyId the company ID 1238 * @param classNameId the class name ID 1239 * @param parentGroupId the parent group ID 1240 * @param start the lower bound of the range of groups 1241 * @param end the upper bound of the range of groups (not inclusive) 1242 * @return the range of matching groups 1243 * @throws SystemException if a system exception occurred 1244 */ 1245 public java.util.List<com.liferay.portal.model.Group> findByC_C_P( 1246 long companyId, long classNameId, long parentGroupId, int start, int end) 1247 throws com.liferay.portal.kernel.exception.SystemException; 1248 1249 /** 1250 * Returns an ordered range of all the groups where companyId = ? and classNameId = ? and parentGroupId = ?. 1251 * 1252 * <p> 1253 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1254 * </p> 1255 * 1256 * @param companyId the company ID 1257 * @param classNameId the class name ID 1258 * @param parentGroupId the parent group ID 1259 * @param start the lower bound of the range of groups 1260 * @param end the upper bound of the range of groups (not inclusive) 1261 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1262 * @return the ordered range of matching groups 1263 * @throws SystemException if a system exception occurred 1264 */ 1265 public java.util.List<com.liferay.portal.model.Group> findByC_C_P( 1266 long companyId, long classNameId, long parentGroupId, int start, 1267 int end, 1268 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1269 throws com.liferay.portal.kernel.exception.SystemException; 1270 1271 /** 1272 * Returns the first group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?. 1273 * 1274 * @param companyId the company ID 1275 * @param classNameId the class name ID 1276 * @param parentGroupId the parent group ID 1277 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1278 * @return the first matching group 1279 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1280 * @throws SystemException if a system exception occurred 1281 */ 1282 public com.liferay.portal.model.Group findByC_C_P_First(long companyId, 1283 long classNameId, long parentGroupId, 1284 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1285 throws com.liferay.portal.NoSuchGroupException, 1286 com.liferay.portal.kernel.exception.SystemException; 1287 1288 /** 1289 * Returns the first group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?. 1290 * 1291 * @param companyId the company ID 1292 * @param classNameId the class name ID 1293 * @param parentGroupId the parent group ID 1294 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1295 * @return the first matching group, or <code>null</code> if a matching group could not be found 1296 * @throws SystemException if a system exception occurred 1297 */ 1298 public com.liferay.portal.model.Group fetchByC_C_P_First(long companyId, 1299 long classNameId, long parentGroupId, 1300 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1301 throws com.liferay.portal.kernel.exception.SystemException; 1302 1303 /** 1304 * Returns the last group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?. 1305 * 1306 * @param companyId the company ID 1307 * @param classNameId the class name ID 1308 * @param parentGroupId the parent group ID 1309 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1310 * @return the last matching group 1311 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1312 * @throws SystemException if a system exception occurred 1313 */ 1314 public com.liferay.portal.model.Group findByC_C_P_Last(long companyId, 1315 long classNameId, long parentGroupId, 1316 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1317 throws com.liferay.portal.NoSuchGroupException, 1318 com.liferay.portal.kernel.exception.SystemException; 1319 1320 /** 1321 * Returns the last group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?. 1322 * 1323 * @param companyId the company ID 1324 * @param classNameId the class name ID 1325 * @param parentGroupId the parent group ID 1326 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1327 * @return the last matching group, or <code>null</code> if a matching group could not be found 1328 * @throws SystemException if a system exception occurred 1329 */ 1330 public com.liferay.portal.model.Group fetchByC_C_P_Last(long companyId, 1331 long classNameId, long parentGroupId, 1332 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1333 throws com.liferay.portal.kernel.exception.SystemException; 1334 1335 /** 1336 * Returns the groups before and after the current group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?. 1337 * 1338 * @param groupId the primary key of the current group 1339 * @param companyId the company ID 1340 * @param classNameId the class name ID 1341 * @param parentGroupId the parent group ID 1342 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1343 * @return the previous, current, and next group 1344 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 1345 * @throws SystemException if a system exception occurred 1346 */ 1347 public com.liferay.portal.model.Group[] findByC_C_P_PrevAndNext( 1348 long groupId, long companyId, long classNameId, long parentGroupId, 1349 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1350 throws com.liferay.portal.NoSuchGroupException, 1351 com.liferay.portal.kernel.exception.SystemException; 1352 1353 /** 1354 * Removes all the groups where companyId = ? and classNameId = ? and parentGroupId = ? from the database. 1355 * 1356 * @param companyId the company ID 1357 * @param classNameId the class name ID 1358 * @param parentGroupId the parent group ID 1359 * @throws SystemException if a system exception occurred 1360 */ 1361 public void removeByC_C_P(long companyId, long classNameId, 1362 long parentGroupId) 1363 throws com.liferay.portal.kernel.exception.SystemException; 1364 1365 /** 1366 * Returns the number of groups where companyId = ? and classNameId = ? and parentGroupId = ?. 1367 * 1368 * @param companyId the company ID 1369 * @param classNameId the class name ID 1370 * @param parentGroupId the parent group ID 1371 * @return the number of matching groups 1372 * @throws SystemException if a system exception occurred 1373 */ 1374 public int countByC_C_P(long companyId, long classNameId, long parentGroupId) 1375 throws com.liferay.portal.kernel.exception.SystemException; 1376 1377 /** 1378 * Returns all the groups where companyId = ? and parentGroupId = ? and site = ?. 1379 * 1380 * @param companyId the company ID 1381 * @param parentGroupId the parent group ID 1382 * @param site the site 1383 * @return the matching groups 1384 * @throws SystemException if a system exception occurred 1385 */ 1386 public java.util.List<com.liferay.portal.model.Group> findByC_P_S( 1387 long companyId, long parentGroupId, boolean site) 1388 throws com.liferay.portal.kernel.exception.SystemException; 1389 1390 /** 1391 * Returns a range of all the groups where companyId = ? and parentGroupId = ? and site = ?. 1392 * 1393 * <p> 1394 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1395 * </p> 1396 * 1397 * @param companyId the company ID 1398 * @param parentGroupId the parent group ID 1399 * @param site the site 1400 * @param start the lower bound of the range of groups 1401 * @param end the upper bound of the range of groups (not inclusive) 1402 * @return the range of matching groups 1403 * @throws SystemException if a system exception occurred 1404 */ 1405 public java.util.List<com.liferay.portal.model.Group> findByC_P_S( 1406 long companyId, long parentGroupId, boolean site, int start, int end) 1407 throws com.liferay.portal.kernel.exception.SystemException; 1408 1409 /** 1410 * Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and site = ?. 1411 * 1412 * <p> 1413 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1414 * </p> 1415 * 1416 * @param companyId the company ID 1417 * @param parentGroupId the parent group ID 1418 * @param site the site 1419 * @param start the lower bound of the range of groups 1420 * @param end the upper bound of the range of groups (not inclusive) 1421 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1422 * @return the ordered range of matching groups 1423 * @throws SystemException if a system exception occurred 1424 */ 1425 public java.util.List<com.liferay.portal.model.Group> findByC_P_S( 1426 long companyId, long parentGroupId, boolean site, int start, int end, 1427 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1428 throws com.liferay.portal.kernel.exception.SystemException; 1429 1430 /** 1431 * Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ?. 1432 * 1433 * @param companyId the company ID 1434 * @param parentGroupId the parent group ID 1435 * @param site the site 1436 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1437 * @return the first matching group 1438 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1439 * @throws SystemException if a system exception occurred 1440 */ 1441 public com.liferay.portal.model.Group findByC_P_S_First(long companyId, 1442 long parentGroupId, boolean site, 1443 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1444 throws com.liferay.portal.NoSuchGroupException, 1445 com.liferay.portal.kernel.exception.SystemException; 1446 1447 /** 1448 * Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ?. 1449 * 1450 * @param companyId the company ID 1451 * @param parentGroupId the parent group ID 1452 * @param site the site 1453 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1454 * @return the first matching group, or <code>null</code> if a matching group could not be found 1455 * @throws SystemException if a system exception occurred 1456 */ 1457 public com.liferay.portal.model.Group fetchByC_P_S_First(long companyId, 1458 long parentGroupId, boolean site, 1459 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1460 throws com.liferay.portal.kernel.exception.SystemException; 1461 1462 /** 1463 * Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ?. 1464 * 1465 * @param companyId the company ID 1466 * @param parentGroupId the parent group ID 1467 * @param site the site 1468 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1469 * @return the last matching group 1470 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1471 * @throws SystemException if a system exception occurred 1472 */ 1473 public com.liferay.portal.model.Group findByC_P_S_Last(long companyId, 1474 long parentGroupId, boolean site, 1475 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1476 throws com.liferay.portal.NoSuchGroupException, 1477 com.liferay.portal.kernel.exception.SystemException; 1478 1479 /** 1480 * Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ?. 1481 * 1482 * @param companyId the company ID 1483 * @param parentGroupId the parent group ID 1484 * @param site the site 1485 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1486 * @return the last matching group, or <code>null</code> if a matching group could not be found 1487 * @throws SystemException if a system exception occurred 1488 */ 1489 public com.liferay.portal.model.Group fetchByC_P_S_Last(long companyId, 1490 long parentGroupId, boolean site, 1491 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1492 throws com.liferay.portal.kernel.exception.SystemException; 1493 1494 /** 1495 * Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ? and site = ?. 1496 * 1497 * @param groupId the primary key of the current group 1498 * @param companyId the company ID 1499 * @param parentGroupId the parent group ID 1500 * @param site the site 1501 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1502 * @return the previous, current, and next group 1503 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 1504 * @throws SystemException if a system exception occurred 1505 */ 1506 public com.liferay.portal.model.Group[] findByC_P_S_PrevAndNext( 1507 long groupId, long companyId, long parentGroupId, boolean site, 1508 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1509 throws com.liferay.portal.NoSuchGroupException, 1510 com.liferay.portal.kernel.exception.SystemException; 1511 1512 /** 1513 * Removes all the groups where companyId = ? and parentGroupId = ? and site = ? from the database. 1514 * 1515 * @param companyId the company ID 1516 * @param parentGroupId the parent group ID 1517 * @param site the site 1518 * @throws SystemException if a system exception occurred 1519 */ 1520 public void removeByC_P_S(long companyId, long parentGroupId, boolean site) 1521 throws com.liferay.portal.kernel.exception.SystemException; 1522 1523 /** 1524 * Returns the number of groups where companyId = ? and parentGroupId = ? and site = ?. 1525 * 1526 * @param companyId the company ID 1527 * @param parentGroupId the parent group ID 1528 * @param site the site 1529 * @return the number of matching groups 1530 * @throws SystemException if a system exception occurred 1531 */ 1532 public int countByC_P_S(long companyId, long parentGroupId, boolean site) 1533 throws com.liferay.portal.kernel.exception.SystemException; 1534 1535 /** 1536 * Returns the group where companyId = ? and liveGroupId = ? and name = ? or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found. 1537 * 1538 * @param companyId the company ID 1539 * @param liveGroupId the live group ID 1540 * @param name the name 1541 * @return the matching group 1542 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1543 * @throws SystemException if a system exception occurred 1544 */ 1545 public com.liferay.portal.model.Group findByC_L_N(long companyId, 1546 long liveGroupId, java.lang.String name) 1547 throws com.liferay.portal.NoSuchGroupException, 1548 com.liferay.portal.kernel.exception.SystemException; 1549 1550 /** 1551 * Returns the group where companyId = ? and liveGroupId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1552 * 1553 * @param companyId the company ID 1554 * @param liveGroupId the live group ID 1555 * @param name the name 1556 * @return the matching group, or <code>null</code> if a matching group could not be found 1557 * @throws SystemException if a system exception occurred 1558 */ 1559 public com.liferay.portal.model.Group fetchByC_L_N(long companyId, 1560 long liveGroupId, java.lang.String name) 1561 throws com.liferay.portal.kernel.exception.SystemException; 1562 1563 /** 1564 * Returns the group where companyId = ? and liveGroupId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1565 * 1566 * @param companyId the company ID 1567 * @param liveGroupId the live group ID 1568 * @param name the name 1569 * @param retrieveFromCache whether to use the finder cache 1570 * @return the matching group, or <code>null</code> if a matching group could not be found 1571 * @throws SystemException if a system exception occurred 1572 */ 1573 public com.liferay.portal.model.Group fetchByC_L_N(long companyId, 1574 long liveGroupId, java.lang.String name, boolean retrieveFromCache) 1575 throws com.liferay.portal.kernel.exception.SystemException; 1576 1577 /** 1578 * Removes the group where companyId = ? and liveGroupId = ? and name = ? from the database. 1579 * 1580 * @param companyId the company ID 1581 * @param liveGroupId the live group ID 1582 * @param name the name 1583 * @return the group that was removed 1584 * @throws SystemException if a system exception occurred 1585 */ 1586 public com.liferay.portal.model.Group removeByC_L_N(long companyId, 1587 long liveGroupId, java.lang.String name) 1588 throws com.liferay.portal.NoSuchGroupException, 1589 com.liferay.portal.kernel.exception.SystemException; 1590 1591 /** 1592 * Returns the number of groups where companyId = ? and liveGroupId = ? and name = ?. 1593 * 1594 * @param companyId the company ID 1595 * @param liveGroupId the live group ID 1596 * @param name the name 1597 * @return the number of matching groups 1598 * @throws SystemException if a system exception occurred 1599 */ 1600 public int countByC_L_N(long companyId, long liveGroupId, 1601 java.lang.String name) 1602 throws com.liferay.portal.kernel.exception.SystemException; 1603 1604 /** 1605 * Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found. 1606 * 1607 * @param companyId the company ID 1608 * @param classNameId the class name ID 1609 * @param liveGroupId the live group ID 1610 * @param name the name 1611 * @return the matching group 1612 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1613 * @throws SystemException if a system exception occurred 1614 */ 1615 public com.liferay.portal.model.Group findByC_C_L_N(long companyId, 1616 long classNameId, long liveGroupId, java.lang.String name) 1617 throws com.liferay.portal.NoSuchGroupException, 1618 com.liferay.portal.kernel.exception.SystemException; 1619 1620 /** 1621 * Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1622 * 1623 * @param companyId the company ID 1624 * @param classNameId the class name ID 1625 * @param liveGroupId the live group ID 1626 * @param name the name 1627 * @return the matching group, or <code>null</code> if a matching group could not be found 1628 * @throws SystemException if a system exception occurred 1629 */ 1630 public com.liferay.portal.model.Group fetchByC_C_L_N(long companyId, 1631 long classNameId, long liveGroupId, java.lang.String name) 1632 throws com.liferay.portal.kernel.exception.SystemException; 1633 1634 /** 1635 * Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1636 * 1637 * @param companyId the company ID 1638 * @param classNameId the class name ID 1639 * @param liveGroupId the live group ID 1640 * @param name the name 1641 * @param retrieveFromCache whether to use the finder cache 1642 * @return the matching group, or <code>null</code> if a matching group could not be found 1643 * @throws SystemException if a system exception occurred 1644 */ 1645 public com.liferay.portal.model.Group fetchByC_C_L_N(long companyId, 1646 long classNameId, long liveGroupId, java.lang.String name, 1647 boolean retrieveFromCache) 1648 throws com.liferay.portal.kernel.exception.SystemException; 1649 1650 /** 1651 * Removes the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? from the database. 1652 * 1653 * @param companyId the company ID 1654 * @param classNameId the class name ID 1655 * @param liveGroupId the live group ID 1656 * @param name the name 1657 * @return the group that was removed 1658 * @throws SystemException if a system exception occurred 1659 */ 1660 public com.liferay.portal.model.Group removeByC_C_L_N(long companyId, 1661 long classNameId, long liveGroupId, java.lang.String name) 1662 throws com.liferay.portal.NoSuchGroupException, 1663 com.liferay.portal.kernel.exception.SystemException; 1664 1665 /** 1666 * Returns the number of groups where companyId = ? and classNameId = ? and liveGroupId = ? and name = ?. 1667 * 1668 * @param companyId the company ID 1669 * @param classNameId the class name ID 1670 * @param liveGroupId the live group ID 1671 * @param name the name 1672 * @return the number of matching groups 1673 * @throws SystemException if a system exception occurred 1674 */ 1675 public int countByC_C_L_N(long companyId, long classNameId, 1676 long liveGroupId, java.lang.String name) 1677 throws com.liferay.portal.kernel.exception.SystemException; 1678 1679 /** 1680 * Caches the group in the entity cache if it is enabled. 1681 * 1682 * @param group the group 1683 */ 1684 public void cacheResult(com.liferay.portal.model.Group group); 1685 1686 /** 1687 * Caches the groups in the entity cache if it is enabled. 1688 * 1689 * @param groups the groups 1690 */ 1691 public void cacheResult( 1692 java.util.List<com.liferay.portal.model.Group> groups); 1693 1694 /** 1695 * Creates a new group with the primary key. Does not add the group to the database. 1696 * 1697 * @param groupId the primary key for the new group 1698 * @return the new group 1699 */ 1700 public com.liferay.portal.model.Group create(long groupId); 1701 1702 /** 1703 * Removes the group with the primary key from the database. Also notifies the appropriate model listeners. 1704 * 1705 * @param groupId the primary key of the group 1706 * @return the group that was removed 1707 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 1708 * @throws SystemException if a system exception occurred 1709 */ 1710 public com.liferay.portal.model.Group remove(long groupId) 1711 throws com.liferay.portal.NoSuchGroupException, 1712 com.liferay.portal.kernel.exception.SystemException; 1713 1714 public com.liferay.portal.model.Group updateImpl( 1715 com.liferay.portal.model.Group group) 1716 throws com.liferay.portal.kernel.exception.SystemException; 1717 1718 /** 1719 * Returns the group with the primary key or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found. 1720 * 1721 * @param groupId the primary key of the group 1722 * @return the group 1723 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 1724 * @throws SystemException if a system exception occurred 1725 */ 1726 public com.liferay.portal.model.Group findByPrimaryKey(long groupId) 1727 throws com.liferay.portal.NoSuchGroupException, 1728 com.liferay.portal.kernel.exception.SystemException; 1729 1730 /** 1731 * Returns the group with the primary key or returns <code>null</code> if it could not be found. 1732 * 1733 * @param groupId the primary key of the group 1734 * @return the group, or <code>null</code> if a group with the primary key could not be found 1735 * @throws SystemException if a system exception occurred 1736 */ 1737 public com.liferay.portal.model.Group fetchByPrimaryKey(long groupId) 1738 throws com.liferay.portal.kernel.exception.SystemException; 1739 1740 /** 1741 * Returns all the groups. 1742 * 1743 * @return the groups 1744 * @throws SystemException if a system exception occurred 1745 */ 1746 public java.util.List<com.liferay.portal.model.Group> findAll() 1747 throws com.liferay.portal.kernel.exception.SystemException; 1748 1749 /** 1750 * Returns a range of all the groups. 1751 * 1752 * <p> 1753 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1754 * </p> 1755 * 1756 * @param start the lower bound of the range of groups 1757 * @param end the upper bound of the range of groups (not inclusive) 1758 * @return the range of groups 1759 * @throws SystemException if a system exception occurred 1760 */ 1761 public java.util.List<com.liferay.portal.model.Group> findAll(int start, 1762 int end) throws com.liferay.portal.kernel.exception.SystemException; 1763 1764 /** 1765 * Returns an ordered range of all the groups. 1766 * 1767 * <p> 1768 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1769 * </p> 1770 * 1771 * @param start the lower bound of the range of groups 1772 * @param end the upper bound of the range of groups (not inclusive) 1773 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1774 * @return the ordered range of groups 1775 * @throws SystemException if a system exception occurred 1776 */ 1777 public java.util.List<com.liferay.portal.model.Group> findAll(int start, 1778 int end, 1779 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1780 throws com.liferay.portal.kernel.exception.SystemException; 1781 1782 /** 1783 * Removes all the groups from the database. 1784 * 1785 * @throws SystemException if a system exception occurred 1786 */ 1787 public void removeAll() 1788 throws com.liferay.portal.kernel.exception.SystemException; 1789 1790 /** 1791 * Returns the number of groups. 1792 * 1793 * @return the number of groups 1794 * @throws SystemException if a system exception occurred 1795 */ 1796 public int countAll() 1797 throws com.liferay.portal.kernel.exception.SystemException; 1798 1799 /** 1800 * Returns all the organizations associated with the group. 1801 * 1802 * @param pk the primary key of the group 1803 * @return the organizations associated with the group 1804 * @throws SystemException if a system exception occurred 1805 */ 1806 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 1807 long pk) throws com.liferay.portal.kernel.exception.SystemException; 1808 1809 /** 1810 * Returns a range of all the organizations associated with the group. 1811 * 1812 * <p> 1813 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1814 * </p> 1815 * 1816 * @param pk the primary key of the group 1817 * @param start the lower bound of the range of groups 1818 * @param end the upper bound of the range of groups (not inclusive) 1819 * @return the range of organizations associated with the group 1820 * @throws SystemException if a system exception occurred 1821 */ 1822 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 1823 long pk, int start, int end) 1824 throws com.liferay.portal.kernel.exception.SystemException; 1825 1826 /** 1827 * Returns an ordered range of all the organizations associated with the group. 1828 * 1829 * <p> 1830 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1831 * </p> 1832 * 1833 * @param pk the primary key of the group 1834 * @param start the lower bound of the range of groups 1835 * @param end the upper bound of the range of groups (not inclusive) 1836 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1837 * @return the ordered range of organizations associated with the group 1838 * @throws SystemException if a system exception occurred 1839 */ 1840 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 1841 long pk, int start, int end, 1842 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1843 throws com.liferay.portal.kernel.exception.SystemException; 1844 1845 /** 1846 * Returns the number of organizations associated with the group. 1847 * 1848 * @param pk the primary key of the group 1849 * @return the number of organizations associated with the group 1850 * @throws SystemException if a system exception occurred 1851 */ 1852 public int getOrganizationsSize(long pk) 1853 throws com.liferay.portal.kernel.exception.SystemException; 1854 1855 /** 1856 * Returns <code>true</code> if the organization is associated with the group. 1857 * 1858 * @param pk the primary key of the group 1859 * @param organizationPK the primary key of the organization 1860 * @return <code>true</code> if the organization is associated with the group; <code>false</code> otherwise 1861 * @throws SystemException if a system exception occurred 1862 */ 1863 public boolean containsOrganization(long pk, long organizationPK) 1864 throws com.liferay.portal.kernel.exception.SystemException; 1865 1866 /** 1867 * Returns <code>true</code> if the group has any organizations associated with it. 1868 * 1869 * @param pk the primary key of the group to check for associations with organizations 1870 * @return <code>true</code> if the group has any organizations associated with it; <code>false</code> otherwise 1871 * @throws SystemException if a system exception occurred 1872 */ 1873 public boolean containsOrganizations(long pk) 1874 throws com.liferay.portal.kernel.exception.SystemException; 1875 1876 /** 1877 * Adds an association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1878 * 1879 * @param pk the primary key of the group 1880 * @param organizationPK the primary key of the organization 1881 * @throws SystemException if a system exception occurred 1882 */ 1883 public void addOrganization(long pk, long organizationPK) 1884 throws com.liferay.portal.kernel.exception.SystemException; 1885 1886 /** 1887 * Adds an association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1888 * 1889 * @param pk the primary key of the group 1890 * @param organization the organization 1891 * @throws SystemException if a system exception occurred 1892 */ 1893 public void addOrganization(long pk, 1894 com.liferay.portal.model.Organization organization) 1895 throws com.liferay.portal.kernel.exception.SystemException; 1896 1897 /** 1898 * Adds an association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1899 * 1900 * @param pk the primary key of the group 1901 * @param organizationPKs the primary keys of the organizations 1902 * @throws SystemException if a system exception occurred 1903 */ 1904 public void addOrganizations(long pk, long[] organizationPKs) 1905 throws com.liferay.portal.kernel.exception.SystemException; 1906 1907 /** 1908 * Adds an association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1909 * 1910 * @param pk the primary key of the group 1911 * @param organizations the organizations 1912 * @throws SystemException if a system exception occurred 1913 */ 1914 public void addOrganizations(long pk, 1915 java.util.List<com.liferay.portal.model.Organization> organizations) 1916 throws com.liferay.portal.kernel.exception.SystemException; 1917 1918 /** 1919 * Clears all associations between the group and its organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1920 * 1921 * @param pk the primary key of the group to clear the associated organizations from 1922 * @throws SystemException if a system exception occurred 1923 */ 1924 public void clearOrganizations(long pk) 1925 throws com.liferay.portal.kernel.exception.SystemException; 1926 1927 /** 1928 * Removes the association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1929 * 1930 * @param pk the primary key of the group 1931 * @param organizationPK the primary key of the organization 1932 * @throws SystemException if a system exception occurred 1933 */ 1934 public void removeOrganization(long pk, long organizationPK) 1935 throws com.liferay.portal.kernel.exception.SystemException; 1936 1937 /** 1938 * Removes the association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1939 * 1940 * @param pk the primary key of the group 1941 * @param organization the organization 1942 * @throws SystemException if a system exception occurred 1943 */ 1944 public void removeOrganization(long pk, 1945 com.liferay.portal.model.Organization organization) 1946 throws com.liferay.portal.kernel.exception.SystemException; 1947 1948 /** 1949 * Removes the association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1950 * 1951 * @param pk the primary key of the group 1952 * @param organizationPKs the primary keys of the organizations 1953 * @throws SystemException if a system exception occurred 1954 */ 1955 public void removeOrganizations(long pk, long[] organizationPKs) 1956 throws com.liferay.portal.kernel.exception.SystemException; 1957 1958 /** 1959 * Removes the association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1960 * 1961 * @param pk the primary key of the group 1962 * @param organizations the organizations 1963 * @throws SystemException if a system exception occurred 1964 */ 1965 public void removeOrganizations(long pk, 1966 java.util.List<com.liferay.portal.model.Organization> organizations) 1967 throws com.liferay.portal.kernel.exception.SystemException; 1968 1969 /** 1970 * 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. 1971 * 1972 * @param pk the primary key of the group 1973 * @param organizationPKs the primary keys of the organizations to be associated with the group 1974 * @throws SystemException if a system exception occurred 1975 */ 1976 public void setOrganizations(long pk, long[] organizationPKs) 1977 throws com.liferay.portal.kernel.exception.SystemException; 1978 1979 /** 1980 * 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. 1981 * 1982 * @param pk the primary key of the group 1983 * @param organizations the organizations to be associated with the group 1984 * @throws SystemException if a system exception occurred 1985 */ 1986 public void setOrganizations(long pk, 1987 java.util.List<com.liferay.portal.model.Organization> organizations) 1988 throws com.liferay.portal.kernel.exception.SystemException; 1989 1990 /** 1991 * Returns all the roles associated with the group. 1992 * 1993 * @param pk the primary key of the group 1994 * @return the roles associated with the group 1995 * @throws SystemException if a system exception occurred 1996 */ 1997 public java.util.List<com.liferay.portal.model.Role> getRoles(long pk) 1998 throws com.liferay.portal.kernel.exception.SystemException; 1999 2000 /** 2001 * Returns a range of all the roles associated with the group. 2002 * 2003 * <p> 2004 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2005 * </p> 2006 * 2007 * @param pk the primary key of the group 2008 * @param start the lower bound of the range of groups 2009 * @param end the upper bound of the range of groups (not inclusive) 2010 * @return the range of roles associated with the group 2011 * @throws SystemException if a system exception occurred 2012 */ 2013 public java.util.List<com.liferay.portal.model.Role> getRoles(long pk, 2014 int start, int end) 2015 throws com.liferay.portal.kernel.exception.SystemException; 2016 2017 /** 2018 * Returns an ordered range of all the roles associated with the group. 2019 * 2020 * <p> 2021 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2022 * </p> 2023 * 2024 * @param pk the primary key of the group 2025 * @param start the lower bound of the range of groups 2026 * @param end the upper bound of the range of groups (not inclusive) 2027 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2028 * @return the ordered range of roles associated with the group 2029 * @throws SystemException if a system exception occurred 2030 */ 2031 public java.util.List<com.liferay.portal.model.Role> getRoles(long pk, 2032 int start, int end, 2033 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2034 throws com.liferay.portal.kernel.exception.SystemException; 2035 2036 /** 2037 * Returns the number of roles associated with the group. 2038 * 2039 * @param pk the primary key of the group 2040 * @return the number of roles associated with the group 2041 * @throws SystemException if a system exception occurred 2042 */ 2043 public int getRolesSize(long pk) 2044 throws com.liferay.portal.kernel.exception.SystemException; 2045 2046 /** 2047 * Returns <code>true</code> if the role is associated with the group. 2048 * 2049 * @param pk the primary key of the group 2050 * @param rolePK the primary key of the role 2051 * @return <code>true</code> if the role is associated with the group; <code>false</code> otherwise 2052 * @throws SystemException if a system exception occurred 2053 */ 2054 public boolean containsRole(long pk, long rolePK) 2055 throws com.liferay.portal.kernel.exception.SystemException; 2056 2057 /** 2058 * Returns <code>true</code> if the group has any roles associated with it. 2059 * 2060 * @param pk the primary key of the group to check for associations with roles 2061 * @return <code>true</code> if the group has any roles associated with it; <code>false</code> otherwise 2062 * @throws SystemException if a system exception occurred 2063 */ 2064 public boolean containsRoles(long pk) 2065 throws com.liferay.portal.kernel.exception.SystemException; 2066 2067 /** 2068 * Adds an association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2069 * 2070 * @param pk the primary key of the group 2071 * @param rolePK the primary key of the role 2072 * @throws SystemException if a system exception occurred 2073 */ 2074 public void addRole(long pk, long rolePK) 2075 throws com.liferay.portal.kernel.exception.SystemException; 2076 2077 /** 2078 * Adds an association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2079 * 2080 * @param pk the primary key of the group 2081 * @param role the role 2082 * @throws SystemException if a system exception occurred 2083 */ 2084 public void addRole(long pk, com.liferay.portal.model.Role role) 2085 throws com.liferay.portal.kernel.exception.SystemException; 2086 2087 /** 2088 * Adds an association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2089 * 2090 * @param pk the primary key of the group 2091 * @param rolePKs the primary keys of the roles 2092 * @throws SystemException if a system exception occurred 2093 */ 2094 public void addRoles(long pk, long[] rolePKs) 2095 throws com.liferay.portal.kernel.exception.SystemException; 2096 2097 /** 2098 * Adds an association between the group and the roles. 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 roles the roles 2102 * @throws SystemException if a system exception occurred 2103 */ 2104 public void addRoles(long pk, 2105 java.util.List<com.liferay.portal.model.Role> roles) 2106 throws com.liferay.portal.kernel.exception.SystemException; 2107 2108 /** 2109 * Clears all associations between the group and its roles. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2110 * 2111 * @param pk the primary key of the group to clear the associated roles from 2112 * @throws SystemException if a system exception occurred 2113 */ 2114 public void clearRoles(long pk) 2115 throws com.liferay.portal.kernel.exception.SystemException; 2116 2117 /** 2118 * Removes the association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2119 * 2120 * @param pk the primary key of the group 2121 * @param rolePK the primary key of the role 2122 * @throws SystemException if a system exception occurred 2123 */ 2124 public void removeRole(long pk, long rolePK) 2125 throws com.liferay.portal.kernel.exception.SystemException; 2126 2127 /** 2128 * Removes the association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2129 * 2130 * @param pk the primary key of the group 2131 * @param role the role 2132 * @throws SystemException if a system exception occurred 2133 */ 2134 public void removeRole(long pk, com.liferay.portal.model.Role role) 2135 throws com.liferay.portal.kernel.exception.SystemException; 2136 2137 /** 2138 * Removes the association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2139 * 2140 * @param pk the primary key of the group 2141 * @param rolePKs the primary keys of the roles 2142 * @throws SystemException if a system exception occurred 2143 */ 2144 public void removeRoles(long pk, long[] rolePKs) 2145 throws com.liferay.portal.kernel.exception.SystemException; 2146 2147 /** 2148 * Removes the association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2149 * 2150 * @param pk the primary key of the group 2151 * @param roles the roles 2152 * @throws SystemException if a system exception occurred 2153 */ 2154 public void removeRoles(long pk, 2155 java.util.List<com.liferay.portal.model.Role> roles) 2156 throws com.liferay.portal.kernel.exception.SystemException; 2157 2158 /** 2159 * 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. 2160 * 2161 * @param pk the primary key of the group 2162 * @param rolePKs the primary keys of the roles to be associated with the group 2163 * @throws SystemException if a system exception occurred 2164 */ 2165 public void setRoles(long pk, long[] rolePKs) 2166 throws com.liferay.portal.kernel.exception.SystemException; 2167 2168 /** 2169 * 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. 2170 * 2171 * @param pk the primary key of the group 2172 * @param roles the roles to be associated with the group 2173 * @throws SystemException if a system exception occurred 2174 */ 2175 public void setRoles(long pk, 2176 java.util.List<com.liferay.portal.model.Role> roles) 2177 throws com.liferay.portal.kernel.exception.SystemException; 2178 2179 /** 2180 * Returns all the user groups associated with the group. 2181 * 2182 * @param pk the primary key of the group 2183 * @return the user groups associated with the group 2184 * @throws SystemException if a system exception occurred 2185 */ 2186 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups( 2187 long pk) throws com.liferay.portal.kernel.exception.SystemException; 2188 2189 /** 2190 * Returns a range of all the user groups associated with the group. 2191 * 2192 * <p> 2193 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2194 * </p> 2195 * 2196 * @param pk the primary key of the group 2197 * @param start the lower bound of the range of groups 2198 * @param end the upper bound of the range of groups (not inclusive) 2199 * @return the range of user groups associated with the group 2200 * @throws SystemException if a system exception occurred 2201 */ 2202 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups( 2203 long pk, int start, int end) 2204 throws com.liferay.portal.kernel.exception.SystemException; 2205 2206 /** 2207 * Returns an ordered range of all the user groups associated with the group. 2208 * 2209 * <p> 2210 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2211 * </p> 2212 * 2213 * @param pk the primary key of the group 2214 * @param start the lower bound of the range of groups 2215 * @param end the upper bound of the range of groups (not inclusive) 2216 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2217 * @return the ordered range of user groups associated with the group 2218 * @throws SystemException if a system exception occurred 2219 */ 2220 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups( 2221 long pk, int start, int end, 2222 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2223 throws com.liferay.portal.kernel.exception.SystemException; 2224 2225 /** 2226 * Returns the number of user groups associated with the group. 2227 * 2228 * @param pk the primary key of the group 2229 * @return the number of user groups associated with the group 2230 * @throws SystemException if a system exception occurred 2231 */ 2232 public int getUserGroupsSize(long pk) 2233 throws com.liferay.portal.kernel.exception.SystemException; 2234 2235 /** 2236 * Returns <code>true</code> if the user group is associated with the group. 2237 * 2238 * @param pk the primary key of the group 2239 * @param userGroupPK the primary key of the user group 2240 * @return <code>true</code> if the user group is associated with the group; <code>false</code> otherwise 2241 * @throws SystemException if a system exception occurred 2242 */ 2243 public boolean containsUserGroup(long pk, long userGroupPK) 2244 throws com.liferay.portal.kernel.exception.SystemException; 2245 2246 /** 2247 * Returns <code>true</code> if the group has any user groups associated with it. 2248 * 2249 * @param pk the primary key of the group to check for associations with user groups 2250 * @return <code>true</code> if the group has any user groups associated with it; <code>false</code> otherwise 2251 * @throws SystemException if a system exception occurred 2252 */ 2253 public boolean containsUserGroups(long pk) 2254 throws com.liferay.portal.kernel.exception.SystemException; 2255 2256 /** 2257 * Adds an association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2258 * 2259 * @param pk the primary key of the group 2260 * @param userGroupPK the primary key of the user group 2261 * @throws SystemException if a system exception occurred 2262 */ 2263 public void addUserGroup(long pk, long userGroupPK) 2264 throws com.liferay.portal.kernel.exception.SystemException; 2265 2266 /** 2267 * Adds an association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2268 * 2269 * @param pk the primary key of the group 2270 * @param userGroup the user group 2271 * @throws SystemException if a system exception occurred 2272 */ 2273 public void addUserGroup(long pk, 2274 com.liferay.portal.model.UserGroup userGroup) 2275 throws com.liferay.portal.kernel.exception.SystemException; 2276 2277 /** 2278 * Adds an association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2279 * 2280 * @param pk the primary key of the group 2281 * @param userGroupPKs the primary keys of the user groups 2282 * @throws SystemException if a system exception occurred 2283 */ 2284 public void addUserGroups(long pk, long[] userGroupPKs) 2285 throws com.liferay.portal.kernel.exception.SystemException; 2286 2287 /** 2288 * Adds an association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2289 * 2290 * @param pk the primary key of the group 2291 * @param userGroups the user groups 2292 * @throws SystemException if a system exception occurred 2293 */ 2294 public void addUserGroups(long pk, 2295 java.util.List<com.liferay.portal.model.UserGroup> userGroups) 2296 throws com.liferay.portal.kernel.exception.SystemException; 2297 2298 /** 2299 * Clears all associations between the group and its user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2300 * 2301 * @param pk the primary key of the group to clear the associated user groups from 2302 * @throws SystemException if a system exception occurred 2303 */ 2304 public void clearUserGroups(long pk) 2305 throws com.liferay.portal.kernel.exception.SystemException; 2306 2307 /** 2308 * Removes the association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2309 * 2310 * @param pk the primary key of the group 2311 * @param userGroupPK the primary key of the user group 2312 * @throws SystemException if a system exception occurred 2313 */ 2314 public void removeUserGroup(long pk, long userGroupPK) 2315 throws com.liferay.portal.kernel.exception.SystemException; 2316 2317 /** 2318 * Removes the association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2319 * 2320 * @param pk the primary key of the group 2321 * @param userGroup the user group 2322 * @throws SystemException if a system exception occurred 2323 */ 2324 public void removeUserGroup(long pk, 2325 com.liferay.portal.model.UserGroup userGroup) 2326 throws com.liferay.portal.kernel.exception.SystemException; 2327 2328 /** 2329 * Removes the association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2330 * 2331 * @param pk the primary key of the group 2332 * @param userGroupPKs the primary keys of the user groups 2333 * @throws SystemException if a system exception occurred 2334 */ 2335 public void removeUserGroups(long pk, long[] userGroupPKs) 2336 throws com.liferay.portal.kernel.exception.SystemException; 2337 2338 /** 2339 * Removes the association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2340 * 2341 * @param pk the primary key of the group 2342 * @param userGroups the user groups 2343 * @throws SystemException if a system exception occurred 2344 */ 2345 public void removeUserGroups(long pk, 2346 java.util.List<com.liferay.portal.model.UserGroup> userGroups) 2347 throws com.liferay.portal.kernel.exception.SystemException; 2348 2349 /** 2350 * 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. 2351 * 2352 * @param pk the primary key of the group 2353 * @param userGroupPKs the primary keys of the user groups to be associated with the group 2354 * @throws SystemException if a system exception occurred 2355 */ 2356 public void setUserGroups(long pk, long[] userGroupPKs) 2357 throws com.liferay.portal.kernel.exception.SystemException; 2358 2359 /** 2360 * 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. 2361 * 2362 * @param pk the primary key of the group 2363 * @param userGroups the user groups to be associated with the group 2364 * @throws SystemException if a system exception occurred 2365 */ 2366 public void setUserGroups(long pk, 2367 java.util.List<com.liferay.portal.model.UserGroup> userGroups) 2368 throws com.liferay.portal.kernel.exception.SystemException; 2369 2370 /** 2371 * Returns all the users associated with the group. 2372 * 2373 * @param pk the primary key of the group 2374 * @return the users associated with the group 2375 * @throws SystemException if a system exception occurred 2376 */ 2377 public java.util.List<com.liferay.portal.model.User> getUsers(long pk) 2378 throws com.liferay.portal.kernel.exception.SystemException; 2379 2380 /** 2381 * Returns a range of all the users associated with the group. 2382 * 2383 * <p> 2384 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2385 * </p> 2386 * 2387 * @param pk the primary key of the group 2388 * @param start the lower bound of the range of groups 2389 * @param end the upper bound of the range of groups (not inclusive) 2390 * @return the range of users associated with the group 2391 * @throws SystemException if a system exception occurred 2392 */ 2393 public java.util.List<com.liferay.portal.model.User> getUsers(long pk, 2394 int start, int end) 2395 throws com.liferay.portal.kernel.exception.SystemException; 2396 2397 /** 2398 * Returns an ordered range of all the users associated with the group. 2399 * 2400 * <p> 2401 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2402 * </p> 2403 * 2404 * @param pk the primary key of the group 2405 * @param start the lower bound of the range of groups 2406 * @param end the upper bound of the range of groups (not inclusive) 2407 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2408 * @return the ordered range of users associated with the group 2409 * @throws SystemException if a system exception occurred 2410 */ 2411 public java.util.List<com.liferay.portal.model.User> getUsers(long pk, 2412 int start, int end, 2413 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2414 throws com.liferay.portal.kernel.exception.SystemException; 2415 2416 /** 2417 * Returns the number of users associated with the group. 2418 * 2419 * @param pk the primary key of the group 2420 * @return the number of users associated with the group 2421 * @throws SystemException if a system exception occurred 2422 */ 2423 public int getUsersSize(long pk) 2424 throws com.liferay.portal.kernel.exception.SystemException; 2425 2426 /** 2427 * Returns <code>true</code> if the user is associated with the group. 2428 * 2429 * @param pk the primary key of the group 2430 * @param userPK the primary key of the user 2431 * @return <code>true</code> if the user is associated with the group; <code>false</code> otherwise 2432 * @throws SystemException if a system exception occurred 2433 */ 2434 public boolean containsUser(long pk, long userPK) 2435 throws com.liferay.portal.kernel.exception.SystemException; 2436 2437 /** 2438 * Returns <code>true</code> if the group has any users associated with it. 2439 * 2440 * @param pk the primary key of the group to check for associations with users 2441 * @return <code>true</code> if the group has any users associated with it; <code>false</code> otherwise 2442 * @throws SystemException if a system exception occurred 2443 */ 2444 public boolean containsUsers(long pk) 2445 throws com.liferay.portal.kernel.exception.SystemException; 2446 2447 /** 2448 * Adds an association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2449 * 2450 * @param pk the primary key of the group 2451 * @param userPK the primary key of the user 2452 * @throws SystemException if a system exception occurred 2453 */ 2454 public void addUser(long pk, long userPK) 2455 throws com.liferay.portal.kernel.exception.SystemException; 2456 2457 /** 2458 * Adds an association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2459 * 2460 * @param pk the primary key of the group 2461 * @param user the user 2462 * @throws SystemException if a system exception occurred 2463 */ 2464 public void addUser(long pk, com.liferay.portal.model.User user) 2465 throws com.liferay.portal.kernel.exception.SystemException; 2466 2467 /** 2468 * Adds an association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2469 * 2470 * @param pk the primary key of the group 2471 * @param userPKs the primary keys of the users 2472 * @throws SystemException if a system exception occurred 2473 */ 2474 public void addUsers(long pk, long[] userPKs) 2475 throws com.liferay.portal.kernel.exception.SystemException; 2476 2477 /** 2478 * Adds an association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2479 * 2480 * @param pk the primary key of the group 2481 * @param users the users 2482 * @throws SystemException if a system exception occurred 2483 */ 2484 public void addUsers(long pk, 2485 java.util.List<com.liferay.portal.model.User> users) 2486 throws com.liferay.portal.kernel.exception.SystemException; 2487 2488 /** 2489 * Clears all associations between the group and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2490 * 2491 * @param pk the primary key of the group to clear the associated users from 2492 * @throws SystemException if a system exception occurred 2493 */ 2494 public void clearUsers(long pk) 2495 throws com.liferay.portal.kernel.exception.SystemException; 2496 2497 /** 2498 * Removes the association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2499 * 2500 * @param pk the primary key of the group 2501 * @param userPK the primary key of the user 2502 * @throws SystemException if a system exception occurred 2503 */ 2504 public void removeUser(long pk, long userPK) 2505 throws com.liferay.portal.kernel.exception.SystemException; 2506 2507 /** 2508 * Removes the association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2509 * 2510 * @param pk the primary key of the group 2511 * @param user the user 2512 * @throws SystemException if a system exception occurred 2513 */ 2514 public void removeUser(long pk, com.liferay.portal.model.User user) 2515 throws com.liferay.portal.kernel.exception.SystemException; 2516 2517 /** 2518 * Removes the association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2519 * 2520 * @param pk the primary key of the group 2521 * @param userPKs the primary keys of the users 2522 * @throws SystemException if a system exception occurred 2523 */ 2524 public void removeUsers(long pk, long[] userPKs) 2525 throws com.liferay.portal.kernel.exception.SystemException; 2526 2527 /** 2528 * Removes the association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2529 * 2530 * @param pk the primary key of the group 2531 * @param users the users 2532 * @throws SystemException if a system exception occurred 2533 */ 2534 public void removeUsers(long pk, 2535 java.util.List<com.liferay.portal.model.User> users) 2536 throws com.liferay.portal.kernel.exception.SystemException; 2537 2538 /** 2539 * 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. 2540 * 2541 * @param pk the primary key of the group 2542 * @param userPKs the primary keys of the users to be associated with the group 2543 * @throws SystemException if a system exception occurred 2544 */ 2545 public void setUsers(long pk, long[] userPKs) 2546 throws com.liferay.portal.kernel.exception.SystemException; 2547 2548 /** 2549 * 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. 2550 * 2551 * @param pk the primary key of the group 2552 * @param users the users to be associated with the group 2553 * @throws SystemException if a system exception occurred 2554 */ 2555 public void setUsers(long pk, 2556 java.util.List<com.liferay.portal.model.User> users) 2557 throws com.liferay.portal.kernel.exception.SystemException; 2558 }