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