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