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