001
014
015 package com.liferay.portlet.asset.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.search.IndexableType;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025 import com.liferay.portal.service.BaseLocalService;
026 import com.liferay.portal.service.PersistedModelLocalService;
027
028
040 @ProviderType
041 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
042 PortalException.class, SystemException.class})
043 public interface AssetEntryLocalService extends BaseLocalService,
044 PersistedModelLocalService {
045
050
051
058 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
059 public com.liferay.portlet.asset.model.AssetEntry addAssetEntry(
060 com.liferay.portlet.asset.model.AssetEntry assetEntry)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063
069 public com.liferay.portlet.asset.model.AssetEntry createAssetEntry(
070 long entryId);
071
072
080 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
081 public com.liferay.portlet.asset.model.AssetEntry deleteAssetEntry(
082 long entryId)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException;
085
086
093 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
094 public com.liferay.portlet.asset.model.AssetEntry deleteAssetEntry(
095 com.liferay.portlet.asset.model.AssetEntry assetEntry)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
099
100
107 @SuppressWarnings("rawtypes")
108 public java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException;
111
112
125 @SuppressWarnings("rawtypes")
126 public java.util.List dynamicQuery(
127 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
128 int end) throws com.liferay.portal.kernel.exception.SystemException;
129
130
144 @SuppressWarnings("rawtypes")
145 public java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException;
150
151
158 public long dynamicQueryCount(
159 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
160 throws com.liferay.portal.kernel.exception.SystemException;
161
162
170 public long dynamicQueryCount(
171 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
172 com.liferay.portal.kernel.dao.orm.Projection projection)
173 throws com.liferay.portal.kernel.exception.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public com.liferay.portlet.asset.model.AssetEntry fetchAssetEntry(
177 long entryId)
178 throws com.liferay.portal.kernel.exception.SystemException;
179
180
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public com.liferay.portlet.asset.model.AssetEntry getAssetEntry(
190 long entryId)
191 throws com.liferay.portal.kernel.exception.PortalException,
192 com.liferay.portal.kernel.exception.SystemException;
193
194 @Override
195 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196 public com.liferay.portal.model.PersistedModel getPersistedModel(
197 java.io.Serializable primaryKeyObj)
198 throws com.liferay.portal.kernel.exception.PortalException,
199 com.liferay.portal.kernel.exception.SystemException;
200
201
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
215 int start, int end)
216 throws com.liferay.portal.kernel.exception.SystemException;
217
218
224 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225 public int getAssetEntriesCount()
226 throws com.liferay.portal.kernel.exception.SystemException;
227
228
235 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
236 public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
237 com.liferay.portlet.asset.model.AssetEntry assetEntry)
238 throws com.liferay.portal.kernel.exception.SystemException;
239
240
243 public void addAssetCategoryAssetEntry(long categoryId, long entryId)
244 throws com.liferay.portal.kernel.exception.SystemException;
245
246
249 public void addAssetCategoryAssetEntry(long categoryId,
250 com.liferay.portlet.asset.model.AssetEntry assetEntry)
251 throws com.liferay.portal.kernel.exception.SystemException;
252
253
256 public void addAssetCategoryAssetEntries(long categoryId, long[] entryIds)
257 throws com.liferay.portal.kernel.exception.SystemException;
258
259
262 public void addAssetCategoryAssetEntries(long categoryId,
263 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
264 throws com.liferay.portal.kernel.exception.SystemException;
265
266
269 public void clearAssetCategoryAssetEntries(long categoryId)
270 throws com.liferay.portal.kernel.exception.SystemException;
271
272
275 public void deleteAssetCategoryAssetEntry(long categoryId, long entryId)
276 throws com.liferay.portal.kernel.exception.SystemException;
277
278
281 public void deleteAssetCategoryAssetEntry(long categoryId,
282 com.liferay.portlet.asset.model.AssetEntry assetEntry)
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285
288 public void deleteAssetCategoryAssetEntries(long categoryId, long[] entryIds)
289 throws com.liferay.portal.kernel.exception.SystemException;
290
291
294 public void deleteAssetCategoryAssetEntries(long categoryId,
295 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
296 throws com.liferay.portal.kernel.exception.SystemException;
297
298
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
303 long categoryId)
304 throws com.liferay.portal.kernel.exception.SystemException;
305
306
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
311 long categoryId, int start, int end)
312 throws com.liferay.portal.kernel.exception.SystemException;
313
314
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
319 long categoryId, int start, int end,
320 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
321 throws com.liferay.portal.kernel.exception.SystemException;
322
323
326 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
327 public int getAssetCategoryAssetEntriesCount(long categoryId)
328 throws com.liferay.portal.kernel.exception.SystemException;
329
330
333 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
334 public boolean hasAssetCategoryAssetEntry(long categoryId, long entryId)
335 throws com.liferay.portal.kernel.exception.SystemException;
336
337
340 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
341 public boolean hasAssetCategoryAssetEntries(long categoryId)
342 throws com.liferay.portal.kernel.exception.SystemException;
343
344
347 public void setAssetCategoryAssetEntries(long categoryId, long[] entryIds)
348 throws com.liferay.portal.kernel.exception.SystemException;
349
350
353 public void addAssetTagAssetEntry(long tagId, long entryId)
354 throws com.liferay.portal.kernel.exception.SystemException;
355
356
359 public void addAssetTagAssetEntry(long tagId,
360 com.liferay.portlet.asset.model.AssetEntry assetEntry)
361 throws com.liferay.portal.kernel.exception.SystemException;
362
363
366 public void addAssetTagAssetEntries(long tagId, long[] entryIds)
367 throws com.liferay.portal.kernel.exception.SystemException;
368
369
372 public void addAssetTagAssetEntries(long tagId,
373 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
374 throws com.liferay.portal.kernel.exception.SystemException;
375
376
379 public void clearAssetTagAssetEntries(long tagId)
380 throws com.liferay.portal.kernel.exception.SystemException;
381
382
385 public void deleteAssetTagAssetEntry(long tagId, long entryId)
386 throws com.liferay.portal.kernel.exception.SystemException;
387
388
391 public void deleteAssetTagAssetEntry(long tagId,
392 com.liferay.portlet.asset.model.AssetEntry assetEntry)
393 throws com.liferay.portal.kernel.exception.SystemException;
394
395
398 public void deleteAssetTagAssetEntries(long tagId, long[] entryIds)
399 throws com.liferay.portal.kernel.exception.SystemException;
400
401
404 public void deleteAssetTagAssetEntries(long tagId,
405 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
406 throws com.liferay.portal.kernel.exception.SystemException;
407
408
411 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
412 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
413 long tagId) throws com.liferay.portal.kernel.exception.SystemException;
414
415
418 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
419 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
420 long tagId, int start, int end)
421 throws com.liferay.portal.kernel.exception.SystemException;
422
423
426 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
427 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
428 long tagId, int start, int end,
429 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
430 throws com.liferay.portal.kernel.exception.SystemException;
431
432
435 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
436 public int getAssetTagAssetEntriesCount(long tagId)
437 throws com.liferay.portal.kernel.exception.SystemException;
438
439
442 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
443 public boolean hasAssetTagAssetEntry(long tagId, long entryId)
444 throws com.liferay.portal.kernel.exception.SystemException;
445
446
449 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
450 public boolean hasAssetTagAssetEntries(long tagId)
451 throws com.liferay.portal.kernel.exception.SystemException;
452
453
456 public void setAssetTagAssetEntries(long tagId, long[] entryIds)
457 throws com.liferay.portal.kernel.exception.SystemException;
458
459
464 public java.lang.String getBeanIdentifier();
465
466
471 public void setBeanIdentifier(java.lang.String beanIdentifier);
472
473 public void deleteEntry(com.liferay.portlet.asset.model.AssetEntry entry)
474 throws com.liferay.portal.kernel.exception.PortalException,
475 com.liferay.portal.kernel.exception.SystemException;
476
477 public void deleteEntry(long entryId)
478 throws com.liferay.portal.kernel.exception.PortalException,
479 com.liferay.portal.kernel.exception.SystemException;
480
481 public void deleteEntry(java.lang.String className, long classPK)
482 throws com.liferay.portal.kernel.exception.PortalException,
483 com.liferay.portal.kernel.exception.SystemException;
484
485 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
486 public com.liferay.portlet.asset.model.AssetEntry fetchEntry(long entryId)
487 throws com.liferay.portal.kernel.exception.SystemException;
488
489 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
490 public com.liferay.portlet.asset.model.AssetEntry fetchEntry(long groupId,
491 java.lang.String classUuid)
492 throws com.liferay.portal.kernel.exception.SystemException;
493
494 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
495 public com.liferay.portlet.asset.model.AssetEntry fetchEntry(
496 java.lang.String className, long classPK)
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> getAncestorEntries(
501 long entryId)
502 throws com.liferay.portal.kernel.exception.PortalException,
503 com.liferay.portal.kernel.exception.SystemException;
504
505 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
506 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getChildEntries(
507 long entryId)
508 throws com.liferay.portal.kernel.exception.PortalException,
509 com.liferay.portal.kernel.exception.SystemException;
510
511 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
512 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
513 long companyId, int start, int end)
514 throws com.liferay.portal.kernel.exception.SystemException;
515
516 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
517 public int getCompanyEntriesCount(long companyId)
518 throws com.liferay.portal.kernel.exception.SystemException;
519
520 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
521 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
522 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
523 throws com.liferay.portal.kernel.exception.SystemException;
524
525 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
526 public int getEntriesCount(
527 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
528 throws com.liferay.portal.kernel.exception.SystemException;
529
530 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
531 public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
532 throws com.liferay.portal.kernel.exception.PortalException,
533 com.liferay.portal.kernel.exception.SystemException;
534
535 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
536 public com.liferay.portlet.asset.model.AssetEntry getEntry(long groupId,
537 java.lang.String classUuid)
538 throws com.liferay.portal.kernel.exception.PortalException,
539 com.liferay.portal.kernel.exception.SystemException;
540
541 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
542 public com.liferay.portlet.asset.model.AssetEntry getEntry(
543 java.lang.String className, long classPK)
544 throws com.liferay.portal.kernel.exception.PortalException,
545 com.liferay.portal.kernel.exception.SystemException;
546
547 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
548 public com.liferay.portlet.asset.model.AssetEntry getNextEntry(long entryId)
549 throws com.liferay.portal.kernel.exception.PortalException,
550 com.liferay.portal.kernel.exception.SystemException;
551
552 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
553 public com.liferay.portlet.asset.model.AssetEntry getParentEntry(
554 long entryId)
555 throws com.liferay.portal.kernel.exception.PortalException,
556 com.liferay.portal.kernel.exception.SystemException;
557
558 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
559 public com.liferay.portlet.asset.model.AssetEntry getPreviousEntry(
560 long entryId)
561 throws com.liferay.portal.kernel.exception.PortalException,
562 com.liferay.portal.kernel.exception.SystemException;
563
564 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
565 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
566 java.lang.String className, boolean asc, int start, int end)
567 throws com.liferay.portal.kernel.exception.SystemException;
568
569 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
570 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
571 java.lang.String[] className, boolean asc, int start, int end)
572 throws com.liferay.portal.kernel.exception.SystemException;
573
574 public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
575 long userId, java.lang.String className, long classPK)
576 throws com.liferay.portal.kernel.exception.PortalException,
577 com.liferay.portal.kernel.exception.SystemException;
578
579 @com.liferay.portal.kernel.increment.BufferedIncrement(configuration = "AssetEntry", incrementClass = com.liferay.portal.kernel.increment.NumberIncrement.class)
580 public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
581 long userId, java.lang.String className, long classPK, int increment)
582 throws com.liferay.portal.kernel.exception.SystemException;
583
584 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
585 public void reindex(
586 java.util.List<com.liferay.portlet.asset.model.AssetEntry> entries)
587 throws com.liferay.portal.kernel.exception.PortalException;
588
589
593 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
594 public com.liferay.portal.kernel.search.Hits search(long companyId,
595 long[] groupIds, long userId, java.lang.String className,
596 java.lang.String keywords, int start, int end)
597 throws com.liferay.portal.kernel.exception.SystemException;
598
599 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
600 public com.liferay.portal.kernel.search.Hits search(long companyId,
601 long[] groupIds, long userId, java.lang.String className,
602 java.lang.String keywords, int status, int start, int end)
603 throws com.liferay.portal.kernel.exception.SystemException;
604
605
610 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
611 public com.liferay.portal.kernel.search.Hits search(long companyId,
612 long[] groupIds, long userId, java.lang.String className,
613 java.lang.String userName, java.lang.String title,
614 java.lang.String description, java.lang.String assetCategoryIds,
615 java.lang.String assetTagNames, boolean andSearch, int start, int end)
616 throws com.liferay.portal.kernel.exception.SystemException;
617
618 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
619 public com.liferay.portal.kernel.search.Hits search(long companyId,
620 long[] groupIds, long userId, java.lang.String className,
621 java.lang.String userName, java.lang.String title,
622 java.lang.String description, java.lang.String assetCategoryIds,
623 java.lang.String assetTagNames, int status, boolean andSearch,
624 int start, int end)
625 throws com.liferay.portal.kernel.exception.SystemException;
626
627
631 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
632 public com.liferay.portal.kernel.search.Hits search(long companyId,
633 long[] groupIds, java.lang.String className, java.lang.String keywords,
634 int start, int end)
635 throws com.liferay.portal.kernel.exception.SystemException;
636
637 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
638 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
639 java.lang.String className, long classPK, java.lang.String classUuid,
640 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
641 boolean visible, java.util.Date startDate, java.util.Date endDate,
642 java.util.Date expirationDate, java.lang.String mimeType,
643 java.lang.String title, java.lang.String description,
644 java.lang.String summary, java.lang.String url,
645 java.lang.String layoutUuid, int height, int width,
646 java.lang.Integer priority, boolean sync)
647 throws com.liferay.portal.kernel.exception.PortalException,
648 com.liferay.portal.kernel.exception.SystemException;
649
650 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
651 long groupId, java.lang.String className, long classPK,
652 long[] categoryIds, java.lang.String[] tagNames)
653 throws com.liferay.portal.kernel.exception.PortalException,
654 com.liferay.portal.kernel.exception.SystemException;
655
656
662 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
663 long groupId, java.lang.String className, long classPK,
664 java.lang.String classUuid, long classTypeId, long[] categoryIds,
665 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
666 java.util.Date endDate, java.util.Date publishDate,
667 java.util.Date expirationDate, java.lang.String mimeType,
668 java.lang.String title, java.lang.String description,
669 java.lang.String summary, java.lang.String url,
670 java.lang.String layoutUuid, int height, int width,
671 java.lang.Integer priority, boolean sync)
672 throws com.liferay.portal.kernel.exception.PortalException,
673 com.liferay.portal.kernel.exception.SystemException;
674
675
681 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
682 long groupId, java.lang.String className, long classPK,
683 java.lang.String classUuid, long classTypeId, long[] categoryIds,
684 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
685 java.util.Date endDate, java.util.Date expirationDate,
686 java.lang.String mimeType, java.lang.String title,
687 java.lang.String description, java.lang.String summary,
688 java.lang.String url, java.lang.String layoutUuid, int height,
689 int width, java.lang.Integer priority, boolean sync)
690 throws com.liferay.portal.kernel.exception.PortalException,
691 com.liferay.portal.kernel.exception.SystemException;
692
693 public com.liferay.portlet.asset.model.AssetEntry updateEntry(
694 java.lang.String className, long classPK, java.util.Date publishDate,
695 boolean visible)
696 throws com.liferay.portal.kernel.exception.PortalException,
697 com.liferay.portal.kernel.exception.SystemException;
698
699 public com.liferay.portlet.asset.model.AssetEntry updateEntry(
700 java.lang.String className, long classPK, java.util.Date publishDate,
701 java.util.Date expirationDate, boolean visible)
702 throws com.liferay.portal.kernel.exception.PortalException,
703 com.liferay.portal.kernel.exception.SystemException;
704
705 public com.liferay.portlet.asset.model.AssetEntry updateVisible(
706 java.lang.String className, long classPK, boolean visible)
707 throws com.liferay.portal.kernel.exception.PortalException,
708 com.liferay.portal.kernel.exception.SystemException;
709
710 public void validate(long groupId, java.lang.String className,
711 long[] categoryIds, java.lang.String[] tagNames)
712 throws com.liferay.portal.kernel.exception.PortalException,
713 com.liferay.portal.kernel.exception.SystemException;
714 }