001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.model.ResourcePermission; 018 019 /** 020 * The persistence interface for the resource permission service. 021 * 022 * <p> 023 * Caching information and settings can be found in <code>portal.properties</code> 024 * </p> 025 * 026 * @author Brian Wing Shun Chan 027 * @see ResourcePermissionPersistenceImpl 028 * @see ResourcePermissionUtil 029 * @generated 030 */ 031 public interface ResourcePermissionPersistence extends BasePersistence<ResourcePermission> { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * Never modify or reference this interface directly. Always use {@link ResourcePermissionUtil} to access the resource permission persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 036 */ 037 038 /** 039 * Caches the resource permission in the entity cache if it is enabled. 040 * 041 * @param resourcePermission the resource permission 042 */ 043 public void cacheResult( 044 com.liferay.portal.model.ResourcePermission resourcePermission); 045 046 /** 047 * Caches the resource permissions in the entity cache if it is enabled. 048 * 049 * @param resourcePermissions the resource permissions 050 */ 051 public void cacheResult( 052 java.util.List<com.liferay.portal.model.ResourcePermission> resourcePermissions); 053 054 /** 055 * Creates a new resource permission with the primary key. Does not add the resource permission to the database. 056 * 057 * @param resourcePermissionId the primary key for the new resource permission 058 * @return the new resource permission 059 */ 060 public com.liferay.portal.model.ResourcePermission create( 061 long resourcePermissionId); 062 063 /** 064 * Removes the resource permission with the primary key from the database. Also notifies the appropriate model listeners. 065 * 066 * @param resourcePermissionId the primary key of the resource permission 067 * @return the resource permission that was removed 068 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 069 * @throws SystemException if a system exception occurred 070 */ 071 public com.liferay.portal.model.ResourcePermission remove( 072 long resourcePermissionId) 073 throws com.liferay.portal.NoSuchResourcePermissionException, 074 com.liferay.portal.kernel.exception.SystemException; 075 076 public com.liferay.portal.model.ResourcePermission updateImpl( 077 com.liferay.portal.model.ResourcePermission resourcePermission, 078 boolean merge) 079 throws com.liferay.portal.kernel.exception.SystemException; 080 081 /** 082 * Returns the resource permission with the primary key or throws a {@link com.liferay.portal.NoSuchResourcePermissionException} if it could not be found. 083 * 084 * @param resourcePermissionId the primary key of the resource permission 085 * @return the resource permission 086 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 087 * @throws SystemException if a system exception occurred 088 */ 089 public com.liferay.portal.model.ResourcePermission findByPrimaryKey( 090 long resourcePermissionId) 091 throws com.liferay.portal.NoSuchResourcePermissionException, 092 com.liferay.portal.kernel.exception.SystemException; 093 094 /** 095 * Returns the resource permission with the primary key or returns <code>null</code> if it could not be found. 096 * 097 * @param resourcePermissionId the primary key of the resource permission 098 * @return the resource permission, or <code>null</code> if a resource permission with the primary key could not be found 099 * @throws SystemException if a system exception occurred 100 */ 101 public com.liferay.portal.model.ResourcePermission fetchByPrimaryKey( 102 long resourcePermissionId) 103 throws com.liferay.portal.kernel.exception.SystemException; 104 105 /** 106 * Returns all the resource permissions where scope = ?. 107 * 108 * @param scope the scope 109 * @return the matching resource permissions 110 * @throws SystemException if a system exception occurred 111 */ 112 public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope( 113 int scope) throws com.liferay.portal.kernel.exception.SystemException; 114 115 /** 116 * Returns a range of all the resource permissions where scope = ?. 117 * 118 * <p> 119 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 120 * </p> 121 * 122 * @param scope the scope 123 * @param start the lower bound of the range of resource permissions 124 * @param end the upper bound of the range of resource permissions (not inclusive) 125 * @return the range of matching resource permissions 126 * @throws SystemException if a system exception occurred 127 */ 128 public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope( 129 int scope, int start, int end) 130 throws com.liferay.portal.kernel.exception.SystemException; 131 132 /** 133 * Returns an ordered range of all the resource permissions where scope = ?. 134 * 135 * <p> 136 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 137 * </p> 138 * 139 * @param scope the scope 140 * @param start the lower bound of the range of resource permissions 141 * @param end the upper bound of the range of resource permissions (not inclusive) 142 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 143 * @return the ordered range of matching resource permissions 144 * @throws SystemException if a system exception occurred 145 */ 146 public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope( 147 int scope, int start, int end, 148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 149 throws com.liferay.portal.kernel.exception.SystemException; 150 151 /** 152 * Returns the first resource permission in the ordered set where scope = ?. 153 * 154 * <p> 155 * 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. 156 * </p> 157 * 158 * @param scope the scope 159 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 160 * @return the first matching resource permission 161 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 162 * @throws SystemException if a system exception occurred 163 */ 164 public com.liferay.portal.model.ResourcePermission findByScope_First( 165 int scope, 166 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 167 throws com.liferay.portal.NoSuchResourcePermissionException, 168 com.liferay.portal.kernel.exception.SystemException; 169 170 /** 171 * Returns the last resource permission in the ordered set where scope = ?. 172 * 173 * <p> 174 * 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. 175 * </p> 176 * 177 * @param scope the scope 178 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 179 * @return the last matching resource permission 180 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 181 * @throws SystemException if a system exception occurred 182 */ 183 public com.liferay.portal.model.ResourcePermission findByScope_Last( 184 int scope, 185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 186 throws com.liferay.portal.NoSuchResourcePermissionException, 187 com.liferay.portal.kernel.exception.SystemException; 188 189 /** 190 * Returns the resource permissions before and after the current resource permission in the ordered set where scope = ?. 191 * 192 * <p> 193 * 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. 194 * </p> 195 * 196 * @param resourcePermissionId the primary key of the current resource permission 197 * @param scope the scope 198 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 199 * @return the previous, current, and next resource permission 200 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 201 * @throws SystemException if a system exception occurred 202 */ 203 public com.liferay.portal.model.ResourcePermission[] findByScope_PrevAndNext( 204 long resourcePermissionId, int scope, 205 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 206 throws com.liferay.portal.NoSuchResourcePermissionException, 207 com.liferay.portal.kernel.exception.SystemException; 208 209 /** 210 * Returns all the resource permissions where scope = any ?. 211 * 212 * <p> 213 * 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. 214 * </p> 215 * 216 * @param scopes the scopes 217 * @return the matching resource permissions 218 * @throws SystemException if a system exception occurred 219 */ 220 public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope( 221 int[] scopes) 222 throws com.liferay.portal.kernel.exception.SystemException; 223 224 /** 225 * Returns a range of all the resource permissions where scope = any ?. 226 * 227 * <p> 228 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 229 * </p> 230 * 231 * @param scopes the scopes 232 * @param start the lower bound of the range of resource permissions 233 * @param end the upper bound of the range of resource permissions (not inclusive) 234 * @return the range of matching resource permissions 235 * @throws SystemException if a system exception occurred 236 */ 237 public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope( 238 int[] scopes, int start, int end) 239 throws com.liferay.portal.kernel.exception.SystemException; 240 241 /** 242 * Returns an ordered range of all the resource permissions where scope = any ?. 243 * 244 * <p> 245 * 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. 246 * </p> 247 * 248 * @param scopes the scopes 249 * @param start the lower bound of the range of resource permissions 250 * @param end the upper bound of the range of resource permissions (not inclusive) 251 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 252 * @return the ordered range of matching resource permissions 253 * @throws SystemException if a system exception occurred 254 */ 255 public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope( 256 int[] scopes, int start, int end, 257 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 258 throws com.liferay.portal.kernel.exception.SystemException; 259 260 /** 261 * Returns all the resource permissions where roleId = ?. 262 * 263 * @param roleId the role ID 264 * @return the matching resource permissions 265 * @throws SystemException if a system exception occurred 266 */ 267 public java.util.List<com.liferay.portal.model.ResourcePermission> findByRoleId( 268 long roleId) throws com.liferay.portal.kernel.exception.SystemException; 269 270 /** 271 * Returns a range of all the resource permissions where roleId = ?. 272 * 273 * <p> 274 * 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. 275 * </p> 276 * 277 * @param roleId the role ID 278 * @param start the lower bound of the range of resource permissions 279 * @param end the upper bound of the range of resource permissions (not inclusive) 280 * @return the range of matching resource permissions 281 * @throws SystemException if a system exception occurred 282 */ 283 public java.util.List<com.liferay.portal.model.ResourcePermission> findByRoleId( 284 long roleId, int start, int end) 285 throws com.liferay.portal.kernel.exception.SystemException; 286 287 /** 288 * Returns an ordered range of all the resource permissions where roleId = ?. 289 * 290 * <p> 291 * 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. 292 * </p> 293 * 294 * @param roleId the role ID 295 * @param start the lower bound of the range of resource permissions 296 * @param end the upper bound of the range of resource permissions (not inclusive) 297 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 298 * @return the ordered range of matching resource permissions 299 * @throws SystemException if a system exception occurred 300 */ 301 public java.util.List<com.liferay.portal.model.ResourcePermission> findByRoleId( 302 long roleId, int start, int end, 303 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 304 throws com.liferay.portal.kernel.exception.SystemException; 305 306 /** 307 * Returns the first resource permission in the ordered set where roleId = ?. 308 * 309 * <p> 310 * 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. 311 * </p> 312 * 313 * @param roleId the role ID 314 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 315 * @return the first matching resource permission 316 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 317 * @throws SystemException if a system exception occurred 318 */ 319 public com.liferay.portal.model.ResourcePermission findByRoleId_First( 320 long roleId, 321 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 322 throws com.liferay.portal.NoSuchResourcePermissionException, 323 com.liferay.portal.kernel.exception.SystemException; 324 325 /** 326 * Returns the last resource permission in the ordered set where roleId = ?. 327 * 328 * <p> 329 * 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. 330 * </p> 331 * 332 * @param roleId the role ID 333 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 334 * @return the last matching resource permission 335 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 336 * @throws SystemException if a system exception occurred 337 */ 338 public com.liferay.portal.model.ResourcePermission findByRoleId_Last( 339 long roleId, 340 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 341 throws com.liferay.portal.NoSuchResourcePermissionException, 342 com.liferay.portal.kernel.exception.SystemException; 343 344 /** 345 * Returns the resource permissions before and after the current resource permission in the ordered set where roleId = ?. 346 * 347 * <p> 348 * 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. 349 * </p> 350 * 351 * @param resourcePermissionId the primary key of the current resource permission 352 * @param roleId the role ID 353 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 354 * @return the previous, current, and next resource permission 355 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 356 * @throws SystemException if a system exception occurred 357 */ 358 public com.liferay.portal.model.ResourcePermission[] findByRoleId_PrevAndNext( 359 long resourcePermissionId, long roleId, 360 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 361 throws com.liferay.portal.NoSuchResourcePermissionException, 362 com.liferay.portal.kernel.exception.SystemException; 363 364 /** 365 * Returns all the resource permissions where companyId = ? and name = ? and scope = ?. 366 * 367 * @param companyId the company ID 368 * @param name the name 369 * @param scope the scope 370 * @return the matching resource permissions 371 * @throws SystemException if a system exception occurred 372 */ 373 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S( 374 long companyId, java.lang.String name, int scope) 375 throws com.liferay.portal.kernel.exception.SystemException; 376 377 /** 378 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ?. 379 * 380 * <p> 381 * 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. 382 * </p> 383 * 384 * @param companyId the company ID 385 * @param name the name 386 * @param scope the scope 387 * @param start the lower bound of the range of resource permissions 388 * @param end the upper bound of the range of resource permissions (not inclusive) 389 * @return the range of matching resource permissions 390 * @throws SystemException if a system exception occurred 391 */ 392 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S( 393 long companyId, java.lang.String name, int scope, int start, int end) 394 throws com.liferay.portal.kernel.exception.SystemException; 395 396 /** 397 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ?. 398 * 399 * <p> 400 * 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. 401 * </p> 402 * 403 * @param companyId the company ID 404 * @param name the name 405 * @param scope the scope 406 * @param start the lower bound of the range of resource permissions 407 * @param end the upper bound of the range of resource permissions (not inclusive) 408 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 409 * @return the ordered range of matching resource permissions 410 * @throws SystemException if a system exception occurred 411 */ 412 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S( 413 long companyId, java.lang.String name, int scope, int start, int end, 414 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 415 throws com.liferay.portal.kernel.exception.SystemException; 416 417 /** 418 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 419 * 420 * <p> 421 * 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. 422 * </p> 423 * 424 * @param companyId the company ID 425 * @param name the name 426 * @param scope the scope 427 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 428 * @return the first matching resource permission 429 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 430 * @throws SystemException if a system exception occurred 431 */ 432 public com.liferay.portal.model.ResourcePermission findByC_N_S_First( 433 long companyId, java.lang.String name, int scope, 434 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 435 throws com.liferay.portal.NoSuchResourcePermissionException, 436 com.liferay.portal.kernel.exception.SystemException; 437 438 /** 439 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 440 * 441 * <p> 442 * 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. 443 * </p> 444 * 445 * @param companyId the company ID 446 * @param name the name 447 * @param scope the scope 448 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 449 * @return the last matching resource permission 450 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 451 * @throws SystemException if a system exception occurred 452 */ 453 public com.liferay.portal.model.ResourcePermission findByC_N_S_Last( 454 long companyId, java.lang.String name, int scope, 455 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 456 throws com.liferay.portal.NoSuchResourcePermissionException, 457 com.liferay.portal.kernel.exception.SystemException; 458 459 /** 460 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 461 * 462 * <p> 463 * 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. 464 * </p> 465 * 466 * @param resourcePermissionId the primary key of the current resource permission 467 * @param companyId the company ID 468 * @param name the name 469 * @param scope the scope 470 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 471 * @return the previous, current, and next resource permission 472 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 473 * @throws SystemException if a system exception occurred 474 */ 475 public com.liferay.portal.model.ResourcePermission[] findByC_N_S_PrevAndNext( 476 long resourcePermissionId, long companyId, java.lang.String name, 477 int scope, 478 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 479 throws com.liferay.portal.NoSuchResourcePermissionException, 480 com.liferay.portal.kernel.exception.SystemException; 481 482 /** 483 * Returns all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 484 * 485 * @param companyId the company ID 486 * @param name the name 487 * @param scope the scope 488 * @param primKey the prim key 489 * @return the matching resource permissions 490 * @throws SystemException if a system exception occurred 491 */ 492 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P( 493 long companyId, java.lang.String name, int scope, 494 java.lang.String primKey) 495 throws com.liferay.portal.kernel.exception.SystemException; 496 497 /** 498 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 499 * 500 * <p> 501 * 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. 502 * </p> 503 * 504 * @param companyId the company ID 505 * @param name the name 506 * @param scope the scope 507 * @param primKey the prim key 508 * @param start the lower bound of the range of resource permissions 509 * @param end the upper bound of the range of resource permissions (not inclusive) 510 * @return the range of matching resource permissions 511 * @throws SystemException if a system exception occurred 512 */ 513 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P( 514 long companyId, java.lang.String name, int scope, 515 java.lang.String primKey, int start, int end) 516 throws com.liferay.portal.kernel.exception.SystemException; 517 518 /** 519 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 520 * 521 * <p> 522 * 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. 523 * </p> 524 * 525 * @param companyId the company ID 526 * @param name the name 527 * @param scope the scope 528 * @param primKey the prim key 529 * @param start the lower bound of the range of resource permissions 530 * @param end the upper bound of the range of resource permissions (not inclusive) 531 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 532 * @return the ordered range of matching resource permissions 533 * @throws SystemException if a system exception occurred 534 */ 535 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P( 536 long companyId, java.lang.String name, int scope, 537 java.lang.String primKey, int start, int end, 538 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 539 throws com.liferay.portal.kernel.exception.SystemException; 540 541 /** 542 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 543 * 544 * <p> 545 * 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. 546 * </p> 547 * 548 * @param companyId the company ID 549 * @param name the name 550 * @param scope the scope 551 * @param primKey the prim key 552 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 553 * @return the first matching resource permission 554 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 555 * @throws SystemException if a system exception occurred 556 */ 557 public com.liferay.portal.model.ResourcePermission findByC_N_S_P_First( 558 long companyId, java.lang.String name, int scope, 559 java.lang.String primKey, 560 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 561 throws com.liferay.portal.NoSuchResourcePermissionException, 562 com.liferay.portal.kernel.exception.SystemException; 563 564 /** 565 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 566 * 567 * <p> 568 * 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. 569 * </p> 570 * 571 * @param companyId the company ID 572 * @param name the name 573 * @param scope the scope 574 * @param primKey the prim key 575 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 576 * @return the last matching resource permission 577 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 578 * @throws SystemException if a system exception occurred 579 */ 580 public com.liferay.portal.model.ResourcePermission findByC_N_S_P_Last( 581 long companyId, java.lang.String name, int scope, 582 java.lang.String primKey, 583 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 584 throws com.liferay.portal.NoSuchResourcePermissionException, 585 com.liferay.portal.kernel.exception.SystemException; 586 587 /** 588 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 589 * 590 * <p> 591 * 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. 592 * </p> 593 * 594 * @param resourcePermissionId the primary key of the current resource permission 595 * @param companyId the company ID 596 * @param name the name 597 * @param scope the scope 598 * @param primKey the prim key 599 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 600 * @return the previous, current, and next resource permission 601 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 602 * @throws SystemException if a system exception occurred 603 */ 604 public com.liferay.portal.model.ResourcePermission[] findByC_N_S_P_PrevAndNext( 605 long resourcePermissionId, long companyId, java.lang.String name, 606 int scope, java.lang.String primKey, 607 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 608 throws com.liferay.portal.NoSuchResourcePermissionException, 609 com.liferay.portal.kernel.exception.SystemException; 610 611 /** 612 * Returns all the resource permissions where companyId = ? and name = ? and primKey = ? and ownerId = ?. 613 * 614 * @param companyId the company ID 615 * @param name the name 616 * @param primKey the prim key 617 * @param ownerId the owner ID 618 * @return the matching resource permissions 619 * @throws SystemException if a system exception occurred 620 */ 621 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_O( 622 long companyId, java.lang.String name, java.lang.String primKey, 623 long ownerId) 624 throws com.liferay.portal.kernel.exception.SystemException; 625 626 /** 627 * Returns a range of all the resource permissions where companyId = ? and name = ? and primKey = ? and ownerId = ?. 628 * 629 * <p> 630 * 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. 631 * </p> 632 * 633 * @param companyId the company ID 634 * @param name the name 635 * @param primKey the prim key 636 * @param ownerId the owner ID 637 * @param start the lower bound of the range of resource permissions 638 * @param end the upper bound of the range of resource permissions (not inclusive) 639 * @return the range of matching resource permissions 640 * @throws SystemException if a system exception occurred 641 */ 642 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_O( 643 long companyId, java.lang.String name, java.lang.String primKey, 644 long ownerId, int start, int end) 645 throws com.liferay.portal.kernel.exception.SystemException; 646 647 /** 648 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and primKey = ? and ownerId = ?. 649 * 650 * <p> 651 * 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. 652 * </p> 653 * 654 * @param companyId the company ID 655 * @param name the name 656 * @param primKey the prim key 657 * @param ownerId the owner ID 658 * @param start the lower bound of the range of resource permissions 659 * @param end the upper bound of the range of resource permissions (not inclusive) 660 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 661 * @return the ordered range of matching resource permissions 662 * @throws SystemException if a system exception occurred 663 */ 664 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_O( 665 long companyId, java.lang.String name, java.lang.String primKey, 666 long ownerId, int start, int end, 667 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 668 throws com.liferay.portal.kernel.exception.SystemException; 669 670 /** 671 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and primKey = ? and ownerId = ?. 672 * 673 * <p> 674 * 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. 675 * </p> 676 * 677 * @param companyId the company ID 678 * @param name the name 679 * @param primKey the prim key 680 * @param ownerId the owner ID 681 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 682 * @return the first matching resource permission 683 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 684 * @throws SystemException if a system exception occurred 685 */ 686 public com.liferay.portal.model.ResourcePermission findByC_N_P_O_First( 687 long companyId, java.lang.String name, java.lang.String primKey, 688 long ownerId, 689 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 690 throws com.liferay.portal.NoSuchResourcePermissionException, 691 com.liferay.portal.kernel.exception.SystemException; 692 693 /** 694 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and primKey = ? and ownerId = ?. 695 * 696 * <p> 697 * 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. 698 * </p> 699 * 700 * @param companyId the company ID 701 * @param name the name 702 * @param primKey the prim key 703 * @param ownerId the owner ID 704 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 705 * @return the last matching resource permission 706 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 707 * @throws SystemException if a system exception occurred 708 */ 709 public com.liferay.portal.model.ResourcePermission findByC_N_P_O_Last( 710 long companyId, java.lang.String name, java.lang.String primKey, 711 long ownerId, 712 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 713 throws com.liferay.portal.NoSuchResourcePermissionException, 714 com.liferay.portal.kernel.exception.SystemException; 715 716 /** 717 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and name = ? and primKey = ? and ownerId = ?. 718 * 719 * <p> 720 * 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. 721 * </p> 722 * 723 * @param resourcePermissionId the primary key of the current resource permission 724 * @param companyId the company ID 725 * @param name the name 726 * @param primKey the prim key 727 * @param ownerId the owner ID 728 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 729 * @return the previous, current, and next resource permission 730 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 731 * @throws SystemException if a system exception occurred 732 */ 733 public com.liferay.portal.model.ResourcePermission[] findByC_N_P_O_PrevAndNext( 734 long resourcePermissionId, long companyId, java.lang.String name, 735 java.lang.String primKey, long ownerId, 736 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 737 throws com.liferay.portal.NoSuchResourcePermissionException, 738 com.liferay.portal.kernel.exception.SystemException; 739 740 /** 741 * Returns all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ?. 742 * 743 * @param companyId the company ID 744 * @param name the name 745 * @param scope the scope 746 * @param primKey the prim key 747 * @param roleId the role ID 748 * @return the matching resource permissions 749 * @throws SystemException if a system exception occurred 750 */ 751 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R( 752 long companyId, java.lang.String name, int scope, 753 java.lang.String primKey, long roleId) 754 throws com.liferay.portal.kernel.exception.SystemException; 755 756 /** 757 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ?. 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 companyId the company ID 764 * @param name the name 765 * @param scope the scope 766 * @param primKey the prim key 767 * @param roleId the role ID 768 * @param start the lower bound of the range of resource permissions 769 * @param end the upper bound of the range of resource permissions (not inclusive) 770 * @return the range of matching resource permissions 771 * @throws SystemException if a system exception occurred 772 */ 773 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R( 774 long companyId, java.lang.String name, int scope, 775 java.lang.String primKey, long roleId, int start, int end) 776 throws com.liferay.portal.kernel.exception.SystemException; 777 778 /** 779 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ?. 780 * 781 * <p> 782 * 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. 783 * </p> 784 * 785 * @param companyId the company ID 786 * @param name the name 787 * @param scope the scope 788 * @param primKey the prim key 789 * @param roleId the role ID 790 * @param start the lower bound of the range of resource permissions 791 * @param end the upper bound of the range of resource permissions (not inclusive) 792 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 793 * @return the ordered range of matching resource permissions 794 * @throws SystemException if a system exception occurred 795 */ 796 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R( 797 long companyId, java.lang.String name, int scope, 798 java.lang.String primKey, long roleId, int start, int end, 799 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 800 throws com.liferay.portal.kernel.exception.SystemException; 801 802 /** 803 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ?. 804 * 805 * <p> 806 * 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. 807 * </p> 808 * 809 * @param companyId the company ID 810 * @param name the name 811 * @param scope the scope 812 * @param primKey the prim key 813 * @param roleId the role ID 814 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 815 * @return the first matching resource permission 816 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 817 * @throws SystemException if a system exception occurred 818 */ 819 public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R_First( 820 long companyId, java.lang.String name, int scope, 821 java.lang.String primKey, long roleId, 822 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 823 throws com.liferay.portal.NoSuchResourcePermissionException, 824 com.liferay.portal.kernel.exception.SystemException; 825 826 /** 827 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ?. 828 * 829 * <p> 830 * 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. 831 * </p> 832 * 833 * @param companyId the company ID 834 * @param name the name 835 * @param scope the scope 836 * @param primKey the prim key 837 * @param roleId the role ID 838 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 839 * @return the last matching resource permission 840 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 841 * @throws SystemException if a system exception occurred 842 */ 843 public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R_Last( 844 long companyId, java.lang.String name, int scope, 845 java.lang.String primKey, long roleId, 846 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 847 throws com.liferay.portal.NoSuchResourcePermissionException, 848 com.liferay.portal.kernel.exception.SystemException; 849 850 /** 851 * 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 = ?. 852 * 853 * <p> 854 * 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. 855 * </p> 856 * 857 * @param resourcePermissionId the primary key of the current resource permission 858 * @param companyId the company ID 859 * @param name the name 860 * @param scope the scope 861 * @param primKey the prim key 862 * @param roleId the role ID 863 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 864 * @return the previous, current, and next resource permission 865 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 866 * @throws SystemException if a system exception occurred 867 */ 868 public com.liferay.portal.model.ResourcePermission[] findByC_N_S_P_R_PrevAndNext( 869 long resourcePermissionId, long companyId, java.lang.String name, 870 int scope, java.lang.String primKey, long roleId, 871 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 872 throws com.liferay.portal.NoSuchResourcePermissionException, 873 com.liferay.portal.kernel.exception.SystemException; 874 875 /** 876 * Returns all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 877 * 878 * <p> 879 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 880 * </p> 881 * 882 * @param companyId the company ID 883 * @param name the name 884 * @param scope the scope 885 * @param primKey the prim key 886 * @param roleIds the role IDs 887 * @return the matching resource permissions 888 * @throws SystemException if a system exception occurred 889 */ 890 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R( 891 long companyId, java.lang.String name, int scope, 892 java.lang.String primKey, long[] roleIds) 893 throws com.liferay.portal.kernel.exception.SystemException; 894 895 /** 896 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 897 * 898 * <p> 899 * 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. 900 * </p> 901 * 902 * @param companyId the company ID 903 * @param name the name 904 * @param scope the scope 905 * @param primKey the prim key 906 * @param roleIds the role IDs 907 * @param start the lower bound of the range of resource permissions 908 * @param end the upper bound of the range of resource permissions (not inclusive) 909 * @return the range of matching resource permissions 910 * @throws SystemException if a system exception occurred 911 */ 912 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R( 913 long companyId, java.lang.String name, int scope, 914 java.lang.String primKey, long[] roleIds, int start, int end) 915 throws com.liferay.portal.kernel.exception.SystemException; 916 917 /** 918 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 919 * 920 * <p> 921 * 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. 922 * </p> 923 * 924 * @param companyId the company ID 925 * @param name the name 926 * @param scope the scope 927 * @param primKey the prim key 928 * @param roleIds the role IDs 929 * @param start the lower bound of the range of resource permissions 930 * @param end the upper bound of the range of resource permissions (not inclusive) 931 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 932 * @return the ordered range of matching resource permissions 933 * @throws SystemException if a system exception occurred 934 */ 935 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R( 936 long companyId, java.lang.String name, int scope, 937 java.lang.String primKey, long[] roleIds, int start, int end, 938 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 939 throws com.liferay.portal.kernel.exception.SystemException; 940 941 /** 942 * Returns all the resource permissions where companyId = ? and name = ? and primKey = ? and roleId = ? and actionIds = ?. 943 * 944 * @param companyId the company ID 945 * @param name the name 946 * @param primKey the prim key 947 * @param roleId the role ID 948 * @param actionIds the action IDs 949 * @return the matching resource permissions 950 * @throws SystemException if a system exception occurred 951 */ 952 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_R_A( 953 long companyId, java.lang.String name, java.lang.String primKey, 954 long roleId, long actionIds) 955 throws com.liferay.portal.kernel.exception.SystemException; 956 957 /** 958 * Returns a range of all the resource permissions where companyId = ? and name = ? and primKey = ? and roleId = ? and actionIds = ?. 959 * 960 * <p> 961 * 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. 962 * </p> 963 * 964 * @param companyId the company ID 965 * @param name the name 966 * @param primKey the prim key 967 * @param roleId the role ID 968 * @param actionIds the action IDs 969 * @param start the lower bound of the range of resource permissions 970 * @param end the upper bound of the range of resource permissions (not inclusive) 971 * @return the range of matching resource permissions 972 * @throws SystemException if a system exception occurred 973 */ 974 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_R_A( 975 long companyId, java.lang.String name, java.lang.String primKey, 976 long roleId, long actionIds, int start, int end) 977 throws com.liferay.portal.kernel.exception.SystemException; 978 979 /** 980 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and primKey = ? and roleId = ? and actionIds = ?. 981 * 982 * <p> 983 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 984 * </p> 985 * 986 * @param companyId the company ID 987 * @param name the name 988 * @param primKey the prim key 989 * @param roleId the role ID 990 * @param actionIds the action IDs 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 java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_P_R_A( 998 long companyId, java.lang.String name, java.lang.String primKey, 999 long roleId, long actionIds, int start, int end, 1000 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1001 throws com.liferay.portal.kernel.exception.SystemException; 1002 1003 /** 1004 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and primKey = ? and roleId = ? and actionIds = ?. 1005 * 1006 * <p> 1007 * 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. 1008 * </p> 1009 * 1010 * @param companyId the company ID 1011 * @param name the name 1012 * @param primKey the prim key 1013 * @param roleId the role ID 1014 * @param actionIds the action IDs 1015 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1016 * @return the first matching resource permission 1017 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 1018 * @throws SystemException if a system exception occurred 1019 */ 1020 public com.liferay.portal.model.ResourcePermission findByC_N_P_R_A_First( 1021 long companyId, java.lang.String name, java.lang.String primKey, 1022 long roleId, long actionIds, 1023 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1024 throws com.liferay.portal.NoSuchResourcePermissionException, 1025 com.liferay.portal.kernel.exception.SystemException; 1026 1027 /** 1028 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and primKey = ? and roleId = ? and actionIds = ?. 1029 * 1030 * <p> 1031 * 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. 1032 * </p> 1033 * 1034 * @param companyId the company ID 1035 * @param name the name 1036 * @param primKey the prim key 1037 * @param roleId the role ID 1038 * @param actionIds the action IDs 1039 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1040 * @return the last matching resource permission 1041 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 1042 * @throws SystemException if a system exception occurred 1043 */ 1044 public com.liferay.portal.model.ResourcePermission findByC_N_P_R_A_Last( 1045 long companyId, java.lang.String name, java.lang.String primKey, 1046 long roleId, long actionIds, 1047 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1048 throws com.liferay.portal.NoSuchResourcePermissionException, 1049 com.liferay.portal.kernel.exception.SystemException; 1050 1051 /** 1052 * 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 = ?. 1053 * 1054 * <p> 1055 * 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. 1056 * </p> 1057 * 1058 * @param resourcePermissionId the primary key of the current resource permission 1059 * @param companyId the company ID 1060 * @param name the name 1061 * @param primKey the prim key 1062 * @param roleId the role ID 1063 * @param actionIds the action IDs 1064 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1065 * @return the previous, current, and next resource permission 1066 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 1067 * @throws SystemException if a system exception occurred 1068 */ 1069 public com.liferay.portal.model.ResourcePermission[] findByC_N_P_R_A_PrevAndNext( 1070 long resourcePermissionId, long companyId, java.lang.String name, 1071 java.lang.String primKey, long roleId, long actionIds, 1072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1073 throws com.liferay.portal.NoSuchResourcePermissionException, 1074 com.liferay.portal.kernel.exception.SystemException; 1075 1076 /** 1077 * Returns all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and actionIds = ?. 1078 * 1079 * @param companyId the company ID 1080 * @param name the name 1081 * @param scope the scope 1082 * @param primKey the prim key 1083 * @param roleId the role ID 1084 * @param actionIds the action IDs 1085 * @return the matching resource permissions 1086 * @throws SystemException if a system exception occurred 1087 */ 1088 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R_A( 1089 long companyId, java.lang.String name, int scope, 1090 java.lang.String primKey, long roleId, long actionIds) 1091 throws com.liferay.portal.kernel.exception.SystemException; 1092 1093 /** 1094 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and actionIds = ?. 1095 * 1096 * <p> 1097 * 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. 1098 * </p> 1099 * 1100 * @param companyId the company ID 1101 * @param name the name 1102 * @param scope the scope 1103 * @param primKey the prim key 1104 * @param roleId the role ID 1105 * @param actionIds the action IDs 1106 * @param start the lower bound of the range of resource permissions 1107 * @param end the upper bound of the range of resource permissions (not inclusive) 1108 * @return the range of matching resource permissions 1109 * @throws SystemException if a system exception occurred 1110 */ 1111 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R_A( 1112 long companyId, java.lang.String name, int scope, 1113 java.lang.String primKey, long roleId, long actionIds, int start, 1114 int end) throws com.liferay.portal.kernel.exception.SystemException; 1115 1116 /** 1117 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and actionIds = ?. 1118 * 1119 * <p> 1120 * 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. 1121 * </p> 1122 * 1123 * @param companyId the company ID 1124 * @param name the name 1125 * @param scope the scope 1126 * @param primKey the prim key 1127 * @param roleId the role ID 1128 * @param actionIds the action IDs 1129 * @param start the lower bound of the range of resource permissions 1130 * @param end the upper bound of the range of resource permissions (not inclusive) 1131 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1132 * @return the ordered range of matching resource permissions 1133 * @throws SystemException if a system exception occurred 1134 */ 1135 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R_A( 1136 long companyId, java.lang.String name, int scope, 1137 java.lang.String primKey, long roleId, long actionIds, int start, 1138 int end, 1139 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1140 throws com.liferay.portal.kernel.exception.SystemException; 1141 1142 /** 1143 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and actionIds = ?. 1144 * 1145 * <p> 1146 * 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. 1147 * </p> 1148 * 1149 * @param companyId the company ID 1150 * @param name the name 1151 * @param scope the scope 1152 * @param primKey the prim key 1153 * @param roleId the role ID 1154 * @param actionIds the action IDs 1155 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1156 * @return the first matching resource permission 1157 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 1158 * @throws SystemException if a system exception occurred 1159 */ 1160 public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R_A_First( 1161 long companyId, java.lang.String name, int scope, 1162 java.lang.String primKey, long roleId, long actionIds, 1163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1164 throws com.liferay.portal.NoSuchResourcePermissionException, 1165 com.liferay.portal.kernel.exception.SystemException; 1166 1167 /** 1168 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and actionIds = ?. 1169 * 1170 * <p> 1171 * 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. 1172 * </p> 1173 * 1174 * @param companyId the company ID 1175 * @param name the name 1176 * @param scope the scope 1177 * @param primKey the prim key 1178 * @param roleId the role ID 1179 * @param actionIds the action IDs 1180 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1181 * @return the last matching resource permission 1182 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 1183 * @throws SystemException if a system exception occurred 1184 */ 1185 public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R_A_Last( 1186 long companyId, java.lang.String name, int scope, 1187 java.lang.String primKey, long roleId, long actionIds, 1188 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1189 throws com.liferay.portal.NoSuchResourcePermissionException, 1190 com.liferay.portal.kernel.exception.SystemException; 1191 1192 /** 1193 * 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 = ?. 1194 * 1195 * <p> 1196 * 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. 1197 * </p> 1198 * 1199 * @param resourcePermissionId the primary key of the current resource permission 1200 * @param companyId the company ID 1201 * @param name the name 1202 * @param scope the scope 1203 * @param primKey the prim key 1204 * @param roleId the role ID 1205 * @param actionIds the action IDs 1206 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1207 * @return the previous, current, and next resource permission 1208 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 1209 * @throws SystemException if a system exception occurred 1210 */ 1211 public com.liferay.portal.model.ResourcePermission[] findByC_N_S_P_R_A_PrevAndNext( 1212 long resourcePermissionId, long companyId, java.lang.String name, 1213 int scope, java.lang.String primKey, long roleId, long actionIds, 1214 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1215 throws com.liferay.portal.NoSuchResourcePermissionException, 1216 com.liferay.portal.kernel.exception.SystemException; 1217 1218 /** 1219 * Returns all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ? and actionIds = ?. 1220 * 1221 * <p> 1222 * 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. 1223 * </p> 1224 * 1225 * @param companyId the company ID 1226 * @param name the name 1227 * @param scope the scope 1228 * @param primKey the prim key 1229 * @param roleIds the role IDs 1230 * @param actionIds the action IDs 1231 * @return the matching resource permissions 1232 * @throws SystemException if a system exception occurred 1233 */ 1234 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R_A( 1235 long companyId, java.lang.String name, int scope, 1236 java.lang.String primKey, long[] roleIds, long actionIds) 1237 throws com.liferay.portal.kernel.exception.SystemException; 1238 1239 /** 1240 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ? and actionIds = ?. 1241 * 1242 * <p> 1243 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 1244 * </p> 1245 * 1246 * @param companyId the company ID 1247 * @param name the name 1248 * @param scope the scope 1249 * @param primKey the prim key 1250 * @param roleIds the role IDs 1251 * @param actionIds the action IDs 1252 * @param start the lower bound of the range of resource permissions 1253 * @param end the upper bound of the range of resource permissions (not inclusive) 1254 * @return the range of matching resource permissions 1255 * @throws SystemException if a system exception occurred 1256 */ 1257 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R_A( 1258 long companyId, java.lang.String name, int scope, 1259 java.lang.String primKey, long[] roleIds, long actionIds, int start, 1260 int end) throws com.liferay.portal.kernel.exception.SystemException; 1261 1262 /** 1263 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ? and actionIds = ?. 1264 * 1265 * <p> 1266 * 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. 1267 * </p> 1268 * 1269 * @param companyId the company ID 1270 * @param name the name 1271 * @param scope the scope 1272 * @param primKey the prim key 1273 * @param roleIds the role IDs 1274 * @param actionIds the action IDs 1275 * @param start the lower bound of the range of resource permissions 1276 * @param end the upper bound of the range of resource permissions (not inclusive) 1277 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1278 * @return the ordered range of matching resource permissions 1279 * @throws SystemException if a system exception occurred 1280 */ 1281 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R_A( 1282 long companyId, java.lang.String name, int scope, 1283 java.lang.String primKey, long[] roleIds, long actionIds, int start, 1284 int end, 1285 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1286 throws com.liferay.portal.kernel.exception.SystemException; 1287 1288 /** 1289 * 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. 1290 * 1291 * @param companyId the company ID 1292 * @param name the name 1293 * @param scope the scope 1294 * @param primKey the prim key 1295 * @param roleId the role ID 1296 * @param ownerId the owner ID 1297 * @param actionIds the action IDs 1298 * @return the matching resource permission 1299 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 1300 * @throws SystemException if a system exception occurred 1301 */ 1302 public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R_O_A( 1303 long companyId, java.lang.String name, int scope, 1304 java.lang.String primKey, long roleId, long ownerId, long actionIds) 1305 throws com.liferay.portal.NoSuchResourcePermissionException, 1306 com.liferay.portal.kernel.exception.SystemException; 1307 1308 /** 1309 * 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. 1310 * 1311 * @param companyId the company ID 1312 * @param name the name 1313 * @param scope the scope 1314 * @param primKey the prim key 1315 * @param roleId the role ID 1316 * @param ownerId the owner ID 1317 * @param actionIds the action IDs 1318 * @return the matching resource permission, or <code>null</code> if a matching resource permission could not be found 1319 * @throws SystemException if a system exception occurred 1320 */ 1321 public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R_O_A( 1322 long companyId, java.lang.String name, int scope, 1323 java.lang.String primKey, long roleId, long ownerId, long actionIds) 1324 throws com.liferay.portal.kernel.exception.SystemException; 1325 1326 /** 1327 * 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. 1328 * 1329 * @param companyId the company ID 1330 * @param name the name 1331 * @param scope the scope 1332 * @param primKey the prim key 1333 * @param roleId the role ID 1334 * @param ownerId the owner ID 1335 * @param actionIds the action IDs 1336 * @param retrieveFromCache whether to use the finder cache 1337 * @return the matching resource permission, or <code>null</code> if a matching resource permission could not be found 1338 * @throws SystemException if a system exception occurred 1339 */ 1340 public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R_O_A( 1341 long companyId, java.lang.String name, int scope, 1342 java.lang.String primKey, long roleId, long ownerId, long actionIds, 1343 boolean retrieveFromCache) 1344 throws com.liferay.portal.kernel.exception.SystemException; 1345 1346 /** 1347 * Returns all the resource permissions. 1348 * 1349 * @return the resource permissions 1350 * @throws SystemException if a system exception occurred 1351 */ 1352 public java.util.List<com.liferay.portal.model.ResourcePermission> findAll() 1353 throws com.liferay.portal.kernel.exception.SystemException; 1354 1355 /** 1356 * Returns a range of all the resource permissions. 1357 * 1358 * <p> 1359 * 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. 1360 * </p> 1361 * 1362 * @param start the lower bound of the range of resource permissions 1363 * @param end the upper bound of the range of resource permissions (not inclusive) 1364 * @return the range of resource permissions 1365 * @throws SystemException if a system exception occurred 1366 */ 1367 public java.util.List<com.liferay.portal.model.ResourcePermission> findAll( 1368 int start, int end) 1369 throws com.liferay.portal.kernel.exception.SystemException; 1370 1371 /** 1372 * Returns an ordered range of all the resource permissions. 1373 * 1374 * <p> 1375 * 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. 1376 * </p> 1377 * 1378 * @param start the lower bound of the range of resource permissions 1379 * @param end the upper bound of the range of resource permissions (not inclusive) 1380 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1381 * @return the ordered range of resource permissions 1382 * @throws SystemException if a system exception occurred 1383 */ 1384 public java.util.List<com.liferay.portal.model.ResourcePermission> findAll( 1385 int start, int end, 1386 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1387 throws com.liferay.portal.kernel.exception.SystemException; 1388 1389 /** 1390 * Removes all the resource permissions where scope = ? from the database. 1391 * 1392 * @param scope the scope 1393 * @throws SystemException if a system exception occurred 1394 */ 1395 public void removeByScope(int scope) 1396 throws com.liferay.portal.kernel.exception.SystemException; 1397 1398 /** 1399 * Removes all the resource permissions where roleId = ? from the database. 1400 * 1401 * @param roleId the role ID 1402 * @throws SystemException if a system exception occurred 1403 */ 1404 public void removeByRoleId(long roleId) 1405 throws com.liferay.portal.kernel.exception.SystemException; 1406 1407 /** 1408 * Removes all the resource permissions where companyId = ? and name = ? and scope = ? from the database. 1409 * 1410 * @param companyId the company ID 1411 * @param name the name 1412 * @param scope the scope 1413 * @throws SystemException if a system exception occurred 1414 */ 1415 public void removeByC_N_S(long companyId, java.lang.String name, int scope) 1416 throws com.liferay.portal.kernel.exception.SystemException; 1417 1418 /** 1419 * Removes all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? from the database. 1420 * 1421 * @param companyId the company ID 1422 * @param name the name 1423 * @param scope the scope 1424 * @param primKey the prim key 1425 * @throws SystemException if a system exception occurred 1426 */ 1427 public void removeByC_N_S_P(long companyId, java.lang.String name, 1428 int scope, java.lang.String primKey) 1429 throws com.liferay.portal.kernel.exception.SystemException; 1430 1431 /** 1432 * Removes all the resource permissions where companyId = ? and name = ? and primKey = ? and ownerId = ? from the database. 1433 * 1434 * @param companyId the company ID 1435 * @param name the name 1436 * @param primKey the prim key 1437 * @param ownerId the owner ID 1438 * @throws SystemException if a system exception occurred 1439 */ 1440 public void removeByC_N_P_O(long companyId, java.lang.String name, 1441 java.lang.String primKey, long ownerId) 1442 throws com.liferay.portal.kernel.exception.SystemException; 1443 1444 /** 1445 * Removes all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? from the database. 1446 * 1447 * @param companyId the company ID 1448 * @param name the name 1449 * @param scope the scope 1450 * @param primKey the prim key 1451 * @param roleId the role ID 1452 * @throws SystemException if a system exception occurred 1453 */ 1454 public void removeByC_N_S_P_R(long companyId, java.lang.String name, 1455 int scope, java.lang.String primKey, long roleId) 1456 throws com.liferay.portal.kernel.exception.SystemException; 1457 1458 /** 1459 * Removes all the resource permissions where companyId = ? and name = ? and primKey = ? and roleId = ? and actionIds = ? from the database. 1460 * 1461 * @param companyId the company ID 1462 * @param name the name 1463 * @param primKey the prim key 1464 * @param roleId the role ID 1465 * @param actionIds the action IDs 1466 * @throws SystemException if a system exception occurred 1467 */ 1468 public void removeByC_N_P_R_A(long companyId, java.lang.String name, 1469 java.lang.String primKey, long roleId, long actionIds) 1470 throws com.liferay.portal.kernel.exception.SystemException; 1471 1472 /** 1473 * Removes all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and actionIds = ? from the database. 1474 * 1475 * @param companyId the company ID 1476 * @param name the name 1477 * @param scope the scope 1478 * @param primKey the prim key 1479 * @param roleId the role ID 1480 * @param actionIds the action IDs 1481 * @throws SystemException if a system exception occurred 1482 */ 1483 public void removeByC_N_S_P_R_A(long companyId, java.lang.String name, 1484 int scope, java.lang.String primKey, long roleId, long actionIds) 1485 throws com.liferay.portal.kernel.exception.SystemException; 1486 1487 /** 1488 * Removes the resource permission where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and ownerId = ? and actionIds = ? from the database. 1489 * 1490 * @param companyId the company ID 1491 * @param name the name 1492 * @param scope the scope 1493 * @param primKey the prim key 1494 * @param roleId the role ID 1495 * @param ownerId the owner ID 1496 * @param actionIds the action IDs 1497 * @throws SystemException if a system exception occurred 1498 */ 1499 public void removeByC_N_S_P_R_O_A(long companyId, java.lang.String name, 1500 int scope, java.lang.String primKey, long roleId, long ownerId, 1501 long actionIds) 1502 throws com.liferay.portal.NoSuchResourcePermissionException, 1503 com.liferay.portal.kernel.exception.SystemException; 1504 1505 /** 1506 * Removes all the resource permissions from the database. 1507 * 1508 * @throws SystemException if a system exception occurred 1509 */ 1510 public void removeAll() 1511 throws com.liferay.portal.kernel.exception.SystemException; 1512 1513 /** 1514 * Returns the number of resource permissions where scope = ?. 1515 * 1516 * @param scope the scope 1517 * @return the number of matching resource permissions 1518 * @throws SystemException if a system exception occurred 1519 */ 1520 public int countByScope(int scope) 1521 throws com.liferay.portal.kernel.exception.SystemException; 1522 1523 /** 1524 * Returns the number of resource permissions where scope = any ?. 1525 * 1526 * @param scopes the scopes 1527 * @return the number of matching resource permissions 1528 * @throws SystemException if a system exception occurred 1529 */ 1530 public int countByScope(int[] scopes) 1531 throws com.liferay.portal.kernel.exception.SystemException; 1532 1533 /** 1534 * Returns the number of resource permissions where roleId = ?. 1535 * 1536 * @param roleId the role ID 1537 * @return the number of matching resource permissions 1538 * @throws SystemException if a system exception occurred 1539 */ 1540 public int countByRoleId(long roleId) 1541 throws com.liferay.portal.kernel.exception.SystemException; 1542 1543 /** 1544 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ?. 1545 * 1546 * @param companyId the company ID 1547 * @param name the name 1548 * @param scope the scope 1549 * @return the number of matching resource permissions 1550 * @throws SystemException if a system exception occurred 1551 */ 1552 public int countByC_N_S(long companyId, java.lang.String name, int scope) 1553 throws com.liferay.portal.kernel.exception.SystemException; 1554 1555 /** 1556 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 1557 * 1558 * @param companyId the company ID 1559 * @param name the name 1560 * @param scope the scope 1561 * @param primKey the prim key 1562 * @return the number of matching resource permissions 1563 * @throws SystemException if a system exception occurred 1564 */ 1565 public int countByC_N_S_P(long companyId, java.lang.String name, int scope, 1566 java.lang.String primKey) 1567 throws com.liferay.portal.kernel.exception.SystemException; 1568 1569 /** 1570 * Returns the number of resource permissions where companyId = ? and name = ? and primKey = ? and ownerId = ?. 1571 * 1572 * @param companyId the company ID 1573 * @param name the name 1574 * @param primKey the prim key 1575 * @param ownerId the owner ID 1576 * @return the number of matching resource permissions 1577 * @throws SystemException if a system exception occurred 1578 */ 1579 public int countByC_N_P_O(long companyId, java.lang.String name, 1580 java.lang.String primKey, long ownerId) 1581 throws com.liferay.portal.kernel.exception.SystemException; 1582 1583 /** 1584 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ?. 1585 * 1586 * @param companyId the company ID 1587 * @param name the name 1588 * @param scope the scope 1589 * @param primKey the prim key 1590 * @param roleId the role ID 1591 * @return the number of matching resource permissions 1592 * @throws SystemException if a system exception occurred 1593 */ 1594 public int countByC_N_S_P_R(long companyId, java.lang.String name, 1595 int scope, java.lang.String primKey, long roleId) 1596 throws com.liferay.portal.kernel.exception.SystemException; 1597 1598 /** 1599 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 1600 * 1601 * @param companyId the company ID 1602 * @param name the name 1603 * @param scope the scope 1604 * @param primKey the prim key 1605 * @param roleIds the role IDs 1606 * @return the number of matching resource permissions 1607 * @throws SystemException if a system exception occurred 1608 */ 1609 public int countByC_N_S_P_R(long companyId, java.lang.String name, 1610 int scope, java.lang.String primKey, long[] roleIds) 1611 throws com.liferay.portal.kernel.exception.SystemException; 1612 1613 /** 1614 * Returns the number of resource permissions where companyId = ? and name = ? and primKey = ? and roleId = ? and actionIds = ?. 1615 * 1616 * @param companyId the company ID 1617 * @param name the name 1618 * @param primKey the prim key 1619 * @param roleId the role ID 1620 * @param actionIds the action IDs 1621 * @return the number of matching resource permissions 1622 * @throws SystemException if a system exception occurred 1623 */ 1624 public int countByC_N_P_R_A(long companyId, java.lang.String name, 1625 java.lang.String primKey, long roleId, long actionIds) 1626 throws com.liferay.portal.kernel.exception.SystemException; 1627 1628 /** 1629 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and actionIds = ?. 1630 * 1631 * @param companyId the company ID 1632 * @param name the name 1633 * @param scope the scope 1634 * @param primKey the prim key 1635 * @param roleId the role ID 1636 * @param actionIds the action IDs 1637 * @return the number of matching resource permissions 1638 * @throws SystemException if a system exception occurred 1639 */ 1640 public int countByC_N_S_P_R_A(long companyId, java.lang.String name, 1641 int scope, java.lang.String primKey, long roleId, long actionIds) 1642 throws com.liferay.portal.kernel.exception.SystemException; 1643 1644 /** 1645 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ? and actionIds = ?. 1646 * 1647 * @param companyId the company ID 1648 * @param name the name 1649 * @param scope the scope 1650 * @param primKey the prim key 1651 * @param roleIds the role IDs 1652 * @param actionIds the action IDs 1653 * @return the number of matching resource permissions 1654 * @throws SystemException if a system exception occurred 1655 */ 1656 public int countByC_N_S_P_R_A(long companyId, java.lang.String name, 1657 int scope, java.lang.String primKey, long[] roleIds, long actionIds) 1658 throws com.liferay.portal.kernel.exception.SystemException; 1659 1660 /** 1661 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? and ownerId = ? and actionIds = ?. 1662 * 1663 * @param companyId the company ID 1664 * @param name the name 1665 * @param scope the scope 1666 * @param primKey the prim key 1667 * @param roleId the role ID 1668 * @param ownerId the owner ID 1669 * @param actionIds the action IDs 1670 * @return the number of matching resource permissions 1671 * @throws SystemException if a system exception occurred 1672 */ 1673 public int countByC_N_S_P_R_O_A(long companyId, java.lang.String name, 1674 int scope, java.lang.String primKey, long roleId, long ownerId, 1675 long actionIds) 1676 throws com.liferay.portal.kernel.exception.SystemException; 1677 1678 /** 1679 * Returns the number of resource permissions. 1680 * 1681 * @return the number of resource permissions 1682 * @throws SystemException if a system exception occurred 1683 */ 1684 public int countAll() 1685 throws com.liferay.portal.kernel.exception.SystemException; 1686 }