001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 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 * @param uuid the uuid 156 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 157 * @return the first matching asset category 158 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 159 * @throws SystemException if a system exception occurred 160 */ 161 public com.liferay.portlet.asset.model.AssetCategory findByUuid_First( 162 java.lang.String uuid, 163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 164 throws com.liferay.portal.kernel.exception.SystemException, 165 com.liferay.portlet.asset.NoSuchCategoryException; 166 167 /** 168 * Returns the first asset category in the ordered set where uuid = ?. 169 * 170 * @param uuid the uuid 171 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 172 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 173 * @throws SystemException if a system exception occurred 174 */ 175 public com.liferay.portlet.asset.model.AssetCategory fetchByUuid_First( 176 java.lang.String uuid, 177 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 178 throws com.liferay.portal.kernel.exception.SystemException; 179 180 /** 181 * Returns the last asset category in the ordered set where uuid = ?. 182 * 183 * @param uuid the uuid 184 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 185 * @return the last matching asset category 186 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 187 * @throws SystemException if a system exception occurred 188 */ 189 public com.liferay.portlet.asset.model.AssetCategory findByUuid_Last( 190 java.lang.String uuid, 191 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 192 throws com.liferay.portal.kernel.exception.SystemException, 193 com.liferay.portlet.asset.NoSuchCategoryException; 194 195 /** 196 * Returns the last asset category in the ordered set where uuid = ?. 197 * 198 * @param uuid the uuid 199 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 200 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 201 * @throws SystemException if a system exception occurred 202 */ 203 public com.liferay.portlet.asset.model.AssetCategory fetchByUuid_Last( 204 java.lang.String uuid, 205 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 206 throws com.liferay.portal.kernel.exception.SystemException; 207 208 /** 209 * Returns the asset categories before and after the current asset category in the ordered set where uuid = ?. 210 * 211 * @param categoryId the primary key of the current asset category 212 * @param uuid the uuid 213 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 214 * @return the previous, current, and next asset category 215 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 216 * @throws SystemException if a system exception occurred 217 */ 218 public com.liferay.portlet.asset.model.AssetCategory[] findByUuid_PrevAndNext( 219 long categoryId, java.lang.String uuid, 220 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 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 throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found. 226 * 227 * @param uuid the uuid 228 * @param groupId the group ID 229 * @return the matching asset category 230 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 231 * @throws SystemException if a system exception occurred 232 */ 233 public com.liferay.portlet.asset.model.AssetCategory findByUUID_G( 234 java.lang.String uuid, long groupId) 235 throws com.liferay.portal.kernel.exception.SystemException, 236 com.liferay.portlet.asset.NoSuchCategoryException; 237 238 /** 239 * Returns the asset category where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 240 * 241 * @param uuid the uuid 242 * @param groupId the group ID 243 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 244 * @throws SystemException if a system exception occurred 245 */ 246 public com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G( 247 java.lang.String uuid, long groupId) 248 throws com.liferay.portal.kernel.exception.SystemException; 249 250 /** 251 * Returns the asset category where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 252 * 253 * @param uuid the uuid 254 * @param groupId the group ID 255 * @param retrieveFromCache whether to use the finder cache 256 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 257 * @throws SystemException if a system exception occurred 258 */ 259 public com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G( 260 java.lang.String uuid, long groupId, boolean retrieveFromCache) 261 throws com.liferay.portal.kernel.exception.SystemException; 262 263 /** 264 * Returns all the asset categories where groupId = ?. 265 * 266 * @param groupId the group ID 267 * @return the matching asset categories 268 * @throws SystemException if a system exception occurred 269 */ 270 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId( 271 long groupId) 272 throws com.liferay.portal.kernel.exception.SystemException; 273 274 /** 275 * Returns a range of all the asset categories where groupId = ?. 276 * 277 * <p> 278 * 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. 279 * </p> 280 * 281 * @param groupId the group ID 282 * @param start the lower bound of the range of asset categories 283 * @param end the upper bound of the range of asset categories (not inclusive) 284 * @return the range of matching asset categories 285 * @throws SystemException if a system exception occurred 286 */ 287 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId( 288 long groupId, int start, int end) 289 throws com.liferay.portal.kernel.exception.SystemException; 290 291 /** 292 * Returns an ordered range of all the asset categories where groupId = ?. 293 * 294 * <p> 295 * 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. 296 * </p> 297 * 298 * @param groupId the group ID 299 * @param start the lower bound of the range of asset categories 300 * @param end the upper bound of the range of asset categories (not inclusive) 301 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 302 * @return the ordered range of matching asset categories 303 * @throws SystemException if a system exception occurred 304 */ 305 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId( 306 long groupId, int start, int end, 307 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 308 throws com.liferay.portal.kernel.exception.SystemException; 309 310 /** 311 * Returns the first asset category in the ordered set where groupId = ?. 312 * 313 * @param groupId the group ID 314 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 315 * @return the first matching asset category 316 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 317 * @throws SystemException if a system exception occurred 318 */ 319 public com.liferay.portlet.asset.model.AssetCategory findByGroupId_First( 320 long groupId, 321 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 322 throws com.liferay.portal.kernel.exception.SystemException, 323 com.liferay.portlet.asset.NoSuchCategoryException; 324 325 /** 326 * Returns the first asset category in the ordered set where groupId = ?. 327 * 328 * @param groupId the group ID 329 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 330 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 331 * @throws SystemException if a system exception occurred 332 */ 333 public com.liferay.portlet.asset.model.AssetCategory fetchByGroupId_First( 334 long groupId, 335 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 336 throws com.liferay.portal.kernel.exception.SystemException; 337 338 /** 339 * Returns the last asset category in the ordered set where groupId = ?. 340 * 341 * @param groupId the group ID 342 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 343 * @return the last matching asset category 344 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 345 * @throws SystemException if a system exception occurred 346 */ 347 public com.liferay.portlet.asset.model.AssetCategory findByGroupId_Last( 348 long groupId, 349 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 350 throws com.liferay.portal.kernel.exception.SystemException, 351 com.liferay.portlet.asset.NoSuchCategoryException; 352 353 /** 354 * Returns the last asset category in the ordered set where groupId = ?. 355 * 356 * @param groupId the group ID 357 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 358 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 359 * @throws SystemException if a system exception occurred 360 */ 361 public com.liferay.portlet.asset.model.AssetCategory fetchByGroupId_Last( 362 long groupId, 363 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 364 throws com.liferay.portal.kernel.exception.SystemException; 365 366 /** 367 * Returns the asset categories before and after the current asset category in the ordered set where groupId = ?. 368 * 369 * @param categoryId the primary key of the current asset category 370 * @param groupId the group ID 371 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 372 * @return the previous, current, and next asset category 373 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 374 * @throws SystemException if a system exception occurred 375 */ 376 public com.liferay.portlet.asset.model.AssetCategory[] findByGroupId_PrevAndNext( 377 long categoryId, long groupId, 378 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 379 throws com.liferay.portal.kernel.exception.SystemException, 380 com.liferay.portlet.asset.NoSuchCategoryException; 381 382 /** 383 * Returns all the asset categories that the user has permission to view where groupId = ?. 384 * 385 * @param groupId the group ID 386 * @return the matching asset categories that the user has permission to view 387 * @throws SystemException if a system exception occurred 388 */ 389 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId( 390 long groupId) 391 throws com.liferay.portal.kernel.exception.SystemException; 392 393 /** 394 * Returns a range of all the asset categories that the user has permission to view where groupId = ?. 395 * 396 * <p> 397 * 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. 398 * </p> 399 * 400 * @param groupId the group ID 401 * @param start the lower bound of the range of asset categories 402 * @param end the upper bound of the range of asset categories (not inclusive) 403 * @return the range of matching asset categories that the user has permission to view 404 * @throws SystemException if a system exception occurred 405 */ 406 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId( 407 long groupId, int start, int end) 408 throws com.liferay.portal.kernel.exception.SystemException; 409 410 /** 411 * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ?. 412 * 413 * <p> 414 * 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. 415 * </p> 416 * 417 * @param groupId the group ID 418 * @param start the lower bound of the range of asset categories 419 * @param end the upper bound of the range of asset categories (not inclusive) 420 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 421 * @return the ordered range of matching asset categories that the user has permission to view 422 * @throws SystemException if a system exception occurred 423 */ 424 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId( 425 long groupId, int start, int end, 426 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 427 throws com.liferay.portal.kernel.exception.SystemException; 428 429 /** 430 * 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 = ?. 431 * 432 * @param categoryId the primary key of the current asset category 433 * @param groupId the group ID 434 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 435 * @return the previous, current, and next asset category 436 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 437 * @throws SystemException if a system exception occurred 438 */ 439 public com.liferay.portlet.asset.model.AssetCategory[] filterFindByGroupId_PrevAndNext( 440 long categoryId, long groupId, 441 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 442 throws com.liferay.portal.kernel.exception.SystemException, 443 com.liferay.portlet.asset.NoSuchCategoryException; 444 445 /** 446 * Returns all the asset categories where parentCategoryId = ?. 447 * 448 * @param parentCategoryId the parent category ID 449 * @return the matching asset categories 450 * @throws SystemException if a system exception occurred 451 */ 452 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId( 453 long parentCategoryId) 454 throws com.liferay.portal.kernel.exception.SystemException; 455 456 /** 457 * Returns a range of all the asset categories where parentCategoryId = ?. 458 * 459 * <p> 460 * 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. 461 * </p> 462 * 463 * @param parentCategoryId the parent category ID 464 * @param start the lower bound of the range of asset categories 465 * @param end the upper bound of the range of asset categories (not inclusive) 466 * @return the range of matching asset categories 467 * @throws SystemException if a system exception occurred 468 */ 469 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId( 470 long parentCategoryId, int start, int end) 471 throws com.liferay.portal.kernel.exception.SystemException; 472 473 /** 474 * Returns an ordered range of all the asset categories where parentCategoryId = ?. 475 * 476 * <p> 477 * 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. 478 * </p> 479 * 480 * @param parentCategoryId the parent category ID 481 * @param start the lower bound of the range of asset categories 482 * @param end the upper bound of the range of asset categories (not inclusive) 483 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 484 * @return the ordered range of matching asset categories 485 * @throws SystemException if a system exception occurred 486 */ 487 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId( 488 long parentCategoryId, int start, int end, 489 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 490 throws com.liferay.portal.kernel.exception.SystemException; 491 492 /** 493 * Returns the first asset category in the ordered set where parentCategoryId = ?. 494 * 495 * @param parentCategoryId the parent category ID 496 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 497 * @return the first matching asset category 498 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 499 * @throws SystemException if a system exception occurred 500 */ 501 public com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_First( 502 long parentCategoryId, 503 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 504 throws com.liferay.portal.kernel.exception.SystemException, 505 com.liferay.portlet.asset.NoSuchCategoryException; 506 507 /** 508 * Returns the first asset category in the ordered set where parentCategoryId = ?. 509 * 510 * @param parentCategoryId the parent category ID 511 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 512 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 513 * @throws SystemException if a system exception occurred 514 */ 515 public com.liferay.portlet.asset.model.AssetCategory fetchByParentCategoryId_First( 516 long parentCategoryId, 517 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 518 throws com.liferay.portal.kernel.exception.SystemException; 519 520 /** 521 * Returns the last asset category in the ordered set where parentCategoryId = ?. 522 * 523 * @param parentCategoryId the parent category ID 524 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 525 * @return the last matching asset category 526 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 527 * @throws SystemException if a system exception occurred 528 */ 529 public com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_Last( 530 long parentCategoryId, 531 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 532 throws com.liferay.portal.kernel.exception.SystemException, 533 com.liferay.portlet.asset.NoSuchCategoryException; 534 535 /** 536 * Returns the last asset category in the ordered set where parentCategoryId = ?. 537 * 538 * @param parentCategoryId the parent category ID 539 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 540 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 541 * @throws SystemException if a system exception occurred 542 */ 543 public com.liferay.portlet.asset.model.AssetCategory fetchByParentCategoryId_Last( 544 long parentCategoryId, 545 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 546 throws com.liferay.portal.kernel.exception.SystemException; 547 548 /** 549 * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ?. 550 * 551 * @param categoryId the primary key of the current asset category 552 * @param parentCategoryId the parent category ID 553 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 554 * @return the previous, current, and next asset category 555 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 556 * @throws SystemException if a system exception occurred 557 */ 558 public com.liferay.portlet.asset.model.AssetCategory[] findByParentCategoryId_PrevAndNext( 559 long categoryId, long parentCategoryId, 560 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 561 throws com.liferay.portal.kernel.exception.SystemException, 562 com.liferay.portlet.asset.NoSuchCategoryException; 563 564 /** 565 * Returns all the asset categories where vocabularyId = ?. 566 * 567 * @param vocabularyId the vocabulary ID 568 * @return the matching asset categories 569 * @throws SystemException if a system exception occurred 570 */ 571 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId( 572 long vocabularyId) 573 throws com.liferay.portal.kernel.exception.SystemException; 574 575 /** 576 * Returns a range of all the asset categories where vocabularyId = ?. 577 * 578 * <p> 579 * 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. 580 * </p> 581 * 582 * @param vocabularyId the vocabulary ID 583 * @param start the lower bound of the range of asset categories 584 * @param end the upper bound of the range of asset categories (not inclusive) 585 * @return the range of matching asset categories 586 * @throws SystemException if a system exception occurred 587 */ 588 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId( 589 long vocabularyId, int start, int end) 590 throws com.liferay.portal.kernel.exception.SystemException; 591 592 /** 593 * Returns an ordered range of all the asset categories where vocabularyId = ?. 594 * 595 * <p> 596 * 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. 597 * </p> 598 * 599 * @param vocabularyId the vocabulary ID 600 * @param start the lower bound of the range of asset categories 601 * @param end the upper bound of the range of asset categories (not inclusive) 602 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 603 * @return the ordered range of matching asset categories 604 * @throws SystemException if a system exception occurred 605 */ 606 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId( 607 long vocabularyId, int start, int end, 608 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 609 throws com.liferay.portal.kernel.exception.SystemException; 610 611 /** 612 * Returns the first asset category in the ordered set where vocabularyId = ?. 613 * 614 * @param vocabularyId the vocabulary ID 615 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 616 * @return the first matching asset category 617 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 618 * @throws SystemException if a system exception occurred 619 */ 620 public com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_First( 621 long vocabularyId, 622 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 623 throws com.liferay.portal.kernel.exception.SystemException, 624 com.liferay.portlet.asset.NoSuchCategoryException; 625 626 /** 627 * Returns the first asset category in the ordered set where vocabularyId = ?. 628 * 629 * @param vocabularyId the vocabulary ID 630 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 631 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 632 * @throws SystemException if a system exception occurred 633 */ 634 public com.liferay.portlet.asset.model.AssetCategory fetchByVocabularyId_First( 635 long vocabularyId, 636 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 637 throws com.liferay.portal.kernel.exception.SystemException; 638 639 /** 640 * Returns the last asset category in the ordered set where vocabularyId = ?. 641 * 642 * @param vocabularyId the vocabulary ID 643 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 644 * @return the last matching asset category 645 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 646 * @throws SystemException if a system exception occurred 647 */ 648 public com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_Last( 649 long vocabularyId, 650 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 651 throws com.liferay.portal.kernel.exception.SystemException, 652 com.liferay.portlet.asset.NoSuchCategoryException; 653 654 /** 655 * Returns the last asset category in the ordered set where vocabularyId = ?. 656 * 657 * @param vocabularyId the vocabulary ID 658 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 659 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 660 * @throws SystemException if a system exception occurred 661 */ 662 public com.liferay.portlet.asset.model.AssetCategory fetchByVocabularyId_Last( 663 long vocabularyId, 664 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 665 throws com.liferay.portal.kernel.exception.SystemException; 666 667 /** 668 * Returns the asset categories before and after the current asset category in the ordered set where vocabularyId = ?. 669 * 670 * @param categoryId the primary key of the current asset category 671 * @param vocabularyId the vocabulary ID 672 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 673 * @return the previous, current, and next asset category 674 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 675 * @throws SystemException if a system exception occurred 676 */ 677 public com.liferay.portlet.asset.model.AssetCategory[] findByVocabularyId_PrevAndNext( 678 long categoryId, long vocabularyId, 679 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 680 throws com.liferay.portal.kernel.exception.SystemException, 681 com.liferay.portlet.asset.NoSuchCategoryException; 682 683 /** 684 * Returns all the asset categories where groupId = ? and vocabularyId = ?. 685 * 686 * @param groupId the group ID 687 * @param vocabularyId the vocabulary ID 688 * @return the matching asset categories 689 * @throws SystemException if a system exception occurred 690 */ 691 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V( 692 long groupId, long vocabularyId) 693 throws com.liferay.portal.kernel.exception.SystemException; 694 695 /** 696 * Returns a range of all the asset categories where groupId = ? and vocabularyId = ?. 697 * 698 * <p> 699 * 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. 700 * </p> 701 * 702 * @param groupId the group ID 703 * @param vocabularyId the vocabulary ID 704 * @param start the lower bound of the range of asset categories 705 * @param end the upper bound of the range of asset categories (not inclusive) 706 * @return the range of matching asset categories 707 * @throws SystemException if a system exception occurred 708 */ 709 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V( 710 long groupId, long vocabularyId, int start, int end) 711 throws com.liferay.portal.kernel.exception.SystemException; 712 713 /** 714 * Returns an ordered range of all the asset categories where groupId = ? and vocabularyId = ?. 715 * 716 * <p> 717 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 718 * </p> 719 * 720 * @param groupId the group ID 721 * @param vocabularyId the vocabulary ID 722 * @param start the lower bound of the range of asset categories 723 * @param end the upper bound of the range of asset categories (not inclusive) 724 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 725 * @return the ordered range of matching asset categories 726 * @throws SystemException if a system exception occurred 727 */ 728 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V( 729 long groupId, long vocabularyId, int start, int end, 730 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 731 throws com.liferay.portal.kernel.exception.SystemException; 732 733 /** 734 * Returns the first asset category in the ordered set where groupId = ? and vocabularyId = ?. 735 * 736 * @param groupId the group ID 737 * @param vocabularyId the vocabulary ID 738 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 739 * @return the first matching asset category 740 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 741 * @throws SystemException if a system exception occurred 742 */ 743 public com.liferay.portlet.asset.model.AssetCategory findByG_V_First( 744 long groupId, long vocabularyId, 745 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 746 throws com.liferay.portal.kernel.exception.SystemException, 747 com.liferay.portlet.asset.NoSuchCategoryException; 748 749 /** 750 * Returns the first asset category in the ordered set where groupId = ? and vocabularyId = ?. 751 * 752 * @param groupId the group ID 753 * @param vocabularyId the vocabulary ID 754 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 755 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 756 * @throws SystemException if a system exception occurred 757 */ 758 public com.liferay.portlet.asset.model.AssetCategory fetchByG_V_First( 759 long groupId, long vocabularyId, 760 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 761 throws com.liferay.portal.kernel.exception.SystemException; 762 763 /** 764 * Returns the last asset category in the ordered set where groupId = ? and vocabularyId = ?. 765 * 766 * @param groupId the group ID 767 * @param vocabularyId the vocabulary ID 768 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 769 * @return the last matching asset category 770 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 771 * @throws SystemException if a system exception occurred 772 */ 773 public com.liferay.portlet.asset.model.AssetCategory findByG_V_Last( 774 long groupId, long vocabularyId, 775 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 776 throws com.liferay.portal.kernel.exception.SystemException, 777 com.liferay.portlet.asset.NoSuchCategoryException; 778 779 /** 780 * Returns the last asset category in the ordered set where groupId = ? and vocabularyId = ?. 781 * 782 * @param groupId the group ID 783 * @param vocabularyId the vocabulary ID 784 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 785 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 786 * @throws SystemException if a system exception occurred 787 */ 788 public com.liferay.portlet.asset.model.AssetCategory fetchByG_V_Last( 789 long groupId, long vocabularyId, 790 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 791 throws com.liferay.portal.kernel.exception.SystemException; 792 793 /** 794 * Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and vocabularyId = ?. 795 * 796 * @param categoryId the primary key of the current asset category 797 * @param groupId the group ID 798 * @param vocabularyId the vocabulary ID 799 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 800 * @return the previous, current, and next asset category 801 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 802 * @throws SystemException if a system exception occurred 803 */ 804 public com.liferay.portlet.asset.model.AssetCategory[] findByG_V_PrevAndNext( 805 long categoryId, long groupId, long vocabularyId, 806 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 807 throws com.liferay.portal.kernel.exception.SystemException, 808 com.liferay.portlet.asset.NoSuchCategoryException; 809 810 /** 811 * Returns all the asset categories that the user has permission to view where groupId = ? and vocabularyId = ?. 812 * 813 * @param groupId the group ID 814 * @param vocabularyId the vocabulary ID 815 * @return the matching asset categories that the user has permission to view 816 * @throws SystemException if a system exception occurred 817 */ 818 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V( 819 long groupId, long vocabularyId) 820 throws com.liferay.portal.kernel.exception.SystemException; 821 822 /** 823 * Returns a range of all the asset categories that the user has permission to view where groupId = ? and vocabularyId = ?. 824 * 825 * <p> 826 * 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. 827 * </p> 828 * 829 * @param groupId the group ID 830 * @param vocabularyId the vocabulary ID 831 * @param start the lower bound of the range of asset categories 832 * @param end the upper bound of the range of asset categories (not inclusive) 833 * @return the range of matching asset categories that the user has permission to view 834 * @throws SystemException if a system exception occurred 835 */ 836 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V( 837 long groupId, long vocabularyId, int start, int end) 838 throws com.liferay.portal.kernel.exception.SystemException; 839 840 /** 841 * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and vocabularyId = ?. 842 * 843 * <p> 844 * 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. 845 * </p> 846 * 847 * @param groupId the group ID 848 * @param vocabularyId the vocabulary ID 849 * @param start the lower bound of the range of asset categories 850 * @param end the upper bound of the range of asset categories (not inclusive) 851 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 852 * @return the ordered range of matching asset categories that the user has permission to view 853 * @throws SystemException if a system exception occurred 854 */ 855 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V( 856 long groupId, long vocabularyId, int start, int end, 857 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 858 throws com.liferay.portal.kernel.exception.SystemException; 859 860 /** 861 * 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 = ?. 862 * 863 * @param categoryId the primary key of the current asset category 864 * @param groupId the group ID 865 * @param vocabularyId the vocabulary ID 866 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 867 * @return the previous, current, and next asset category 868 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 869 * @throws SystemException if a system exception occurred 870 */ 871 public com.liferay.portlet.asset.model.AssetCategory[] filterFindByG_V_PrevAndNext( 872 long categoryId, long groupId, long vocabularyId, 873 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 874 throws com.liferay.portal.kernel.exception.SystemException, 875 com.liferay.portlet.asset.NoSuchCategoryException; 876 877 /** 878 * Returns all the asset categories where parentCategoryId = ? and name = ?. 879 * 880 * @param parentCategoryId the parent category ID 881 * @param name the name 882 * @return the matching asset categories 883 * @throws SystemException if a system exception occurred 884 */ 885 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N( 886 long parentCategoryId, java.lang.String name) 887 throws com.liferay.portal.kernel.exception.SystemException; 888 889 /** 890 * Returns a range of all the asset categories where parentCategoryId = ? and name = ?. 891 * 892 * <p> 893 * 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. 894 * </p> 895 * 896 * @param parentCategoryId the parent category ID 897 * @param name the name 898 * @param start the lower bound of the range of asset categories 899 * @param end the upper bound of the range of asset categories (not inclusive) 900 * @return the range of matching asset categories 901 * @throws SystemException if a system exception occurred 902 */ 903 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N( 904 long parentCategoryId, java.lang.String name, int start, int end) 905 throws com.liferay.portal.kernel.exception.SystemException; 906 907 /** 908 * Returns an ordered range of all the asset categories where parentCategoryId = ? and name = ?. 909 * 910 * <p> 911 * 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. 912 * </p> 913 * 914 * @param parentCategoryId the parent category ID 915 * @param name the name 916 * @param start the lower bound of the range of asset categories 917 * @param end the upper bound of the range of asset categories (not inclusive) 918 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 919 * @return the ordered range of matching asset categories 920 * @throws SystemException if a system exception occurred 921 */ 922 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N( 923 long parentCategoryId, java.lang.String name, int start, int end, 924 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 925 throws com.liferay.portal.kernel.exception.SystemException; 926 927 /** 928 * Returns the first asset category in the ordered set where parentCategoryId = ? and name = ?. 929 * 930 * @param parentCategoryId the parent category ID 931 * @param name the name 932 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 933 * @return the first matching asset category 934 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 935 * @throws SystemException if a system exception occurred 936 */ 937 public com.liferay.portlet.asset.model.AssetCategory findByP_N_First( 938 long parentCategoryId, java.lang.String name, 939 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 940 throws com.liferay.portal.kernel.exception.SystemException, 941 com.liferay.portlet.asset.NoSuchCategoryException; 942 943 /** 944 * Returns the first asset category in the ordered set where parentCategoryId = ? and name = ?. 945 * 946 * @param parentCategoryId the parent category ID 947 * @param name the name 948 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 949 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 950 * @throws SystemException if a system exception occurred 951 */ 952 public com.liferay.portlet.asset.model.AssetCategory fetchByP_N_First( 953 long parentCategoryId, java.lang.String name, 954 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 955 throws com.liferay.portal.kernel.exception.SystemException; 956 957 /** 958 * Returns the last asset category in the ordered set where parentCategoryId = ? and name = ?. 959 * 960 * @param parentCategoryId the parent category ID 961 * @param name the name 962 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 963 * @return the last matching asset category 964 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 965 * @throws SystemException if a system exception occurred 966 */ 967 public com.liferay.portlet.asset.model.AssetCategory findByP_N_Last( 968 long parentCategoryId, java.lang.String name, 969 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 970 throws com.liferay.portal.kernel.exception.SystemException, 971 com.liferay.portlet.asset.NoSuchCategoryException; 972 973 /** 974 * Returns the last asset category in the ordered set where parentCategoryId = ? and name = ?. 975 * 976 * @param parentCategoryId the parent category ID 977 * @param name the name 978 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 979 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 980 * @throws SystemException if a system exception occurred 981 */ 982 public com.liferay.portlet.asset.model.AssetCategory fetchByP_N_Last( 983 long parentCategoryId, java.lang.String name, 984 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 985 throws com.liferay.portal.kernel.exception.SystemException; 986 987 /** 988 * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and name = ?. 989 * 990 * @param categoryId the primary key of the current asset category 991 * @param parentCategoryId the parent category ID 992 * @param name the name 993 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 994 * @return the previous, current, and next asset category 995 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 996 * @throws SystemException if a system exception occurred 997 */ 998 public com.liferay.portlet.asset.model.AssetCategory[] findByP_N_PrevAndNext( 999 long categoryId, long parentCategoryId, java.lang.String name, 1000 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1001 throws com.liferay.portal.kernel.exception.SystemException, 1002 com.liferay.portlet.asset.NoSuchCategoryException; 1003 1004 /** 1005 * Returns all the asset categories where parentCategoryId = ? and vocabularyId = ?. 1006 * 1007 * @param parentCategoryId the parent category ID 1008 * @param vocabularyId the vocabulary ID 1009 * @return the matching asset categories 1010 * @throws SystemException if a system exception occurred 1011 */ 1012 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V( 1013 long parentCategoryId, long vocabularyId) 1014 throws com.liferay.portal.kernel.exception.SystemException; 1015 1016 /** 1017 * Returns a range of all the asset categories where parentCategoryId = ? and vocabularyId = ?. 1018 * 1019 * <p> 1020 * 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. 1021 * </p> 1022 * 1023 * @param parentCategoryId the parent category ID 1024 * @param vocabularyId the vocabulary ID 1025 * @param start the lower bound of the range of asset categories 1026 * @param end the upper bound of the range of asset categories (not inclusive) 1027 * @return the range of matching asset categories 1028 * @throws SystemException if a system exception occurred 1029 */ 1030 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V( 1031 long parentCategoryId, long vocabularyId, int start, int end) 1032 throws com.liferay.portal.kernel.exception.SystemException; 1033 1034 /** 1035 * Returns an ordered range of all the asset categories where parentCategoryId = ? and vocabularyId = ?. 1036 * 1037 * <p> 1038 * 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. 1039 * </p> 1040 * 1041 * @param parentCategoryId the parent category ID 1042 * @param vocabularyId the vocabulary ID 1043 * @param start the lower bound of the range of asset categories 1044 * @param end the upper bound of the range of asset categories (not inclusive) 1045 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1046 * @return the ordered range of matching asset categories 1047 * @throws SystemException if a system exception occurred 1048 */ 1049 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V( 1050 long parentCategoryId, long vocabularyId, int start, int end, 1051 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1052 throws com.liferay.portal.kernel.exception.SystemException; 1053 1054 /** 1055 * Returns the first asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1056 * 1057 * @param parentCategoryId the parent category ID 1058 * @param vocabularyId the vocabulary ID 1059 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1060 * @return the first matching asset category 1061 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1062 * @throws SystemException if a system exception occurred 1063 */ 1064 public com.liferay.portlet.asset.model.AssetCategory findByP_V_First( 1065 long parentCategoryId, long vocabularyId, 1066 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1067 throws com.liferay.portal.kernel.exception.SystemException, 1068 com.liferay.portlet.asset.NoSuchCategoryException; 1069 1070 /** 1071 * Returns the first asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1072 * 1073 * @param parentCategoryId the parent category ID 1074 * @param vocabularyId the vocabulary ID 1075 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1076 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 1077 * @throws SystemException if a system exception occurred 1078 */ 1079 public com.liferay.portlet.asset.model.AssetCategory fetchByP_V_First( 1080 long parentCategoryId, long vocabularyId, 1081 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1082 throws com.liferay.portal.kernel.exception.SystemException; 1083 1084 /** 1085 * Returns the last asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1086 * 1087 * @param parentCategoryId the parent category ID 1088 * @param vocabularyId the vocabulary ID 1089 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1090 * @return the last matching asset category 1091 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1092 * @throws SystemException if a system exception occurred 1093 */ 1094 public com.liferay.portlet.asset.model.AssetCategory findByP_V_Last( 1095 long parentCategoryId, long vocabularyId, 1096 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1097 throws com.liferay.portal.kernel.exception.SystemException, 1098 com.liferay.portlet.asset.NoSuchCategoryException; 1099 1100 /** 1101 * Returns the last asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1102 * 1103 * @param parentCategoryId the parent category ID 1104 * @param vocabularyId the vocabulary ID 1105 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1106 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 1107 * @throws SystemException if a system exception occurred 1108 */ 1109 public com.liferay.portlet.asset.model.AssetCategory fetchByP_V_Last( 1110 long parentCategoryId, long vocabularyId, 1111 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1112 throws com.liferay.portal.kernel.exception.SystemException; 1113 1114 /** 1115 * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?. 1116 * 1117 * @param categoryId the primary key of the current asset category 1118 * @param parentCategoryId the parent category ID 1119 * @param vocabularyId the vocabulary ID 1120 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1121 * @return the previous, current, and next asset category 1122 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1123 * @throws SystemException if a system exception occurred 1124 */ 1125 public com.liferay.portlet.asset.model.AssetCategory[] findByP_V_PrevAndNext( 1126 long categoryId, long parentCategoryId, long vocabularyId, 1127 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1128 throws com.liferay.portal.kernel.exception.SystemException, 1129 com.liferay.portlet.asset.NoSuchCategoryException; 1130 1131 /** 1132 * Returns all the asset categories where name = ? and vocabularyId = ?. 1133 * 1134 * @param name the name 1135 * @param vocabularyId the vocabulary ID 1136 * @return the matching asset categories 1137 * @throws SystemException if a system exception occurred 1138 */ 1139 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V( 1140 java.lang.String name, long vocabularyId) 1141 throws com.liferay.portal.kernel.exception.SystemException; 1142 1143 /** 1144 * Returns a range of all the asset categories where name = ? and vocabularyId = ?. 1145 * 1146 * <p> 1147 * 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. 1148 * </p> 1149 * 1150 * @param name the name 1151 * @param vocabularyId the vocabulary ID 1152 * @param start the lower bound of the range of asset categories 1153 * @param end the upper bound of the range of asset categories (not inclusive) 1154 * @return the range of matching asset categories 1155 * @throws SystemException if a system exception occurred 1156 */ 1157 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V( 1158 java.lang.String name, long vocabularyId, int start, int end) 1159 throws com.liferay.portal.kernel.exception.SystemException; 1160 1161 /** 1162 * Returns an ordered range of all the asset categories where name = ? and vocabularyId = ?. 1163 * 1164 * <p> 1165 * 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. 1166 * </p> 1167 * 1168 * @param name the name 1169 * @param vocabularyId the vocabulary ID 1170 * @param start the lower bound of the range of asset categories 1171 * @param end the upper bound of the range of asset categories (not inclusive) 1172 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1173 * @return the ordered range of matching asset categories 1174 * @throws SystemException if a system exception occurred 1175 */ 1176 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V( 1177 java.lang.String name, long vocabularyId, int start, int end, 1178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1179 throws com.liferay.portal.kernel.exception.SystemException; 1180 1181 /** 1182 * Returns the first asset category in the ordered set where name = ? and vocabularyId = ?. 1183 * 1184 * @param name the name 1185 * @param vocabularyId the vocabulary ID 1186 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1187 * @return the first matching asset category 1188 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1189 * @throws SystemException if a system exception occurred 1190 */ 1191 public com.liferay.portlet.asset.model.AssetCategory findByN_V_First( 1192 java.lang.String name, long vocabularyId, 1193 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1194 throws com.liferay.portal.kernel.exception.SystemException, 1195 com.liferay.portlet.asset.NoSuchCategoryException; 1196 1197 /** 1198 * Returns the first asset category in the ordered set where name = ? and vocabularyId = ?. 1199 * 1200 * @param name the name 1201 * @param vocabularyId the vocabulary ID 1202 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1203 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 1204 * @throws SystemException if a system exception occurred 1205 */ 1206 public com.liferay.portlet.asset.model.AssetCategory fetchByN_V_First( 1207 java.lang.String name, long vocabularyId, 1208 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1209 throws com.liferay.portal.kernel.exception.SystemException; 1210 1211 /** 1212 * Returns the last asset category in the ordered set where name = ? and vocabularyId = ?. 1213 * 1214 * @param name the name 1215 * @param vocabularyId the vocabulary ID 1216 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1217 * @return the last matching asset category 1218 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1219 * @throws SystemException if a system exception occurred 1220 */ 1221 public com.liferay.portlet.asset.model.AssetCategory findByN_V_Last( 1222 java.lang.String name, long vocabularyId, 1223 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1224 throws com.liferay.portal.kernel.exception.SystemException, 1225 com.liferay.portlet.asset.NoSuchCategoryException; 1226 1227 /** 1228 * Returns the last asset category in the ordered set where name = ? and vocabularyId = ?. 1229 * 1230 * @param name the name 1231 * @param vocabularyId the vocabulary ID 1232 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1233 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 1234 * @throws SystemException if a system exception occurred 1235 */ 1236 public com.liferay.portlet.asset.model.AssetCategory fetchByN_V_Last( 1237 java.lang.String name, long vocabularyId, 1238 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1239 throws com.liferay.portal.kernel.exception.SystemException; 1240 1241 /** 1242 * Returns the asset categories before and after the current asset category in the ordered set where name = ? and vocabularyId = ?. 1243 * 1244 * @param categoryId the primary key of the current asset category 1245 * @param name the name 1246 * @param vocabularyId the vocabulary ID 1247 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1248 * @return the previous, current, and next asset category 1249 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1250 * @throws SystemException if a system exception occurred 1251 */ 1252 public com.liferay.portlet.asset.model.AssetCategory[] findByN_V_PrevAndNext( 1253 long categoryId, java.lang.String name, long vocabularyId, 1254 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1255 throws com.liferay.portal.kernel.exception.SystemException, 1256 com.liferay.portlet.asset.NoSuchCategoryException; 1257 1258 /** 1259 * Returns all the asset categories where groupId = ? and parentCategoryId = ? and name = ?. 1260 * 1261 * @param groupId the group ID 1262 * @param parentCategoryId the parent category ID 1263 * @param name the name 1264 * @return the matching asset categories 1265 * @throws SystemException if a system exception occurred 1266 */ 1267 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_P_N( 1268 long groupId, long parentCategoryId, java.lang.String name) 1269 throws com.liferay.portal.kernel.exception.SystemException; 1270 1271 /** 1272 * Returns a range of all the asset categories where groupId = ? and parentCategoryId = ? and name = ?. 1273 * 1274 * <p> 1275 * 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. 1276 * </p> 1277 * 1278 * @param groupId the group ID 1279 * @param parentCategoryId the parent category ID 1280 * @param name the name 1281 * @param start the lower bound of the range of asset categories 1282 * @param end the upper bound of the range of asset categories (not inclusive) 1283 * @return the range of matching asset categories 1284 * @throws SystemException if a system exception occurred 1285 */ 1286 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_P_N( 1287 long groupId, long parentCategoryId, java.lang.String name, int start, 1288 int end) throws com.liferay.portal.kernel.exception.SystemException; 1289 1290 /** 1291 * Returns an ordered range of all the asset categories where groupId = ? and parentCategoryId = ? and name = ?. 1292 * 1293 * <p> 1294 * 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. 1295 * </p> 1296 * 1297 * @param groupId the group ID 1298 * @param parentCategoryId the parent category ID 1299 * @param name the name 1300 * @param start the lower bound of the range of asset categories 1301 * @param end the upper bound of the range of asset categories (not inclusive) 1302 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1303 * @return the ordered range of matching asset categories 1304 * @throws SystemException if a system exception occurred 1305 */ 1306 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_P_N( 1307 long groupId, long parentCategoryId, java.lang.String name, int start, 1308 int end, 1309 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1310 throws com.liferay.portal.kernel.exception.SystemException; 1311 1312 /** 1313 * Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ?. 1314 * 1315 * @param groupId the group ID 1316 * @param parentCategoryId the parent category ID 1317 * @param name the name 1318 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1319 * @return the first matching asset category 1320 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1321 * @throws SystemException if a system exception occurred 1322 */ 1323 public com.liferay.portlet.asset.model.AssetCategory findByG_P_N_First( 1324 long groupId, long parentCategoryId, java.lang.String name, 1325 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1326 throws com.liferay.portal.kernel.exception.SystemException, 1327 com.liferay.portlet.asset.NoSuchCategoryException; 1328 1329 /** 1330 * Returns the first asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ?. 1331 * 1332 * @param groupId the group ID 1333 * @param parentCategoryId the parent category ID 1334 * @param name the name 1335 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1336 * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found 1337 * @throws SystemException if a system exception occurred 1338 */ 1339 public com.liferay.portlet.asset.model.AssetCategory fetchByG_P_N_First( 1340 long groupId, long parentCategoryId, java.lang.String name, 1341 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1342 throws com.liferay.portal.kernel.exception.SystemException; 1343 1344 /** 1345 * Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ?. 1346 * 1347 * @param groupId the group ID 1348 * @param parentCategoryId the parent category ID 1349 * @param name the name 1350 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1351 * @return the last matching asset category 1352 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1353 * @throws SystemException if a system exception occurred 1354 */ 1355 public com.liferay.portlet.asset.model.AssetCategory findByG_P_N_Last( 1356 long groupId, long parentCategoryId, java.lang.String name, 1357 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1358 throws com.liferay.portal.kernel.exception.SystemException, 1359 com.liferay.portlet.asset.NoSuchCategoryException; 1360 1361 /** 1362 * Returns the last asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ?. 1363 * 1364 * @param groupId the group ID 1365 * @param parentCategoryId the parent category ID 1366 * @param name the name 1367 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1368 * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found 1369 * @throws SystemException if a system exception occurred 1370 */ 1371 public com.liferay.portlet.asset.model.AssetCategory fetchByG_P_N_Last( 1372 long groupId, long parentCategoryId, java.lang.String name, 1373 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1374 throws com.liferay.portal.kernel.exception.SystemException; 1375 1376 /** 1377 * Returns the asset categories before and after the current asset category in the ordered set where groupId = ? and parentCategoryId = ? and name = ?. 1378 * 1379 * @param categoryId the primary key of the current asset category 1380 * @param groupId the group ID 1381 * @param parentCategoryId the parent category ID 1382 * @param name the name 1383 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1384 * @return the previous, current, and next asset category 1385 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1386 * @throws SystemException if a system exception occurred 1387 */ 1388 public com.liferay.portlet.asset.model.AssetCategory[] findByG_P_N_PrevAndNext( 1389 long categoryId, long groupId, long parentCategoryId, 1390 java.lang.String name, 1391 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1392 throws com.liferay.portal.kernel.exception.SystemException, 1393 com.liferay.portlet.asset.NoSuchCategoryException; 1394 1395 /** 1396 * Returns all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ?. 1397 * 1398 * @param groupId the group ID 1399 * @param parentCategoryId the parent category ID 1400 * @param name the name 1401 * @return the matching asset categories that the user has permission to view 1402 * @throws SystemException if a system exception occurred 1403 */ 1404 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_P_N( 1405 long groupId, long parentCategoryId, java.lang.String name) 1406 throws com.liferay.portal.kernel.exception.SystemException; 1407 1408 /** 1409 * Returns a range of all the asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ?. 1410 * 1411 * <p> 1412 * 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. 1413 * </p> 1414 * 1415 * @param groupId the group ID 1416 * @param parentCategoryId the parent category ID 1417 * @param name the name 1418 * @param start the lower bound of the range of asset categories 1419 * @param end the upper bound of the range of asset categories (not inclusive) 1420 * @return the range of matching asset categories that the user has permission to view 1421 * @throws SystemException if a system exception occurred 1422 */ 1423 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_P_N( 1424 long groupId, long parentCategoryId, java.lang.String name, int start, 1425 int end) throws com.liferay.portal.kernel.exception.SystemException; 1426 1427 /** 1428 * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = ? and parentCategoryId = ? and name = ?. 1429 * 1430 * <p> 1431 * 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. 1432 * </p> 1433 * 1434 * @param groupId the group ID 1435 * @param parentCategoryId the parent category ID 1436 * @param name the name 1437 * @param start the lower bound of the range of asset categories 1438 * @param end the upper bound of the range of asset categories (not inclusive) 1439 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1440 * @return the ordered range of matching asset categories that the user has permission to view 1441 * @throws SystemException if a system exception occurred 1442 */ 1443 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_P_N( 1444 long groupId, long parentCategoryId, java.lang.String name, int start, 1445 int end, 1446 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1447 throws com.liferay.portal.kernel.exception.SystemException; 1448 1449 /** 1450 * 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 parentCategoryId = ? and name = ?. 1451 * 1452 * @param categoryId the primary key of the current asset category 1453 * @param groupId the group ID 1454 * @param parentCategoryId the parent category ID 1455 * @param name the name 1456 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1457 * @return the previous, current, and next asset category 1458 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found 1459 * @throws SystemException if a system exception occurred 1460 */ 1461 public com.liferay.portlet.asset.model.AssetCategory[] filterFindByG_P_N_PrevAndNext( 1462 long categoryId, long groupId, long parentCategoryId, 1463 java.lang.String name, 1464 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1465 throws com.liferay.portal.kernel.exception.SystemException, 1466 com.liferay.portlet.asset.NoSuchCategoryException; 1467 1468 /** 1469 * 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. 1470 * 1471 * @param parentCategoryId the parent category ID 1472 * @param name the name 1473 * @param vocabularyId the vocabulary ID 1474 * @return the matching asset category 1475 * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found 1476 * @throws SystemException if a system exception occurred 1477 */ 1478 public com.liferay.portlet.asset.model.AssetCategory findByP_N_V( 1479 long parentCategoryId, java.lang.String name, long vocabularyId) 1480 throws com.liferay.portal.kernel.exception.SystemException, 1481 com.liferay.portlet.asset.NoSuchCategoryException; 1482 1483 /** 1484 * 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. 1485 * 1486 * @param parentCategoryId the parent category ID 1487 * @param name the name 1488 * @param vocabularyId the vocabulary ID 1489 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 1490 * @throws SystemException if a system exception occurred 1491 */ 1492 public com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V( 1493 long parentCategoryId, java.lang.String name, long vocabularyId) 1494 throws com.liferay.portal.kernel.exception.SystemException; 1495 1496 /** 1497 * 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. 1498 * 1499 * @param parentCategoryId the parent category ID 1500 * @param name the name 1501 * @param vocabularyId the vocabulary ID 1502 * @param retrieveFromCache whether to use the finder cache 1503 * @return the matching asset category, or <code>null</code> if a matching asset category could not be found 1504 * @throws SystemException if a system exception occurred 1505 */ 1506 public com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V( 1507 long parentCategoryId, java.lang.String name, long vocabularyId, 1508 boolean retrieveFromCache) 1509 throws com.liferay.portal.kernel.exception.SystemException; 1510 1511 /** 1512 * Returns all the asset categories. 1513 * 1514 * @return the asset categories 1515 * @throws SystemException if a system exception occurred 1516 */ 1517 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll() 1518 throws com.liferay.portal.kernel.exception.SystemException; 1519 1520 /** 1521 * Returns a range of all the asset categories. 1522 * 1523 * <p> 1524 * 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. 1525 * </p> 1526 * 1527 * @param start the lower bound of the range of asset categories 1528 * @param end the upper bound of the range of asset categories (not inclusive) 1529 * @return the range of asset categories 1530 * @throws SystemException if a system exception occurred 1531 */ 1532 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll( 1533 int start, int end) 1534 throws com.liferay.portal.kernel.exception.SystemException; 1535 1536 /** 1537 * Returns an ordered range of all the asset categories. 1538 * 1539 * <p> 1540 * 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. 1541 * </p> 1542 * 1543 * @param start the lower bound of the range of asset categories 1544 * @param end the upper bound of the range of asset categories (not inclusive) 1545 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1546 * @return the ordered range of asset categories 1547 * @throws SystemException if a system exception occurred 1548 */ 1549 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll( 1550 int start, int end, 1551 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1552 throws com.liferay.portal.kernel.exception.SystemException; 1553 1554 /** 1555 * Removes all the asset categories where uuid = ? from the database. 1556 * 1557 * @param uuid the uuid 1558 * @throws SystemException if a system exception occurred 1559 */ 1560 public void removeByUuid(java.lang.String uuid) 1561 throws com.liferay.portal.kernel.exception.SystemException; 1562 1563 /** 1564 * Removes the asset category where uuid = ? and groupId = ? from the database. 1565 * 1566 * @param uuid the uuid 1567 * @param groupId the group ID 1568 * @return the asset category that was removed 1569 * @throws SystemException if a system exception occurred 1570 */ 1571 public com.liferay.portlet.asset.model.AssetCategory removeByUUID_G( 1572 java.lang.String uuid, long groupId) 1573 throws com.liferay.portal.kernel.exception.SystemException, 1574 com.liferay.portlet.asset.NoSuchCategoryException; 1575 1576 /** 1577 * Removes all the asset categories where groupId = ? from the database. 1578 * 1579 * @param groupId the group ID 1580 * @throws SystemException if a system exception occurred 1581 */ 1582 public void removeByGroupId(long groupId) 1583 throws com.liferay.portal.kernel.exception.SystemException; 1584 1585 /** 1586 * Removes all the asset categories where parentCategoryId = ? from the database. 1587 * 1588 * @param parentCategoryId the parent category ID 1589 * @throws SystemException if a system exception occurred 1590 */ 1591 public void removeByParentCategoryId(long parentCategoryId) 1592 throws com.liferay.portal.kernel.exception.SystemException; 1593 1594 /** 1595 * Removes all the asset categories where vocabularyId = ? from the database. 1596 * 1597 * @param vocabularyId the vocabulary ID 1598 * @throws SystemException if a system exception occurred 1599 */ 1600 public void removeByVocabularyId(long vocabularyId) 1601 throws com.liferay.portal.kernel.exception.SystemException; 1602 1603 /** 1604 * Removes all the asset categories where groupId = ? and vocabularyId = ? from the database. 1605 * 1606 * @param groupId the group ID 1607 * @param vocabularyId the vocabulary ID 1608 * @throws SystemException if a system exception occurred 1609 */ 1610 public void removeByG_V(long groupId, long vocabularyId) 1611 throws com.liferay.portal.kernel.exception.SystemException; 1612 1613 /** 1614 * Removes all the asset categories where parentCategoryId = ? and name = ? from the database. 1615 * 1616 * @param parentCategoryId the parent category ID 1617 * @param name the name 1618 * @throws SystemException if a system exception occurred 1619 */ 1620 public void removeByP_N(long parentCategoryId, java.lang.String name) 1621 throws com.liferay.portal.kernel.exception.SystemException; 1622 1623 /** 1624 * Removes all the asset categories where parentCategoryId = ? and vocabularyId = ? from the database. 1625 * 1626 * @param parentCategoryId the parent category ID 1627 * @param vocabularyId the vocabulary ID 1628 * @throws SystemException if a system exception occurred 1629 */ 1630 public void removeByP_V(long parentCategoryId, long vocabularyId) 1631 throws com.liferay.portal.kernel.exception.SystemException; 1632 1633 /** 1634 * Removes all the asset categories where name = ? and vocabularyId = ? from the database. 1635 * 1636 * @param name the name 1637 * @param vocabularyId the vocabulary ID 1638 * @throws SystemException if a system exception occurred 1639 */ 1640 public void removeByN_V(java.lang.String name, long vocabularyId) 1641 throws com.liferay.portal.kernel.exception.SystemException; 1642 1643 /** 1644 * Removes all the asset categories where groupId = ? and parentCategoryId = ? and name = ? from the database. 1645 * 1646 * @param groupId the group ID 1647 * @param parentCategoryId the parent category ID 1648 * @param name the name 1649 * @throws SystemException if a system exception occurred 1650 */ 1651 public void removeByG_P_N(long groupId, long parentCategoryId, 1652 java.lang.String name) 1653 throws com.liferay.portal.kernel.exception.SystemException; 1654 1655 /** 1656 * Removes the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? from the database. 1657 * 1658 * @param parentCategoryId the parent category ID 1659 * @param name the name 1660 * @param vocabularyId the vocabulary ID 1661 * @return the asset category that was removed 1662 * @throws SystemException if a system exception occurred 1663 */ 1664 public com.liferay.portlet.asset.model.AssetCategory removeByP_N_V( 1665 long parentCategoryId, java.lang.String name, long vocabularyId) 1666 throws com.liferay.portal.kernel.exception.SystemException, 1667 com.liferay.portlet.asset.NoSuchCategoryException; 1668 1669 /** 1670 * Removes all the asset categories from the database. 1671 * 1672 * @throws SystemException if a system exception occurred 1673 */ 1674 public void removeAll() 1675 throws com.liferay.portal.kernel.exception.SystemException; 1676 1677 /** 1678 * Returns the number of asset categories where uuid = ?. 1679 * 1680 * @param uuid the uuid 1681 * @return the number of matching asset categories 1682 * @throws SystemException if a system exception occurred 1683 */ 1684 public int countByUuid(java.lang.String uuid) 1685 throws com.liferay.portal.kernel.exception.SystemException; 1686 1687 /** 1688 * Returns the number of asset categories where uuid = ? and groupId = ?. 1689 * 1690 * @param uuid the uuid 1691 * @param groupId the group ID 1692 * @return the number of matching asset categories 1693 * @throws SystemException if a system exception occurred 1694 */ 1695 public int countByUUID_G(java.lang.String uuid, long groupId) 1696 throws com.liferay.portal.kernel.exception.SystemException; 1697 1698 /** 1699 * Returns the number of asset categories where groupId = ?. 1700 * 1701 * @param groupId the group ID 1702 * @return the number of matching asset categories 1703 * @throws SystemException if a system exception occurred 1704 */ 1705 public int countByGroupId(long groupId) 1706 throws com.liferay.portal.kernel.exception.SystemException; 1707 1708 /** 1709 * Returns the number of asset categories that the user has permission to view where groupId = ?. 1710 * 1711 * @param groupId the group ID 1712 * @return the number of matching asset categories that the user has permission to view 1713 * @throws SystemException if a system exception occurred 1714 */ 1715 public int filterCountByGroupId(long groupId) 1716 throws com.liferay.portal.kernel.exception.SystemException; 1717 1718 /** 1719 * Returns the number of asset categories where parentCategoryId = ?. 1720 * 1721 * @param parentCategoryId the parent category ID 1722 * @return the number of matching asset categories 1723 * @throws SystemException if a system exception occurred 1724 */ 1725 public int countByParentCategoryId(long parentCategoryId) 1726 throws com.liferay.portal.kernel.exception.SystemException; 1727 1728 /** 1729 * Returns the number of asset categories where vocabularyId = ?. 1730 * 1731 * @param vocabularyId the vocabulary ID 1732 * @return the number of matching asset categories 1733 * @throws SystemException if a system exception occurred 1734 */ 1735 public int countByVocabularyId(long vocabularyId) 1736 throws com.liferay.portal.kernel.exception.SystemException; 1737 1738 /** 1739 * Returns the number of asset categories where groupId = ? and vocabularyId = ?. 1740 * 1741 * @param groupId the group ID 1742 * @param vocabularyId the vocabulary ID 1743 * @return the number of matching asset categories 1744 * @throws SystemException if a system exception occurred 1745 */ 1746 public int countByG_V(long groupId, long vocabularyId) 1747 throws com.liferay.portal.kernel.exception.SystemException; 1748 1749 /** 1750 * Returns the number of asset categories that the user has permission to view where groupId = ? and vocabularyId = ?. 1751 * 1752 * @param groupId the group ID 1753 * @param vocabularyId the vocabulary ID 1754 * @return the number of matching asset categories that the user has permission to view 1755 * @throws SystemException if a system exception occurred 1756 */ 1757 public int filterCountByG_V(long groupId, long vocabularyId) 1758 throws com.liferay.portal.kernel.exception.SystemException; 1759 1760 /** 1761 * Returns the number of asset categories where parentCategoryId = ? and name = ?. 1762 * 1763 * @param parentCategoryId the parent category ID 1764 * @param name the name 1765 * @return the number of matching asset categories 1766 * @throws SystemException if a system exception occurred 1767 */ 1768 public int countByP_N(long parentCategoryId, java.lang.String name) 1769 throws com.liferay.portal.kernel.exception.SystemException; 1770 1771 /** 1772 * Returns the number of asset categories where parentCategoryId = ? and vocabularyId = ?. 1773 * 1774 * @param parentCategoryId the parent category ID 1775 * @param vocabularyId the vocabulary ID 1776 * @return the number of matching asset categories 1777 * @throws SystemException if a system exception occurred 1778 */ 1779 public int countByP_V(long parentCategoryId, long vocabularyId) 1780 throws com.liferay.portal.kernel.exception.SystemException; 1781 1782 /** 1783 * Returns the number of asset categories where name = ? and vocabularyId = ?. 1784 * 1785 * @param name the name 1786 * @param vocabularyId the vocabulary ID 1787 * @return the number of matching asset categories 1788 * @throws SystemException if a system exception occurred 1789 */ 1790 public int countByN_V(java.lang.String name, long vocabularyId) 1791 throws com.liferay.portal.kernel.exception.SystemException; 1792 1793 /** 1794 * Returns the number of asset categories where groupId = ? and parentCategoryId = ? and name = ?. 1795 * 1796 * @param groupId the group ID 1797 * @param parentCategoryId the parent category ID 1798 * @param name the name 1799 * @return the number of matching asset categories 1800 * @throws SystemException if a system exception occurred 1801 */ 1802 public int countByG_P_N(long groupId, long parentCategoryId, 1803 java.lang.String name) 1804 throws com.liferay.portal.kernel.exception.SystemException; 1805 1806 /** 1807 * Returns the number of asset categories that the user has permission to view where groupId = ? and parentCategoryId = ? and name = ?. 1808 * 1809 * @param groupId the group ID 1810 * @param parentCategoryId the parent category ID 1811 * @param name the name 1812 * @return the number of matching asset categories that the user has permission to view 1813 * @throws SystemException if a system exception occurred 1814 */ 1815 public int filterCountByG_P_N(long groupId, long parentCategoryId, 1816 java.lang.String name) 1817 throws com.liferay.portal.kernel.exception.SystemException; 1818 1819 /** 1820 * Returns the number of asset categories where parentCategoryId = ? and name = ? and vocabularyId = ?. 1821 * 1822 * @param parentCategoryId the parent category ID 1823 * @param name the name 1824 * @param vocabularyId the vocabulary ID 1825 * @return the number of matching asset categories 1826 * @throws SystemException if a system exception occurred 1827 */ 1828 public int countByP_N_V(long parentCategoryId, java.lang.String name, 1829 long vocabularyId) 1830 throws com.liferay.portal.kernel.exception.SystemException; 1831 1832 /** 1833 * Returns the number of asset categories. 1834 * 1835 * @return the number of asset categories 1836 * @throws SystemException if a system exception occurred 1837 */ 1838 public int countAll() 1839 throws com.liferay.portal.kernel.exception.SystemException; 1840 1841 /** 1842 * Returns all the asset entries associated with the asset category. 1843 * 1844 * @param pk the primary key of the asset category 1845 * @return the asset entries associated with the asset category 1846 * @throws SystemException if a system exception occurred 1847 */ 1848 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 1849 long pk) throws com.liferay.portal.kernel.exception.SystemException; 1850 1851 /** 1852 * Returns a range of all the asset entries associated with the asset category. 1853 * 1854 * <p> 1855 * 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. 1856 * </p> 1857 * 1858 * @param pk the primary key of the asset category 1859 * @param start the lower bound of the range of asset categories 1860 * @param end the upper bound of the range of asset categories (not inclusive) 1861 * @return the range of asset entries associated with the asset category 1862 * @throws SystemException if a system exception occurred 1863 */ 1864 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 1865 long pk, int start, int end) 1866 throws com.liferay.portal.kernel.exception.SystemException; 1867 1868 /** 1869 * Returns an ordered range of all the asset entries associated with the asset category. 1870 * 1871 * <p> 1872 * 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. 1873 * </p> 1874 * 1875 * @param pk the primary key of the asset category 1876 * @param start the lower bound of the range of asset categories 1877 * @param end the upper bound of the range of asset categories (not inclusive) 1878 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1879 * @return the ordered range of asset entries associated with the asset category 1880 * @throws SystemException if a system exception occurred 1881 */ 1882 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries( 1883 long pk, int start, int end, 1884 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1885 throws com.liferay.portal.kernel.exception.SystemException; 1886 1887 /** 1888 * Returns the number of asset entries associated with the asset category. 1889 * 1890 * @param pk the primary key of the asset category 1891 * @return the number of asset entries associated with the asset category 1892 * @throws SystemException if a system exception occurred 1893 */ 1894 public int getAssetEntriesSize(long pk) 1895 throws com.liferay.portal.kernel.exception.SystemException; 1896 1897 /** 1898 * Returns <code>true</code> if the asset entry is associated with the asset category. 1899 * 1900 * @param pk the primary key of the asset category 1901 * @param assetEntryPK the primary key of the asset entry 1902 * @return <code>true</code> if the asset entry is associated with the asset category; <code>false</code> otherwise 1903 * @throws SystemException if a system exception occurred 1904 */ 1905 public boolean containsAssetEntry(long pk, long assetEntryPK) 1906 throws com.liferay.portal.kernel.exception.SystemException; 1907 1908 /** 1909 * Returns <code>true</code> if the asset category has any asset entries associated with it. 1910 * 1911 * @param pk the primary key of the asset category to check for associations with asset entries 1912 * @return <code>true</code> if the asset category has any asset entries associated with it; <code>false</code> otherwise 1913 * @throws SystemException if a system exception occurred 1914 */ 1915 public boolean containsAssetEntries(long pk) 1916 throws com.liferay.portal.kernel.exception.SystemException; 1917 1918 /** 1919 * Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1920 * 1921 * @param pk the primary key of the asset category 1922 * @param assetEntryPK the primary key of the asset entry 1923 * @throws SystemException if a system exception occurred 1924 */ 1925 public void addAssetEntry(long pk, long assetEntryPK) 1926 throws com.liferay.portal.kernel.exception.SystemException; 1927 1928 /** 1929 * Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1930 * 1931 * @param pk the primary key of the asset category 1932 * @param assetEntry the asset entry 1933 * @throws SystemException if a system exception occurred 1934 */ 1935 public void addAssetEntry(long pk, 1936 com.liferay.portlet.asset.model.AssetEntry assetEntry) 1937 throws com.liferay.portal.kernel.exception.SystemException; 1938 1939 /** 1940 * Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1941 * 1942 * @param pk the primary key of the asset category 1943 * @param assetEntryPKs the primary keys of the asset entries 1944 * @throws SystemException if a system exception occurred 1945 */ 1946 public void addAssetEntries(long pk, long[] assetEntryPKs) 1947 throws com.liferay.portal.kernel.exception.SystemException; 1948 1949 /** 1950 * Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1951 * 1952 * @param pk the primary key of the asset category 1953 * @param assetEntries the asset entries 1954 * @throws SystemException if a system exception occurred 1955 */ 1956 public void addAssetEntries(long pk, 1957 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 1958 throws com.liferay.portal.kernel.exception.SystemException; 1959 1960 /** 1961 * Clears all associations between the asset category and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1962 * 1963 * @param pk the primary key of the asset category to clear the associated asset entries from 1964 * @throws SystemException if a system exception occurred 1965 */ 1966 public void clearAssetEntries(long pk) 1967 throws com.liferay.portal.kernel.exception.SystemException; 1968 1969 /** 1970 * Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1971 * 1972 * @param pk the primary key of the asset category 1973 * @param assetEntryPK the primary key of the asset entry 1974 * @throws SystemException if a system exception occurred 1975 */ 1976 public void removeAssetEntry(long pk, long assetEntryPK) 1977 throws com.liferay.portal.kernel.exception.SystemException; 1978 1979 /** 1980 * Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1981 * 1982 * @param pk the primary key of the asset category 1983 * @param assetEntry the asset entry 1984 * @throws SystemException if a system exception occurred 1985 */ 1986 public void removeAssetEntry(long pk, 1987 com.liferay.portlet.asset.model.AssetEntry assetEntry) 1988 throws com.liferay.portal.kernel.exception.SystemException; 1989 1990 /** 1991 * Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1992 * 1993 * @param pk the primary key of the asset category 1994 * @param assetEntryPKs the primary keys of the asset entries 1995 * @throws SystemException if a system exception occurred 1996 */ 1997 public void removeAssetEntries(long pk, long[] assetEntryPKs) 1998 throws com.liferay.portal.kernel.exception.SystemException; 1999 2000 /** 2001 * Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2002 * 2003 * @param pk the primary key of the asset category 2004 * @param assetEntries the asset entries 2005 * @throws SystemException if a system exception occurred 2006 */ 2007 public void removeAssetEntries(long pk, 2008 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 2009 throws com.liferay.portal.kernel.exception.SystemException; 2010 2011 /** 2012 * 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. 2013 * 2014 * @param pk the primary key of the asset category 2015 * @param assetEntryPKs the primary keys of the asset entries to be associated with the asset category 2016 * @throws SystemException if a system exception occurred 2017 */ 2018 public void setAssetEntries(long pk, long[] assetEntryPKs) 2019 throws com.liferay.portal.kernel.exception.SystemException; 2020 2021 /** 2022 * 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. 2023 * 2024 * @param pk the primary key of the asset category 2025 * @param assetEntries the asset entries to be associated with the asset category 2026 * @throws SystemException if a system exception occurred 2027 */ 2028 public void setAssetEntries(long pk, 2029 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) 2030 throws com.liferay.portal.kernel.exception.SystemException; 2031 2032 /** 2033 * Rebuilds the asset categories tree for the scope using the modified pre-order tree traversal algorithm. 2034 * 2035 * <p> 2036 * 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. 2037 * </p> 2038 * 2039 * @param groupId the ID of the scope 2040 * @param force whether to force the rebuild even if the tree is not stale 2041 */ 2042 public void rebuildTree(long groupId, boolean force) 2043 throws com.liferay.portal.kernel.exception.SystemException; 2044 2045 public void setRebuildTreeEnabled(boolean rebuildTreeEnabled); 2046 }