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.ResourceTypePermission; 020 021 /** 022 * The persistence interface for the resource type 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 ResourceTypePermissionPersistenceImpl 030 * @see ResourceTypePermissionUtil 031 * @generated 032 */ 033 @ProviderType 034 public interface ResourceTypePermissionPersistence extends BasePersistence<ResourceTypePermission> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * Never modify or reference this interface directly. Always use {@link ResourceTypePermissionUtil} to access the resource type permission persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 039 */ 040 041 /** 042 * Returns all the resource type permissions where roleId = ?. 043 * 044 * @param roleId the role ID 045 * @return the matching resource type permissions 046 */ 047 public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByRoleId( 048 long roleId); 049 050 /** 051 * Returns a range of all the resource type permissions where roleId = ?. 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.ResourceTypePermissionModelImpl}. 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 roleId the role ID 058 * @param start the lower bound of the range of resource type permissions 059 * @param end the upper bound of the range of resource type permissions (not inclusive) 060 * @return the range of matching resource type permissions 061 */ 062 public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByRoleId( 063 long roleId, int start, int end); 064 065 /** 066 * Returns an ordered range of all the resource type permissions where roleId = ?. 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.ResourceTypePermissionModelImpl}. 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 roleId the role ID 073 * @param start the lower bound of the range of resource type permissions 074 * @param end the upper bound of the range of resource type 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 type permissions 077 */ 078 public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByRoleId( 079 long roleId, int start, int end, 080 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceTypePermission> orderByComparator); 081 082 /** 083 * Returns the first resource type permission in the ordered set where roleId = ?. 084 * 085 * @param roleId the role ID 086 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 087 * @return the first matching resource type permission 088 * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found 089 */ 090 public com.liferay.portal.model.ResourceTypePermission findByRoleId_First( 091 long roleId, 092 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceTypePermission> orderByComparator) 093 throws com.liferay.portal.NoSuchResourceTypePermissionException; 094 095 /** 096 * Returns the first resource type permission in the ordered set where roleId = ?. 097 * 098 * @param roleId the role ID 099 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 100 * @return the first matching resource type permission, or <code>null</code> if a matching resource type permission could not be found 101 */ 102 public com.liferay.portal.model.ResourceTypePermission fetchByRoleId_First( 103 long roleId, 104 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceTypePermission> orderByComparator); 105 106 /** 107 * Returns the last resource type permission in the ordered set where roleId = ?. 108 * 109 * @param roleId the role ID 110 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 111 * @return the last matching resource type permission 112 * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found 113 */ 114 public com.liferay.portal.model.ResourceTypePermission findByRoleId_Last( 115 long roleId, 116 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceTypePermission> orderByComparator) 117 throws com.liferay.portal.NoSuchResourceTypePermissionException; 118 119 /** 120 * Returns the last resource type permission in the ordered set where roleId = ?. 121 * 122 * @param roleId the role ID 123 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 124 * @return the last matching resource type permission, or <code>null</code> if a matching resource type permission could not be found 125 */ 126 public com.liferay.portal.model.ResourceTypePermission fetchByRoleId_Last( 127 long roleId, 128 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceTypePermission> orderByComparator); 129 130 /** 131 * Returns the resource type permissions before and after the current resource type permission in the ordered set where roleId = ?. 132 * 133 * @param resourceTypePermissionId the primary key of the current resource type permission 134 * @param roleId the role ID 135 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 136 * @return the previous, current, and next resource type permission 137 * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found 138 */ 139 public com.liferay.portal.model.ResourceTypePermission[] findByRoleId_PrevAndNext( 140 long resourceTypePermissionId, long roleId, 141 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceTypePermission> orderByComparator) 142 throws com.liferay.portal.NoSuchResourceTypePermissionException; 143 144 /** 145 * Removes all the resource type permissions where roleId = ? from the database. 146 * 147 * @param roleId the role ID 148 */ 149 public void removeByRoleId(long roleId); 150 151 /** 152 * Returns the number of resource type permissions where roleId = ?. 153 * 154 * @param roleId the role ID 155 * @return the number of matching resource type permissions 156 */ 157 public int countByRoleId(long roleId); 158 159 /** 160 * Returns all the resource type permissions where companyId = ? and name = ? and roleId = ?. 161 * 162 * @param companyId the company ID 163 * @param name the name 164 * @param roleId the role ID 165 * @return the matching resource type permissions 166 */ 167 public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByC_N_R( 168 long companyId, java.lang.String name, long roleId); 169 170 /** 171 * Returns a range of all the resource type permissions where companyId = ? and name = ? and roleId = ?. 172 * 173 * <p> 174 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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.ResourceTypePermissionModelImpl}. 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. 175 * </p> 176 * 177 * @param companyId the company ID 178 * @param name the name 179 * @param roleId the role ID 180 * @param start the lower bound of the range of resource type permissions 181 * @param end the upper bound of the range of resource type permissions (not inclusive) 182 * @return the range of matching resource type permissions 183 */ 184 public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByC_N_R( 185 long companyId, java.lang.String name, long roleId, int start, int end); 186 187 /** 188 * Returns an ordered range of all the resource type permissions where companyId = ? and name = ? and roleId = ?. 189 * 190 * <p> 191 * 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.ResourceTypePermissionModelImpl}. 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. 192 * </p> 193 * 194 * @param companyId the company ID 195 * @param name the name 196 * @param roleId the role ID 197 * @param start the lower bound of the range of resource type permissions 198 * @param end the upper bound of the range of resource type permissions (not inclusive) 199 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 200 * @return the ordered range of matching resource type permissions 201 */ 202 public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByC_N_R( 203 long companyId, java.lang.String name, long roleId, int start, int end, 204 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceTypePermission> orderByComparator); 205 206 /** 207 * Returns the first resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?. 208 * 209 * @param companyId the company ID 210 * @param name the name 211 * @param roleId the role ID 212 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 213 * @return the first matching resource type permission 214 * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found 215 */ 216 public com.liferay.portal.model.ResourceTypePermission findByC_N_R_First( 217 long companyId, java.lang.String name, long roleId, 218 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceTypePermission> orderByComparator) 219 throws com.liferay.portal.NoSuchResourceTypePermissionException; 220 221 /** 222 * Returns the first resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?. 223 * 224 * @param companyId the company ID 225 * @param name the name 226 * @param roleId the role ID 227 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 228 * @return the first matching resource type permission, or <code>null</code> if a matching resource type permission could not be found 229 */ 230 public com.liferay.portal.model.ResourceTypePermission fetchByC_N_R_First( 231 long companyId, java.lang.String name, long roleId, 232 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceTypePermission> orderByComparator); 233 234 /** 235 * Returns the last resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?. 236 * 237 * @param companyId the company ID 238 * @param name the name 239 * @param roleId the role ID 240 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 241 * @return the last matching resource type permission 242 * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found 243 */ 244 public com.liferay.portal.model.ResourceTypePermission findByC_N_R_Last( 245 long companyId, java.lang.String name, long roleId, 246 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceTypePermission> orderByComparator) 247 throws com.liferay.portal.NoSuchResourceTypePermissionException; 248 249 /** 250 * Returns the last resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?. 251 * 252 * @param companyId the company ID 253 * @param name the name 254 * @param roleId the role ID 255 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 256 * @return the last matching resource type permission, or <code>null</code> if a matching resource type permission could not be found 257 */ 258 public com.liferay.portal.model.ResourceTypePermission fetchByC_N_R_Last( 259 long companyId, java.lang.String name, long roleId, 260 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceTypePermission> orderByComparator); 261 262 /** 263 * Returns the resource type permissions before and after the current resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?. 264 * 265 * @param resourceTypePermissionId the primary key of the current resource type permission 266 * @param companyId the company ID 267 * @param name the name 268 * @param roleId the role ID 269 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 270 * @return the previous, current, and next resource type permission 271 * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found 272 */ 273 public com.liferay.portal.model.ResourceTypePermission[] findByC_N_R_PrevAndNext( 274 long resourceTypePermissionId, long companyId, java.lang.String name, 275 long roleId, 276 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceTypePermission> orderByComparator) 277 throws com.liferay.portal.NoSuchResourceTypePermissionException; 278 279 /** 280 * Removes all the resource type permissions where companyId = ? and name = ? and roleId = ? from the database. 281 * 282 * @param companyId the company ID 283 * @param name the name 284 * @param roleId the role ID 285 */ 286 public void removeByC_N_R(long companyId, java.lang.String name, long roleId); 287 288 /** 289 * Returns the number of resource type permissions where companyId = ? and name = ? and roleId = ?. 290 * 291 * @param companyId the company ID 292 * @param name the name 293 * @param roleId the role ID 294 * @return the number of matching resource type permissions 295 */ 296 public int countByC_N_R(long companyId, java.lang.String name, long roleId); 297 298 /** 299 * Returns the resource type permission where companyId = ? and groupId = ? and name = ? and roleId = ? or throws a {@link com.liferay.portal.NoSuchResourceTypePermissionException} if it could not be found. 300 * 301 * @param companyId the company ID 302 * @param groupId the group ID 303 * @param name the name 304 * @param roleId the role ID 305 * @return the matching resource type permission 306 * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found 307 */ 308 public com.liferay.portal.model.ResourceTypePermission findByC_G_N_R( 309 long companyId, long groupId, java.lang.String name, long roleId) 310 throws com.liferay.portal.NoSuchResourceTypePermissionException; 311 312 /** 313 * Returns the resource type permission where companyId = ? and groupId = ? and name = ? and roleId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 314 * 315 * @param companyId the company ID 316 * @param groupId the group ID 317 * @param name the name 318 * @param roleId the role ID 319 * @return the matching resource type permission, or <code>null</code> if a matching resource type permission could not be found 320 */ 321 public com.liferay.portal.model.ResourceTypePermission fetchByC_G_N_R( 322 long companyId, long groupId, java.lang.String name, long roleId); 323 324 /** 325 * Returns the resource type permission where companyId = ? and groupId = ? and name = ? and roleId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 326 * 327 * @param companyId the company ID 328 * @param groupId the group ID 329 * @param name the name 330 * @param roleId the role ID 331 * @param retrieveFromCache whether to use the finder cache 332 * @return the matching resource type permission, or <code>null</code> if a matching resource type permission could not be found 333 */ 334 public com.liferay.portal.model.ResourceTypePermission fetchByC_G_N_R( 335 long companyId, long groupId, java.lang.String name, long roleId, 336 boolean retrieveFromCache); 337 338 /** 339 * Removes the resource type permission where companyId = ? and groupId = ? and name = ? and roleId = ? from the database. 340 * 341 * @param companyId the company ID 342 * @param groupId the group ID 343 * @param name the name 344 * @param roleId the role ID 345 * @return the resource type permission that was removed 346 */ 347 public com.liferay.portal.model.ResourceTypePermission removeByC_G_N_R( 348 long companyId, long groupId, java.lang.String name, long roleId) 349 throws com.liferay.portal.NoSuchResourceTypePermissionException; 350 351 /** 352 * Returns the number of resource type permissions where companyId = ? and groupId = ? and name = ? and roleId = ?. 353 * 354 * @param companyId the company ID 355 * @param groupId the group ID 356 * @param name the name 357 * @param roleId the role ID 358 * @return the number of matching resource type permissions 359 */ 360 public int countByC_G_N_R(long companyId, long groupId, 361 java.lang.String name, long roleId); 362 363 /** 364 * Caches the resource type permission in the entity cache if it is enabled. 365 * 366 * @param resourceTypePermission the resource type permission 367 */ 368 public void cacheResult( 369 com.liferay.portal.model.ResourceTypePermission resourceTypePermission); 370 371 /** 372 * Caches the resource type permissions in the entity cache if it is enabled. 373 * 374 * @param resourceTypePermissions the resource type permissions 375 */ 376 public void cacheResult( 377 java.util.List<com.liferay.portal.model.ResourceTypePermission> resourceTypePermissions); 378 379 /** 380 * Creates a new resource type permission with the primary key. Does not add the resource type permission to the database. 381 * 382 * @param resourceTypePermissionId the primary key for the new resource type permission 383 * @return the new resource type permission 384 */ 385 public com.liferay.portal.model.ResourceTypePermission create( 386 long resourceTypePermissionId); 387 388 /** 389 * Removes the resource type permission with the primary key from the database. Also notifies the appropriate model listeners. 390 * 391 * @param resourceTypePermissionId the primary key of the resource type permission 392 * @return the resource type permission that was removed 393 * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found 394 */ 395 public com.liferay.portal.model.ResourceTypePermission remove( 396 long resourceTypePermissionId) 397 throws com.liferay.portal.NoSuchResourceTypePermissionException; 398 399 public com.liferay.portal.model.ResourceTypePermission updateImpl( 400 com.liferay.portal.model.ResourceTypePermission resourceTypePermission); 401 402 /** 403 * Returns the resource type permission with the primary key or throws a {@link com.liferay.portal.NoSuchResourceTypePermissionException} if it could not be found. 404 * 405 * @param resourceTypePermissionId the primary key of the resource type permission 406 * @return the resource type permission 407 * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found 408 */ 409 public com.liferay.portal.model.ResourceTypePermission findByPrimaryKey( 410 long resourceTypePermissionId) 411 throws com.liferay.portal.NoSuchResourceTypePermissionException; 412 413 /** 414 * Returns the resource type permission with the primary key or returns <code>null</code> if it could not be found. 415 * 416 * @param resourceTypePermissionId the primary key of the resource type permission 417 * @return the resource type permission, or <code>null</code> if a resource type permission with the primary key could not be found 418 */ 419 public com.liferay.portal.model.ResourceTypePermission fetchByPrimaryKey( 420 long resourceTypePermissionId); 421 422 @Override 423 public java.util.Map<java.io.Serializable, com.liferay.portal.model.ResourceTypePermission> fetchByPrimaryKeys( 424 java.util.Set<java.io.Serializable> primaryKeys); 425 426 /** 427 * Returns all the resource type permissions. 428 * 429 * @return the resource type permissions 430 */ 431 public java.util.List<com.liferay.portal.model.ResourceTypePermission> findAll(); 432 433 /** 434 * Returns a range of all the resource type permissions. 435 * 436 * <p> 437 * 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.ResourceTypePermissionModelImpl}. 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. 438 * </p> 439 * 440 * @param start the lower bound of the range of resource type permissions 441 * @param end the upper bound of the range of resource type permissions (not inclusive) 442 * @return the range of resource type permissions 443 */ 444 public java.util.List<com.liferay.portal.model.ResourceTypePermission> findAll( 445 int start, int end); 446 447 /** 448 * Returns an ordered range of all the resource type permissions. 449 * 450 * <p> 451 * 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.ResourceTypePermissionModelImpl}. 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. 452 * </p> 453 * 454 * @param start the lower bound of the range of resource type permissions 455 * @param end the upper bound of the range of resource type permissions (not inclusive) 456 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 457 * @return the ordered range of resource type permissions 458 */ 459 public java.util.List<com.liferay.portal.model.ResourceTypePermission> findAll( 460 int start, int end, 461 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.ResourceTypePermission> orderByComparator); 462 463 /** 464 * Removes all the resource type permissions from the database. 465 */ 466 public void removeAll(); 467 468 /** 469 * Returns the number of resource type permissions. 470 * 471 * @return the number of resource type permissions 472 */ 473 public int countAll(); 474 }