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