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