001 /** 002 * Copyright (c) 2000-present 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.kernel.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.exception.NoSuchResourcePermissionException; 020 import com.liferay.portal.kernel.model.ResourcePermission; 021 022 /** 023 * The persistence interface for the resource permission service. 024 * 025 * <p> 026 * Caching information and settings can be found in <code>portal.properties</code> 027 * </p> 028 * 029 * @author Brian Wing Shun Chan 030 * @see com.liferay.portal.service.persistence.impl.ResourcePermissionPersistenceImpl 031 * @see ResourcePermissionUtil 032 * @generated 033 */ 034 @ProviderType 035 public interface ResourcePermissionPersistence extends BasePersistence<ResourcePermission> { 036 /* 037 * NOTE FOR DEVELOPERS: 038 * 039 * Never modify or reference this interface directly. Always use {@link ResourcePermissionUtil} to access the resource permission persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 040 */ 041 042 /** 043 * Returns all the resource permissions where scope = ?. 044 * 045 * @param scope the scope 046 * @return the matching resource permissions 047 */ 048 public java.util.List<ResourcePermission> findByScope(int scope); 049 050 /** 051 * Returns a range of all the resource permissions where scope = ?. 052 * 053 * <p> 054 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 055 * </p> 056 * 057 * @param scope the scope 058 * @param start the lower bound of the range of resource permissions 059 * @param end the upper bound of the range of resource permissions (not inclusive) 060 * @return the range of matching resource permissions 061 */ 062 public java.util.List<ResourcePermission> findByScope(int scope, int start, 063 int end); 064 065 /** 066 * Returns an ordered range of all the resource permissions where scope = ?. 067 * 068 * <p> 069 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 070 * </p> 071 * 072 * @param scope the scope 073 * @param start the lower bound of the range of resource permissions 074 * @param end the upper bound of the range of resource permissions (not inclusive) 075 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 076 * @return the ordered range of matching resource permissions 077 */ 078 public java.util.List<ResourcePermission> findByScope(int scope, int start, 079 int end, 080 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 081 082 /** 083 * Returns an ordered range of all the resource permissions where scope = ?. 084 * 085 * <p> 086 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 087 * </p> 088 * 089 * @param scope the scope 090 * @param start the lower bound of the range of resource permissions 091 * @param end the upper bound of the range of resource permissions (not inclusive) 092 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 093 * @param retrieveFromCache whether to retrieve from the finder cache 094 * @return the ordered range of matching resource permissions 095 */ 096 public java.util.List<ResourcePermission> findByScope(int scope, int start, 097 int end, 098 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator, 099 boolean retrieveFromCache); 100 101 /** 102 * Returns the first resource permission in the ordered set where scope = ?. 103 * 104 * @param scope the scope 105 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 106 * @return the first matching resource permission 107 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 108 */ 109 public ResourcePermission findByScope_First(int scope, 110 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 111 throws NoSuchResourcePermissionException; 112 113 /** 114 * Returns the first resource permission in the ordered set where scope = ?. 115 * 116 * @param scope the scope 117 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 118 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 119 */ 120 public ResourcePermission fetchByScope_First(int scope, 121 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 122 123 /** 124 * Returns the last resource permission in the ordered set where scope = ?. 125 * 126 * @param scope the scope 127 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 128 * @return the last matching resource permission 129 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 130 */ 131 public ResourcePermission findByScope_Last(int scope, 132 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 133 throws NoSuchResourcePermissionException; 134 135 /** 136 * Returns the last resource permission in the ordered set where scope = ?. 137 * 138 * @param scope the scope 139 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 140 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 141 */ 142 public ResourcePermission fetchByScope_Last(int scope, 143 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 144 145 /** 146 * Returns the resource permissions before and after the current resource permission in the ordered set where scope = ?. 147 * 148 * @param resourcePermissionId the primary key of the current resource permission 149 * @param scope the scope 150 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 151 * @return the previous, current, and next resource permission 152 * @throws NoSuchResourcePermissionException if a resource permission with the primary key could not be found 153 */ 154 public ResourcePermission[] findByScope_PrevAndNext( 155 long resourcePermissionId, int scope, 156 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 157 throws NoSuchResourcePermissionException; 158 159 /** 160 * Returns all the resource permissions where scope = any ?. 161 * 162 * <p> 163 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 164 * </p> 165 * 166 * @param scopes the scopes 167 * @return the matching resource permissions 168 */ 169 public java.util.List<ResourcePermission> findByScope(int[] scopes); 170 171 /** 172 * Returns a range of all the resource permissions where scope = any ?. 173 * 174 * <p> 175 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 176 * </p> 177 * 178 * @param scopes the scopes 179 * @param start the lower bound of the range of resource permissions 180 * @param end the upper bound of the range of resource permissions (not inclusive) 181 * @return the range of matching resource permissions 182 */ 183 public java.util.List<ResourcePermission> findByScope(int[] scopes, 184 int start, int end); 185 186 /** 187 * Returns an ordered range of all the resource permissions where scope = any ?. 188 * 189 * <p> 190 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 191 * </p> 192 * 193 * @param scopes the scopes 194 * @param start the lower bound of the range of resource permissions 195 * @param end the upper bound of the range of resource permissions (not inclusive) 196 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 197 * @return the ordered range of matching resource permissions 198 */ 199 public java.util.List<ResourcePermission> findByScope(int[] scopes, 200 int start, int end, 201 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 202 203 /** 204 * Returns an ordered range of all the resource permissions where scope = ?, optionally using the finder cache. 205 * 206 * <p> 207 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 208 * </p> 209 * 210 * @param scope the scope 211 * @param start the lower bound of the range of resource permissions 212 * @param end the upper bound of the range of resource permissions (not inclusive) 213 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 214 * @param retrieveFromCache whether to retrieve from the finder cache 215 * @return the ordered range of matching resource permissions 216 */ 217 public java.util.List<ResourcePermission> findByScope(int[] scopes, 218 int start, int end, 219 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator, 220 boolean retrieveFromCache); 221 222 /** 223 * Removes all the resource permissions where scope = ? from the database. 224 * 225 * @param scope the scope 226 */ 227 public void removeByScope(int scope); 228 229 /** 230 * Returns the number of resource permissions where scope = ?. 231 * 232 * @param scope the scope 233 * @return the number of matching resource permissions 234 */ 235 public int countByScope(int scope); 236 237 /** 238 * Returns the number of resource permissions where scope = any ?. 239 * 240 * @param scopes the scopes 241 * @return the number of matching resource permissions 242 */ 243 public int countByScope(int[] scopes); 244 245 /** 246 * Returns all the resource permissions where roleId = ?. 247 * 248 * @param roleId the role ID 249 * @return the matching resource permissions 250 */ 251 public java.util.List<ResourcePermission> findByRoleId(long roleId); 252 253 /** 254 * Returns a range of all the resource permissions where roleId = ?. 255 * 256 * <p> 257 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 258 * </p> 259 * 260 * @param roleId the role ID 261 * @param start the lower bound of the range of resource permissions 262 * @param end the upper bound of the range of resource permissions (not inclusive) 263 * @return the range of matching resource permissions 264 */ 265 public java.util.List<ResourcePermission> findByRoleId(long roleId, 266 int start, int end); 267 268 /** 269 * Returns an ordered range of all the resource permissions where roleId = ?. 270 * 271 * <p> 272 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 273 * </p> 274 * 275 * @param roleId the role ID 276 * @param start the lower bound of the range of resource permissions 277 * @param end the upper bound of the range of resource permissions (not inclusive) 278 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 279 * @return the ordered range of matching resource permissions 280 */ 281 public java.util.List<ResourcePermission> findByRoleId(long roleId, 282 int start, int end, 283 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 284 285 /** 286 * Returns an ordered range of all the resource permissions where roleId = ?. 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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 roleId the role ID 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 * @param retrieveFromCache whether to retrieve from the finder cache 297 * @return the ordered range of matching resource permissions 298 */ 299 public java.util.List<ResourcePermission> findByRoleId(long roleId, 300 int start, int end, 301 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator, 302 boolean retrieveFromCache); 303 304 /** 305 * Returns the first resource permission in the ordered set where roleId = ?. 306 * 307 * @param roleId the role ID 308 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 309 * @return the first matching resource permission 310 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 311 */ 312 public ResourcePermission findByRoleId_First(long roleId, 313 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 314 throws NoSuchResourcePermissionException; 315 316 /** 317 * Returns the first resource permission in the ordered set where roleId = ?. 318 * 319 * @param roleId the role ID 320 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 321 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 322 */ 323 public ResourcePermission fetchByRoleId_First(long roleId, 324 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 325 326 /** 327 * Returns the last resource permission in the ordered set where roleId = ?. 328 * 329 * @param roleId the role ID 330 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 331 * @return the last matching resource permission 332 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 333 */ 334 public ResourcePermission findByRoleId_Last(long roleId, 335 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 336 throws NoSuchResourcePermissionException; 337 338 /** 339 * Returns the last resource permission in the ordered set where roleId = ?. 340 * 341 * @param roleId the role ID 342 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 343 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 344 */ 345 public ResourcePermission fetchByRoleId_Last(long roleId, 346 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 347 348 /** 349 * Returns the resource permissions before and after the current resource permission in the ordered set where roleId = ?. 350 * 351 * @param resourcePermissionId the primary key of the current resource permission 352 * @param roleId the role ID 353 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 354 * @return the previous, current, and next resource permission 355 * @throws NoSuchResourcePermissionException if a resource permission with the primary key could not be found 356 */ 357 public ResourcePermission[] findByRoleId_PrevAndNext( 358 long resourcePermissionId, long roleId, 359 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 360 throws NoSuchResourcePermissionException; 361 362 /** 363 * Removes all the resource permissions where roleId = ? from the database. 364 * 365 * @param roleId the role ID 366 */ 367 public void removeByRoleId(long roleId); 368 369 /** 370 * Returns the number of resource permissions where roleId = ?. 371 * 372 * @param roleId the role ID 373 * @return the number of matching resource permissions 374 */ 375 public int countByRoleId(long roleId); 376 377 /** 378 * Returns all the resource permissions where companyId = ? and primKey LIKE ?. 379 * 380 * @param companyId the company ID 381 * @param primKey the prim key 382 * @return the matching resource permissions 383 */ 384 public java.util.List<ResourcePermission> findByC_LikeP(long companyId, 385 java.lang.String primKey); 386 387 /** 388 * Returns a range of all the resource permissions where companyId = ? and primKey LIKE ?. 389 * 390 * <p> 391 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 392 * </p> 393 * 394 * @param companyId the company ID 395 * @param primKey the prim key 396 * @param start the lower bound of the range of resource permissions 397 * @param end the upper bound of the range of resource permissions (not inclusive) 398 * @return the range of matching resource permissions 399 */ 400 public java.util.List<ResourcePermission> findByC_LikeP(long companyId, 401 java.lang.String primKey, int start, int end); 402 403 /** 404 * Returns an ordered range of all the resource permissions where companyId = ? and primKey LIKE ?. 405 * 406 * <p> 407 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 408 * </p> 409 * 410 * @param companyId the company ID 411 * @param primKey the prim key 412 * @param start the lower bound of the range of resource permissions 413 * @param end the upper bound of the range of resource permissions (not inclusive) 414 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 415 * @return the ordered range of matching resource permissions 416 */ 417 public java.util.List<ResourcePermission> findByC_LikeP(long companyId, 418 java.lang.String primKey, int start, int end, 419 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 420 421 /** 422 * Returns an ordered range of all the resource permissions where companyId = ? and primKey LIKE ?. 423 * 424 * <p> 425 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 426 * </p> 427 * 428 * @param companyId the company ID 429 * @param primKey the prim key 430 * @param start the lower bound of the range of resource permissions 431 * @param end the upper bound of the range of resource permissions (not inclusive) 432 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 433 * @param retrieveFromCache whether to retrieve from the finder cache 434 * @return the ordered range of matching resource permissions 435 */ 436 public java.util.List<ResourcePermission> findByC_LikeP(long companyId, 437 java.lang.String primKey, int start, int end, 438 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator, 439 boolean retrieveFromCache); 440 441 /** 442 * Returns the first resource permission in the ordered set where companyId = ? and primKey LIKE ?. 443 * 444 * @param companyId the company ID 445 * @param primKey the prim key 446 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 447 * @return the first matching resource permission 448 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 449 */ 450 public ResourcePermission findByC_LikeP_First(long companyId, 451 java.lang.String primKey, 452 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 453 throws NoSuchResourcePermissionException; 454 455 /** 456 * Returns the first resource permission in the ordered set where companyId = ? and primKey LIKE ?. 457 * 458 * @param companyId the company ID 459 * @param primKey the prim key 460 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 461 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 462 */ 463 public ResourcePermission fetchByC_LikeP_First(long companyId, 464 java.lang.String primKey, 465 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 466 467 /** 468 * Returns the last resource permission in the ordered set where companyId = ? and primKey LIKE ?. 469 * 470 * @param companyId the company ID 471 * @param primKey the prim key 472 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 473 * @return the last matching resource permission 474 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 475 */ 476 public ResourcePermission findByC_LikeP_Last(long companyId, 477 java.lang.String primKey, 478 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 479 throws NoSuchResourcePermissionException; 480 481 /** 482 * Returns the last resource permission in the ordered set where companyId = ? and primKey LIKE ?. 483 * 484 * @param companyId the company ID 485 * @param primKey the prim key 486 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 487 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 488 */ 489 public ResourcePermission fetchByC_LikeP_Last(long companyId, 490 java.lang.String primKey, 491 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 492 493 /** 494 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and primKey LIKE ?. 495 * 496 * @param resourcePermissionId the primary key of the current resource permission 497 * @param companyId the company ID 498 * @param primKey the prim key 499 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 500 * @return the previous, current, and next resource permission 501 * @throws NoSuchResourcePermissionException if a resource permission with the primary key could not be found 502 */ 503 public ResourcePermission[] findByC_LikeP_PrevAndNext( 504 long resourcePermissionId, long companyId, java.lang.String primKey, 505 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 506 throws NoSuchResourcePermissionException; 507 508 /** 509 * Removes all the resource permissions where companyId = ? and primKey LIKE ? from the database. 510 * 511 * @param companyId the company ID 512 * @param primKey the prim key 513 */ 514 public void removeByC_LikeP(long companyId, java.lang.String primKey); 515 516 /** 517 * Returns the number of resource permissions where companyId = ? and primKey LIKE ?. 518 * 519 * @param companyId the company ID 520 * @param primKey the prim key 521 * @return the number of matching resource permissions 522 */ 523 public int countByC_LikeP(long companyId, java.lang.String primKey); 524 525 /** 526 * Returns all the resource permissions where companyId = ? and name = ? and scope = ?. 527 * 528 * @param companyId the company ID 529 * @param name the name 530 * @param scope the scope 531 * @return the matching resource permissions 532 */ 533 public java.util.List<ResourcePermission> findByC_N_S(long companyId, 534 java.lang.String name, int scope); 535 536 /** 537 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ?. 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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 name the name 545 * @param scope the scope 546 * @param start the lower bound of the range of resource permissions 547 * @param end the upper bound of the range of resource permissions (not inclusive) 548 * @return the range of matching resource permissions 549 */ 550 public java.util.List<ResourcePermission> findByC_N_S(long companyId, 551 java.lang.String name, int scope, int start, int end); 552 553 /** 554 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ?. 555 * 556 * <p> 557 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 558 * </p> 559 * 560 * @param companyId the company ID 561 * @param name the name 562 * @param scope the scope 563 * @param start the lower bound of the range of resource permissions 564 * @param end the upper bound of the range of resource permissions (not inclusive) 565 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 566 * @return the ordered range of matching resource permissions 567 */ 568 public java.util.List<ResourcePermission> findByC_N_S(long companyId, 569 java.lang.String name, int scope, int start, int end, 570 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 571 572 /** 573 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ?. 574 * 575 * <p> 576 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 577 * </p> 578 * 579 * @param companyId the company ID 580 * @param name the name 581 * @param scope the scope 582 * @param start the lower bound of the range of resource permissions 583 * @param end the upper bound of the range of resource permissions (not inclusive) 584 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 585 * @param retrieveFromCache whether to retrieve from the finder cache 586 * @return the ordered range of matching resource permissions 587 */ 588 public java.util.List<ResourcePermission> findByC_N_S(long companyId, 589 java.lang.String name, int scope, int start, int end, 590 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator, 591 boolean retrieveFromCache); 592 593 /** 594 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 595 * 596 * @param companyId the company ID 597 * @param name the name 598 * @param scope the scope 599 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 600 * @return the first matching resource permission 601 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 602 */ 603 public ResourcePermission findByC_N_S_First(long companyId, 604 java.lang.String name, int scope, 605 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 606 throws NoSuchResourcePermissionException; 607 608 /** 609 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 610 * 611 * @param companyId the company ID 612 * @param name the name 613 * @param scope the scope 614 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 615 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 616 */ 617 public ResourcePermission fetchByC_N_S_First(long companyId, 618 java.lang.String name, int scope, 619 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 620 621 /** 622 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 623 * 624 * @param companyId the company ID 625 * @param name the name 626 * @param scope the scope 627 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 628 * @return the last matching resource permission 629 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 630 */ 631 public ResourcePermission findByC_N_S_Last(long companyId, 632 java.lang.String name, int scope, 633 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 634 throws NoSuchResourcePermissionException; 635 636 /** 637 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 638 * 639 * @param companyId the company ID 640 * @param name the name 641 * @param scope the scope 642 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 643 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 644 */ 645 public ResourcePermission fetchByC_N_S_Last(long companyId, 646 java.lang.String name, int scope, 647 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 648 649 /** 650 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 651 * 652 * @param resourcePermissionId the primary key of the current resource permission 653 * @param companyId the company ID 654 * @param name the name 655 * @param scope the scope 656 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 657 * @return the previous, current, and next resource permission 658 * @throws NoSuchResourcePermissionException if a resource permission with the primary key could not be found 659 */ 660 public ResourcePermission[] findByC_N_S_PrevAndNext( 661 long resourcePermissionId, long companyId, java.lang.String name, 662 int scope, 663 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 664 throws NoSuchResourcePermissionException; 665 666 /** 667 * Removes all the resource permissions where companyId = ? and name = ? and scope = ? from the database. 668 * 669 * @param companyId the company ID 670 * @param name the name 671 * @param scope the scope 672 */ 673 public void removeByC_N_S(long companyId, java.lang.String name, int scope); 674 675 /** 676 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ?. 677 * 678 * @param companyId the company ID 679 * @param name the name 680 * @param scope the scope 681 * @return the number of matching resource permissions 682 */ 683 public int countByC_N_S(long companyId, java.lang.String name, int scope); 684 685 /** 686 * Returns all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 687 * 688 * @param companyId the company ID 689 * @param name the name 690 * @param scope the scope 691 * @param primKey the prim key 692 * @return the matching resource permissions 693 */ 694 public java.util.List<ResourcePermission> findByC_N_S_P(long companyId, 695 java.lang.String name, int scope, java.lang.String primKey); 696 697 /** 698 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 699 * 700 * <p> 701 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 702 * </p> 703 * 704 * @param companyId the company ID 705 * @param name the name 706 * @param scope the scope 707 * @param primKey the prim key 708 * @param start the lower bound of the range of resource permissions 709 * @param end the upper bound of the range of resource permissions (not inclusive) 710 * @return the range of matching resource permissions 711 */ 712 public java.util.List<ResourcePermission> findByC_N_S_P(long companyId, 713 java.lang.String name, int scope, java.lang.String primKey, int start, 714 int end); 715 716 /** 717 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 718 * 719 * <p> 720 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 721 * </p> 722 * 723 * @param companyId the company ID 724 * @param name the name 725 * @param scope the scope 726 * @param primKey the prim key 727 * @param start the lower bound of the range of resource permissions 728 * @param end the upper bound of the range of resource permissions (not inclusive) 729 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 730 * @return the ordered range of matching resource permissions 731 */ 732 public java.util.List<ResourcePermission> findByC_N_S_P(long companyId, 733 java.lang.String name, int scope, java.lang.String primKey, int start, 734 int end, 735 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 736 737 /** 738 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 739 * 740 * <p> 741 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 742 * </p> 743 * 744 * @param companyId the company ID 745 * @param name the name 746 * @param scope the scope 747 * @param primKey the prim key 748 * @param start the lower bound of the range of resource permissions 749 * @param end the upper bound of the range of resource permissions (not inclusive) 750 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 751 * @param retrieveFromCache whether to retrieve from the finder cache 752 * @return the ordered range of matching resource permissions 753 */ 754 public java.util.List<ResourcePermission> findByC_N_S_P(long companyId, 755 java.lang.String name, int scope, java.lang.String primKey, int start, 756 int end, 757 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator, 758 boolean retrieveFromCache); 759 760 /** 761 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 762 * 763 * @param companyId the company ID 764 * @param name the name 765 * @param scope the scope 766 * @param primKey the prim key 767 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 768 * @return the first matching resource permission 769 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 770 */ 771 public ResourcePermission findByC_N_S_P_First(long companyId, 772 java.lang.String name, int scope, java.lang.String primKey, 773 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 774 throws NoSuchResourcePermissionException; 775 776 /** 777 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 778 * 779 * @param companyId the company ID 780 * @param name the name 781 * @param scope the scope 782 * @param primKey the prim key 783 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 784 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 785 */ 786 public ResourcePermission fetchByC_N_S_P_First(long companyId, 787 java.lang.String name, int scope, java.lang.String primKey, 788 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 789 790 /** 791 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 792 * 793 * @param companyId the company ID 794 * @param name the name 795 * @param scope the scope 796 * @param primKey the prim key 797 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 798 * @return the last matching resource permission 799 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 800 */ 801 public ResourcePermission findByC_N_S_P_Last(long companyId, 802 java.lang.String name, int scope, java.lang.String primKey, 803 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 804 throws NoSuchResourcePermissionException; 805 806 /** 807 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 808 * 809 * @param companyId the company ID 810 * @param name the name 811 * @param scope the scope 812 * @param primKey the prim key 813 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 814 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 815 */ 816 public ResourcePermission fetchByC_N_S_P_Last(long companyId, 817 java.lang.String name, int scope, java.lang.String primKey, 818 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 819 820 /** 821 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 822 * 823 * @param resourcePermissionId the primary key of the current resource permission 824 * @param companyId the company ID 825 * @param name the name 826 * @param scope the scope 827 * @param primKey the prim key 828 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 829 * @return the previous, current, and next resource permission 830 * @throws NoSuchResourcePermissionException if a resource permission with the primary key could not be found 831 */ 832 public ResourcePermission[] findByC_N_S_P_PrevAndNext( 833 long resourcePermissionId, long companyId, java.lang.String name, 834 int scope, java.lang.String primKey, 835 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 836 throws NoSuchResourcePermissionException; 837 838 /** 839 * Removes all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? from the database. 840 * 841 * @param companyId the company ID 842 * @param name the name 843 * @param scope the scope 844 * @param primKey the prim key 845 */ 846 public void removeByC_N_S_P(long companyId, java.lang.String name, 847 int scope, java.lang.String primKey); 848 849 /** 850 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 851 * 852 * @param companyId the company ID 853 * @param name the name 854 * @param scope the scope 855 * @param primKey the prim key 856 * @return the number of matching resource permissions 857 */ 858 public int countByC_N_S_P(long companyId, java.lang.String name, int scope, 859 java.lang.String primKey); 860 861 /** 862 * Returns all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 863 * 864 * <p> 865 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 866 * </p> 867 * 868 * @param companyId the company ID 869 * @param name the name 870 * @param scope the scope 871 * @param primKey the prim key 872 * @param roleIds the role IDs 873 * @return the matching resource permissions 874 */ 875 public java.util.List<ResourcePermission> findByC_N_S_P_R(long companyId, 876 java.lang.String name, int scope, java.lang.String primKey, 877 long[] roleIds); 878 879 /** 880 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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 name the name 888 * @param scope the scope 889 * @param primKey the prim key 890 * @param roleIds the role IDs 891 * @param start the lower bound of the range of resource permissions 892 * @param end the upper bound of the range of resource permissions (not inclusive) 893 * @return the range of matching resource permissions 894 */ 895 public java.util.List<ResourcePermission> findByC_N_S_P_R(long companyId, 896 java.lang.String name, int scope, java.lang.String primKey, 897 long[] roleIds, int start, int end); 898 899 /** 900 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 901 * 902 * <p> 903 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 904 * </p> 905 * 906 * @param companyId the company ID 907 * @param name the name 908 * @param scope the scope 909 * @param primKey the prim key 910 * @param roleIds the role IDs 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 */ 916 public java.util.List<ResourcePermission> findByC_N_S_P_R(long companyId, 917 java.lang.String name, int scope, java.lang.String primKey, 918 long[] roleIds, int start, int end, 919 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 920 921 /** 922 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ?, optionally using the finder cache. 923 * 924 * <p> 925 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 926 * </p> 927 * 928 * @param companyId the company ID 929 * @param name the name 930 * @param scope the scope 931 * @param primKey the prim key 932 * @param roleId the role ID 933 * @param start the lower bound of the range of resource permissions 934 * @param end the upper bound of the range of resource permissions (not inclusive) 935 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 936 * @param retrieveFromCache whether to retrieve from the finder cache 937 * @return the ordered range of matching resource permissions 938 */ 939 public java.util.List<ResourcePermission> findByC_N_S_P_R(long companyId, 940 java.lang.String name, int scope, java.lang.String primKey, 941 long[] roleIds, int start, int end, 942 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator, 943 boolean retrieveFromCache); 944 945 /** 946 * Returns the resource permission where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? or throws a {@link NoSuchResourcePermissionException} if it could not be found. 947 * 948 * @param companyId the company ID 949 * @param name the name 950 * @param scope the scope 951 * @param primKey the prim key 952 * @param roleId the role ID 953 * @return the matching resource permission 954 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 955 */ 956 public ResourcePermission findByC_N_S_P_R(long companyId, 957 java.lang.String name, int scope, java.lang.String primKey, long roleId) 958 throws NoSuchResourcePermissionException; 959 960 /** 961 * Returns the resource permission where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 962 * 963 * @param companyId the company ID 964 * @param name the name 965 * @param scope the scope 966 * @param primKey the prim key 967 * @param roleId the role ID 968 * @return the matching resource permission, or <code>null</code> if a matching resource permission could not be found 969 */ 970 public ResourcePermission fetchByC_N_S_P_R(long companyId, 971 java.lang.String name, int scope, java.lang.String primKey, long roleId); 972 973 /** 974 * Returns the resource permission where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 975 * 976 * @param companyId the company ID 977 * @param name the name 978 * @param scope the scope 979 * @param primKey the prim key 980 * @param roleId the role ID 981 * @param retrieveFromCache whether to retrieve from the finder cache 982 * @return the matching resource permission, or <code>null</code> if a matching resource permission could not be found 983 */ 984 public ResourcePermission fetchByC_N_S_P_R(long companyId, 985 java.lang.String name, int scope, java.lang.String primKey, 986 long roleId, boolean retrieveFromCache); 987 988 /** 989 * Removes the resource permission where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? from the database. 990 * 991 * @param companyId the company ID 992 * @param name the name 993 * @param scope the scope 994 * @param primKey the prim key 995 * @param roleId the role ID 996 * @return the resource permission that was removed 997 */ 998 public ResourcePermission removeByC_N_S_P_R(long companyId, 999 java.lang.String name, int scope, java.lang.String primKey, long roleId) 1000 throws NoSuchResourcePermissionException; 1001 1002 /** 1003 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ?. 1004 * 1005 * @param companyId the company ID 1006 * @param name the name 1007 * @param scope the scope 1008 * @param primKey the prim key 1009 * @param roleId the role ID 1010 * @return the number of matching resource permissions 1011 */ 1012 public int countByC_N_S_P_R(long companyId, java.lang.String name, 1013 int scope, java.lang.String primKey, long roleId); 1014 1015 /** 1016 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 1017 * 1018 * @param companyId the company ID 1019 * @param name the name 1020 * @param scope the scope 1021 * @param primKey the prim key 1022 * @param roleIds the role IDs 1023 * @return the number of matching resource permissions 1024 */ 1025 public int countByC_N_S_P_R(long companyId, java.lang.String name, 1026 int scope, java.lang.String primKey, long[] roleIds); 1027 1028 /** 1029 * Returns all the resource permissions where companyId = ? and name = ? and scope = ? and primKeyId = ? and roleId = ? and viewActionId = ?. 1030 * 1031 * @param companyId the company ID 1032 * @param name the name 1033 * @param scope the scope 1034 * @param primKeyId the prim key ID 1035 * @param roleId the role ID 1036 * @param viewActionId the view action ID 1037 * @return the matching resource permissions 1038 */ 1039 public java.util.List<ResourcePermission> findByC_N_S_P_R_V( 1040 long companyId, java.lang.String name, int scope, long primKeyId, 1041 long roleId, boolean viewActionId); 1042 1043 /** 1044 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKeyId = ? and roleId = ? and viewActionId = ?. 1045 * 1046 * <p> 1047 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 1048 * </p> 1049 * 1050 * @param companyId the company ID 1051 * @param name the name 1052 * @param scope the scope 1053 * @param primKeyId the prim key ID 1054 * @param roleId the role ID 1055 * @param viewActionId the view action ID 1056 * @param start the lower bound of the range of resource permissions 1057 * @param end the upper bound of the range of resource permissions (not inclusive) 1058 * @return the range of matching resource permissions 1059 */ 1060 public java.util.List<ResourcePermission> findByC_N_S_P_R_V( 1061 long companyId, java.lang.String name, int scope, long primKeyId, 1062 long roleId, boolean viewActionId, int start, int end); 1063 1064 /** 1065 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKeyId = ? and roleId = ? and viewActionId = ?. 1066 * 1067 * <p> 1068 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 1069 * </p> 1070 * 1071 * @param companyId the company ID 1072 * @param name the name 1073 * @param scope the scope 1074 * @param primKeyId the prim key ID 1075 * @param roleId the role ID 1076 * @param viewActionId the view action ID 1077 * @param start the lower bound of the range of resource permissions 1078 * @param end the upper bound of the range of resource permissions (not inclusive) 1079 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1080 * @return the ordered range of matching resource permissions 1081 */ 1082 public java.util.List<ResourcePermission> findByC_N_S_P_R_V( 1083 long companyId, java.lang.String name, int scope, long primKeyId, 1084 long roleId, boolean viewActionId, int start, int end, 1085 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 1086 1087 /** 1088 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKeyId = ? and roleId = ? and viewActionId = ?. 1089 * 1090 * <p> 1091 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 1092 * </p> 1093 * 1094 * @param companyId the company ID 1095 * @param name the name 1096 * @param scope the scope 1097 * @param primKeyId the prim key ID 1098 * @param roleId the role ID 1099 * @param viewActionId the view action ID 1100 * @param start the lower bound of the range of resource permissions 1101 * @param end the upper bound of the range of resource permissions (not inclusive) 1102 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1103 * @param retrieveFromCache whether to retrieve from the finder cache 1104 * @return the ordered range of matching resource permissions 1105 */ 1106 public java.util.List<ResourcePermission> findByC_N_S_P_R_V( 1107 long companyId, java.lang.String name, int scope, long primKeyId, 1108 long roleId, boolean viewActionId, int start, int end, 1109 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator, 1110 boolean retrieveFromCache); 1111 1112 /** 1113 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKeyId = ? and roleId = ? and viewActionId = ?. 1114 * 1115 * @param companyId the company ID 1116 * @param name the name 1117 * @param scope the scope 1118 * @param primKeyId the prim key ID 1119 * @param roleId the role ID 1120 * @param viewActionId the view action ID 1121 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1122 * @return the first matching resource permission 1123 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 1124 */ 1125 public ResourcePermission findByC_N_S_P_R_V_First(long companyId, 1126 java.lang.String name, int scope, long primKeyId, long roleId, 1127 boolean viewActionId, 1128 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 1129 throws NoSuchResourcePermissionException; 1130 1131 /** 1132 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKeyId = ? and roleId = ? and viewActionId = ?. 1133 * 1134 * @param companyId the company ID 1135 * @param name the name 1136 * @param scope the scope 1137 * @param primKeyId the prim key ID 1138 * @param roleId the role ID 1139 * @param viewActionId the view action ID 1140 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1141 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 1142 */ 1143 public ResourcePermission fetchByC_N_S_P_R_V_First(long companyId, 1144 java.lang.String name, int scope, long primKeyId, long roleId, 1145 boolean viewActionId, 1146 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 1147 1148 /** 1149 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKeyId = ? and roleId = ? and viewActionId = ?. 1150 * 1151 * @param companyId the company ID 1152 * @param name the name 1153 * @param scope the scope 1154 * @param primKeyId the prim key ID 1155 * @param roleId the role ID 1156 * @param viewActionId the view action ID 1157 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1158 * @return the last matching resource permission 1159 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 1160 */ 1161 public ResourcePermission findByC_N_S_P_R_V_Last(long companyId, 1162 java.lang.String name, int scope, long primKeyId, long roleId, 1163 boolean viewActionId, 1164 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 1165 throws NoSuchResourcePermissionException; 1166 1167 /** 1168 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKeyId = ? and roleId = ? and viewActionId = ?. 1169 * 1170 * @param companyId the company ID 1171 * @param name the name 1172 * @param scope the scope 1173 * @param primKeyId the prim key ID 1174 * @param roleId the role ID 1175 * @param viewActionId the view action ID 1176 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1177 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 1178 */ 1179 public ResourcePermission fetchByC_N_S_P_R_V_Last(long companyId, 1180 java.lang.String name, int scope, long primKeyId, long roleId, 1181 boolean viewActionId, 1182 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 1183 1184 /** 1185 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKeyId = ? and roleId = ? and viewActionId = ?. 1186 * 1187 * @param resourcePermissionId the primary key of the current resource permission 1188 * @param companyId the company ID 1189 * @param name the name 1190 * @param scope the scope 1191 * @param primKeyId the prim key ID 1192 * @param roleId the role ID 1193 * @param viewActionId the view action ID 1194 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1195 * @return the previous, current, and next resource permission 1196 * @throws NoSuchResourcePermissionException if a resource permission with the primary key could not be found 1197 */ 1198 public ResourcePermission[] findByC_N_S_P_R_V_PrevAndNext( 1199 long resourcePermissionId, long companyId, java.lang.String name, 1200 int scope, long primKeyId, long roleId, boolean viewActionId, 1201 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 1202 throws NoSuchResourcePermissionException; 1203 1204 /** 1205 * Returns all the resource permissions where companyId = ? and name = ? and scope = ? and primKeyId = ? and roleId = any ? and viewActionId = ?. 1206 * 1207 * <p> 1208 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 1209 * </p> 1210 * 1211 * @param companyId the company ID 1212 * @param name the name 1213 * @param scope the scope 1214 * @param primKeyId the prim key ID 1215 * @param roleIds the role IDs 1216 * @param viewActionId the view action ID 1217 * @return the matching resource permissions 1218 */ 1219 public java.util.List<ResourcePermission> findByC_N_S_P_R_V( 1220 long companyId, java.lang.String name, int scope, long primKeyId, 1221 long[] roleIds, boolean viewActionId); 1222 1223 /** 1224 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKeyId = ? and roleId = any ? and viewActionId = ?. 1225 * 1226 * <p> 1227 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 1228 * </p> 1229 * 1230 * @param companyId the company ID 1231 * @param name the name 1232 * @param scope the scope 1233 * @param primKeyId the prim key ID 1234 * @param roleIds the role IDs 1235 * @param viewActionId the view action ID 1236 * @param start the lower bound of the range of resource permissions 1237 * @param end the upper bound of the range of resource permissions (not inclusive) 1238 * @return the range of matching resource permissions 1239 */ 1240 public java.util.List<ResourcePermission> findByC_N_S_P_R_V( 1241 long companyId, java.lang.String name, int scope, long primKeyId, 1242 long[] roleIds, boolean viewActionId, int start, int end); 1243 1244 /** 1245 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKeyId = ? and roleId = any ? and viewActionId = ?. 1246 * 1247 * <p> 1248 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 1249 * </p> 1250 * 1251 * @param companyId the company ID 1252 * @param name the name 1253 * @param scope the scope 1254 * @param primKeyId the prim key ID 1255 * @param roleIds the role IDs 1256 * @param viewActionId the view action ID 1257 * @param start the lower bound of the range of resource permissions 1258 * @param end the upper bound of the range of resource permissions (not inclusive) 1259 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1260 * @return the ordered range of matching resource permissions 1261 */ 1262 public java.util.List<ResourcePermission> findByC_N_S_P_R_V( 1263 long companyId, java.lang.String name, int scope, long primKeyId, 1264 long[] roleIds, boolean viewActionId, int start, int end, 1265 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 1266 1267 /** 1268 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKeyId = ? and roleId = ? and viewActionId = ?, optionally using the finder cache. 1269 * 1270 * <p> 1271 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 1272 * </p> 1273 * 1274 * @param companyId the company ID 1275 * @param name the name 1276 * @param scope the scope 1277 * @param primKeyId the prim key ID 1278 * @param roleId the role ID 1279 * @param viewActionId the view action ID 1280 * @param start the lower bound of the range of resource permissions 1281 * @param end the upper bound of the range of resource permissions (not inclusive) 1282 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1283 * @param retrieveFromCache whether to retrieve from the finder cache 1284 * @return the ordered range of matching resource permissions 1285 */ 1286 public java.util.List<ResourcePermission> findByC_N_S_P_R_V( 1287 long companyId, java.lang.String name, int scope, long primKeyId, 1288 long[] roleIds, boolean viewActionId, int start, int end, 1289 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator, 1290 boolean retrieveFromCache); 1291 1292 /** 1293 * Removes all the resource permissions where companyId = ? and name = ? and scope = ? and primKeyId = ? and roleId = ? and viewActionId = ? from the database. 1294 * 1295 * @param companyId the company ID 1296 * @param name the name 1297 * @param scope the scope 1298 * @param primKeyId the prim key ID 1299 * @param roleId the role ID 1300 * @param viewActionId the view action ID 1301 */ 1302 public void removeByC_N_S_P_R_V(long companyId, java.lang.String name, 1303 int scope, long primKeyId, long roleId, boolean viewActionId); 1304 1305 /** 1306 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKeyId = ? and roleId = ? and viewActionId = ?. 1307 * 1308 * @param companyId the company ID 1309 * @param name the name 1310 * @param scope the scope 1311 * @param primKeyId the prim key ID 1312 * @param roleId the role ID 1313 * @param viewActionId the view action ID 1314 * @return the number of matching resource permissions 1315 */ 1316 public int countByC_N_S_P_R_V(long companyId, java.lang.String name, 1317 int scope, long primKeyId, long roleId, boolean viewActionId); 1318 1319 /** 1320 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKeyId = ? and roleId = any ? and viewActionId = ?. 1321 * 1322 * @param companyId the company ID 1323 * @param name the name 1324 * @param scope the scope 1325 * @param primKeyId the prim key ID 1326 * @param roleIds the role IDs 1327 * @param viewActionId the view action ID 1328 * @return the number of matching resource permissions 1329 */ 1330 public int countByC_N_S_P_R_V(long companyId, java.lang.String name, 1331 int scope, long primKeyId, long[] roleIds, boolean viewActionId); 1332 1333 /** 1334 * Caches the resource permission in the entity cache if it is enabled. 1335 * 1336 * @param resourcePermission the resource permission 1337 */ 1338 public void cacheResult(ResourcePermission resourcePermission); 1339 1340 /** 1341 * Caches the resource permissions in the entity cache if it is enabled. 1342 * 1343 * @param resourcePermissions the resource permissions 1344 */ 1345 public void cacheResult( 1346 java.util.List<ResourcePermission> resourcePermissions); 1347 1348 /** 1349 * Creates a new resource permission with the primary key. Does not add the resource permission to the database. 1350 * 1351 * @param resourcePermissionId the primary key for the new resource permission 1352 * @return the new resource permission 1353 */ 1354 public ResourcePermission create(long resourcePermissionId); 1355 1356 /** 1357 * Removes the resource permission with the primary key from the database. Also notifies the appropriate model listeners. 1358 * 1359 * @param resourcePermissionId the primary key of the resource permission 1360 * @return the resource permission that was removed 1361 * @throws NoSuchResourcePermissionException if a resource permission with the primary key could not be found 1362 */ 1363 public ResourcePermission remove(long resourcePermissionId) 1364 throws NoSuchResourcePermissionException; 1365 1366 public ResourcePermission updateImpl(ResourcePermission resourcePermission); 1367 1368 /** 1369 * Returns the resource permission with the primary key or throws a {@link NoSuchResourcePermissionException} if it could not be found. 1370 * 1371 * @param resourcePermissionId the primary key of the resource permission 1372 * @return the resource permission 1373 * @throws NoSuchResourcePermissionException if a resource permission with the primary key could not be found 1374 */ 1375 public ResourcePermission findByPrimaryKey(long resourcePermissionId) 1376 throws NoSuchResourcePermissionException; 1377 1378 /** 1379 * Returns the resource permission with the primary key or returns <code>null</code> if it could not be found. 1380 * 1381 * @param resourcePermissionId the primary key of the resource permission 1382 * @return the resource permission, or <code>null</code> if a resource permission with the primary key could not be found 1383 */ 1384 public ResourcePermission fetchByPrimaryKey(long resourcePermissionId); 1385 1386 @Override 1387 public java.util.Map<java.io.Serializable, ResourcePermission> fetchByPrimaryKeys( 1388 java.util.Set<java.io.Serializable> primaryKeys); 1389 1390 /** 1391 * Returns all the resource permissions. 1392 * 1393 * @return the resource permissions 1394 */ 1395 public java.util.List<ResourcePermission> findAll(); 1396 1397 /** 1398 * Returns a range of all the resource permissions. 1399 * 1400 * <p> 1401 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 1402 * </p> 1403 * 1404 * @param start the lower bound of the range of resource permissions 1405 * @param end the upper bound of the range of resource permissions (not inclusive) 1406 * @return the range of resource permissions 1407 */ 1408 public java.util.List<ResourcePermission> findAll(int start, int end); 1409 1410 /** 1411 * Returns an ordered range of all the resource permissions. 1412 * 1413 * <p> 1414 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 1415 * </p> 1416 * 1417 * @param start the lower bound of the range of resource permissions 1418 * @param end the upper bound of the range of resource permissions (not inclusive) 1419 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1420 * @return the ordered range of resource permissions 1421 */ 1422 public java.util.List<ResourcePermission> findAll(int start, int end, 1423 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 1424 1425 /** 1426 * Returns an ordered range of all the resource permissions. 1427 * 1428 * <p> 1429 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 1430 * </p> 1431 * 1432 * @param start the lower bound of the range of resource permissions 1433 * @param end the upper bound of the range of resource permissions (not inclusive) 1434 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1435 * @param retrieveFromCache whether to retrieve from the finder cache 1436 * @return the ordered range of resource permissions 1437 */ 1438 public java.util.List<ResourcePermission> findAll(int start, int end, 1439 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator, 1440 boolean retrieveFromCache); 1441 1442 /** 1443 * Removes all the resource permissions from the database. 1444 */ 1445 public void removeAll(); 1446 1447 /** 1448 * Returns the number of resource permissions. 1449 * 1450 * @return the number of resource permissions 1451 */ 1452 public int countAll(); 1453 }