001 /** 002 * Copyright (c) 2000-2011 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.kernel.exception.SystemException; 018 import com.liferay.portal.service.persistence.BasePersistence; 019 020 import com.liferay.portlet.asset.model.AssetEntry; 021 022 /** 023 * The persistence interface for the asset entry service. 024 * 025 * <p> 026 * Caching information and settings can be found in <code>portal.properties</code> 027 * </p> 028 * 029 * @author Brian Wing Shun Chan 030 * @see AssetEntryPersistenceImpl 031 * @see AssetEntryUtil 032 * @generated 033 */ 034 public interface AssetEntryPersistence extends BasePersistence<AssetEntry> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * Never modify or reference this interface directly. Always use {@link AssetEntryUtil} to access the asset entry persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 039 */ 040 041 /** 042 * Caches the asset entry in the entity cache if it is enabled. 043 * 044 * @param assetEntry the asset entry 045 */ 046 public void cacheResult( 047 com.liferay.portlet.asset.model.AssetEntry assetEntry); 048 049 /** 050 * Caches the asset entries in the entity cache if it is enabled. 051 * 052 * @param assetEntries the asset entries 053 */ 054 public void cacheResult( 055 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries); 056 057 /** 058 * Creates a new asset entry with the primary key. Does not add the asset entry to the database. 059 * 060 * @param entryId the primary key for the new asset entry 061 * @return the new asset entry 062 */ 063 public com.liferay.portlet.asset.model.AssetEntry create(long entryId); 064 065 /** 066 * Removes the asset entry with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param entryId the primary key of the asset entry 069 * @return the asset entry that was removed 070 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.asset.model.AssetEntry remove(long entryId) 074 throws com.liferay.portal.kernel.exception.SystemException, 075 com.liferay.portlet.asset.NoSuchEntryException; 076 077 public com.liferay.portlet.asset.model.AssetEntry updateImpl( 078 com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge) 079 throws com.liferay.portal.kernel.exception.SystemException; 080 081 /** 082 * Returns the asset entry with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found. 083 * 084 * @param entryId the primary key of the asset entry 085 * @return the asset entry 086 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 087 * @throws SystemException if a system exception occurred 088 */ 089 public com.liferay.portlet.asset.model.AssetEntry findByPrimaryKey( 090 long entryId) 091 throws com.liferay.portal.kernel.exception.SystemException, 092 com.liferay.portlet.asset.NoSuchEntryException; 093 094 /** 095 * Returns the asset entry with the primary key or returns <code>null</code> if it could not be found. 096 * 097 * @param entryId the primary key of the asset entry 098 * @return the asset entry, or <code>null</code> if a asset entry with the primary key could not be found 099 * @throws SystemException if a system exception occurred 100 */ 101 public com.liferay.portlet.asset.model.AssetEntry fetchByPrimaryKey( 102 long entryId) 103 throws com.liferay.portal.kernel.exception.SystemException; 104 105 /** 106 * Returns all the asset entries where companyId = ?. 107 * 108 * @param companyId the company ID 109 * @return the matching asset entries 110 * @throws SystemException if a system exception occurred 111 */ 112 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId( 113 long companyId) 114 throws com.liferay.portal.kernel.exception.SystemException; 115 116 /** 117 * Returns a range of all the asset entries where companyId = ?. 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 companyId the company ID 124 * @param start the lower bound of the range of asset entries 125 * @param end the upper bound of the range of asset entries (not inclusive) 126 * @return the range of matching asset entries 127 * @throws SystemException if a system exception occurred 128 */ 129 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId( 130 long companyId, int start, int end) 131 throws com.liferay.portal.kernel.exception.SystemException; 132 133 /** 134 * Returns an ordered range of all the asset entries where companyId = ?. 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 companyId the company ID 141 * @param start the lower bound of the range of asset entries 142 * @param end the upper bound of the range of asset entries (not inclusive) 143 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 144 * @return the ordered range of matching asset entries 145 * @throws SystemException if a system exception occurred 146 */ 147 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId( 148 long companyId, 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 entry in the ordered set where companyId = ?. 154 * 155 * <p> 156 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 157 * </p> 158 * 159 * @param companyId the company ID 160 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 161 * @return the first matching asset entry 162 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 163 * @throws SystemException if a system exception occurred 164 */ 165 public com.liferay.portlet.asset.model.AssetEntry findByCompanyId_First( 166 long companyId, 167 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 168 throws com.liferay.portal.kernel.exception.SystemException, 169 com.liferay.portlet.asset.NoSuchEntryException; 170 171 /** 172 * Returns the last asset entry in the ordered set where companyId = ?. 173 * 174 * <p> 175 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 176 * </p> 177 * 178 * @param companyId the company ID 179 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 180 * @return the last matching asset entry 181 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 182 * @throws SystemException if a system exception occurred 183 */ 184 public com.liferay.portlet.asset.model.AssetEntry findByCompanyId_Last( 185 long companyId, 186 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 187 throws com.liferay.portal.kernel.exception.SystemException, 188 com.liferay.portlet.asset.NoSuchEntryException; 189 190 /** 191 * Returns the asset entries before and after the current asset entry in the ordered set where companyId = ?. 192 * 193 * <p> 194 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 195 * </p> 196 * 197 * @param entryId the primary key of the current asset entry 198 * @param companyId the company ID 199 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 200 * @return the previous, current, and next asset entry 201 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 public com.liferay.portlet.asset.model.AssetEntry[] findByCompanyId_PrevAndNext( 205 long entryId, long companyId, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.kernel.exception.SystemException, 208 com.liferay.portlet.asset.NoSuchEntryException; 209 210 /** 211 * Returns all the asset entries where visible = ?. 212 * 213 * @param visible the visible 214 * @return the matching asset entries 215 * @throws SystemException if a system exception occurred 216 */ 217 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible( 218 boolean visible) 219 throws com.liferay.portal.kernel.exception.SystemException; 220 221 /** 222 * Returns a range of all the asset entries where visible = ?. 223 * 224 * <p> 225 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 226 * </p> 227 * 228 * @param visible the visible 229 * @param start the lower bound of the range of asset entries 230 * @param end the upper bound of the range of asset entries (not inclusive) 231 * @return the range of matching asset entries 232 * @throws SystemException if a system exception occurred 233 */ 234 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible( 235 boolean visible, int start, int end) 236 throws com.liferay.portal.kernel.exception.SystemException; 237 238 /** 239 * Returns an ordered range of all the asset entries where visible = ?. 240 * 241 * <p> 242 * 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. 243 * </p> 244 * 245 * @param visible the visible 246 * @param start the lower bound of the range of asset entries 247 * @param end the upper bound of the range of asset entries (not inclusive) 248 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 249 * @return the ordered range of matching asset entries 250 * @throws SystemException if a system exception occurred 251 */ 252 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible( 253 boolean visible, int start, int end, 254 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 255 throws com.liferay.portal.kernel.exception.SystemException; 256 257 /** 258 * Returns the first asset entry in the ordered set where visible = ?. 259 * 260 * <p> 261 * 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. 262 * </p> 263 * 264 * @param visible the visible 265 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 266 * @return the first matching asset entry 267 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 268 * @throws SystemException if a system exception occurred 269 */ 270 public com.liferay.portlet.asset.model.AssetEntry findByVisible_First( 271 boolean visible, 272 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 273 throws com.liferay.portal.kernel.exception.SystemException, 274 com.liferay.portlet.asset.NoSuchEntryException; 275 276 /** 277 * Returns the last asset entry in the ordered set where visible = ?. 278 * 279 * <p> 280 * 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. 281 * </p> 282 * 283 * @param visible the visible 284 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 285 * @return the last matching asset entry 286 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 287 * @throws SystemException if a system exception occurred 288 */ 289 public com.liferay.portlet.asset.model.AssetEntry findByVisible_Last( 290 boolean visible, 291 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 292 throws com.liferay.portal.kernel.exception.SystemException, 293 com.liferay.portlet.asset.NoSuchEntryException; 294 295 /** 296 * Returns the asset entries before and after the current asset entry in the ordered set where visible = ?. 297 * 298 * <p> 299 * 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. 300 * </p> 301 * 302 * @param entryId the primary key of the current asset entry 303 * @param visible the visible 304 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 305 * @return the previous, current, and next asset entry 306 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 307 * @throws SystemException if a system exception occurred 308 */ 309 public com.liferay.portlet.asset.model.AssetEntry[] findByVisible_PrevAndNext( 310 long entryId, boolean visible, 311 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 312 throws com.liferay.portal.kernel.exception.SystemException, 313 com.liferay.portlet.asset.NoSuchEntryException; 314 315 /** 316 * Returns all the asset entries where publishDate = ?. 317 * 318 * @param publishDate the publish date 319 * @return the matching asset entries 320 * @throws SystemException if a system exception occurred 321 */ 322 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate( 323 java.util.Date publishDate) 324 throws com.liferay.portal.kernel.exception.SystemException; 325 326 /** 327 * Returns a range of all the asset entries where publishDate = ?. 328 * 329 * <p> 330 * 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. 331 * </p> 332 * 333 * @param publishDate the publish date 334 * @param start the lower bound of the range of asset entries 335 * @param end the upper bound of the range of asset entries (not inclusive) 336 * @return the range of matching asset entries 337 * @throws SystemException if a system exception occurred 338 */ 339 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate( 340 java.util.Date publishDate, int start, int end) 341 throws com.liferay.portal.kernel.exception.SystemException; 342 343 /** 344 * Returns an ordered range of all the asset entries where publishDate = ?. 345 * 346 * <p> 347 * 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. 348 * </p> 349 * 350 * @param publishDate the publish date 351 * @param start the lower bound of the range of asset entries 352 * @param end the upper bound of the range of asset entries (not inclusive) 353 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 354 * @return the ordered range of matching asset entries 355 * @throws SystemException if a system exception occurred 356 */ 357 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate( 358 java.util.Date publishDate, int start, int end, 359 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 360 throws com.liferay.portal.kernel.exception.SystemException; 361 362 /** 363 * Returns the first asset entry in the ordered set where publishDate = ?. 364 * 365 * <p> 366 * 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. 367 * </p> 368 * 369 * @param publishDate the publish date 370 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 371 * @return the first matching asset entry 372 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 373 * @throws SystemException if a system exception occurred 374 */ 375 public com.liferay.portlet.asset.model.AssetEntry findByPublishDate_First( 376 java.util.Date publishDate, 377 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 378 throws com.liferay.portal.kernel.exception.SystemException, 379 com.liferay.portlet.asset.NoSuchEntryException; 380 381 /** 382 * Returns the last asset entry in the ordered set where publishDate = ?. 383 * 384 * <p> 385 * 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. 386 * </p> 387 * 388 * @param publishDate the publish date 389 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 390 * @return the last matching asset entry 391 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 392 * @throws SystemException if a system exception occurred 393 */ 394 public com.liferay.portlet.asset.model.AssetEntry findByPublishDate_Last( 395 java.util.Date publishDate, 396 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 397 throws com.liferay.portal.kernel.exception.SystemException, 398 com.liferay.portlet.asset.NoSuchEntryException; 399 400 /** 401 * Returns the asset entries before and after the current asset entry in the ordered set where publishDate = ?. 402 * 403 * <p> 404 * 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. 405 * </p> 406 * 407 * @param entryId the primary key of the current asset entry 408 * @param publishDate the publish date 409 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 410 * @return the previous, current, and next asset entry 411 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 412 * @throws SystemException if a system exception occurred 413 */ 414 public com.liferay.portlet.asset.model.AssetEntry[] findByPublishDate_PrevAndNext( 415 long entryId, java.util.Date publishDate, 416 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 417 throws com.liferay.portal.kernel.exception.SystemException, 418 com.liferay.portlet.asset.NoSuchEntryException; 419 420 /** 421 * Returns all the asset entries where expirationDate = ?. 422 * 423 * @param expirationDate the expiration date 424 * @return the matching asset entries 425 * @throws SystemException if a system exception occurred 426 */ 427 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate( 428 java.util.Date expirationDate) 429 throws com.liferay.portal.kernel.exception.SystemException; 430 431 /** 432 * Returns a range of all the asset entries where expirationDate = ?. 433 * 434 * <p> 435 * 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. 436 * </p> 437 * 438 * @param expirationDate the expiration date 439 * @param start the lower bound of the range of asset entries 440 * @param end the upper bound of the range of asset entries (not inclusive) 441 * @return the range of matching asset entries 442 * @throws SystemException if a system exception occurred 443 */ 444 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate( 445 java.util.Date expirationDate, int start, int end) 446 throws com.liferay.portal.kernel.exception.SystemException; 447 448 /** 449 * Returns an ordered range of all the asset entries where expirationDate = ?. 450 * 451 * <p> 452 * 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. 453 * </p> 454 * 455 * @param expirationDate the expiration date 456 * @param start the lower bound of the range of asset entries 457 * @param end the upper bound of the range of asset entries (not inclusive) 458 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 459 * @return the ordered range of matching asset entries 460 * @throws SystemException if a system exception occurred 461 */ 462 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate( 463 java.util.Date expirationDate, int start, int end, 464 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 465 throws com.liferay.portal.kernel.exception.SystemException; 466 467 /** 468 * Returns the first asset entry in the ordered set where expirationDate = ?. 469 * 470 * <p> 471 * 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. 472 * </p> 473 * 474 * @param expirationDate the expiration date 475 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 476 * @return the first matching asset entry 477 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 478 * @throws SystemException if a system exception occurred 479 */ 480 public com.liferay.portlet.asset.model.AssetEntry findByExpirationDate_First( 481 java.util.Date expirationDate, 482 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 483 throws com.liferay.portal.kernel.exception.SystemException, 484 com.liferay.portlet.asset.NoSuchEntryException; 485 486 /** 487 * Returns the last asset entry in the ordered set where expirationDate = ?. 488 * 489 * <p> 490 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 491 * </p> 492 * 493 * @param expirationDate the expiration date 494 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 495 * @return the last matching asset entry 496 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 497 * @throws SystemException if a system exception occurred 498 */ 499 public com.liferay.portlet.asset.model.AssetEntry findByExpirationDate_Last( 500 java.util.Date expirationDate, 501 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 502 throws com.liferay.portal.kernel.exception.SystemException, 503 com.liferay.portlet.asset.NoSuchEntryException; 504 505 /** 506 * Returns the asset entries before and after the current asset entry in the ordered set where expirationDate = ?. 507 * 508 * <p> 509 * 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. 510 * </p> 511 * 512 * @param entryId the primary key of the current asset entry 513 * @param expirationDate the expiration date 514 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 515 * @return the previous, current, and next asset entry 516 * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found 517 * @throws SystemException if a system exception occurred 518 */ 519 public com.liferay.portlet.asset.model.AssetEntry[] findByExpirationDate_PrevAndNext( 520 long entryId, java.util.Date expirationDate, 521 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 522 throws com.liferay.portal.kernel.exception.SystemException, 523 com.liferay.portlet.asset.NoSuchEntryException; 524 525 /** 526 * Returns the asset entry where groupId = ? and classUuid = ? or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found. 527 * 528 * @param groupId the group ID 529 * @param classUuid the class uuid 530 * @return the matching asset entry 531 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 532 * @throws SystemException if a system exception occurred 533 */ 534 public com.liferay.portlet.asset.model.AssetEntry findByG_CU(long groupId, 535 java.lang.String classUuid) 536 throws com.liferay.portal.kernel.exception.SystemException, 537 com.liferay.portlet.asset.NoSuchEntryException; 538 539 /** 540 * Returns the asset entry where groupId = ? and classUuid = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 541 * 542 * @param groupId the group ID 543 * @param classUuid the class uuid 544 * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found 545 * @throws SystemException if a system exception occurred 546 */ 547 public com.liferay.portlet.asset.model.AssetEntry fetchByG_CU( 548 long groupId, java.lang.String classUuid) 549 throws com.liferay.portal.kernel.exception.SystemException; 550 551 /** 552 * Returns the asset entry where groupId = ? and classUuid = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 553 * 554 * @param groupId the group ID 555 * @param classUuid the class uuid 556 * @param retrieveFromCache whether to use the finder cache 557 * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found 558 * @throws SystemException if a system exception occurred 559 */ 560 public com.liferay.portlet.asset.model.AssetEntry fetchByG_CU( 561 long groupId, java.lang.String classUuid, boolean retrieveFromCache) 562 throws com.liferay.portal.kernel.exception.SystemException; 563 564 /** 565 * Returns the asset entry where classNameId = ? and classPK = ? or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found. 566 * 567 * @param classNameId the class name ID 568 * @param classPK the class p k 569 * @return the matching asset entry 570 * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found 571 * @throws SystemException if a system exception occurred 572 */ 573 public com.liferay.portlet.asset.model.AssetEntry findByC_C( 574 long classNameId, long classPK) 575 throws com.liferay.portal.kernel.exception.SystemException, 576 com.liferay.portlet.asset.NoSuchEntryException; 577 578 /** 579 * Returns the asset entry where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 580 * 581 * @param classNameId the class name ID 582 * @param classPK the class p k 583 * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found 584 * @throws SystemException if a system exception occurred 585 */ 586 public com.liferay.portlet.asset.model.AssetEntry fetchByC_C( 587 long classNameId, long classPK) 588 throws com.liferay.portal.kernel.exception.SystemException; 589 590 /** 591 * Returns the asset entry where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 592 * 593 * @param classNameId the class name ID 594 * @param classPK the class p k 595 * @param retrieveFromCache whether to use the finder cache 596 * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found 597 * @throws SystemException if a system exception occurred 598 */ 599 public com.liferay.portlet.asset.model.AssetEntry fetchByC_C( 600 long classNameId, long classPK, boolean retrieveFromCache) 601 throws com.liferay.portal.kernel.exception.SystemException; 602 603 /** 604 * Returns all the asset entries. 605 * 606 * @return the asset entries 607 * @throws SystemException if a system exception occurred 608 */ 609 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll() 610 throws com.liferay.portal.kernel.exception.SystemException; 611 612 /** 613 * Returns a range of all the asset entries. 614 * 615 * <p> 616 * 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. 617 * </p> 618 * 619 * @param start the lower bound of the range of asset entries 620 * @param end the upper bound of the range of asset entries (not inclusive) 621 * @return the range of asset entries 622 * @throws SystemException if a system exception occurred 623 */ 624 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll( 625 int start, int end) 626 throws com.liferay.portal.kernel.exception.SystemException; 627 628 /** 629 * Returns an ordered range of all the asset entries. 630 * 631 * <p> 632 * 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. 633 * </p> 634 * 635 * @param start the lower bound of the range of asset entries 636 * @param end the upper bound of the range of asset entries (not inclusive) 637 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 638 * @return the ordered range of asset entries 639 * @throws SystemException if a system exception occurred 640 */ 641 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll( 642 int start, int end, 643 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 644 throws com.liferay.portal.kernel.exception.SystemException; 645 646 /** 647 * Removes all the asset entries where companyId = ? from the database. 648 * 649 * @param companyId the company ID 650 * @throws SystemException if a system exception occurred 651 */ 652 public void removeByCompanyId(long companyId) 653 throws com.liferay.portal.kernel.exception.SystemException; 654 655 /** 656 * Removes all the asset entries where visible = ? from the database. 657 * 658 * @param visible the visible 659 * @throws SystemException if a system exception occurred 660 */ 661 public void removeByVisible(boolean visible) 662 throws com.liferay.portal.kernel.exception.SystemException; 663 664 /** 665 * Removes all the asset entries where publishDate = ? from the database. 666 * 667 * @param publishDate the publish date 668 * @throws SystemException if a system exception occurred 669 */ 670 public void removeByPublishDate(java.util.Date publishDate) 671 throws com.liferay.portal.kernel.exception.SystemException; 672 673 /** 674 * Removes all the asset entries where expirationDate = ? from the database. 675 * 676 * @param expirationDate the expiration date 677 * @throws SystemException if a system exception occurred 678 */ 679 public void removeByExpirationDate(java.util.Date expirationDate) 680 throws com.liferay.portal.kernel.exception.SystemException; 681 682 /** 683 * Removes the asset entry where groupId = ? and classUuid = ? from the database. 684 * 685 * @param groupId the group ID 686 * @param classUuid the class uuid 687 * @throws SystemException if a system exception occurred 688 */ 689 public void removeByG_CU(long groupId, java.lang.String classUuid) 690 throws com.liferay.portal.kernel.exception.SystemException, 691 com.liferay.portlet.asset.NoSuchEntryException; 692 693 /** 694 * Removes the asset entry where classNameId = ? and classPK = ? from the database. 695 * 696 * @param classNameId the class name ID 697 * @param classPK the class p k 698 * @throws SystemException if a system exception occurred 699 */ 700 public void removeByC_C(long classNameId, long classPK) 701 throws com.liferay.portal.kernel.exception.SystemException, 702 com.liferay.portlet.asset.NoSuchEntryException; 703 704 /** 705 * Removes all the asset entries from the database. 706 * 707 * @throws SystemException if a system exception occurred 708 */ 709 public void removeAll() 710 throws com.liferay.portal.kernel.exception.SystemException; 711 712 /** 713 * Returns the number of asset entries where companyId = ?. 714 * 715 * @param companyId the company ID 716 * @return the number of matching asset entries 717 * @throws SystemException if a system exception occurred 718 */ 719 public int countByCompanyId(long companyId) 720 throws com.liferay.portal.kernel.exception.SystemException; 721 722 /** 723 * Returns the number of asset entries where visible = ?. 724 * 725 * @param visible the visible 726 * @return the number of matching asset entries 727 * @throws SystemException if a system exception occurred 728 */ 729 public int countByVisible(boolean visible) 730 throws com.liferay.portal.kernel.exception.SystemException; 731 732 /** 733 * Returns the number of asset entries where publishDate = ?. 734 * 735 * @param publishDate the publish date 736 * @return the number of matching asset entries 737 * @throws SystemException if a system exception occurred 738 */ 739 public int countByPublishDate(java.util.Date publishDate) 740 throws com.liferay.portal.kernel.exception.SystemException; 741 742 /** 743 * Returns the number of asset entries where expirationDate = ?. 744 * 745 * @param expirationDate the expiration date 746 * @return the number of matching asset entries 747 * @throws SystemException if a system exception occurred 748 */ 749 public int countByExpirationDate(java.util.Date expirationDate) 750 throws com.liferay.portal.kernel.exception.SystemException; 751 752 /** 753 * Returns the number of asset entries where groupId = ? and classUuid = ?. 754 * 755 * @param groupId the group ID 756 * @param classUuid the class uuid 757 * @return the number of matching asset entries 758 * @throws SystemException if a system exception occurred 759 */ 760 public int countByG_CU(long groupId, java.lang.String classUuid) 761 throws com.liferay.portal.kernel.exception.SystemException; 762 763 /** 764 * Returns the number of asset entries where classNameId = ? and classPK = ?. 765 * 766 * @param classNameId the class name ID 767 * @param classPK the class p k 768 * @return the number of matching asset entries 769 * @throws SystemException if a system exception occurred 770 */ 771 public int countByC_C(long classNameId, long classPK) 772 throws com.liferay.portal.kernel.exception.SystemException; 773 774 /** 775 * Returns the number of asset entries. 776 * 777 * @return the number of asset entries 778 * @throws SystemException if a system exception occurred 779 */ 780 public int countAll() 781 throws com.liferay.portal.kernel.exception.SystemException; 782 783 /** 784 * Returns all the asset categories associated with the asset entry. 785 * 786 * @param pk the primary key of the asset entry 787 * @return the asset categories associated with the asset entry 788 * @throws SystemException if a system exception occurred 789 */ 790 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories( 791 long pk) throws com.liferay.portal.kernel.exception.SystemException; 792 793 /** 794 * Returns a range of all the asset categories associated with the asset entry. 795 * 796 * <p> 797 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 798 * </p> 799 * 800 * @param pk the primary key of the asset entry 801 * @param start the lower bound of the range of asset entries 802 * @param end the upper bound of the range of asset entries (not inclusive) 803 * @return the range of asset categories associated with the asset entry 804 * @throws SystemException if a system exception occurred 805 */ 806 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories( 807 long pk, int start, int end) 808 throws com.liferay.portal.kernel.exception.SystemException; 809 810 /** 811 * Returns an ordered range of all the asset categories associated with the asset entry. 812 * 813 * <p> 814 * 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. 815 * </p> 816 * 817 * @param pk the primary key of the asset entry 818 * @param start the lower bound of the range of asset entries 819 * @param end the upper bound of the range of asset entries (not inclusive) 820 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 821 * @return the ordered range of asset categories associated with the asset entry 822 * @throws SystemException if a system exception occurred 823 */ 824 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories( 825 long pk, int start, int end, 826 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 827 throws com.liferay.portal.kernel.exception.SystemException; 828 829 /** 830 * Returns the number of asset categories associated with the asset entry. 831 * 832 * @param pk the primary key of the asset entry 833 * @return the number of asset categories associated with the asset entry 834 * @throws SystemException if a system exception occurred 835 */ 836 public int getAssetCategoriesSize(long pk) 837 throws com.liferay.portal.kernel.exception.SystemException; 838 839 /** 840 * Returns <code>true</code> if the asset category is associated with the asset entry. 841 * 842 * @param pk the primary key of the asset entry 843 * @param assetCategoryPK the primary key of the asset category 844 * @return <code>true</code> if the asset category is associated with the asset entry; <code>false</code> otherwise 845 * @throws SystemException if a system exception occurred 846 */ 847 public boolean containsAssetCategory(long pk, long assetCategoryPK) 848 throws com.liferay.portal.kernel.exception.SystemException; 849 850 /** 851 * Returns <code>true</code> if the asset entry has any asset categories associated with it. 852 * 853 * @param pk the primary key of the asset entry to check for associations with asset categories 854 * @return <code>true</code> if the asset entry has any asset categories associated with it; <code>false</code> otherwise 855 * @throws SystemException if a system exception occurred 856 */ 857 public boolean containsAssetCategories(long pk) 858 throws com.liferay.portal.kernel.exception.SystemException; 859 860 /** 861 * Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache. 862 * 863 * @param pk the primary key of the asset entry 864 * @param assetCategoryPK the primary key of the asset category 865 * @throws SystemException if a system exception occurred 866 */ 867 public void addAssetCategory(long pk, long assetCategoryPK) 868 throws com.liferay.portal.kernel.exception.SystemException; 869 870 /** 871 * Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache. 872 * 873 * @param pk the primary key of the asset entry 874 * @param assetCategory the asset category 875 * @throws SystemException if a system exception occurred 876 */ 877 public void addAssetCategory(long pk, 878 com.liferay.portlet.asset.model.AssetCategory assetCategory) 879 throws com.liferay.portal.kernel.exception.SystemException; 880 881 /** 882 * Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 883 * 884 * @param pk the primary key of the asset entry 885 * @param assetCategoryPKs the primary keys of the asset categories 886 * @throws SystemException if a system exception occurred 887 */ 888 public void addAssetCategories(long pk, long[] assetCategoryPKs) 889 throws com.liferay.portal.kernel.exception.SystemException; 890 891 /** 892 * Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 893 * 894 * @param pk the primary key of the asset entry 895 * @param assetCategories the asset categories 896 * @throws SystemException if a system exception occurred 897 */ 898 public void addAssetCategories(long pk, 899 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories) 900 throws com.liferay.portal.kernel.exception.SystemException; 901 902 /** 903 * Clears all associations between the asset entry and its asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 904 * 905 * @param pk the primary key of the asset entry to clear the associated asset categories from 906 * @throws SystemException if a system exception occurred 907 */ 908 public void clearAssetCategories(long pk) 909 throws com.liferay.portal.kernel.exception.SystemException; 910 911 /** 912 * Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache. 913 * 914 * @param pk the primary key of the asset entry 915 * @param assetCategoryPK the primary key of the asset category 916 * @throws SystemException if a system exception occurred 917 */ 918 public void removeAssetCategory(long pk, long assetCategoryPK) 919 throws com.liferay.portal.kernel.exception.SystemException; 920 921 /** 922 * Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache. 923 * 924 * @param pk the primary key of the asset entry 925 * @param assetCategory the asset category 926 * @throws SystemException if a system exception occurred 927 */ 928 public void removeAssetCategory(long pk, 929 com.liferay.portlet.asset.model.AssetCategory assetCategory) 930 throws com.liferay.portal.kernel.exception.SystemException; 931 932 /** 933 * Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 934 * 935 * @param pk the primary key of the asset entry 936 * @param assetCategoryPKs the primary keys of the asset categories 937 * @throws SystemException if a system exception occurred 938 */ 939 public void removeAssetCategories(long pk, long[] assetCategoryPKs) 940 throws com.liferay.portal.kernel.exception.SystemException; 941 942 /** 943 * Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache. 944 * 945 * @param pk the primary key of the asset entry 946 * @param assetCategories the asset categories 947 * @throws SystemException if a system exception occurred 948 */ 949 public void removeAssetCategories(long pk, 950 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories) 951 throws com.liferay.portal.kernel.exception.SystemException; 952 953 /** 954 * Sets the asset categories associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 955 * 956 * @param pk the primary key of the asset entry 957 * @param assetCategoryPKs the primary keys of the asset categories to be associated with the asset entry 958 * @throws SystemException if a system exception occurred 959 */ 960 public void setAssetCategories(long pk, long[] assetCategoryPKs) 961 throws com.liferay.portal.kernel.exception.SystemException; 962 963 /** 964 * Sets the asset categories associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 965 * 966 * @param pk the primary key of the asset entry 967 * @param assetCategories the asset categories to be associated with the asset entry 968 * @throws SystemException if a system exception occurred 969 */ 970 public void setAssetCategories(long pk, 971 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories) 972 throws com.liferay.portal.kernel.exception.SystemException; 973 974 /** 975 * Returns all the asset tags associated with the asset entry. 976 * 977 * @param pk the primary key of the asset entry 978 * @return the asset tags associated with the asset entry 979 * @throws SystemException if a system exception occurred 980 */ 981 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags( 982 long pk) throws com.liferay.portal.kernel.exception.SystemException; 983 984 /** 985 * Returns a range of all the asset tags associated with the asset entry. 986 * 987 * <p> 988 * 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. 989 * </p> 990 * 991 * @param pk the primary key of the asset entry 992 * @param start the lower bound of the range of asset entries 993 * @param end the upper bound of the range of asset entries (not inclusive) 994 * @return the range of asset tags associated with the asset entry 995 * @throws SystemException if a system exception occurred 996 */ 997 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags( 998 long pk, int start, int end) 999 throws com.liferay.portal.kernel.exception.SystemException; 1000 1001 /** 1002 * Returns an ordered range of all the asset tags associated with the asset entry. 1003 * 1004 * <p> 1005 * 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. 1006 * </p> 1007 * 1008 * @param pk the primary key of the asset entry 1009 * @param start the lower bound of the range of asset entries 1010 * @param end the upper bound of the range of asset entries (not inclusive) 1011 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1012 * @return the ordered range of asset tags associated with the asset entry 1013 * @throws SystemException if a system exception occurred 1014 */ 1015 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags( 1016 long pk, int start, int end, 1017 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1018 throws com.liferay.portal.kernel.exception.SystemException; 1019 1020 /** 1021 * Returns the number of asset tags associated with the asset entry. 1022 * 1023 * @param pk the primary key of the asset entry 1024 * @return the number of asset tags associated with the asset entry 1025 * @throws SystemException if a system exception occurred 1026 */ 1027 public int getAssetTagsSize(long pk) 1028 throws com.liferay.portal.kernel.exception.SystemException; 1029 1030 /** 1031 * Returns <code>true</code> if the asset tag is associated with the asset entry. 1032 * 1033 * @param pk the primary key of the asset entry 1034 * @param assetTagPK the primary key of the asset tag 1035 * @return <code>true</code> if the asset tag is associated with the asset entry; <code>false</code> otherwise 1036 * @throws SystemException if a system exception occurred 1037 */ 1038 public boolean containsAssetTag(long pk, long assetTagPK) 1039 throws com.liferay.portal.kernel.exception.SystemException; 1040 1041 /** 1042 * Returns <code>true</code> if the asset entry has any asset tags associated with it. 1043 * 1044 * @param pk the primary key of the asset entry to check for associations with asset tags 1045 * @return <code>true</code> if the asset entry has any asset tags associated with it; <code>false</code> otherwise 1046 * @throws SystemException if a system exception occurred 1047 */ 1048 public boolean containsAssetTags(long pk) 1049 throws com.liferay.portal.kernel.exception.SystemException; 1050 1051 /** 1052 * Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1053 * 1054 * @param pk the primary key of the asset entry 1055 * @param assetTagPK the primary key of the asset tag 1056 * @throws SystemException if a system exception occurred 1057 */ 1058 public void addAssetTag(long pk, long assetTagPK) 1059 throws com.liferay.portal.kernel.exception.SystemException; 1060 1061 /** 1062 * Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1063 * 1064 * @param pk the primary key of the asset entry 1065 * @param assetTag the asset tag 1066 * @throws SystemException if a system exception occurred 1067 */ 1068 public void addAssetTag(long pk, 1069 com.liferay.portlet.asset.model.AssetTag assetTag) 1070 throws com.liferay.portal.kernel.exception.SystemException; 1071 1072 /** 1073 * Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1074 * 1075 * @param pk the primary key of the asset entry 1076 * @param assetTagPKs the primary keys of the asset tags 1077 * @throws SystemException if a system exception occurred 1078 */ 1079 public void addAssetTags(long pk, long[] assetTagPKs) 1080 throws com.liferay.portal.kernel.exception.SystemException; 1081 1082 /** 1083 * Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1084 * 1085 * @param pk the primary key of the asset entry 1086 * @param assetTags the asset tags 1087 * @throws SystemException if a system exception occurred 1088 */ 1089 public void addAssetTags(long pk, 1090 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags) 1091 throws com.liferay.portal.kernel.exception.SystemException; 1092 1093 /** 1094 * Clears all associations between the asset entry and its asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1095 * 1096 * @param pk the primary key of the asset entry to clear the associated asset tags from 1097 * @throws SystemException if a system exception occurred 1098 */ 1099 public void clearAssetTags(long pk) 1100 throws com.liferay.portal.kernel.exception.SystemException; 1101 1102 /** 1103 * Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1104 * 1105 * @param pk the primary key of the asset entry 1106 * @param assetTagPK the primary key of the asset tag 1107 * @throws SystemException if a system exception occurred 1108 */ 1109 public void removeAssetTag(long pk, long assetTagPK) 1110 throws com.liferay.portal.kernel.exception.SystemException; 1111 1112 /** 1113 * Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1114 * 1115 * @param pk the primary key of the asset entry 1116 * @param assetTag the asset tag 1117 * @throws SystemException if a system exception occurred 1118 */ 1119 public void removeAssetTag(long pk, 1120 com.liferay.portlet.asset.model.AssetTag assetTag) 1121 throws com.liferay.portal.kernel.exception.SystemException; 1122 1123 /** 1124 * Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1125 * 1126 * @param pk the primary key of the asset entry 1127 * @param assetTagPKs the primary keys of the asset tags 1128 * @throws SystemException if a system exception occurred 1129 */ 1130 public void removeAssetTags(long pk, long[] assetTagPKs) 1131 throws com.liferay.portal.kernel.exception.SystemException; 1132 1133 /** 1134 * Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1135 * 1136 * @param pk the primary key of the asset entry 1137 * @param assetTags the asset tags 1138 * @throws SystemException if a system exception occurred 1139 */ 1140 public void removeAssetTags(long pk, 1141 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags) 1142 throws com.liferay.portal.kernel.exception.SystemException; 1143 1144 /** 1145 * Sets the asset tags associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1146 * 1147 * @param pk the primary key of the asset entry 1148 * @param assetTagPKs the primary keys of the asset tags to be associated with the asset entry 1149 * @throws SystemException if a system exception occurred 1150 */ 1151 public void setAssetTags(long pk, long[] assetTagPKs) 1152 throws com.liferay.portal.kernel.exception.SystemException; 1153 1154 /** 1155 * Sets the asset tags associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1156 * 1157 * @param pk the primary key of the asset entry 1158 * @param assetTags the asset tags to be associated with the asset entry 1159 * @throws SystemException if a system exception occurred 1160 */ 1161 public void setAssetTags(long pk, 1162 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags) 1163 throws com.liferay.portal.kernel.exception.SystemException; 1164 1165 public AssetEntry remove(AssetEntry assetEntry) throws SystemException; 1166 }