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