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
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface AssetEntryLocalService extends BaseLocalService,
040 PersistedModelLocalService {
041
046
047
054 public com.liferay.portlet.asset.model.AssetEntry addAssetEntry(
055 com.liferay.portlet.asset.model.AssetEntry assetEntry)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058
064 public com.liferay.portlet.asset.model.AssetEntry createAssetEntry(
065 long entryId);
066
067
075 public com.liferay.portlet.asset.model.AssetEntry deleteAssetEntry(
076 long entryId)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException;
079
080
087 public com.liferay.portlet.asset.model.AssetEntry deleteAssetEntry(
088 com.liferay.portlet.asset.model.AssetEntry assetEntry)
089 throws com.liferay.portal.kernel.exception.SystemException;
090
091 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
092
093
100 @SuppressWarnings("rawtypes")
101 public java.util.List dynamicQuery(
102 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105
118 @SuppressWarnings("rawtypes")
119 public java.util.List dynamicQuery(
120 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121 int end) throws com.liferay.portal.kernel.exception.SystemException;
122
123
137 @SuppressWarnings("rawtypes")
138 public java.util.List dynamicQuery(
139 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
140 int end,
141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142 throws com.liferay.portal.kernel.exception.SystemException;
143
144
151 public long dynamicQueryCount(
152 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153 throws com.liferay.portal.kernel.exception.SystemException;
154
155
163 public long dynamicQueryCount(
164 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
165 com.liferay.portal.kernel.dao.orm.Projection projection)
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public com.liferay.portlet.asset.model.AssetEntry fetchAssetEntry(
170 long entryId)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public com.liferay.portlet.asset.model.AssetEntry getAssetEntry(
183 long entryId)
184 throws com.liferay.portal.kernel.exception.PortalException,
185 com.liferay.portal.kernel.exception.SystemException;
186
187 @Override
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public com.liferay.portal.model.PersistedModel getPersistedModel(
190 java.io.Serializable primaryKeyObj)
191 throws com.liferay.portal.kernel.exception.PortalException,
192 com.liferay.portal.kernel.exception.SystemException;
193
194
206 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
208 int start, int end)
209 throws com.liferay.portal.kernel.exception.SystemException;
210
211
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public int getAssetEntriesCount()
219 throws com.liferay.portal.kernel.exception.SystemException;
220
221
228 public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
229 com.liferay.portlet.asset.model.AssetEntry assetEntry)
230 throws com.liferay.portal.kernel.exception.SystemException;
231
232
235 public void addAssetCategoryAssetEntry(long categoryId, long entryId)
236 throws com.liferay.portal.kernel.exception.SystemException;
237
238
241 public void addAssetCategoryAssetEntry(long categoryId,
242 com.liferay.portlet.asset.model.AssetEntry assetEntry)
243 throws com.liferay.portal.kernel.exception.SystemException;
244
245
248 public void addAssetCategoryAssetEntries(long categoryId, long[] entryIds)
249 throws com.liferay.portal.kernel.exception.SystemException;
250
251
254 public void addAssetCategoryAssetEntries(long categoryId,
255 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
256 throws com.liferay.portal.kernel.exception.SystemException;
257
258
261 public void clearAssetCategoryAssetEntries(long categoryId)
262 throws com.liferay.portal.kernel.exception.SystemException;
263
264
267 public void deleteAssetCategoryAssetEntry(long categoryId, long entryId)
268 throws com.liferay.portal.kernel.exception.SystemException;
269
270
273 public void deleteAssetCategoryAssetEntry(long categoryId,
274 com.liferay.portlet.asset.model.AssetEntry assetEntry)
275 throws com.liferay.portal.kernel.exception.SystemException;
276
277
280 public void deleteAssetCategoryAssetEntries(long categoryId, long[] entryIds)
281 throws com.liferay.portal.kernel.exception.SystemException;
282
283
286 public void deleteAssetCategoryAssetEntries(long categoryId,
287 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
288 throws com.liferay.portal.kernel.exception.SystemException;
289
290
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
295 long categoryId)
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, int start, int end)
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 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
313 throws com.liferay.portal.kernel.exception.SystemException;
314
315
318 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
319 public int getAssetCategoryAssetEntriesCount(long categoryId)
320 throws com.liferay.portal.kernel.exception.SystemException;
321
322
325 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326 public boolean hasAssetCategoryAssetEntry(long categoryId, long entryId)
327 throws com.liferay.portal.kernel.exception.SystemException;
328
329
332 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333 public boolean hasAssetCategoryAssetEntries(long categoryId)
334 throws com.liferay.portal.kernel.exception.SystemException;
335
336
339 public void setAssetCategoryAssetEntries(long categoryId, long[] entryIds)
340 throws com.liferay.portal.kernel.exception.SystemException;
341
342
345 public void addAssetTagAssetEntry(long tagId, long entryId)
346 throws com.liferay.portal.kernel.exception.SystemException;
347
348
351 public void addAssetTagAssetEntry(long tagId,
352 com.liferay.portlet.asset.model.AssetEntry assetEntry)
353 throws com.liferay.portal.kernel.exception.SystemException;
354
355
358 public void addAssetTagAssetEntries(long tagId, long[] entryIds)
359 throws com.liferay.portal.kernel.exception.SystemException;
360
361
364 public void addAssetTagAssetEntries(long tagId,
365 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
366 throws com.liferay.portal.kernel.exception.SystemException;
367
368
371 public void clearAssetTagAssetEntries(long tagId)
372 throws com.liferay.portal.kernel.exception.SystemException;
373
374
377 public void deleteAssetTagAssetEntry(long tagId, long entryId)
378 throws com.liferay.portal.kernel.exception.SystemException;
379
380
383 public void deleteAssetTagAssetEntry(long tagId,
384 com.liferay.portlet.asset.model.AssetEntry assetEntry)
385 throws com.liferay.portal.kernel.exception.SystemException;
386
387
390 public void deleteAssetTagAssetEntries(long tagId, long[] entryIds)
391 throws com.liferay.portal.kernel.exception.SystemException;
392
393
396 public void deleteAssetTagAssetEntries(long tagId,
397 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
398 throws com.liferay.portal.kernel.exception.SystemException;
399
400
403 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
404 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
405 long tagId) throws com.liferay.portal.kernel.exception.SystemException;
406
407
410 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
411 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
412 long tagId, int start, int end)
413 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 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
422 throws com.liferay.portal.kernel.exception.SystemException;
423
424
427 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
428 public int getAssetTagAssetEntriesCount(long tagId)
429 throws com.liferay.portal.kernel.exception.SystemException;
430
431
434 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
435 public boolean hasAssetTagAssetEntry(long tagId, long entryId)
436 throws com.liferay.portal.kernel.exception.SystemException;
437
438
441 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
442 public boolean hasAssetTagAssetEntries(long tagId)
443 throws com.liferay.portal.kernel.exception.SystemException;
444
445
448 public void setAssetTagAssetEntries(long tagId, long[] entryIds)
449 throws com.liferay.portal.kernel.exception.SystemException;
450
451
456 public java.lang.String getBeanIdentifier();
457
458
463 public void setBeanIdentifier(java.lang.String beanIdentifier);
464
465 public void deleteEntry(com.liferay.portlet.asset.model.AssetEntry entry)
466 throws com.liferay.portal.kernel.exception.PortalException,
467 com.liferay.portal.kernel.exception.SystemException;
468
469 public void deleteEntry(long entryId)
470 throws com.liferay.portal.kernel.exception.PortalException,
471 com.liferay.portal.kernel.exception.SystemException;
472
473 public void deleteEntry(java.lang.String className, long classPK)
474 throws com.liferay.portal.kernel.exception.PortalException,
475 com.liferay.portal.kernel.exception.SystemException;
476
477 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
478 public com.liferay.portlet.asset.model.AssetEntry fetchEntry(long entryId)
479 throws com.liferay.portal.kernel.exception.SystemException;
480
481 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
482 public com.liferay.portlet.asset.model.AssetEntry fetchEntry(long groupId,
483 java.lang.String classUuid)
484 throws com.liferay.portal.kernel.exception.SystemException;
485
486 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
487 public com.liferay.portlet.asset.model.AssetEntry fetchEntry(
488 java.lang.String className, long classPK)
489 throws com.liferay.portal.kernel.exception.SystemException;
490
491 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
492 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAncestorEntries(
493 long entryId)
494 throws com.liferay.portal.kernel.exception.PortalException,
495 com.liferay.portal.kernel.exception.SystemException;
496
497 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
498 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getChildEntries(
499 long entryId)
500 throws com.liferay.portal.kernel.exception.PortalException,
501 com.liferay.portal.kernel.exception.SystemException;
502
503 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
504 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
505 long companyId, int start, int end)
506 throws com.liferay.portal.kernel.exception.SystemException;
507
508 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
509 public int getCompanyEntriesCount(long companyId)
510 throws com.liferay.portal.kernel.exception.SystemException;
511
512 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
513 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
514 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
515 throws com.liferay.portal.kernel.exception.SystemException;
516
517 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
518 public int getEntriesCount(
519 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
520 throws com.liferay.portal.kernel.exception.SystemException;
521
522 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
523 public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
524 throws com.liferay.portal.kernel.exception.PortalException,
525 com.liferay.portal.kernel.exception.SystemException;
526
527 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
528 public com.liferay.portlet.asset.model.AssetEntry getEntry(long groupId,
529 java.lang.String classUuid)
530 throws com.liferay.portal.kernel.exception.PortalException,
531 com.liferay.portal.kernel.exception.SystemException;
532
533 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
534 public com.liferay.portlet.asset.model.AssetEntry getEntry(
535 java.lang.String className, long classPK)
536 throws com.liferay.portal.kernel.exception.PortalException,
537 com.liferay.portal.kernel.exception.SystemException;
538
539 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
540 public com.liferay.portlet.asset.model.AssetEntry getNextEntry(long entryId)
541 throws com.liferay.portal.kernel.exception.PortalException,
542 com.liferay.portal.kernel.exception.SystemException;
543
544 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
545 public com.liferay.portlet.asset.model.AssetEntry getParentEntry(
546 long entryId)
547 throws com.liferay.portal.kernel.exception.PortalException,
548 com.liferay.portal.kernel.exception.SystemException;
549
550 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
551 public com.liferay.portlet.asset.model.AssetEntry getPreviousEntry(
552 long entryId)
553 throws com.liferay.portal.kernel.exception.PortalException,
554 com.liferay.portal.kernel.exception.SystemException;
555
556 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
557 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
558 java.lang.String className, boolean asc, int start, int end)
559 throws com.liferay.portal.kernel.exception.SystemException;
560
561 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
562 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
563 java.lang.String[] className, boolean asc, int start, int end)
564 throws com.liferay.portal.kernel.exception.SystemException;
565
566 public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
567 long userId, java.lang.String className, long classPK)
568 throws com.liferay.portal.kernel.exception.PortalException,
569 com.liferay.portal.kernel.exception.SystemException;
570
571 public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
572 long userId, java.lang.String className, long classPK, int increment)
573 throws com.liferay.portal.kernel.exception.SystemException;
574
575 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
576 public void reindex(
577 java.util.List<com.liferay.portlet.asset.model.AssetEntry> entries)
578 throws com.liferay.portal.kernel.exception.PortalException;
579
580
584 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
585 public com.liferay.portal.kernel.search.Hits search(long companyId,
586 long[] groupIds, long userId, java.lang.String className,
587 java.lang.String keywords, int start, int end)
588 throws com.liferay.portal.kernel.exception.SystemException;
589
590 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
591 public com.liferay.portal.kernel.search.Hits search(long companyId,
592 long[] groupIds, long userId, java.lang.String className,
593 java.lang.String keywords, int status, int start, int end)
594 throws com.liferay.portal.kernel.exception.SystemException;
595
596
601 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
602 public com.liferay.portal.kernel.search.Hits search(long companyId,
603 long[] groupIds, long userId, java.lang.String className,
604 java.lang.String userName, java.lang.String title,
605 java.lang.String description, java.lang.String assetCategoryIds,
606 java.lang.String assetTagNames, boolean andSearch, int start, int end)
607 throws com.liferay.portal.kernel.exception.SystemException;
608
609 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
610 public com.liferay.portal.kernel.search.Hits search(long companyId,
611 long[] groupIds, long userId, java.lang.String className,
612 java.lang.String userName, java.lang.String title,
613 java.lang.String description, java.lang.String assetCategoryIds,
614 java.lang.String assetTagNames, int status, boolean andSearch,
615 int start, int end)
616 throws com.liferay.portal.kernel.exception.SystemException;
617
618
622 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
623 public com.liferay.portal.kernel.search.Hits search(long companyId,
624 long[] groupIds, java.lang.String className, java.lang.String keywords,
625 int start, int end)
626 throws com.liferay.portal.kernel.exception.SystemException;
627
628 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
629 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
630 java.lang.String className, long classPK, java.lang.String classUuid,
631 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
632 boolean visible, java.util.Date startDate, java.util.Date endDate,
633 java.util.Date expirationDate, java.lang.String mimeType,
634 java.lang.String title, java.lang.String description,
635 java.lang.String summary, java.lang.String url,
636 java.lang.String layoutUuid, int height, int width,
637 java.lang.Integer priority, boolean sync)
638 throws com.liferay.portal.kernel.exception.PortalException,
639 com.liferay.portal.kernel.exception.SystemException;
640
641 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
642 long groupId, java.lang.String className, long classPK,
643 long[] categoryIds, java.lang.String[] tagNames)
644 throws com.liferay.portal.kernel.exception.PortalException,
645 com.liferay.portal.kernel.exception.SystemException;
646
647
653 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
654 long groupId, java.lang.String className, long classPK,
655 java.lang.String classUuid, long classTypeId, long[] categoryIds,
656 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
657 java.util.Date endDate, java.util.Date publishDate,
658 java.util.Date expirationDate, java.lang.String mimeType,
659 java.lang.String title, java.lang.String description,
660 java.lang.String summary, java.lang.String url,
661 java.lang.String layoutUuid, int height, int width,
662 java.lang.Integer priority, boolean sync)
663 throws com.liferay.portal.kernel.exception.PortalException,
664 com.liferay.portal.kernel.exception.SystemException;
665
666
672 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
673 long groupId, java.lang.String className, long classPK,
674 java.lang.String classUuid, long classTypeId, long[] categoryIds,
675 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
676 java.util.Date endDate, java.util.Date expirationDate,
677 java.lang.String mimeType, java.lang.String title,
678 java.lang.String description, java.lang.String summary,
679 java.lang.String url, java.lang.String layoutUuid, int height,
680 int width, java.lang.Integer priority, boolean sync)
681 throws com.liferay.portal.kernel.exception.PortalException,
682 com.liferay.portal.kernel.exception.SystemException;
683
684 public com.liferay.portlet.asset.model.AssetEntry updateEntry(
685 java.lang.String className, long classPK, java.util.Date publishDate,
686 boolean visible)
687 throws com.liferay.portal.kernel.exception.PortalException,
688 com.liferay.portal.kernel.exception.SystemException;
689
690 public com.liferay.portlet.asset.model.AssetEntry updateEntry(
691 java.lang.String className, long classPK, java.util.Date publishDate,
692 java.util.Date expirationDate, boolean visible)
693 throws com.liferay.portal.kernel.exception.PortalException,
694 com.liferay.portal.kernel.exception.SystemException;
695
696 public com.liferay.portlet.asset.model.AssetEntry updateVisible(
697 java.lang.String className, long classPK, boolean visible)
698 throws com.liferay.portal.kernel.exception.PortalException,
699 com.liferay.portal.kernel.exception.SystemException;
700
701 public void validate(long groupId, java.lang.String className,
702 long[] categoryIds, java.lang.String[] tagNames)
703 throws com.liferay.portal.kernel.exception.PortalException,
704 com.liferay.portal.kernel.exception.SystemException;
705 }