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