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