001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.BaseLocalService;
023 import com.liferay.portal.service.PersistedModelLocalService;
024
025
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface AssetEntryLocalService extends BaseLocalService,
041 PersistedModelLocalService {
042
047
048
055 public com.liferay.portlet.asset.model.AssetEntry addAssetEntry(
056 com.liferay.portlet.asset.model.AssetEntry assetEntry)
057 throws com.liferay.portal.kernel.exception.SystemException;
058
059
065 public com.liferay.portlet.asset.model.AssetEntry createAssetEntry(
066 long entryId);
067
068
076 public com.liferay.portlet.asset.model.AssetEntry deleteAssetEntry(
077 long entryId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException;
080
081
088 public com.liferay.portlet.asset.model.AssetEntry deleteAssetEntry(
089 com.liferay.portlet.asset.model.AssetEntry assetEntry)
090 throws com.liferay.portal.kernel.exception.SystemException;
091
092 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
093
094
101 @SuppressWarnings("rawtypes")
102 public java.util.List dynamicQuery(
103 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106
119 @SuppressWarnings("rawtypes")
120 public java.util.List dynamicQuery(
121 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122 int end) throws com.liferay.portal.kernel.exception.SystemException;
123
124
138 @SuppressWarnings("rawtypes")
139 public java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145
152 public long dynamicQueryCount(
153 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public com.liferay.portlet.asset.model.AssetEntry fetchAssetEntry(
158 long entryId)
159 throws com.liferay.portal.kernel.exception.SystemException;
160
161
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.asset.model.AssetEntry getAssetEntry(
171 long entryId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public com.liferay.portal.model.PersistedModel getPersistedModel(
177 java.io.Serializable primaryKeyObj)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException;
180
181
193 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
195 int start, int end)
196 throws com.liferay.portal.kernel.exception.SystemException;
197
198
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public int getAssetEntriesCount()
206 throws com.liferay.portal.kernel.exception.SystemException;
207
208
215 public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
216 com.liferay.portlet.asset.model.AssetEntry assetEntry)
217 throws com.liferay.portal.kernel.exception.SystemException;
218
219
222 public void addAssetCategoryAssetEntry(long categoryId, long entryId)
223 throws com.liferay.portal.kernel.exception.SystemException;
224
225
228 public void addAssetCategoryAssetEntry(long categoryId,
229 com.liferay.portlet.asset.model.AssetEntry assetEntry)
230 throws com.liferay.portal.kernel.exception.SystemException;
231
232
235 public void addAssetCategoryAssetEntries(long categoryId, long[] entryIds)
236 throws com.liferay.portal.kernel.exception.SystemException;
237
238
241 public void addAssetCategoryAssetEntries(long categoryId,
242 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
243 throws com.liferay.portal.kernel.exception.SystemException;
244
245
248 public void clearAssetCategoryAssetEntries(long categoryId)
249 throws com.liferay.portal.kernel.exception.SystemException;
250
251
254 public void deleteAssetCategoryAssetEntry(long categoryId, long entryId)
255 throws com.liferay.portal.kernel.exception.SystemException;
256
257
260 public void deleteAssetCategoryAssetEntry(long categoryId,
261 com.liferay.portlet.asset.model.AssetEntry assetEntry)
262 throws com.liferay.portal.kernel.exception.SystemException;
263
264
267 public void deleteAssetCategoryAssetEntries(long categoryId, long[] entryIds)
268 throws com.liferay.portal.kernel.exception.SystemException;
269
270
273 public void deleteAssetCategoryAssetEntries(long categoryId,
274 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
275 throws com.liferay.portal.kernel.exception.SystemException;
276
277
280 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
282 long categoryId)
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
290 long categoryId, int start, int end)
291 throws com.liferay.portal.kernel.exception.SystemException;
292
293
296 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
298 long categoryId, int start, int end,
299 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
300 throws com.liferay.portal.kernel.exception.SystemException;
301
302
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public int getAssetCategoryAssetEntriesCount(long categoryId)
307 throws com.liferay.portal.kernel.exception.SystemException;
308
309
312 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313 public boolean hasAssetCategoryAssetEntry(long categoryId, long entryId)
314 throws com.liferay.portal.kernel.exception.SystemException;
315
316
319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320 public boolean hasAssetCategoryAssetEntries(long categoryId)
321 throws com.liferay.portal.kernel.exception.SystemException;
322
323
326 public void setAssetCategoryAssetEntries(long categoryId, long[] entryIds)
327 throws com.liferay.portal.kernel.exception.SystemException;
328
329
332 public void addAssetTagAssetEntry(long tagId, long entryId)
333 throws com.liferay.portal.kernel.exception.SystemException;
334
335
338 public void addAssetTagAssetEntry(long tagId,
339 com.liferay.portlet.asset.model.AssetEntry assetEntry)
340 throws com.liferay.portal.kernel.exception.SystemException;
341
342
345 public void addAssetTagAssetEntries(long tagId, long[] entryIds)
346 throws com.liferay.portal.kernel.exception.SystemException;
347
348
351 public void addAssetTagAssetEntries(long tagId,
352 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
353 throws com.liferay.portal.kernel.exception.SystemException;
354
355
358 public void clearAssetTagAssetEntries(long tagId)
359 throws com.liferay.portal.kernel.exception.SystemException;
360
361
364 public void deleteAssetTagAssetEntry(long tagId, long entryId)
365 throws com.liferay.portal.kernel.exception.SystemException;
366
367
370 public void deleteAssetTagAssetEntry(long tagId,
371 com.liferay.portlet.asset.model.AssetEntry assetEntry)
372 throws com.liferay.portal.kernel.exception.SystemException;
373
374
377 public void deleteAssetTagAssetEntries(long tagId, long[] entryIds)
378 throws com.liferay.portal.kernel.exception.SystemException;
379
380
383 public void deleteAssetTagAssetEntries(long tagId,
384 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
385 throws com.liferay.portal.kernel.exception.SystemException;
386
387
390 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
391 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
392 long tagId) throws com.liferay.portal.kernel.exception.SystemException;
393
394
397 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
398 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
399 long tagId, int start, int end)
400 throws com.liferay.portal.kernel.exception.SystemException;
401
402
405 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
406 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
407 long tagId, int start, int end,
408 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
409 throws com.liferay.portal.kernel.exception.SystemException;
410
411
414 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
415 public int getAssetTagAssetEntriesCount(long tagId)
416 throws com.liferay.portal.kernel.exception.SystemException;
417
418
421 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
422 public boolean hasAssetTagAssetEntry(long tagId, long entryId)
423 throws com.liferay.portal.kernel.exception.SystemException;
424
425
428 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
429 public boolean hasAssetTagAssetEntries(long tagId)
430 throws com.liferay.portal.kernel.exception.SystemException;
431
432
435 public void setAssetTagAssetEntries(long tagId, long[] entryIds)
436 throws com.liferay.portal.kernel.exception.SystemException;
437
438
443 public java.lang.String getBeanIdentifier();
444
445
450 public void setBeanIdentifier(java.lang.String beanIdentifier);
451
452 public void deleteEntry(com.liferay.portlet.asset.model.AssetEntry entry)
453 throws com.liferay.portal.kernel.exception.PortalException,
454 com.liferay.portal.kernel.exception.SystemException;
455
456 public void deleteEntry(long entryId)
457 throws com.liferay.portal.kernel.exception.PortalException,
458 com.liferay.portal.kernel.exception.SystemException;
459
460 public void deleteEntry(java.lang.String className, long classPK)
461 throws com.liferay.portal.kernel.exception.PortalException,
462 com.liferay.portal.kernel.exception.SystemException;
463
464 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
465 public com.liferay.portlet.asset.model.AssetEntry fetchEntry(long entryId)
466 throws com.liferay.portal.kernel.exception.SystemException;
467
468 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
469 public com.liferay.portlet.asset.model.AssetEntry fetchEntry(long groupId,
470 java.lang.String classUuid)
471 throws com.liferay.portal.kernel.exception.SystemException;
472
473 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
474 public com.liferay.portlet.asset.model.AssetEntry fetchEntry(
475 java.lang.String className, long classPK)
476 throws com.liferay.portal.kernel.exception.SystemException;
477
478 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
479 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAncestorEntries(
480 long entryId)
481 throws com.liferay.portal.kernel.exception.PortalException,
482 com.liferay.portal.kernel.exception.SystemException;
483
484 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
485 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getChildEntries(
486 long entryId)
487 throws com.liferay.portal.kernel.exception.PortalException,
488 com.liferay.portal.kernel.exception.SystemException;
489
490 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
491 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
492 long companyId, int start, int end)
493 throws com.liferay.portal.kernel.exception.SystemException;
494
495 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
496 public int getCompanyEntriesCount(long companyId)
497 throws com.liferay.portal.kernel.exception.SystemException;
498
499 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
500 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
501 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
502 throws com.liferay.portal.kernel.exception.SystemException;
503
504 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
505 public int getEntriesCount(
506 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
507 throws com.liferay.portal.kernel.exception.SystemException;
508
509 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
510 public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
511 throws com.liferay.portal.kernel.exception.PortalException,
512 com.liferay.portal.kernel.exception.SystemException;
513
514 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
515 public com.liferay.portlet.asset.model.AssetEntry getEntry(long groupId,
516 java.lang.String classUuid)
517 throws com.liferay.portal.kernel.exception.PortalException,
518 com.liferay.portal.kernel.exception.SystemException;
519
520 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
521 public com.liferay.portlet.asset.model.AssetEntry getEntry(
522 java.lang.String className, long classPK)
523 throws com.liferay.portal.kernel.exception.PortalException,
524 com.liferay.portal.kernel.exception.SystemException;
525
526 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
527 public com.liferay.portlet.asset.model.AssetEntry getNextEntry(long entryId)
528 throws com.liferay.portal.kernel.exception.PortalException,
529 com.liferay.portal.kernel.exception.SystemException;
530
531 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
532 public com.liferay.portlet.asset.model.AssetEntry getParentEntry(
533 long entryId)
534 throws com.liferay.portal.kernel.exception.PortalException,
535 com.liferay.portal.kernel.exception.SystemException;
536
537 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
538 public com.liferay.portlet.asset.model.AssetEntry getPreviousEntry(
539 long entryId)
540 throws com.liferay.portal.kernel.exception.PortalException,
541 com.liferay.portal.kernel.exception.SystemException;
542
543 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
544 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
545 java.lang.String className, boolean asc, int start, int end)
546 throws com.liferay.portal.kernel.exception.SystemException;
547
548 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
549 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
550 java.lang.String[] className, boolean asc, int start, int end)
551 throws com.liferay.portal.kernel.exception.SystemException;
552
553 public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
554 long userId, java.lang.String className, long classPK)
555 throws com.liferay.portal.kernel.exception.PortalException,
556 com.liferay.portal.kernel.exception.SystemException;
557
558 public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
559 long userId, java.lang.String className, long classPK, int increment)
560 throws com.liferay.portal.kernel.exception.SystemException;
561
562 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
563 public void reindex(
564 java.util.List<com.liferay.portlet.asset.model.AssetEntry> entries)
565 throws com.liferay.portal.kernel.exception.PortalException;
566
567
571 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
572 public com.liferay.portal.kernel.search.Hits search(long companyId,
573 long[] groupIds, long userId, java.lang.String className,
574 java.lang.String keywords, int start, int end)
575 throws com.liferay.portal.kernel.exception.SystemException;
576
577 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
578 public com.liferay.portal.kernel.search.Hits search(long companyId,
579 long[] groupIds, long userId, java.lang.String className,
580 java.lang.String keywords, int status, int start, int end)
581 throws com.liferay.portal.kernel.exception.SystemException;
582
583
588 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
589 public com.liferay.portal.kernel.search.Hits search(long companyId,
590 long[] groupIds, long userId, java.lang.String className,
591 java.lang.String userName, java.lang.String title,
592 java.lang.String description, java.lang.String assetCategoryIds,
593 java.lang.String assetTagNames, boolean andSearch, int start, int end)
594 throws com.liferay.portal.kernel.exception.SystemException;
595
596 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
597 public com.liferay.portal.kernel.search.Hits search(long companyId,
598 long[] groupIds, long userId, java.lang.String className,
599 java.lang.String userName, java.lang.String title,
600 java.lang.String description, java.lang.String assetCategoryIds,
601 java.lang.String assetTagNames, int status, boolean andSearch,
602 int start, int end)
603 throws com.liferay.portal.kernel.exception.SystemException;
604
605
609 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
610 public com.liferay.portal.kernel.search.Hits search(long companyId,
611 long[] groupIds, java.lang.String className, java.lang.String keywords,
612 int start, int end)
613 throws com.liferay.portal.kernel.exception.SystemException;
614
615 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
616 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
617 java.lang.String className, long classPK, java.lang.String classUuid,
618 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
619 boolean visible, java.util.Date startDate, java.util.Date endDate,
620 java.util.Date expirationDate, java.lang.String mimeType,
621 java.lang.String title, java.lang.String description,
622 java.lang.String summary, java.lang.String url,
623 java.lang.String layoutUuid, int height, int width,
624 java.lang.Integer priority, boolean sync)
625 throws com.liferay.portal.kernel.exception.PortalException,
626 com.liferay.portal.kernel.exception.SystemException;
627
628 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
629 long groupId, java.lang.String className, long classPK,
630 long[] categoryIds, java.lang.String[] tagNames)
631 throws com.liferay.portal.kernel.exception.PortalException,
632 com.liferay.portal.kernel.exception.SystemException;
633
634
640 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
641 long groupId, java.lang.String className, long classPK,
642 java.lang.String classUuid, long classTypeId, long[] categoryIds,
643 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
644 java.util.Date endDate, java.util.Date publishDate,
645 java.util.Date expirationDate, java.lang.String mimeType,
646 java.lang.String title, java.lang.String description,
647 java.lang.String summary, java.lang.String url,
648 java.lang.String layoutUuid, int height, int width,
649 java.lang.Integer priority, boolean sync)
650 throws com.liferay.portal.kernel.exception.PortalException,
651 com.liferay.portal.kernel.exception.SystemException;
652
653
659 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
660 long groupId, java.lang.String className, long classPK,
661 java.lang.String classUuid, long classTypeId, long[] categoryIds,
662 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
663 java.util.Date endDate, java.util.Date expirationDate,
664 java.lang.String mimeType, java.lang.String title,
665 java.lang.String description, java.lang.String summary,
666 java.lang.String url, java.lang.String layoutUuid, int height,
667 int width, java.lang.Integer priority, boolean sync)
668 throws com.liferay.portal.kernel.exception.PortalException,
669 com.liferay.portal.kernel.exception.SystemException;
670
671 public com.liferay.portlet.asset.model.AssetEntry updateEntry(
672 java.lang.String className, long classPK, java.util.Date publishDate,
673 boolean visible)
674 throws com.liferay.portal.kernel.exception.PortalException,
675 com.liferay.portal.kernel.exception.SystemException;
676
677 public com.liferay.portlet.asset.model.AssetEntry updateEntry(
678 java.lang.String className, long classPK, java.util.Date publishDate,
679 java.util.Date expirationDate, boolean visible)
680 throws com.liferay.portal.kernel.exception.PortalException,
681 com.liferay.portal.kernel.exception.SystemException;
682
683 public com.liferay.portlet.asset.model.AssetEntry updateVisible(
684 java.lang.String className, long classPK, boolean visible)
685 throws com.liferay.portal.kernel.exception.PortalException,
686 com.liferay.portal.kernel.exception.SystemException;
687
688 public void validate(long groupId, java.lang.String className,
689 long[] categoryIds, java.lang.String[] tagNames)
690 throws com.liferay.portal.kernel.exception.PortalException,
691 com.liferay.portal.kernel.exception.SystemException;
692 }