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.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.model.ResourcePermission; 020 021 /** 022 * The persistence interface for the resource permission service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see ResourcePermissionPersistenceImpl 030 * @see ResourcePermissionUtil 031 * @generated 032 */ 033 @ProviderType 034 public interface ResourcePermissionPersistence extends BasePersistence<ResourcePermission> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * 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. 039 */ 040 041 /** 042 * Returns all the resource permissions where scope = ?. 043 * 044 * @param scope the scope 045 * @return the matching resource permissions 046 */ 047 public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope( 048 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourcePermissionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 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<com.liferay.portal.model.ResourcePermission> findByScope( 063 int scope, int start, 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourcePermissionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 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<com.liferay.portal.model.ResourcePermission> findByScope( 079 int scope, int start, int end, 080 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator); 081 082 /** 083 * Returns the first resource permission in the ordered set where scope = ?. 084 * 085 * @param scope the scope 086 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 087 * @return the first matching resource permission 088 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 089 */ 090 public com.liferay.portal.model.ResourcePermission findByScope_First( 091 int scope, 092 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator) 093 throws com.liferay.portal.NoSuchResourcePermissionException; 094 095 /** 096 * Returns the first resource permission in the ordered set where scope = ?. 097 * 098 * @param scope the scope 099 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 100 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 101 */ 102 public com.liferay.portal.model.ResourcePermission fetchByScope_First( 103 int scope, 104 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator); 105 106 /** 107 * Returns the last resource permission in the ordered set where scope = ?. 108 * 109 * @param scope the scope 110 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 111 * @return the last matching resource permission 112 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 113 */ 114 public com.liferay.portal.model.ResourcePermission findByScope_Last( 115 int scope, 116 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator) 117 throws com.liferay.portal.NoSuchResourcePermissionException; 118 119 /** 120 * Returns the last resource permission in the ordered set where scope = ?. 121 * 122 * @param scope the scope 123 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 124 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 125 */ 126 public com.liferay.portal.model.ResourcePermission fetchByScope_Last( 127 int scope, 128 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator); 129 130 /** 131 * Returns the resource permissions before and after the current resource permission in the ordered set where scope = ?. 132 * 133 * @param resourcePermissionId the primary key of the current resource permission 134 * @param scope the scope 135 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 136 * @return the previous, current, and next resource permission 137 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 138 */ 139 public com.liferay.portal.model.ResourcePermission[] findByScope_PrevAndNext( 140 long resourcePermissionId, int scope, 141 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator) 142 throws com.liferay.portal.NoSuchResourcePermissionException; 143 144 /** 145 * Returns all the resource permissions where scope = any ?. 146 * 147 * <p> 148 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourcePermissionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 149 * </p> 150 * 151 * @param scopes the scopes 152 * @return the matching resource permissions 153 */ 154 public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope( 155 int[] scopes); 156 157 /** 158 * Returns a range of all the resource permissions where scope = any ?. 159 * 160 * <p> 161 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourcePermissionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 162 * </p> 163 * 164 * @param scopes the scopes 165 * @param start the lower bound of the range of resource permissions 166 * @param end the upper bound of the range of resource permissions (not inclusive) 167 * @return the range of matching resource permissions 168 */ 169 public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope( 170 int[] scopes, int start, int end); 171 172 /** 173 * Returns an ordered range of all the resource permissions where scope = any ?. 174 * 175 * <p> 176 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourcePermissionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 177 * </p> 178 * 179 * @param scopes the scopes 180 * @param start the lower bound of the range of resource permissions 181 * @param end the upper bound of the range of resource permissions (not inclusive) 182 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 183 * @return the ordered range of matching resource permissions 184 */ 185 public java.util.List<com.liferay.portal.model.ResourcePermission> findByScope( 186 int[] scopes, int start, int end, 187 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator); 188 189 /** 190 * Removes all the resource permissions where scope = ? from the database. 191 * 192 * @param scope the scope 193 */ 194 public void removeByScope(int scope); 195 196 /** 197 * Returns the number of resource permissions where scope = ?. 198 * 199 * @param scope the scope 200 * @return the number of matching resource permissions 201 */ 202 public int countByScope(int scope); 203 204 /** 205 * Returns the number of resource permissions where scope = any ?. 206 * 207 * @param scopes the scopes 208 * @return the number of matching resource permissions 209 */ 210 public int countByScope(int[] scopes); 211 212 /** 213 * Returns all the resource permissions where roleId = ?. 214 * 215 * @param roleId the role ID 216 * @return the matching resource permissions 217 */ 218 public java.util.List<com.liferay.portal.model.ResourcePermission> findByRoleId( 219 long roleId); 220 221 /** 222 * Returns a range of all the resource permissions where roleId = ?. 223 * 224 * <p> 225 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourcePermissionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 226 * </p> 227 * 228 * @param roleId the role ID 229 * @param start the lower bound of the range of resource permissions 230 * @param end the upper bound of the range of resource permissions (not inclusive) 231 * @return the range of matching resource permissions 232 */ 233 public java.util.List<com.liferay.portal.model.ResourcePermission> findByRoleId( 234 long roleId, int start, int end); 235 236 /** 237 * Returns an ordered range of all the resource permissions where roleId = ?. 238 * 239 * <p> 240 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourcePermissionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 241 * </p> 242 * 243 * @param roleId the role ID 244 * @param start the lower bound of the range of resource permissions 245 * @param end the upper bound of the range of resource permissions (not inclusive) 246 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 247 * @return the ordered range of matching resource permissions 248 */ 249 public java.util.List<com.liferay.portal.model.ResourcePermission> findByRoleId( 250 long roleId, int start, int end, 251 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator); 252 253 /** 254 * Returns the first resource permission in the ordered set where roleId = ?. 255 * 256 * @param roleId the role ID 257 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 258 * @return the first matching resource permission 259 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 260 */ 261 public com.liferay.portal.model.ResourcePermission findByRoleId_First( 262 long roleId, 263 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator) 264 throws com.liferay.portal.NoSuchResourcePermissionException; 265 266 /** 267 * Returns the first resource permission in the ordered set where roleId = ?. 268 * 269 * @param roleId the role ID 270 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 271 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 272 */ 273 public com.liferay.portal.model.ResourcePermission fetchByRoleId_First( 274 long roleId, 275 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator); 276 277 /** 278 * Returns the last resource permission in the ordered set where roleId = ?. 279 * 280 * @param roleId the role ID 281 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 282 * @return the last matching resource permission 283 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 284 */ 285 public com.liferay.portal.model.ResourcePermission findByRoleId_Last( 286 long roleId, 287 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator) 288 throws com.liferay.portal.NoSuchResourcePermissionException; 289 290 /** 291 * Returns the last resource permission in the ordered set where roleId = ?. 292 * 293 * @param roleId the role ID 294 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 295 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 296 */ 297 public com.liferay.portal.model.ResourcePermission fetchByRoleId_Last( 298 long roleId, 299 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator); 300 301 /** 302 * Returns the resource permissions before and after the current resource permission in the ordered set where roleId = ?. 303 * 304 * @param resourcePermissionId the primary key of the current resource permission 305 * @param roleId the role ID 306 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 307 * @return the previous, current, and next resource permission 308 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 309 */ 310 public com.liferay.portal.model.ResourcePermission[] findByRoleId_PrevAndNext( 311 long resourcePermissionId, long roleId, 312 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator) 313 throws com.liferay.portal.NoSuchResourcePermissionException; 314 315 /** 316 * Removes all the resource permissions where roleId = ? from the database. 317 * 318 * @param roleId the role ID 319 */ 320 public void removeByRoleId(long roleId); 321 322 /** 323 * Returns the number of resource permissions where roleId = ?. 324 * 325 * @param roleId the role ID 326 * @return the number of matching resource permissions 327 */ 328 public int countByRoleId(long roleId); 329 330 /** 331 * Returns all the resource permissions where companyId = ? and primKey LIKE ?. 332 * 333 * @param companyId the company ID 334 * @param primKey the prim key 335 * @return the matching resource permissions 336 */ 337 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_LikeP( 338 long companyId, java.lang.String primKey); 339 340 /** 341 * Returns a range of all the resource permissions where companyId = ? and primKey LIKE ?. 342 * 343 * <p> 344 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourcePermissionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 345 * </p> 346 * 347 * @param companyId the company ID 348 * @param primKey the prim key 349 * @param start the lower bound of the range of resource permissions 350 * @param end the upper bound of the range of resource permissions (not inclusive) 351 * @return the range of matching resource permissions 352 */ 353 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_LikeP( 354 long companyId, java.lang.String primKey, int start, int end); 355 356 /** 357 * Returns an ordered range of all the resource permissions where companyId = ? and primKey LIKE ?. 358 * 359 * <p> 360 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourcePermissionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 361 * </p> 362 * 363 * @param companyId the company ID 364 * @param primKey the prim key 365 * @param start the lower bound of the range of resource permissions 366 * @param end the upper bound of the range of resource permissions (not inclusive) 367 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 368 * @return the ordered range of matching resource permissions 369 */ 370 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_LikeP( 371 long companyId, java.lang.String primKey, int start, int end, 372 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator); 373 374 /** 375 * Returns the first resource permission in the ordered set where companyId = ? and primKey LIKE ?. 376 * 377 * @param companyId the company ID 378 * @param primKey the prim key 379 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 380 * @return the first matching resource permission 381 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 382 */ 383 public com.liferay.portal.model.ResourcePermission findByC_LikeP_First( 384 long companyId, java.lang.String primKey, 385 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator) 386 throws com.liferay.portal.NoSuchResourcePermissionException; 387 388 /** 389 * Returns the first resource permission in the ordered set where companyId = ? and primKey LIKE ?. 390 * 391 * @param companyId the company ID 392 * @param primKey the prim key 393 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 394 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 395 */ 396 public com.liferay.portal.model.ResourcePermission fetchByC_LikeP_First( 397 long companyId, java.lang.String primKey, 398 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator); 399 400 /** 401 * Returns the last resource permission in the ordered set where companyId = ? and primKey LIKE ?. 402 * 403 * @param companyId the company ID 404 * @param primKey the prim key 405 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 406 * @return the last matching resource permission 407 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 408 */ 409 public com.liferay.portal.model.ResourcePermission findByC_LikeP_Last( 410 long companyId, java.lang.String primKey, 411 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator) 412 throws com.liferay.portal.NoSuchResourcePermissionException; 413 414 /** 415 * Returns the last resource permission in the ordered set where companyId = ? and primKey LIKE ?. 416 * 417 * @param companyId the company ID 418 * @param primKey the prim key 419 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 420 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 421 */ 422 public com.liferay.portal.model.ResourcePermission fetchByC_LikeP_Last( 423 long companyId, java.lang.String primKey, 424 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator); 425 426 /** 427 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and primKey LIKE ?. 428 * 429 * @param resourcePermissionId the primary key of the current resource permission 430 * @param companyId the company ID 431 * @param primKey the prim key 432 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 433 * @return the previous, current, and next resource permission 434 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 435 */ 436 public com.liferay.portal.model.ResourcePermission[] findByC_LikeP_PrevAndNext( 437 long resourcePermissionId, long companyId, java.lang.String primKey, 438 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator) 439 throws com.liferay.portal.NoSuchResourcePermissionException; 440 441 /** 442 * Removes all the resource permissions where companyId = ? and primKey LIKE ? from the database. 443 * 444 * @param companyId the company ID 445 * @param primKey the prim key 446 */ 447 public void removeByC_LikeP(long companyId, java.lang.String primKey); 448 449 /** 450 * Returns the number of resource permissions where companyId = ? and primKey LIKE ?. 451 * 452 * @param companyId the company ID 453 * @param primKey the prim key 454 * @return the number of matching resource permissions 455 */ 456 public int countByC_LikeP(long companyId, java.lang.String primKey); 457 458 /** 459 * Returns all the resource permissions where companyId = ? and name = ? and scope = ?. 460 * 461 * @param companyId the company ID 462 * @param name the name 463 * @param scope the scope 464 * @return the matching resource permissions 465 */ 466 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S( 467 long companyId, java.lang.String name, int scope); 468 469 /** 470 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ?. 471 * 472 * <p> 473 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourcePermissionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 474 * </p> 475 * 476 * @param companyId the company ID 477 * @param name the name 478 * @param scope the scope 479 * @param start the lower bound of the range of resource permissions 480 * @param end the upper bound of the range of resource permissions (not inclusive) 481 * @return the range of matching resource permissions 482 */ 483 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S( 484 long companyId, java.lang.String name, int scope, int start, int end); 485 486 /** 487 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ?. 488 * 489 * <p> 490 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourcePermissionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 491 * </p> 492 * 493 * @param companyId the company ID 494 * @param name the name 495 * @param scope the scope 496 * @param start the lower bound of the range of resource permissions 497 * @param end the upper bound of the range of resource permissions (not inclusive) 498 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 499 * @return the ordered range of matching resource permissions 500 */ 501 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S( 502 long companyId, java.lang.String name, int scope, int start, int end, 503 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator); 504 505 /** 506 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 507 * 508 * @param companyId the company ID 509 * @param name the name 510 * @param scope the scope 511 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 512 * @return the first matching resource permission 513 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 514 */ 515 public com.liferay.portal.model.ResourcePermission findByC_N_S_First( 516 long companyId, java.lang.String name, int scope, 517 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator) 518 throws com.liferay.portal.NoSuchResourcePermissionException; 519 520 /** 521 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 522 * 523 * @param companyId the company ID 524 * @param name the name 525 * @param scope the scope 526 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 527 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 528 */ 529 public com.liferay.portal.model.ResourcePermission fetchByC_N_S_First( 530 long companyId, java.lang.String name, int scope, 531 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator); 532 533 /** 534 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 535 * 536 * @param companyId the company ID 537 * @param name the name 538 * @param scope the scope 539 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 540 * @return the last matching resource permission 541 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 542 */ 543 public com.liferay.portal.model.ResourcePermission findByC_N_S_Last( 544 long companyId, java.lang.String name, int scope, 545 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator) 546 throws com.liferay.portal.NoSuchResourcePermissionException; 547 548 /** 549 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 550 * 551 * @param companyId the company ID 552 * @param name the name 553 * @param scope the scope 554 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 555 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 556 */ 557 public com.liferay.portal.model.ResourcePermission fetchByC_N_S_Last( 558 long companyId, java.lang.String name, int scope, 559 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator); 560 561 /** 562 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 563 * 564 * @param resourcePermissionId the primary key of the current resource permission 565 * @param companyId the company ID 566 * @param name the name 567 * @param scope the scope 568 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 569 * @return the previous, current, and next resource permission 570 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 571 */ 572 public com.liferay.portal.model.ResourcePermission[] findByC_N_S_PrevAndNext( 573 long resourcePermissionId, long companyId, java.lang.String name, 574 int scope, 575 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator) 576 throws com.liferay.portal.NoSuchResourcePermissionException; 577 578 /** 579 * Removes all the resource permissions where companyId = ? and name = ? and scope = ? from the database. 580 * 581 * @param companyId the company ID 582 * @param name the name 583 * @param scope the scope 584 */ 585 public void removeByC_N_S(long companyId, java.lang.String name, int scope); 586 587 /** 588 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ?. 589 * 590 * @param companyId the company ID 591 * @param name the name 592 * @param scope the scope 593 * @return the number of matching resource permissions 594 */ 595 public int countByC_N_S(long companyId, java.lang.String name, int scope); 596 597 /** 598 * Returns all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 599 * 600 * @param companyId the company ID 601 * @param name the name 602 * @param scope the scope 603 * @param primKey the prim key 604 * @return the matching resource permissions 605 */ 606 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P( 607 long companyId, java.lang.String name, int scope, 608 java.lang.String primKey); 609 610 /** 611 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 612 * 613 * <p> 614 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourcePermissionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 615 * </p> 616 * 617 * @param companyId the company ID 618 * @param name the name 619 * @param scope the scope 620 * @param primKey the prim key 621 * @param start the lower bound of the range of resource permissions 622 * @param end the upper bound of the range of resource permissions (not inclusive) 623 * @return the range of matching resource permissions 624 */ 625 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P( 626 long companyId, java.lang.String name, int scope, 627 java.lang.String primKey, int start, int end); 628 629 /** 630 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 631 * 632 * <p> 633 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourcePermissionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 634 * </p> 635 * 636 * @param companyId the company ID 637 * @param name the name 638 * @param scope the scope 639 * @param primKey the prim key 640 * @param start the lower bound of the range of resource permissions 641 * @param end the upper bound of the range of resource permissions (not inclusive) 642 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 643 * @return the ordered range of matching resource permissions 644 */ 645 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P( 646 long companyId, java.lang.String name, int scope, 647 java.lang.String primKey, int start, int end, 648 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator); 649 650 /** 651 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 652 * 653 * @param companyId the company ID 654 * @param name the name 655 * @param scope the scope 656 * @param primKey the prim key 657 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 658 * @return the first matching resource permission 659 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 660 */ 661 public com.liferay.portal.model.ResourcePermission findByC_N_S_P_First( 662 long companyId, java.lang.String name, int scope, 663 java.lang.String primKey, 664 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator) 665 throws com.liferay.portal.NoSuchResourcePermissionException; 666 667 /** 668 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 669 * 670 * @param companyId the company ID 671 * @param name the name 672 * @param scope the scope 673 * @param primKey the prim key 674 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 675 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 676 */ 677 public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_First( 678 long companyId, java.lang.String name, int scope, 679 java.lang.String primKey, 680 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator); 681 682 /** 683 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 684 * 685 * @param companyId the company ID 686 * @param name the name 687 * @param scope the scope 688 * @param primKey the prim key 689 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 690 * @return the last matching resource permission 691 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 692 */ 693 public com.liferay.portal.model.ResourcePermission findByC_N_S_P_Last( 694 long companyId, java.lang.String name, int scope, 695 java.lang.String primKey, 696 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator) 697 throws com.liferay.portal.NoSuchResourcePermissionException; 698 699 /** 700 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 701 * 702 * @param companyId the company ID 703 * @param name the name 704 * @param scope the scope 705 * @param primKey the prim key 706 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 707 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 708 */ 709 public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_Last( 710 long companyId, java.lang.String name, int scope, 711 java.lang.String primKey, 712 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator); 713 714 /** 715 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 716 * 717 * @param resourcePermissionId the primary key of the current resource permission 718 * @param companyId the company ID 719 * @param name the name 720 * @param scope the scope 721 * @param primKey the prim key 722 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 723 * @return the previous, current, and next resource permission 724 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 725 */ 726 public com.liferay.portal.model.ResourcePermission[] findByC_N_S_P_PrevAndNext( 727 long resourcePermissionId, long companyId, java.lang.String name, 728 int scope, java.lang.String primKey, 729 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator) 730 throws com.liferay.portal.NoSuchResourcePermissionException; 731 732 /** 733 * Removes all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? from the database. 734 * 735 * @param companyId the company ID 736 * @param name the name 737 * @param scope the scope 738 * @param primKey the prim key 739 */ 740 public void removeByC_N_S_P(long companyId, java.lang.String name, 741 int scope, java.lang.String primKey); 742 743 /** 744 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 745 * 746 * @param companyId the company ID 747 * @param name the name 748 * @param scope the scope 749 * @param primKey the prim key 750 * @return the number of matching resource permissions 751 */ 752 public int countByC_N_S_P(long companyId, java.lang.String name, int scope, 753 java.lang.String primKey); 754 755 /** 756 * Returns all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 757 * 758 * <p> 759 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourcePermissionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 760 * </p> 761 * 762 * @param companyId the company ID 763 * @param name the name 764 * @param scope the scope 765 * @param primKey the prim key 766 * @param roleIds the role IDs 767 * @return the matching resource permissions 768 */ 769 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R( 770 long companyId, java.lang.String name, int scope, 771 java.lang.String primKey, long[] roleIds); 772 773 /** 774 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 775 * 776 * <p> 777 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourcePermissionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 778 * </p> 779 * 780 * @param companyId the company ID 781 * @param name the name 782 * @param scope the scope 783 * @param primKey the prim key 784 * @param roleIds the role IDs 785 * @param start the lower bound of the range of resource permissions 786 * @param end the upper bound of the range of resource permissions (not inclusive) 787 * @return the range of matching resource permissions 788 */ 789 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R( 790 long companyId, java.lang.String name, int scope, 791 java.lang.String primKey, long[] roleIds, int start, int end); 792 793 /** 794 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 795 * 796 * <p> 797 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourcePermissionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 798 * </p> 799 * 800 * @param companyId the company ID 801 * @param name the name 802 * @param scope the scope 803 * @param primKey the prim key 804 * @param roleIds the role IDs 805 * @param start the lower bound of the range of resource permissions 806 * @param end the upper bound of the range of resource permissions (not inclusive) 807 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 808 * @return the ordered range of matching resource permissions 809 */ 810 public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_N_S_P_R( 811 long companyId, java.lang.String name, int scope, 812 java.lang.String primKey, long[] roleIds, int start, int end, 813 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator); 814 815 /** 816 * Returns the resource permission where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? or throws a {@link com.liferay.portal.NoSuchResourcePermissionException} if it could not be found. 817 * 818 * @param companyId the company ID 819 * @param name the name 820 * @param scope the scope 821 * @param primKey the prim key 822 * @param roleId the role ID 823 * @return the matching resource permission 824 * @throws com.liferay.portal.NoSuchResourcePermissionException if a matching resource permission could not be found 825 */ 826 public com.liferay.portal.model.ResourcePermission findByC_N_S_P_R( 827 long companyId, java.lang.String name, int scope, 828 java.lang.String primKey, long roleId) 829 throws com.liferay.portal.NoSuchResourcePermissionException; 830 831 /** 832 * 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. 833 * 834 * @param companyId the company ID 835 * @param name the name 836 * @param scope the scope 837 * @param primKey the prim key 838 * @param roleId the role ID 839 * @return the matching resource permission, or <code>null</code> if a matching resource permission could not be found 840 */ 841 public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R( 842 long companyId, java.lang.String name, int scope, 843 java.lang.String primKey, long roleId); 844 845 /** 846 * 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. 847 * 848 * @param companyId the company ID 849 * @param name the name 850 * @param scope the scope 851 * @param primKey the prim key 852 * @param roleId the role ID 853 * @param retrieveFromCache whether to use the finder cache 854 * @return the matching resource permission, or <code>null</code> if a matching resource permission could not be found 855 */ 856 public com.liferay.portal.model.ResourcePermission fetchByC_N_S_P_R( 857 long companyId, java.lang.String name, int scope, 858 java.lang.String primKey, long roleId, boolean retrieveFromCache); 859 860 /** 861 * Removes the resource permission where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? from the database. 862 * 863 * @param companyId the company ID 864 * @param name the name 865 * @param scope the scope 866 * @param primKey the prim key 867 * @param roleId the role ID 868 * @return the resource permission that was removed 869 */ 870 public com.liferay.portal.model.ResourcePermission removeByC_N_S_P_R( 871 long companyId, java.lang.String name, int scope, 872 java.lang.String primKey, long roleId) 873 throws com.liferay.portal.NoSuchResourcePermissionException; 874 875 /** 876 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ?. 877 * 878 * @param companyId the company ID 879 * @param name the name 880 * @param scope the scope 881 * @param primKey the prim key 882 * @param roleId the role ID 883 * @return the number of matching resource permissions 884 */ 885 public int countByC_N_S_P_R(long companyId, java.lang.String name, 886 int scope, java.lang.String primKey, long roleId); 887 888 /** 889 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 890 * 891 * @param companyId the company ID 892 * @param name the name 893 * @param scope the scope 894 * @param primKey the prim key 895 * @param roleIds the role IDs 896 * @return the number of matching resource permissions 897 */ 898 public int countByC_N_S_P_R(long companyId, java.lang.String name, 899 int scope, java.lang.String primKey, long[] roleIds); 900 901 /** 902 * Caches the resource permission in the entity cache if it is enabled. 903 * 904 * @param resourcePermission the resource permission 905 */ 906 public void cacheResult( 907 com.liferay.portal.model.ResourcePermission resourcePermission); 908 909 /** 910 * Caches the resource permissions in the entity cache if it is enabled. 911 * 912 * @param resourcePermissions the resource permissions 913 */ 914 public void cacheResult( 915 java.util.List<com.liferay.portal.model.ResourcePermission> resourcePermissions); 916 917 /** 918 * Creates a new resource permission with the primary key. Does not add the resource permission to the database. 919 * 920 * @param resourcePermissionId the primary key for the new resource permission 921 * @return the new resource permission 922 */ 923 public com.liferay.portal.model.ResourcePermission create( 924 long resourcePermissionId); 925 926 /** 927 * Removes the resource permission with the primary key from the database. Also notifies the appropriate model listeners. 928 * 929 * @param resourcePermissionId the primary key of the resource permission 930 * @return the resource permission that was removed 931 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 932 */ 933 public com.liferay.portal.model.ResourcePermission remove( 934 long resourcePermissionId) 935 throws com.liferay.portal.NoSuchResourcePermissionException; 936 937 public com.liferay.portal.model.ResourcePermission updateImpl( 938 com.liferay.portal.model.ResourcePermission resourcePermission); 939 940 /** 941 * Returns the resource permission with the primary key or throws a {@link com.liferay.portal.NoSuchResourcePermissionException} if it could not be found. 942 * 943 * @param resourcePermissionId the primary key of the resource permission 944 * @return the resource permission 945 * @throws com.liferay.portal.NoSuchResourcePermissionException if a resource permission with the primary key could not be found 946 */ 947 public com.liferay.portal.model.ResourcePermission findByPrimaryKey( 948 long resourcePermissionId) 949 throws com.liferay.portal.NoSuchResourcePermissionException; 950 951 /** 952 * Returns the resource permission with the primary key or returns <code>null</code> if it could not be found. 953 * 954 * @param resourcePermissionId the primary key of the resource permission 955 * @return the resource permission, or <code>null</code> if a resource permission with the primary key could not be found 956 */ 957 public com.liferay.portal.model.ResourcePermission fetchByPrimaryKey( 958 long resourcePermissionId); 959 960 @Override 961 public java.util.Map<java.io.Serializable, com.liferay.portal.model.ResourcePermission> fetchByPrimaryKeys( 962 java.util.Set<java.io.Serializable> primaryKeys); 963 964 /** 965 * Returns all the resource permissions. 966 * 967 * @return the resource permissions 968 */ 969 public java.util.List<com.liferay.portal.model.ResourcePermission> findAll(); 970 971 /** 972 * Returns a range of all the resource permissions. 973 * 974 * <p> 975 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourcePermissionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 976 * </p> 977 * 978 * @param start the lower bound of the range of resource permissions 979 * @param end the upper bound of the range of resource permissions (not inclusive) 980 * @return the range of resource permissions 981 */ 982 public java.util.List<com.liferay.portal.model.ResourcePermission> findAll( 983 int start, int end); 984 985 /** 986 * Returns an ordered range of all the resource permissions. 987 * 988 * <p> 989 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourcePermissionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 990 * </p> 991 * 992 * @param start the lower bound of the range of resource permissions 993 * @param end the upper bound of the range of resource permissions (not inclusive) 994 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 995 * @return the ordered range of resource permissions 996 */ 997 public java.util.List<com.liferay.portal.model.ResourcePermission> findAll( 998 int start, int end, 999 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourcePermission> orderByComparator); 1000 1001 /** 1002 * Removes all the resource permissions from the database. 1003 */ 1004 public void removeAll(); 1005 1006 /** 1007 * Returns the number of resource permissions. 1008 * 1009 * @return the number of resource permissions 1010 */ 1011 public int countAll(); 1012 }