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.ResourcePermission; 018 019 /** 020 * The persistence interface for the resource permission 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 ResourcePermissionPersistenceImpl 028 * @see ResourcePermissionUtil 029 * @generated 030 */ 031 public interface ResourcePermissionPersistence extends BasePersistence<ResourcePermission> { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * Never modify or reference this interface directly. Always use {@link ResourcePermissionUtil} to access the resource permission persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 036 */ 037 038 /** 039 * Caches the resource permission in the entity cache if it is enabled. 040 * 041 * @param resourcePermission the resource permission 042 */ 043 public void cacheResult( 044 com.liferay.portal.model.ResourcePermission resourcePermission); 045 046 /** 047 * Caches the resource permissions in the entity cache if it is enabled. 048 * 049 * @param resourcePermissions the resource permissions 050 */ 051 public void cacheResult( 052 java.util.List<com.liferay.portal.model.ResourcePermission> resourcePermissions); 053 054 /** 055 * Creates a new resource permission with the primary key. Does not add the resource permission to the database. 056 * 057 * @param resourcePermissionId the primary key for the new resource permission 058 * @return the new resource permission 059 */ 060 public com.liferay.portal.model.ResourcePermission create( 061 long resourcePermissionId); 062 063 /** 064 * Removes the resource permission with the primary key from the database. Also notifies the appropriate model listeners. 065 * 066 * @param resourcePermissionId the primary key of the resource permission 067 * @return the resource permission that was removed 068 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 069 * @throws SystemException if a system exception occurred 070 */ 071 public com.liferay.portal.model.ResourcePermission remove( 072 long resourcePermissionId) 073 throws com.liferay.portal.NoSuchResourcePermissionException, 074 com.liferay.portal.kernel.exception.SystemException; 075 076 public com.liferay.portal.model.ResourcePermission updateImpl( 077 com.liferay.portal.model.ResourcePermission resourcePermission) 078 throws com.liferay.portal.kernel.exception.SystemException; 079 080 /** 081 * Returns the resource permission with the primary key or throws a {@link com.liferay.portal.NoSuchResourcePermissionException} if it could not be found. 082 * 083 * @param resourcePermissionId the primary key of the resource permission 084 * @return the resource permission 085 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 086 * @throws SystemException if a system exception occurred 087 */ 088 public com.liferay.portal.model.ResourcePermission findByPrimaryKey( 089 long resourcePermissionId) 090 throws com.liferay.portal.NoSuchResourcePermissionException, 091 com.liferay.portal.kernel.exception.SystemException; 092 093 /** 094 * Returns the resource permission with the primary key or returns <code>null</code> if it could not be found. 095 * 096 * @param resourcePermissionId the primary key of the resource permission 097 * @return the resource permission, or <code>null</code> if a resource permission with the primary key could not be found 098 * @throws SystemException if a system exception occurred 099 */ 100 public com.liferay.portal.model.ResourcePermission fetchByPrimaryKey( 101 long resourcePermissionId) 102 throws com.liferay.portal.kernel.exception.SystemException; 103 104 /** 105 * Returns all the resource permissions where scope = ?. 106 * 107 * @param scope the scope 108 * @return the matching resource permissions 109 * @throws SystemException if a system exception occurred 110 */ 111 public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope( 112 int scope) throws com.liferay.portal.kernel.exception.SystemException; 113 114 /** 115 * Returns a range of all the resource permissions where scope = ?. 116 * 117 * <p> 118 * 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. 119 * </p> 120 * 121 * @param scope the scope 122 * @param start the lower bound of the range of resource permissions 123 * @param end the upper bound of the range of resource permissions (not inclusive) 124 * @return the range of matching resource permissions 125 * @throws SystemException if a system exception occurred 126 */ 127 public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope( 128 int scope, int start, int end) 129 throws com.liferay.portal.kernel.exception.SystemException; 130 131 /** 132 * Returns an ordered range of all the resource permissions where scope = ?. 133 * 134 * <p> 135 * 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. 136 * </p> 137 * 138 * @param scope the scope 139 * @param start the lower bound of the range of resource permissions 140 * @param end the upper bound of the range of resource permissions (not inclusive) 141 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 142 * @return the ordered range of matching resource permissions 143 * @throws SystemException if a system exception occurred 144 */ 145 public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope( 146 int scope, int start, int end, 147 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 148 throws com.liferay.portal.kernel.exception.SystemException; 149 150 /** 151 * Returns the first resource permission in the ordered set where scope = ?. 152 * 153 * @param scope the scope 154 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 155 * @return the first matching resource permission 156 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 157 * @throws SystemException if a system exception occurred 158 */ 159 public com.liferay.portal.model.ResourcePermission findByScope_First( 160 int scope, 161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 162 throws com.liferay.portal.NoSuchResourcePermissionException, 163 com.liferay.portal.kernel.exception.SystemException; 164 165 /** 166 * Returns the first resource permission in the ordered set where scope = ?. 167 * 168 * @param scope the scope 169 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 170 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 171 * @throws SystemException if a system exception occurred 172 */ 173 public com.liferay.portal.model.ResourcePermission fetchByScope_First( 174 int scope, 175 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 176 throws com.liferay.portal.kernel.exception.SystemException; 177 178 /** 179 * Returns the last resource permission in the ordered set where scope = ?. 180 * 181 * @param scope the scope 182 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 183 * @return the last matching resource permission 184 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public com.liferay.portal.model.ResourcePermission findByScope_Last( 188 int scope, 189 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 190 throws com.liferay.portal.NoSuchResourcePermissionException, 191 com.liferay.portal.kernel.exception.SystemException; 192 193 /** 194 * Returns the last resource permission in the ordered set where scope = ?. 195 * 196 * @param scope the scope 197 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 198 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 199 * @throws SystemException if a system exception occurred 200 */ 201 public com.liferay.portal.model.ResourcePermission fetchByScope_Last( 202 int scope, 203 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 204 throws com.liferay.portal.kernel.exception.SystemException; 205 206 /** 207 * Returns the resource permissions before and after the current resource permission in the ordered set where scope = ?. 208 * 209 * @param resourcePermissionId the primary key of the current resource permission 210 * @param scope the scope 211 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 212 * @return the previous, current, and next resource permission 213 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 214 * @throws SystemException if a system exception occurred 215 */ 216 public com.liferay.portal.model.ResourcePermission[] findByScope_PrevAndNext( 217 long resourcePermissionId, int scope, 218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 219 throws com.liferay.portal.NoSuchResourcePermissionException, 220 com.liferay.portal.kernel.exception.SystemException; 221 222 /** 223 * Returns all the resource permissions where scope = any ?. 224 * 225 * <p> 226 * 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. 227 * </p> 228 * 229 * @param scopes the scopes 230 * @return the matching resource permissions 231 * @throws SystemException if a system exception occurred 232 */ 233 public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope( 234 int[] scopes) 235 throws com.liferay.portal.kernel.exception.SystemException; 236 237 /** 238 * Returns a range of all the resource permissions where scope = any ?. 239 * 240 * <p> 241 * 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. 242 * </p> 243 * 244 * @param scopes the scopes 245 * @param start the lower bound of the range of resource permissions 246 * @param end the upper bound of the range of resource permissions (not inclusive) 247 * @return the range of matching resource permissions 248 * @throws SystemException if a system exception occurred 249 */ 250 public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope( 251 int[] scopes, int start, int end) 252 throws com.liferay.portal.kernel.exception.SystemException; 253 254 /** 255 * Returns an ordered range of all the resource permissions where scope = any ?. 256 * 257 * <p> 258 * 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. 259 * </p> 260 * 261 * @param scopes the scopes 262 * @param start the lower bound of the range of resource permissions 263 * @param end the upper bound of the range of resource permissions (not inclusive) 264 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 265 * @return the ordered range of matching resource permissions 266 * @throws SystemException if a system exception occurred 267 */ 268 public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope( 269 int[] scopes, int start, int end, 270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 271 throws com.liferay.portal.kernel.exception.SystemException; 272 273 /** 274 * Returns all the resource permissions where roleId = ?. 275 * 276 * @param roleId the role ID 277 * @return the matching resource permissions 278 * @throws SystemException if a system exception occurred 279 */ 280 public java.util.List<com.liferay.portal.model.ResourcePermission> findByRoleId( 281 long roleId) throws com.liferay.portal.kernel.exception.SystemException; 282 283 /** 284 * Returns a range of all the resource permissions where roleId = ?. 285 * 286 * <p> 287 * 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. 288 * </p> 289 * 290 * @param roleId the role ID 291 * @param start the lower bound of the range of resource permissions 292 * @param end the upper bound of the range of resource permissions (not inclusive) 293 * @return the range of matching resource permissions 294 * @throws SystemException if a system exception occurred 295 */ 296 public java.util.List<com.liferay.portal.model.ResourcePermission> findByRoleId( 297 long roleId, int start, int end) 298 throws com.liferay.portal.kernel.exception.SystemException; 299 300 /** 301 * Returns an ordered range of all the resource permissions where roleId = ?. 302 * 303 * <p> 304 * 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. 305 * </p> 306 * 307 * @param roleId the role ID 308 * @param start the lower bound of the range of resource permissions 309 * @param end the upper bound of the range of resource permissions (not inclusive) 310 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 311 * @return the ordered range of matching resource permissions 312 * @throws SystemException if a system exception occurred 313 */ 314 public java.util.List<com.liferay.portal.model.ResourcePermission> findByRoleId( 315 long roleId, int start, int end, 316 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 317 throws com.liferay.portal.kernel.exception.SystemException; 318 319 /** 320 * Returns the first resource permission in the ordered set where roleId = ?. 321 * 322 * @param roleId the role ID 323 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 324 * @return the first matching resource permission 325 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 326 * @throws SystemException if a system exception occurred 327 */ 328 public com.liferay.portal.model.ResourcePermission findByRoleId_First( 329 long roleId, 330 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 331 throws com.liferay.portal.NoSuchResourcePermissionException, 332 com.liferay.portal.kernel.exception.SystemException; 333 334 /** 335 * Returns the first resource permission in the ordered set where roleId = ?. 336 * 337 * @param roleId the role ID 338 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 339 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 340 * @throws SystemException if a system exception occurred 341 */ 342 public com.liferay.portal.model.ResourcePermission fetchByRoleId_First( 343 long roleId, 344 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 345 throws com.liferay.portal.kernel.exception.SystemException; 346 347 /** 348 * Returns the last resource permission in the ordered set where roleId = ?. 349 * 350 * @param roleId the role ID 351 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 352 * @return the last matching resource permission 353 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 354 * @throws SystemException if a system exception occurred 355 */ 356 public com.liferay.portal.model.ResourcePermission findByRoleId_Last( 357 long roleId, 358 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 359 throws com.liferay.portal.NoSuchResourcePermissionException, 360 com.liferay.portal.kernel.exception.SystemException; 361 362 /** 363 * Returns the last resource permission in the ordered set where roleId = ?. 364 * 365 * @param roleId the role ID 366 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 367 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 368 * @throws SystemException if a system exception occurred 369 */ 370 public com.liferay.portal.model.ResourcePermission fetchByRoleId_Last( 371 long roleId, 372 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 373 throws com.liferay.portal.kernel.exception.SystemException; 374 375 /** 376 * Returns the resource permissions before and after the current resource permission in the ordered set where roleId = ?. 377 * 378 * @param resourcePermissionId the primary key of the current resource permission 379 * @param roleId the role ID 380 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 381 * @return the previous, current, and next resource permission 382 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 383 * @throws SystemException if a system exception occurred 384 */ 385 public com.liferay.portal.model.ResourcePermission[] findByRoleId_PrevAndNext( 386 long resourcePermissionId, long roleId, 387 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 388 throws com.liferay.portal.NoSuchResourcePermissionException, 389 com.liferay.portal.kernel.exception.SystemException; 390 391 /** 392 * Returns all the resource permissions where companyId = ? and primKey LIKE ?. 393 * 394 * @param companyId the company ID 395 * @param primKey the prim key 396 * @return the matching resource permissions 397 * @throws SystemException if a system exception occurred 398 */ 399 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_P( 400 long companyId, java.lang.String primKey) 401 throws com.liferay.portal.kernel.exception.SystemException; 402 403 /** 404 * Returns a range of all the resource permissions where companyId = ? and primKey LIKE ?. 405 * 406 * <p> 407 * 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. 408 * </p> 409 * 410 * @param companyId the company ID 411 * @param primKey the prim key 412 * @param start the lower bound of the range of resource permissions 413 * @param end the upper bound of the range of resource permissions (not inclusive) 414 * @return the range of matching resource permissions 415 * @throws SystemException if a system exception occurred 416 */ 417 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_P( 418 long companyId, java.lang.String primKey, int start, int end) 419 throws com.liferay.portal.kernel.exception.SystemException; 420 421 /** 422 * Returns an ordered range of all the resource permissions where companyId = ? and primKey LIKE ?. 423 * 424 * <p> 425 * 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. 426 * </p> 427 * 428 * @param companyId the company ID 429 * @param primKey the prim key 430 * @param start the lower bound of the range of resource permissions 431 * @param end the upper bound of the range of resource permissions (not inclusive) 432 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 433 * @return the ordered range of matching resource permissions 434 * @throws SystemException if a system exception occurred 435 */ 436 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_P( 437 long companyId, java.lang.String primKey, int start, int end, 438 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 439 throws com.liferay.portal.kernel.exception.SystemException; 440 441 /** 442 * Returns the first resource permission in the ordered set where companyId = ? and primKey LIKE ?. 443 * 444 * @param companyId the company ID 445 * @param primKey the prim key 446 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 447 * @return the first matching resource permission 448 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 449 * @throws SystemException if a system exception occurred 450 */ 451 public com.liferay.portal.model.ResourcePermission findByC_P_First( 452 long companyId, java.lang.String primKey, 453 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 454 throws com.liferay.portal.NoSuchResourcePermissionException, 455 com.liferay.portal.kernel.exception.SystemException; 456 457 /** 458 * Returns the first resource permission in the ordered set where companyId = ? and primKey LIKE ?. 459 * 460 * @param companyId the company ID 461 * @param primKey the prim key 462 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 463 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 464 * @throws SystemException if a system exception occurred 465 */ 466 public com.liferay.portal.model.ResourcePermission fetchByC_P_First( 467 long companyId, java.lang.String primKey, 468 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 469 throws com.liferay.portal.kernel.exception.SystemException; 470 471 /** 472 * Returns the last resource permission in the ordered set where companyId = ? and primKey LIKE ?. 473 * 474 * @param companyId the company ID 475 * @param primKey the prim key 476 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 477 * @return the last matching resource permission 478 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 479 * @throws SystemException if a system exception occurred 480 */ 481 public com.liferay.portal.model.ResourcePermission findByC_P_Last( 482 long companyId, java.lang.String primKey, 483 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 484 throws com.liferay.portal.NoSuchResourcePermissionException, 485 com.liferay.portal.kernel.exception.SystemException; 486 487 /** 488 * Returns the last resource permission in the ordered set where companyId = ? and primKey LIKE ?. 489 * 490 * @param companyId the company ID 491 * @param primKey the prim key 492 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 493 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 494 * @throws SystemException if a system exception occurred 495 */ 496 public com.liferay.portal.model.ResourcePermission fetchByC_P_Last( 497 long companyId, java.lang.String primKey, 498 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 499 throws com.liferay.portal.kernel.exception.SystemException; 500 501 /** 502 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and primKey LIKE ?. 503 * 504 * @param resourcePermissionId the primary key of the current resource permission 505 * @param companyId the company ID 506 * @param primKey the prim key 507 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 508 * @return the previous, current, and next resource permission 509 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 510 * @throws SystemException if a system exception occurred 511 */ 512 public com.liferay.portal.model.ResourcePermission[] findByC_P_PrevAndNext( 513 long resourcePermissionId, long companyId, java.lang.String primKey, 514 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 515 throws com.liferay.portal.NoSuchResourcePermissionException, 516 com.liferay.portal.kernel.exception.SystemException; 517 518 /** 519 * Returns all the resource permissions where companyId = ? and name = ? and scope = ?. 520 * 521 * @param companyId the company ID 522 * @param name the name 523 * @param scope the scope 524 * @return the matching resource permissions 525 * @throws SystemException if a system exception occurred 526 */ 527 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S( 528 long companyId, java.lang.String name, int scope) 529 throws com.liferay.portal.kernel.exception.SystemException; 530 531 /** 532 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ?. 533 * 534 * <p> 535 * 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. 536 * </p> 537 * 538 * @param companyId the company ID 539 * @param name the name 540 * @param scope the scope 541 * @param start the lower bound of the range of resource permissions 542 * @param end the upper bound of the range of resource permissions (not inclusive) 543 * @return the range of matching resource permissions 544 * @throws SystemException if a system exception occurred 545 */ 546 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S( 547 long companyId, java.lang.String name, int scope, int start, int end) 548 throws com.liferay.portal.kernel.exception.SystemException; 549 550 /** 551 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ?. 552 * 553 * <p> 554 * 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. 555 * </p> 556 * 557 * @param companyId the company ID 558 * @param name the name 559 * @param scope the scope 560 * @param start the lower bound of the range of resource permissions 561 * @param end the upper bound of the range of resource permissions (not inclusive) 562 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 563 * @return the ordered range of matching resource permissions 564 * @throws SystemException if a system exception occurred 565 */ 566 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S( 567 long companyId, java.lang.String name, int scope, int start, int end, 568 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 569 throws com.liferay.portal.kernel.exception.SystemException; 570 571 /** 572 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 573 * 574 * @param companyId the company ID 575 * @param name the name 576 * @param scope the scope 577 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 578 * @return the first matching resource permission 579 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 580 * @throws SystemException if a system exception occurred 581 */ 582 public com.liferay.portal.model.ResourcePermission findByC_N_S_First( 583 long companyId, java.lang.String name, int scope, 584 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 585 throws com.liferay.portal.NoSuchResourcePermissionException, 586 com.liferay.portal.kernel.exception.SystemException; 587 588 /** 589 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 590 * 591 * @param companyId the company ID 592 * @param name the name 593 * @param scope the scope 594 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 595 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 596 * @throws SystemException if a system exception occurred 597 */ 598 public com.liferay.portal.model.ResourcePermission fetchByC_N_S_First( 599 long companyId, java.lang.String name, int scope, 600 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 601 throws com.liferay.portal.kernel.exception.SystemException; 602 603 /** 604 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 605 * 606 * @param companyId the company ID 607 * @param name the name 608 * @param scope the scope 609 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 610 * @return the last matching resource permission 611 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 612 * @throws SystemException if a system exception occurred 613 */ 614 public com.liferay.portal.model.ResourcePermission findByC_N_S_Last( 615 long companyId, java.lang.String name, int scope, 616 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 617 throws com.liferay.portal.NoSuchResourcePermissionException, 618 com.liferay.portal.kernel.exception.SystemException; 619 620 /** 621 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 622 * 623 * @param companyId the company ID 624 * @param name the name 625 * @param scope the scope 626 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 627 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 628 * @throws SystemException if a system exception occurred 629 */ 630 public com.liferay.portal.model.ResourcePermission fetchByC_N_S_Last( 631 long companyId, java.lang.String name, int scope, 632 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 633 throws com.liferay.portal.kernel.exception.SystemException; 634 635 /** 636 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 637 * 638 * @param resourcePermissionId the primary key of the current resource permission 639 * @param companyId the company ID 640 * @param name the name 641 * @param scope the scope 642 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 643 * @return the previous, current, and next resource permission 644 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 645 * @throws SystemException if a system exception occurred 646 */ 647 public com.liferay.portal.model.ResourcePermission[] findByC_N_S_PrevAndNext( 648 long resourcePermissionId, long companyId, java.lang.String name, 649 int scope, 650 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 651 throws com.liferay.portal.NoSuchResourcePermissionException, 652 com.liferay.portal.kernel.exception.SystemException; 653 654 /** 655 * Returns all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 656 * 657 * @param companyId the company ID 658 * @param name the name 659 * @param scope the scope 660 * @param primKey the prim key 661 * @return the matching resource permissions 662 * @throws SystemException if a system exception occurred 663 */ 664 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P( 665 long companyId, java.lang.String name, int scope, 666 java.lang.String primKey) 667 throws com.liferay.portal.kernel.exception.SystemException; 668 669 /** 670 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 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 companyId the company ID 677 * @param name the name 678 * @param scope the scope 679 * @param primKey the prim key 680 * @param start the lower bound of the range of resource permissions 681 * @param end the upper bound of the range of resource permissions (not inclusive) 682 * @return the range of matching resource permissions 683 * @throws SystemException if a system exception occurred 684 */ 685 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P( 686 long companyId, java.lang.String name, int scope, 687 java.lang.String primKey, int start, int end) 688 throws com.liferay.portal.kernel.exception.SystemException; 689 690 /** 691 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 692 * 693 * <p> 694 * 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. 695 * </p> 696 * 697 * @param companyId the company ID 698 * @param name the name 699 * @param scope the scope 700 * @param primKey the prim key 701 * @param start the lower bound of the range of resource permissions 702 * @param end the upper bound of the range of resource permissions (not inclusive) 703 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 704 * @return the ordered range of matching resource permissions 705 * @throws SystemException if a system exception occurred 706 */ 707 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P( 708 long companyId, java.lang.String name, int scope, 709 java.lang.String primKey, int start, int end, 710 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 711 throws com.liferay.portal.kernel.exception.SystemException; 712 713 /** 714 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 715 * 716 * @param companyId the company ID 717 * @param name the name 718 * @param scope the scope 719 * @param primKey the prim key 720 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 721 * @return the first matching resource permission 722 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 723 * @throws SystemException if a system exception occurred 724 */ 725 public com.liferay.portal.model.ResourcePermission findByC_N_S_P_First( 726 long companyId, java.lang.String name, int scope, 727 java.lang.String primKey, 728 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 729 throws com.liferay.portal.NoSuchResourcePermissionException, 730 com.liferay.portal.kernel.exception.SystemException; 731 732 /** 733 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 734 * 735 * @param companyId the company ID 736 * @param name the name 737 * @param scope the scope 738 * @param primKey the prim key 739 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 740 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 741 * @throws SystemException if a system exception occurred 742 */ 743 public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_First( 744 long companyId, java.lang.String name, int scope, 745 java.lang.String primKey, 746 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 747 throws com.liferay.portal.kernel.exception.SystemException; 748 749 /** 750 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 751 * 752 * @param companyId the company ID 753 * @param name the name 754 * @param scope the scope 755 * @param primKey the prim key 756 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 757 * @return the last matching resource permission 758 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 759 * @throws SystemException if a system exception occurred 760 */ 761 public com.liferay.portal.model.ResourcePermission findByC_N_S_P_Last( 762 long companyId, java.lang.String name, int scope, 763 java.lang.String primKey, 764 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 765 throws com.liferay.portal.NoSuchResourcePermissionException, 766 com.liferay.portal.kernel.exception.SystemException; 767 768 /** 769 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 770 * 771 * @param companyId the company ID 772 * @param name the name 773 * @param scope the scope 774 * @param primKey the prim key 775 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 776 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 777 * @throws SystemException if a system exception occurred 778 */ 779 public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_Last( 780 long companyId, java.lang.String name, int scope, 781 java.lang.String primKey, 782 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 783 throws com.liferay.portal.kernel.exception.SystemException; 784 785 /** 786 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 787 * 788 * @param resourcePermissionId the primary key of the current resource permission 789 * @param companyId the company ID 790 * @param name the name 791 * @param scope the scope 792 * @param primKey the prim key 793 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 794 * @return the previous, current, and next resource permission 795 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 796 * @throws SystemException if a system exception occurred 797 */ 798 public com.liferay.portal.model.ResourcePermission[] findByC_N_S_P_PrevAndNext( 799 long resourcePermissionId, long companyId, java.lang.String name, 800 int scope, java.lang.String primKey, 801 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 802 throws com.liferay.portal.NoSuchResourcePermissionException, 803 com.liferay.portal.kernel.exception.SystemException; 804 805 /** 806 * Returns all the resource permissions where companyId = ? and name = ? and primKey = ? and ownerId = ?. 807 * 808 * @param companyId the company ID 809 * @param name the name 810 * @param primKey the prim key 811 * @param ownerId the owner ID 812 * @return the matching resource permissions 813 * @throws SystemException if a system exception occurred 814 */ 815 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_O( 816 long companyId, java.lang.String name, java.lang.String primKey, 817 long ownerId) 818 throws com.liferay.portal.kernel.exception.SystemException; 819 820 /** 821 * Returns a range of all the resource permissions where companyId = ? and name = ? and primKey = ? and ownerId = ?. 822 * 823 * <p> 824 * 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. 825 * </p> 826 * 827 * @param companyId the company ID 828 * @param name the name 829 * @param primKey the prim key 830 * @param ownerId the owner ID 831 * @param start the lower bound of the range of resource permissions 832 * @param end the upper bound of the range of resource permissions (not inclusive) 833 * @return the range of matching resource permissions 834 * @throws SystemException if a system exception occurred 835 */ 836 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_O( 837 long companyId, java.lang.String name, java.lang.String primKey, 838 long ownerId, int start, int end) 839 throws com.liferay.portal.kernel.exception.SystemException; 840 841 /** 842 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and primKey = ? and ownerId = ?. 843 * 844 * <p> 845 * 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. 846 * </p> 847 * 848 * @param companyId the company ID 849 * @param name the name 850 * @param primKey the prim key 851 * @param ownerId the owner ID 852 * @param start the lower bound of the range of resource permissions 853 * @param end the upper bound of the range of resource permissions (not inclusive) 854 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 855 * @return the ordered range of matching resource permissions 856 * @throws SystemException if a system exception occurred 857 */ 858 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_O( 859 long companyId, java.lang.String name, java.lang.String primKey, 860 long ownerId, int start, int end, 861 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 862 throws com.liferay.portal.kernel.exception.SystemException; 863 864 /** 865 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and primKey = ? and ownerId = ?. 866 * 867 * @param companyId the company ID 868 * @param name the name 869 * @param primKey the prim key 870 * @param ownerId the owner ID 871 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 872 * @return the first matching resource permission 873 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 874 * @throws SystemException if a system exception occurred 875 */ 876 public com.liferay.portal.model.ResourcePermission findByC_N_P_O_First( 877 long companyId, java.lang.String name, java.lang.String primKey, 878 long ownerId, 879 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 880 throws com.liferay.portal.NoSuchResourcePermissionException, 881 com.liferay.portal.kernel.exception.SystemException; 882 883 /** 884 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and primKey = ? and ownerId = ?. 885 * 886 * @param companyId the company ID 887 * @param name the name 888 * @param primKey the prim key 889 * @param ownerId the owner ID 890 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 891 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 892 * @throws SystemException if a system exception occurred 893 */ 894 public com.liferay.portal.model.ResourcePermission fetchByC_N_P_O_First( 895 long companyId, java.lang.String name, java.lang.String primKey, 896 long ownerId, 897 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 898 throws com.liferay.portal.kernel.exception.SystemException; 899 900 /** 901 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and primKey = ? and ownerId = ?. 902 * 903 * @param companyId the company ID 904 * @param name the name 905 * @param primKey the prim key 906 * @param ownerId the owner ID 907 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 908 * @return the last matching resource permission 909 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 910 * @throws SystemException if a system exception occurred 911 */ 912 public com.liferay.portal.model.ResourcePermission findByC_N_P_O_Last( 913 long companyId, java.lang.String name, java.lang.String primKey, 914 long ownerId, 915 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 916 throws com.liferay.portal.NoSuchResourcePermissionException, 917 com.liferay.portal.kernel.exception.SystemException; 918 919 /** 920 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and primKey = ? and ownerId = ?. 921 * 922 * @param companyId the company ID 923 * @param name the name 924 * @param primKey the prim key 925 * @param ownerId the owner ID 926 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 927 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 928 * @throws SystemException if a system exception occurred 929 */ 930 public com.liferay.portal.model.ResourcePermission fetchByC_N_P_O_Last( 931 long companyId, java.lang.String name, java.lang.String primKey, 932 long ownerId, 933 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 934 throws com.liferay.portal.kernel.exception.SystemException; 935 936 /** 937 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and name = ? and primKey = ? and ownerId = ?. 938 * 939 * @param resourcePermissionId the primary key of the current resource permission 940 * @param companyId the company ID 941 * @param name the name 942 * @param primKey the prim key 943 * @param ownerId the owner ID 944 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 945 * @return the previous, current, and next resource permission 946 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 947 * @throws SystemException if a system exception occurred 948 */ 949 public com.liferay.portal.model.ResourcePermission[] findByC_N_P_O_PrevAndNext( 950 long resourcePermissionId, long companyId, java.lang.String name, 951 java.lang.String primKey, long ownerId, 952 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 953 throws com.liferay.portal.NoSuchResourcePermissionException, 954 com.liferay.portal.kernel.exception.SystemException; 955 956 /** 957 * Returns all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ?. 958 * 959 * @param companyId the company ID 960 * @param name the name 961 * @param scope the scope 962 * @param primKey the prim key 963 * @param roleId the role ID 964 * @return the matching resource permissions 965 * @throws SystemException if a system exception occurred 966 */ 967 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R( 968 long companyId, java.lang.String name, int scope, 969 java.lang.String primKey, long roleId) 970 throws com.liferay.portal.kernel.exception.SystemException; 971 972 /** 973 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ?. 974 * 975 * <p> 976 * 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. 977 * </p> 978 * 979 * @param companyId the company ID 980 * @param name the name 981 * @param scope the scope 982 * @param primKey the prim key 983 * @param roleId the role ID 984 * @param start the lower bound of the range of resource permissions 985 * @param end the upper bound of the range of resource permissions (not inclusive) 986 * @return the range of matching resource permissions 987 * @throws SystemException if a system exception occurred 988 */ 989 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R( 990 long companyId, java.lang.String name, int scope, 991 java.lang.String primKey, long roleId, int start, int end) 992 throws com.liferay.portal.kernel.exception.SystemException; 993 994 /** 995 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ?. 996 * 997 * <p> 998 * 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. 999 * </p> 1000 * 1001 * @param companyId the company ID 1002 * @param name the name 1003 * @param scope the scope 1004 * @param primKey the prim key 1005 * @param roleId the role ID 1006 * @param start the lower bound of the range of resource permissions 1007 * @param end the upper bound of the range of resource permissions (not inclusive) 1008 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1009 * @return the ordered range of matching resource permissions 1010 * @throws SystemException if a system exception occurred 1011 */ 1012 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R( 1013 long companyId, java.lang.String name, int scope, 1014 java.lang.String primKey, long roleId, int start, int end, 1015 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1016 throws com.liferay.portal.kernel.exception.SystemException; 1017 1018 /** 1019 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ?. 1020 * 1021 * @param companyId the company ID 1022 * @param name the name 1023 * @param scope the scope 1024 * @param primKey the prim key 1025 * @param roleId the role ID 1026 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1027 * @return the first matching resource permission 1028 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 1029 * @throws SystemException if a system exception occurred 1030 */ 1031 public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R_First( 1032 long companyId, java.lang.String name, int scope, 1033 java.lang.String primKey, long roleId, 1034 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1035 throws com.liferay.portal.NoSuchResourcePermissionException, 1036 com.liferay.portal.kernel.exception.SystemException; 1037 1038 /** 1039 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ?. 1040 * 1041 * @param companyId the company ID 1042 * @param name the name 1043 * @param scope the scope 1044 * @param primKey the prim key 1045 * @param roleId the role ID 1046 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1047 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 1048 * @throws SystemException if a system exception occurred 1049 */ 1050 public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R_First( 1051 long companyId, java.lang.String name, int scope, 1052 java.lang.String primKey, long roleId, 1053 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1054 throws com.liferay.portal.kernel.exception.SystemException; 1055 1056 /** 1057 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ?. 1058 * 1059 * @param companyId the company ID 1060 * @param name the name 1061 * @param scope the scope 1062 * @param primKey the prim key 1063 * @param roleId the role ID 1064 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1065 * @return the last matching resource permission 1066 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 1067 * @throws SystemException if a system exception occurred 1068 */ 1069 public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R_Last( 1070 long companyId, java.lang.String name, int scope, 1071 java.lang.String primKey, long roleId, 1072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1073 throws com.liferay.portal.NoSuchResourcePermissionException, 1074 com.liferay.portal.kernel.exception.SystemException; 1075 1076 /** 1077 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ?. 1078 * 1079 * @param companyId the company ID 1080 * @param name the name 1081 * @param scope the scope 1082 * @param primKey the prim key 1083 * @param roleId the role ID 1084 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1085 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 1086 * @throws SystemException if a system exception occurred 1087 */ 1088 public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R_Last( 1089 long companyId, java.lang.String name, int scope, 1090 java.lang.String primKey, long roleId, 1091 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1092 throws com.liferay.portal.kernel.exception.SystemException; 1093 1094 /** 1095 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ?. 1096 * 1097 * @param resourcePermissionId the primary key of the current resource permission 1098 * @param companyId the company ID 1099 * @param name the name 1100 * @param scope the scope 1101 * @param primKey the prim key 1102 * @param roleId the role ID 1103 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1104 * @return the previous, current, and next resource permission 1105 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 1106 * @throws SystemException if a system exception occurred 1107 */ 1108 public com.liferay.portal.model.ResourcePermission[] findByC_N_S_P_R_PrevAndNext( 1109 long resourcePermissionId, long companyId, java.lang.String name, 1110 int scope, java.lang.String primKey, long roleId, 1111 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1112 throws com.liferay.portal.NoSuchResourcePermissionException, 1113 com.liferay.portal.kernel.exception.SystemException; 1114 1115 /** 1116 * Returns all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 1117 * 1118 * <p> 1119 * 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. 1120 * </p> 1121 * 1122 * @param companyId the company ID 1123 * @param name the name 1124 * @param scope the scope 1125 * @param primKey the prim key 1126 * @param roleIds the role IDs 1127 * @return the matching resource permissions 1128 * @throws SystemException if a system exception occurred 1129 */ 1130 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R( 1131 long companyId, java.lang.String name, int scope, 1132 java.lang.String primKey, long[] roleIds) 1133 throws com.liferay.portal.kernel.exception.SystemException; 1134 1135 /** 1136 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 1137 * 1138 * <p> 1139 * 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. 1140 * </p> 1141 * 1142 * @param companyId the company ID 1143 * @param name the name 1144 * @param scope the scope 1145 * @param primKey the prim key 1146 * @param roleIds the role IDs 1147 * @param start the lower bound of the range of resource permissions 1148 * @param end the upper bound of the range of resource permissions (not inclusive) 1149 * @return the range of matching resource permissions 1150 * @throws SystemException if a system exception occurred 1151 */ 1152 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R( 1153 long companyId, java.lang.String name, int scope, 1154 java.lang.String primKey, long[] roleIds, int start, int end) 1155 throws com.liferay.portal.kernel.exception.SystemException; 1156 1157 /** 1158 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 1159 * 1160 * <p> 1161 * 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. 1162 * </p> 1163 * 1164 * @param companyId the company ID 1165 * @param name the name 1166 * @param scope the scope 1167 * @param primKey the prim key 1168 * @param roleIds the role IDs 1169 * @param start the lower bound of the range of resource permissions 1170 * @param end the upper bound of the range of resource permissions (not inclusive) 1171 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1172 * @return the ordered range of matching resource permissions 1173 * @throws SystemException if a system exception occurred 1174 */ 1175 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R( 1176 long companyId, java.lang.String name, int scope, 1177 java.lang.String primKey, long[] roleIds, int start, int end, 1178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1179 throws com.liferay.portal.kernel.exception.SystemException; 1180 1181 /** 1182 * Returns all the resource permissions where companyId = ? and name = ? and primKey = ? and roleId = ? and actionIds = ?. 1183 * 1184 * @param companyId the company ID 1185 * @param name the name 1186 * @param primKey the prim key 1187 * @param roleId the role ID 1188 * @param actionIds the action IDs 1189 * @return the matching resource permissions 1190 * @throws SystemException if a system exception occurred 1191 */ 1192 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_R_A( 1193 long companyId, java.lang.String name, java.lang.String primKey, 1194 long roleId, long actionIds) 1195 throws com.liferay.portal.kernel.exception.SystemException; 1196 1197 /** 1198 * Returns a range of all the resource permissions where companyId = ? and name = ? and primKey = ? and roleId = ? and actionIds = ?. 1199 * 1200 * <p> 1201 * 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. 1202 * </p> 1203 * 1204 * @param companyId the company ID 1205 * @param name the name 1206 * @param primKey the prim key 1207 * @param roleId the role ID 1208 * @param actionIds the action IDs 1209 * @param start the lower bound of the range of resource permissions 1210 * @param end the upper bound of the range of resource permissions (not inclusive) 1211 * @return the range of matching resource permissions 1212 * @throws SystemException if a system exception occurred 1213 */ 1214 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_R_A( 1215 long companyId, java.lang.String name, java.lang.String primKey, 1216 long roleId, long actionIds, int start, int end) 1217 throws com.liferay.portal.kernel.exception.SystemException; 1218 1219 /** 1220 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and primKey = ? and roleId = ? and actionIds = ?. 1221 * 1222 * <p> 1223 * 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. 1224 * </p> 1225 * 1226 * @param companyId the company ID 1227 * @param name the name 1228 * @param primKey the prim key 1229 * @param roleId the role ID 1230 * @param actionIds the action IDs 1231 * @param start the lower bound of the range of resource permissions 1232 * @param end the upper bound of the range of resource permissions (not inclusive) 1233 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1234 * @return the ordered range of matching resource permissions 1235 * @throws SystemException if a system exception occurred 1236 */ 1237 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_R_A( 1238 long companyId, java.lang.String name, java.lang.String primKey, 1239 long roleId, long actionIds, int start, int end, 1240 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1241 throws com.liferay.portal.kernel.exception.SystemException; 1242 1243 /** 1244 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and primKey = ? and roleId = ? and actionIds = ?. 1245 * 1246 * @param companyId the company ID 1247 * @param name the name 1248 * @param primKey the prim key 1249 * @param roleId the role ID 1250 * @param actionIds the action IDs 1251 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1252 * @return the first matching resource permission 1253 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 1254 * @throws SystemException if a system exception occurred 1255 */ 1256 public com.liferay.portal.model.ResourcePermission findByC_N_P_R_A_First( 1257 long companyId, java.lang.String name, java.lang.String primKey, 1258 long roleId, long actionIds, 1259 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1260 throws com.liferay.portal.NoSuchResourcePermissionException, 1261 com.liferay.portal.kernel.exception.SystemException; 1262 1263 /** 1264 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and primKey = ? and roleId = ? and actionIds = ?. 1265 * 1266 * @param companyId the company ID 1267 * @param name the name 1268 * @param primKey the prim key 1269 * @param roleId the role ID 1270 * @param actionIds the action IDs 1271 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1272 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 1273 * @throws SystemException if a system exception occurred 1274 */ 1275 public com.liferay.portal.model.ResourcePermission fetchByC_N_P_R_A_First( 1276 long companyId, java.lang.String name, java.lang.String primKey, 1277 long roleId, long actionIds, 1278 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1279 throws com.liferay.portal.kernel.exception.SystemException; 1280 1281 /** 1282 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and primKey = ? and roleId = ? and actionIds = ?. 1283 * 1284 * @param companyId the company ID 1285 * @param name the name 1286 * @param primKey the prim key 1287 * @param roleId the role ID 1288 * @param actionIds the action IDs 1289 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1290 * @return the last matching resource permission 1291 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 1292 * @throws SystemException if a system exception occurred 1293 */ 1294 public com.liferay.portal.model.ResourcePermission findByC_N_P_R_A_Last( 1295 long companyId, java.lang.String name, java.lang.String primKey, 1296 long roleId, long actionIds, 1297 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1298 throws com.liferay.portal.NoSuchResourcePermissionException, 1299 com.liferay.portal.kernel.exception.SystemException; 1300 1301 /** 1302 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and primKey = ? and roleId = ? and actionIds = ?. 1303 * 1304 * @param companyId the company ID 1305 * @param name the name 1306 * @param primKey the prim key 1307 * @param roleId the role ID 1308 * @param actionIds the action IDs 1309 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1310 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 1311 * @throws SystemException if a system exception occurred 1312 */ 1313 public com.liferay.portal.model.ResourcePermission fetchByC_N_P_R_A_Last( 1314 long companyId, java.lang.String name, java.lang.String primKey, 1315 long roleId, long actionIds, 1316 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1317 throws com.liferay.portal.kernel.exception.SystemException; 1318 1319 /** 1320 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and name = ? and primKey = ? and roleId = ? and actionIds = ?. 1321 * 1322 * @param resourcePermissionId the primary key of the current resource permission 1323 * @param companyId the company ID 1324 * @param name the name 1325 * @param primKey the prim key 1326 * @param roleId the role ID 1327 * @param actionIds the action IDs 1328 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1329 * @return the previous, current, and next resource permission 1330 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 1331 * @throws SystemException if a system exception occurred 1332 */ 1333 public com.liferay.portal.model.ResourcePermission[] findByC_N_P_R_A_PrevAndNext( 1334 long resourcePermissionId, long companyId, java.lang.String name, 1335 java.lang.String primKey, long roleId, long actionIds, 1336 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1337 throws com.liferay.portal.NoSuchResourcePermissionException, 1338 com.liferay.portal.kernel.exception.SystemException; 1339 1340 /** 1341 * Returns all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and actionIds = ?. 1342 * 1343 * @param companyId the company ID 1344 * @param name the name 1345 * @param scope the scope 1346 * @param primKey the prim key 1347 * @param roleId the role ID 1348 * @param actionIds the action IDs 1349 * @return the matching resource permissions 1350 * @throws SystemException if a system exception occurred 1351 */ 1352 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R_A( 1353 long companyId, java.lang.String name, int scope, 1354 java.lang.String primKey, long roleId, long actionIds) 1355 throws com.liferay.portal.kernel.exception.SystemException; 1356 1357 /** 1358 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and actionIds = ?. 1359 * 1360 * <p> 1361 * 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. 1362 * </p> 1363 * 1364 * @param companyId the company ID 1365 * @param name the name 1366 * @param scope the scope 1367 * @param primKey the prim key 1368 * @param roleId the role ID 1369 * @param actionIds the action IDs 1370 * @param start the lower bound of the range of resource permissions 1371 * @param end the upper bound of the range of resource permissions (not inclusive) 1372 * @return the range of matching resource permissions 1373 * @throws SystemException if a system exception occurred 1374 */ 1375 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R_A( 1376 long companyId, java.lang.String name, int scope, 1377 java.lang.String primKey, long roleId, long actionIds, int start, 1378 int end) throws com.liferay.portal.kernel.exception.SystemException; 1379 1380 /** 1381 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and actionIds = ?. 1382 * 1383 * <p> 1384 * 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. 1385 * </p> 1386 * 1387 * @param companyId the company ID 1388 * @param name the name 1389 * @param scope the scope 1390 * @param primKey the prim key 1391 * @param roleId the role ID 1392 * @param actionIds the action IDs 1393 * @param start the lower bound of the range of resource permissions 1394 * @param end the upper bound of the range of resource permissions (not inclusive) 1395 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1396 * @return the ordered range of matching resource permissions 1397 * @throws SystemException if a system exception occurred 1398 */ 1399 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R_A( 1400 long companyId, java.lang.String name, int scope, 1401 java.lang.String primKey, long roleId, long actionIds, int start, 1402 int end, 1403 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1404 throws com.liferay.portal.kernel.exception.SystemException; 1405 1406 /** 1407 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and actionIds = ?. 1408 * 1409 * @param companyId the company ID 1410 * @param name the name 1411 * @param scope the scope 1412 * @param primKey the prim key 1413 * @param roleId the role ID 1414 * @param actionIds the action IDs 1415 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1416 * @return the first matching resource permission 1417 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 1418 * @throws SystemException if a system exception occurred 1419 */ 1420 public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R_A_First( 1421 long companyId, java.lang.String name, int scope, 1422 java.lang.String primKey, long roleId, long actionIds, 1423 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1424 throws com.liferay.portal.NoSuchResourcePermissionException, 1425 com.liferay.portal.kernel.exception.SystemException; 1426 1427 /** 1428 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and actionIds = ?. 1429 * 1430 * @param companyId the company ID 1431 * @param name the name 1432 * @param scope the scope 1433 * @param primKey the prim key 1434 * @param roleId the role ID 1435 * @param actionIds the action IDs 1436 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1437 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 1438 * @throws SystemException if a system exception occurred 1439 */ 1440 public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R_A_First( 1441 long companyId, java.lang.String name, int scope, 1442 java.lang.String primKey, long roleId, long actionIds, 1443 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1444 throws com.liferay.portal.kernel.exception.SystemException; 1445 1446 /** 1447 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and actionIds = ?. 1448 * 1449 * @param companyId the company ID 1450 * @param name the name 1451 * @param scope the scope 1452 * @param primKey the prim key 1453 * @param roleId the role ID 1454 * @param actionIds the action IDs 1455 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1456 * @return the last matching resource permission 1457 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 1458 * @throws SystemException if a system exception occurred 1459 */ 1460 public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R_A_Last( 1461 long companyId, java.lang.String name, int scope, 1462 java.lang.String primKey, long roleId, long actionIds, 1463 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1464 throws com.liferay.portal.NoSuchResourcePermissionException, 1465 com.liferay.portal.kernel.exception.SystemException; 1466 1467 /** 1468 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and actionIds = ?. 1469 * 1470 * @param companyId the company ID 1471 * @param name the name 1472 * @param scope the scope 1473 * @param primKey the prim key 1474 * @param roleId the role ID 1475 * @param actionIds the action IDs 1476 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1477 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 1478 * @throws SystemException if a system exception occurred 1479 */ 1480 public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R_A_Last( 1481 long companyId, java.lang.String name, int scope, 1482 java.lang.String primKey, long roleId, long actionIds, 1483 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1484 throws com.liferay.portal.kernel.exception.SystemException; 1485 1486 /** 1487 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and actionIds = ?. 1488 * 1489 * @param resourcePermissionId the primary key of the current resource permission 1490 * @param companyId the company ID 1491 * @param name the name 1492 * @param scope the scope 1493 * @param primKey the prim key 1494 * @param roleId the role ID 1495 * @param actionIds the action IDs 1496 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1497 * @return the previous, current, and next resource permission 1498 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 1499 * @throws SystemException if a system exception occurred 1500 */ 1501 public com.liferay.portal.model.ResourcePermission[] findByC_N_S_P_R_A_PrevAndNext( 1502 long resourcePermissionId, long companyId, java.lang.String name, 1503 int scope, java.lang.String primKey, long roleId, long actionIds, 1504 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1505 throws com.liferay.portal.NoSuchResourcePermissionException, 1506 com.liferay.portal.kernel.exception.SystemException; 1507 1508 /** 1509 * Returns all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ? and actionIds = ?. 1510 * 1511 * <p> 1512 * 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. 1513 * </p> 1514 * 1515 * @param companyId the company ID 1516 * @param name the name 1517 * @param scope the scope 1518 * @param primKey the prim key 1519 * @param roleIds the role IDs 1520 * @param actionIds the action IDs 1521 * @return the matching resource permissions 1522 * @throws SystemException if a system exception occurred 1523 */ 1524 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R_A( 1525 long companyId, java.lang.String name, int scope, 1526 java.lang.String primKey, long[] roleIds, long actionIds) 1527 throws com.liferay.portal.kernel.exception.SystemException; 1528 1529 /** 1530 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ? and actionIds = ?. 1531 * 1532 * <p> 1533 * 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. 1534 * </p> 1535 * 1536 * @param companyId the company ID 1537 * @param name the name 1538 * @param scope the scope 1539 * @param primKey the prim key 1540 * @param roleIds the role IDs 1541 * @param actionIds the action IDs 1542 * @param start the lower bound of the range of resource permissions 1543 * @param end the upper bound of the range of resource permissions (not inclusive) 1544 * @return the range of matching resource permissions 1545 * @throws SystemException if a system exception occurred 1546 */ 1547 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R_A( 1548 long companyId, java.lang.String name, int scope, 1549 java.lang.String primKey, long[] roleIds, long actionIds, int start, 1550 int end) throws com.liferay.portal.kernel.exception.SystemException; 1551 1552 /** 1553 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ? and actionIds = ?. 1554 * 1555 * <p> 1556 * 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. 1557 * </p> 1558 * 1559 * @param companyId the company ID 1560 * @param name the name 1561 * @param scope the scope 1562 * @param primKey the prim key 1563 * @param roleIds the role IDs 1564 * @param actionIds the action IDs 1565 * @param start the lower bound of the range of resource permissions 1566 * @param end the upper bound of the range of resource permissions (not inclusive) 1567 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1568 * @return the ordered range of matching resource permissions 1569 * @throws SystemException if a system exception occurred 1570 */ 1571 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R_A( 1572 long companyId, java.lang.String name, int scope, 1573 java.lang.String primKey, long[] roleIds, long actionIds, int start, 1574 int end, 1575 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1576 throws com.liferay.portal.kernel.exception.SystemException; 1577 1578 /** 1579 * Returns the resource permission where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and ownerId = ? and actionIds = ? or throws a {@link com.liferay.portal.NoSuchResourcePermissionException} if it could not be found. 1580 * 1581 * @param companyId the company ID 1582 * @param name the name 1583 * @param scope the scope 1584 * @param primKey the prim key 1585 * @param roleId the role ID 1586 * @param ownerId the owner ID 1587 * @param actionIds the action IDs 1588 * @return the matching resource permission 1589 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 1590 * @throws SystemException if a system exception occurred 1591 */ 1592 public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R_O_A( 1593 long companyId, java.lang.String name, int scope, 1594 java.lang.String primKey, long roleId, long ownerId, long actionIds) 1595 throws com.liferay.portal.NoSuchResourcePermissionException, 1596 com.liferay.portal.kernel.exception.SystemException; 1597 1598 /** 1599 * Returns the resource permission where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and ownerId = ? and actionIds = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1600 * 1601 * @param companyId the company ID 1602 * @param name the name 1603 * @param scope the scope 1604 * @param primKey the prim key 1605 * @param roleId the role ID 1606 * @param ownerId the owner ID 1607 * @param actionIds the action IDs 1608 * @return the matching resource permission, or <code>null</code> if a matching resource permission could not be found 1609 * @throws SystemException if a system exception occurred 1610 */ 1611 public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R_O_A( 1612 long companyId, java.lang.String name, int scope, 1613 java.lang.String primKey, long roleId, long ownerId, long actionIds) 1614 throws com.liferay.portal.kernel.exception.SystemException; 1615 1616 /** 1617 * Returns the resource permission where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and ownerId = ? and actionIds = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1618 * 1619 * @param companyId the company ID 1620 * @param name the name 1621 * @param scope the scope 1622 * @param primKey the prim key 1623 * @param roleId the role ID 1624 * @param ownerId the owner ID 1625 * @param actionIds the action IDs 1626 * @param retrieveFromCache whether to use the finder cache 1627 * @return the matching resource permission, or <code>null</code> if a matching resource permission could not be found 1628 * @throws SystemException if a system exception occurred 1629 */ 1630 public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R_O_A( 1631 long companyId, java.lang.String name, int scope, 1632 java.lang.String primKey, long roleId, long ownerId, long actionIds, 1633 boolean retrieveFromCache) 1634 throws com.liferay.portal.kernel.exception.SystemException; 1635 1636 /** 1637 * Returns all the resource permissions. 1638 * 1639 * @return the resource permissions 1640 * @throws SystemException if a system exception occurred 1641 */ 1642 public java.util.List<com.liferay.portal.model.ResourcePermission> findAll() 1643 throws com.liferay.portal.kernel.exception.SystemException; 1644 1645 /** 1646 * Returns a range of all the resource permissions. 1647 * 1648 * <p> 1649 * 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. 1650 * </p> 1651 * 1652 * @param start the lower bound of the range of resource permissions 1653 * @param end the upper bound of the range of resource permissions (not inclusive) 1654 * @return the range of resource permissions 1655 * @throws SystemException if a system exception occurred 1656 */ 1657 public java.util.List<com.liferay.portal.model.ResourcePermission> findAll( 1658 int start, int end) 1659 throws com.liferay.portal.kernel.exception.SystemException; 1660 1661 /** 1662 * Returns an ordered range of all the resource permissions. 1663 * 1664 * <p> 1665 * 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. 1666 * </p> 1667 * 1668 * @param start the lower bound of the range of resource permissions 1669 * @param end the upper bound of the range of resource permissions (not inclusive) 1670 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1671 * @return the ordered range of resource permissions 1672 * @throws SystemException if a system exception occurred 1673 */ 1674 public java.util.List<com.liferay.portal.model.ResourcePermission> findAll( 1675 int start, int end, 1676 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1677 throws com.liferay.portal.kernel.exception.SystemException; 1678 1679 /** 1680 * Removes all the resource permissions where scope = ? from the database. 1681 * 1682 * @param scope the scope 1683 * @throws SystemException if a system exception occurred 1684 */ 1685 public void removeByScope(int scope) 1686 throws com.liferay.portal.kernel.exception.SystemException; 1687 1688 /** 1689 * Removes all the resource permissions where roleId = ? from the database. 1690 * 1691 * @param roleId the role ID 1692 * @throws SystemException if a system exception occurred 1693 */ 1694 public void removeByRoleId(long roleId) 1695 throws com.liferay.portal.kernel.exception.SystemException; 1696 1697 /** 1698 * Removes all the resource permissions where companyId = ? and primKey LIKE ? from the database. 1699 * 1700 * @param companyId the company ID 1701 * @param primKey the prim key 1702 * @throws SystemException if a system exception occurred 1703 */ 1704 public void removeByC_P(long companyId, java.lang.String primKey) 1705 throws com.liferay.portal.kernel.exception.SystemException; 1706 1707 /** 1708 * Removes all the resource permissions where companyId = ? and name = ? and scope = ? from the database. 1709 * 1710 * @param companyId the company ID 1711 * @param name the name 1712 * @param scope the scope 1713 * @throws SystemException if a system exception occurred 1714 */ 1715 public void removeByC_N_S(long companyId, java.lang.String name, int scope) 1716 throws com.liferay.portal.kernel.exception.SystemException; 1717 1718 /** 1719 * Removes all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? from the database. 1720 * 1721 * @param companyId the company ID 1722 * @param name the name 1723 * @param scope the scope 1724 * @param primKey the prim key 1725 * @throws SystemException if a system exception occurred 1726 */ 1727 public void removeByC_N_S_P(long companyId, java.lang.String name, 1728 int scope, java.lang.String primKey) 1729 throws com.liferay.portal.kernel.exception.SystemException; 1730 1731 /** 1732 * Removes all the resource permissions where companyId = ? and name = ? and primKey = ? and ownerId = ? from the database. 1733 * 1734 * @param companyId the company ID 1735 * @param name the name 1736 * @param primKey the prim key 1737 * @param ownerId the owner ID 1738 * @throws SystemException if a system exception occurred 1739 */ 1740 public void removeByC_N_P_O(long companyId, java.lang.String name, 1741 java.lang.String primKey, long ownerId) 1742 throws com.liferay.portal.kernel.exception.SystemException; 1743 1744 /** 1745 * Removes all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? from the database. 1746 * 1747 * @param companyId the company ID 1748 * @param name the name 1749 * @param scope the scope 1750 * @param primKey the prim key 1751 * @param roleId the role ID 1752 * @throws SystemException if a system exception occurred 1753 */ 1754 public void removeByC_N_S_P_R(long companyId, java.lang.String name, 1755 int scope, java.lang.String primKey, long roleId) 1756 throws com.liferay.portal.kernel.exception.SystemException; 1757 1758 /** 1759 * Removes all the resource permissions where companyId = ? and name = ? and primKey = ? and roleId = ? and actionIds = ? from the database. 1760 * 1761 * @param companyId the company ID 1762 * @param name the name 1763 * @param primKey the prim key 1764 * @param roleId the role ID 1765 * @param actionIds the action IDs 1766 * @throws SystemException if a system exception occurred 1767 */ 1768 public void removeByC_N_P_R_A(long companyId, java.lang.String name, 1769 java.lang.String primKey, long roleId, long actionIds) 1770 throws com.liferay.portal.kernel.exception.SystemException; 1771 1772 /** 1773 * Removes all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and actionIds = ? from the database. 1774 * 1775 * @param companyId the company ID 1776 * @param name the name 1777 * @param scope the scope 1778 * @param primKey the prim key 1779 * @param roleId the role ID 1780 * @param actionIds the action IDs 1781 * @throws SystemException if a system exception occurred 1782 */ 1783 public void removeByC_N_S_P_R_A(long companyId, java.lang.String name, 1784 int scope, java.lang.String primKey, long roleId, long actionIds) 1785 throws com.liferay.portal.kernel.exception.SystemException; 1786 1787 /** 1788 * Removes the resource permission where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and ownerId = ? and actionIds = ? from the database. 1789 * 1790 * @param companyId the company ID 1791 * @param name the name 1792 * @param scope the scope 1793 * @param primKey the prim key 1794 * @param roleId the role ID 1795 * @param ownerId the owner ID 1796 * @param actionIds the action IDs 1797 * @return the resource permission that was removed 1798 * @throws SystemException if a system exception occurred 1799 */ 1800 public com.liferay.portal.model.ResourcePermission removeByC_N_S_P_R_O_A( 1801 long companyId, java.lang.String name, int scope, 1802 java.lang.String primKey, long roleId, long ownerId, long actionIds) 1803 throws com.liferay.portal.NoSuchResourcePermissionException, 1804 com.liferay.portal.kernel.exception.SystemException; 1805 1806 /** 1807 * Removes all the resource permissions from the database. 1808 * 1809 * @throws SystemException if a system exception occurred 1810 */ 1811 public void removeAll() 1812 throws com.liferay.portal.kernel.exception.SystemException; 1813 1814 /** 1815 * Returns the number of resource permissions where scope = ?. 1816 * 1817 * @param scope the scope 1818 * @return the number of matching resource permissions 1819 * @throws SystemException if a system exception occurred 1820 */ 1821 public int countByScope(int scope) 1822 throws com.liferay.portal.kernel.exception.SystemException; 1823 1824 /** 1825 * Returns the number of resource permissions where scope = any ?. 1826 * 1827 * @param scopes the scopes 1828 * @return the number of matching resource permissions 1829 * @throws SystemException if a system exception occurred 1830 */ 1831 public int countByScope(int[] scopes) 1832 throws com.liferay.portal.kernel.exception.SystemException; 1833 1834 /** 1835 * Returns the number of resource permissions where roleId = ?. 1836 * 1837 * @param roleId the role ID 1838 * @return the number of matching resource permissions 1839 * @throws SystemException if a system exception occurred 1840 */ 1841 public int countByRoleId(long roleId) 1842 throws com.liferay.portal.kernel.exception.SystemException; 1843 1844 /** 1845 * Returns the number of resource permissions where companyId = ? and primKey LIKE ?. 1846 * 1847 * @param companyId the company ID 1848 * @param primKey the prim key 1849 * @return the number of matching resource permissions 1850 * @throws SystemException if a system exception occurred 1851 */ 1852 public int countByC_P(long companyId, java.lang.String primKey) 1853 throws com.liferay.portal.kernel.exception.SystemException; 1854 1855 /** 1856 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ?. 1857 * 1858 * @param companyId the company ID 1859 * @param name the name 1860 * @param scope the scope 1861 * @return the number of matching resource permissions 1862 * @throws SystemException if a system exception occurred 1863 */ 1864 public int countByC_N_S(long companyId, java.lang.String name, int scope) 1865 throws com.liferay.portal.kernel.exception.SystemException; 1866 1867 /** 1868 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 1869 * 1870 * @param companyId the company ID 1871 * @param name the name 1872 * @param scope the scope 1873 * @param primKey the prim key 1874 * @return the number of matching resource permissions 1875 * @throws SystemException if a system exception occurred 1876 */ 1877 public int countByC_N_S_P(long companyId, java.lang.String name, int scope, 1878 java.lang.String primKey) 1879 throws com.liferay.portal.kernel.exception.SystemException; 1880 1881 /** 1882 * Returns the number of resource permissions where companyId = ? and name = ? and primKey = ? and ownerId = ?. 1883 * 1884 * @param companyId the company ID 1885 * @param name the name 1886 * @param primKey the prim key 1887 * @param ownerId the owner ID 1888 * @return the number of matching resource permissions 1889 * @throws SystemException if a system exception occurred 1890 */ 1891 public int countByC_N_P_O(long companyId, java.lang.String name, 1892 java.lang.String primKey, long ownerId) 1893 throws com.liferay.portal.kernel.exception.SystemException; 1894 1895 /** 1896 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ?. 1897 * 1898 * @param companyId the company ID 1899 * @param name the name 1900 * @param scope the scope 1901 * @param primKey the prim key 1902 * @param roleId the role ID 1903 * @return the number of matching resource permissions 1904 * @throws SystemException if a system exception occurred 1905 */ 1906 public int countByC_N_S_P_R(long companyId, java.lang.String name, 1907 int scope, java.lang.String primKey, long roleId) 1908 throws com.liferay.portal.kernel.exception.SystemException; 1909 1910 /** 1911 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 1912 * 1913 * @param companyId the company ID 1914 * @param name the name 1915 * @param scope the scope 1916 * @param primKey the prim key 1917 * @param roleIds the role IDs 1918 * @return the number of matching resource permissions 1919 * @throws SystemException if a system exception occurred 1920 */ 1921 public int countByC_N_S_P_R(long companyId, java.lang.String name, 1922 int scope, java.lang.String primKey, long[] roleIds) 1923 throws com.liferay.portal.kernel.exception.SystemException; 1924 1925 /** 1926 * Returns the number of resource permissions where companyId = ? and name = ? and primKey = ? and roleId = ? and actionIds = ?. 1927 * 1928 * @param companyId the company ID 1929 * @param name the name 1930 * @param primKey the prim key 1931 * @param roleId the role ID 1932 * @param actionIds the action IDs 1933 * @return the number of matching resource permissions 1934 * @throws SystemException if a system exception occurred 1935 */ 1936 public int countByC_N_P_R_A(long companyId, java.lang.String name, 1937 java.lang.String primKey, long roleId, long actionIds) 1938 throws com.liferay.portal.kernel.exception.SystemException; 1939 1940 /** 1941 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and actionIds = ?. 1942 * 1943 * @param companyId the company ID 1944 * @param name the name 1945 * @param scope the scope 1946 * @param primKey the prim key 1947 * @param roleId the role ID 1948 * @param actionIds the action IDs 1949 * @return the number of matching resource permissions 1950 * @throws SystemException if a system exception occurred 1951 */ 1952 public int countByC_N_S_P_R_A(long companyId, java.lang.String name, 1953 int scope, java.lang.String primKey, long roleId, long actionIds) 1954 throws com.liferay.portal.kernel.exception.SystemException; 1955 1956 /** 1957 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ? and actionIds = ?. 1958 * 1959 * @param companyId the company ID 1960 * @param name the name 1961 * @param scope the scope 1962 * @param primKey the prim key 1963 * @param roleIds the role IDs 1964 * @param actionIds the action IDs 1965 * @return the number of matching resource permissions 1966 * @throws SystemException if a system exception occurred 1967 */ 1968 public int countByC_N_S_P_R_A(long companyId, java.lang.String name, 1969 int scope, java.lang.String primKey, long[] roleIds, long actionIds) 1970 throws com.liferay.portal.kernel.exception.SystemException; 1971 1972 /** 1973 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and ownerId = ? and actionIds = ?. 1974 * 1975 * @param companyId the company ID 1976 * @param name the name 1977 * @param scope the scope 1978 * @param primKey the prim key 1979 * @param roleId the role ID 1980 * @param ownerId the owner ID 1981 * @param actionIds the action IDs 1982 * @return the number of matching resource permissions 1983 * @throws SystemException if a system exception occurred 1984 */ 1985 public int countByC_N_S_P_R_O_A(long companyId, java.lang.String name, 1986 int scope, java.lang.String primKey, long roleId, long ownerId, 1987 long actionIds) 1988 throws com.liferay.portal.kernel.exception.SystemException; 1989 1990 /** 1991 * Returns the number of resource permissions. 1992 * 1993 * @return the number of resource permissions 1994 * @throws SystemException if a system exception occurred 1995 */ 1996 public int countAll() 1997 throws com.liferay.portal.kernel.exception.SystemException; 1998 }