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.transaction.Isolation;
022 import com.liferay.portal.kernel.transaction.Propagation;
023 import com.liferay.portal.kernel.transaction.Transactional;
024 import com.liferay.portal.service.BaseLocalService;
025 import com.liferay.portal.service.PersistedModelLocalService;
026
027
039 @ProviderType
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface AssetEntryLocalService extends BaseLocalService,
043 PersistedModelLocalService {
044
049
050
057 public com.liferay.portlet.asset.model.AssetEntry addAssetEntry(
058 com.liferay.portlet.asset.model.AssetEntry assetEntry)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061
067 public com.liferay.portlet.asset.model.AssetEntry createAssetEntry(
068 long entryId);
069
070
078 public com.liferay.portlet.asset.model.AssetEntry deleteAssetEntry(
079 long entryId)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException;
082
083
090 public com.liferay.portlet.asset.model.AssetEntry deleteAssetEntry(
091 com.liferay.portlet.asset.model.AssetEntry assetEntry)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
095
096
103 @SuppressWarnings("rawtypes")
104 public java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException;
107
108
121 @SuppressWarnings("rawtypes")
122 public java.util.List dynamicQuery(
123 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
124 int end) throws com.liferay.portal.kernel.exception.SystemException;
125
126
140 @SuppressWarnings("rawtypes")
141 public java.util.List dynamicQuery(
142 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143 int end,
144 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145 throws com.liferay.portal.kernel.exception.SystemException;
146
147
154 public long dynamicQueryCount(
155 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158
166 public long dynamicQueryCount(
167 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
168 com.liferay.portal.kernel.dao.orm.Projection projection)
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public com.liferay.portlet.asset.model.AssetEntry fetchAssetEntry(
173 long entryId)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public com.liferay.portlet.asset.model.AssetEntry getAssetEntry(
186 long entryId)
187 throws com.liferay.portal.kernel.exception.PortalException,
188 com.liferay.portal.kernel.exception.SystemException;
189
190 @Override
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public com.liferay.portal.model.PersistedModel getPersistedModel(
193 java.io.Serializable primaryKeyObj)
194 throws com.liferay.portal.kernel.exception.PortalException,
195 com.liferay.portal.kernel.exception.SystemException;
196
197
209 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
211 int start, int end)
212 throws com.liferay.portal.kernel.exception.SystemException;
213
214
220 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221 public int getAssetEntriesCount()
222 throws com.liferay.portal.kernel.exception.SystemException;
223
224
231 public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
232 com.liferay.portlet.asset.model.AssetEntry assetEntry)
233 throws com.liferay.portal.kernel.exception.SystemException;
234
235
238 public void addAssetCategoryAssetEntry(long categoryId, long entryId)
239 throws com.liferay.portal.kernel.exception.SystemException;
240
241
244 public void addAssetCategoryAssetEntry(long categoryId,
245 com.liferay.portlet.asset.model.AssetEntry assetEntry)
246 throws com.liferay.portal.kernel.exception.SystemException;
247
248
251 public void addAssetCategoryAssetEntries(long categoryId, long[] entryIds)
252 throws com.liferay.portal.kernel.exception.SystemException;
253
254
257 public void addAssetCategoryAssetEntries(long categoryId,
258 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
259 throws com.liferay.portal.kernel.exception.SystemException;
260
261
264 public void clearAssetCategoryAssetEntries(long categoryId)
265 throws com.liferay.portal.kernel.exception.SystemException;
266
267
270 public void deleteAssetCategoryAssetEntry(long categoryId, long entryId)
271 throws com.liferay.portal.kernel.exception.SystemException;
272
273
276 public void deleteAssetCategoryAssetEntry(long categoryId,
277 com.liferay.portlet.asset.model.AssetEntry assetEntry)
278 throws com.liferay.portal.kernel.exception.SystemException;
279
280
283 public void deleteAssetCategoryAssetEntries(long categoryId, long[] entryIds)
284 throws com.liferay.portal.kernel.exception.SystemException;
285
286
289 public void deleteAssetCategoryAssetEntries(long categoryId,
290 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
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)
299 throws com.liferay.portal.kernel.exception.SystemException;
300
301
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
306 long categoryId, int start, int end)
307 throws com.liferay.portal.kernel.exception.SystemException;
308
309
312 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
314 long categoryId, int start, int end,
315 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
316 throws com.liferay.portal.kernel.exception.SystemException;
317
318
321 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
322 public int getAssetCategoryAssetEntriesCount(long categoryId)
323 throws com.liferay.portal.kernel.exception.SystemException;
324
325
328 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329 public boolean hasAssetCategoryAssetEntry(long categoryId, long entryId)
330 throws com.liferay.portal.kernel.exception.SystemException;
331
332
335 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
336 public boolean hasAssetCategoryAssetEntries(long categoryId)
337 throws com.liferay.portal.kernel.exception.SystemException;
338
339
342 public void setAssetCategoryAssetEntries(long categoryId, long[] entryIds)
343 throws com.liferay.portal.kernel.exception.SystemException;
344
345
348 public void addAssetTagAssetEntry(long tagId, long entryId)
349 throws com.liferay.portal.kernel.exception.SystemException;
350
351
354 public void addAssetTagAssetEntry(long tagId,
355 com.liferay.portlet.asset.model.AssetEntry assetEntry)
356 throws com.liferay.portal.kernel.exception.SystemException;
357
358
361 public void addAssetTagAssetEntries(long tagId, long[] entryIds)
362 throws com.liferay.portal.kernel.exception.SystemException;
363
364
367 public void addAssetTagAssetEntries(long tagId,
368 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
369 throws com.liferay.portal.kernel.exception.SystemException;
370
371
374 public void clearAssetTagAssetEntries(long tagId)
375 throws com.liferay.portal.kernel.exception.SystemException;
376
377
380 public void deleteAssetTagAssetEntry(long tagId, long entryId)
381 throws com.liferay.portal.kernel.exception.SystemException;
382
383
386 public void deleteAssetTagAssetEntry(long tagId,
387 com.liferay.portlet.asset.model.AssetEntry assetEntry)
388 throws com.liferay.portal.kernel.exception.SystemException;
389
390
393 public void deleteAssetTagAssetEntries(long tagId, long[] entryIds)
394 throws com.liferay.portal.kernel.exception.SystemException;
395
396
399 public void deleteAssetTagAssetEntries(long tagId,
400 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries)
401 throws com.liferay.portal.kernel.exception.SystemException;
402
403
406 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
407 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
408 long tagId) throws com.liferay.portal.kernel.exception.SystemException;
409
410
413 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
414 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
415 long tagId, int start, int end)
416 throws com.liferay.portal.kernel.exception.SystemException;
417
418
421 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
422 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
423 long tagId, int start, int end,
424 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
425 throws com.liferay.portal.kernel.exception.SystemException;
426
427
430 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
431 public int getAssetTagAssetEntriesCount(long tagId)
432 throws com.liferay.portal.kernel.exception.SystemException;
433
434
437 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
438 public boolean hasAssetTagAssetEntry(long tagId, long entryId)
439 throws com.liferay.portal.kernel.exception.SystemException;
440
441
444 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
445 public boolean hasAssetTagAssetEntries(long tagId)
446 throws com.liferay.portal.kernel.exception.SystemException;
447
448
451 public void setAssetTagAssetEntries(long tagId, long[] entryIds)
452 throws com.liferay.portal.kernel.exception.SystemException;
453
454
459 public java.lang.String getBeanIdentifier();
460
461
466 public void setBeanIdentifier(java.lang.String beanIdentifier);
467
468 public void deleteEntry(com.liferay.portlet.asset.model.AssetEntry entry)
469 throws com.liferay.portal.kernel.exception.PortalException,
470 com.liferay.portal.kernel.exception.SystemException;
471
472 public void deleteEntry(long entryId)
473 throws com.liferay.portal.kernel.exception.PortalException,
474 com.liferay.portal.kernel.exception.SystemException;
475
476 public void deleteEntry(java.lang.String className, long classPK)
477 throws com.liferay.portal.kernel.exception.PortalException,
478 com.liferay.portal.kernel.exception.SystemException;
479
480 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
481 public com.liferay.portlet.asset.model.AssetEntry fetchEntry(long entryId)
482 throws com.liferay.portal.kernel.exception.SystemException;
483
484 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
485 public com.liferay.portlet.asset.model.AssetEntry fetchEntry(long groupId,
486 java.lang.String classUuid)
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(
491 java.lang.String className, long classPK)
492 throws com.liferay.portal.kernel.exception.SystemException;
493
494 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
495 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAncestorEntries(
496 long entryId)
497 throws com.liferay.portal.kernel.exception.PortalException,
498 com.liferay.portal.kernel.exception.SystemException;
499
500 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
501 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getChildEntries(
502 long entryId)
503 throws com.liferay.portal.kernel.exception.PortalException,
504 com.liferay.portal.kernel.exception.SystemException;
505
506 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
507 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
508 long companyId, int start, int end)
509 throws com.liferay.portal.kernel.exception.SystemException;
510
511 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
512 public int getCompanyEntriesCount(long companyId)
513 throws com.liferay.portal.kernel.exception.SystemException;
514
515 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
516 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
517 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
518 throws com.liferay.portal.kernel.exception.SystemException;
519
520 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
521 public int getEntriesCount(
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 com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
527 throws com.liferay.portal.kernel.exception.PortalException,
528 com.liferay.portal.kernel.exception.SystemException;
529
530 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
531 public com.liferay.portlet.asset.model.AssetEntry getEntry(long groupId,
532 java.lang.String classUuid)
533 throws com.liferay.portal.kernel.exception.PortalException,
534 com.liferay.portal.kernel.exception.SystemException;
535
536 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
537 public com.liferay.portlet.asset.model.AssetEntry getEntry(
538 java.lang.String className, long classPK)
539 throws com.liferay.portal.kernel.exception.PortalException,
540 com.liferay.portal.kernel.exception.SystemException;
541
542 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
543 public com.liferay.portlet.asset.model.AssetEntry getNextEntry(long entryId)
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 getParentEntry(
549 long entryId)
550 throws com.liferay.portal.kernel.exception.PortalException,
551 com.liferay.portal.kernel.exception.SystemException;
552
553 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
554 public com.liferay.portlet.asset.model.AssetEntry getPreviousEntry(
555 long entryId)
556 throws com.liferay.portal.kernel.exception.PortalException,
557 com.liferay.portal.kernel.exception.SystemException;
558
559 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
560 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
561 java.lang.String className, boolean asc, int start, int end)
562 throws 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 public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
570 long userId, java.lang.String className, long classPK)
571 throws com.liferay.portal.kernel.exception.PortalException,
572 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, int increment)
576 throws com.liferay.portal.kernel.exception.SystemException;
577
578 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
579 public void reindex(
580 java.util.List<com.liferay.portlet.asset.model.AssetEntry> entries)
581 throws com.liferay.portal.kernel.exception.PortalException;
582
583
587 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
588 public com.liferay.portal.kernel.search.Hits search(long companyId,
589 long[] groupIds, long userId, java.lang.String className,
590 java.lang.String keywords, int start, int end)
591 throws com.liferay.portal.kernel.exception.SystemException;
592
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 status, int start, int end)
597 throws com.liferay.portal.kernel.exception.SystemException;
598
599
604 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
605 public com.liferay.portal.kernel.search.Hits search(long companyId,
606 long[] groupIds, long userId, java.lang.String className,
607 java.lang.String userName, java.lang.String title,
608 java.lang.String description, java.lang.String assetCategoryIds,
609 java.lang.String assetTagNames, boolean andSearch, int start, int end)
610 throws com.liferay.portal.kernel.exception.SystemException;
611
612 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
613 public com.liferay.portal.kernel.search.Hits search(long companyId,
614 long[] groupIds, long userId, java.lang.String className,
615 java.lang.String userName, java.lang.String title,
616 java.lang.String description, java.lang.String assetCategoryIds,
617 java.lang.String assetTagNames, int status, boolean andSearch,
618 int start, int end)
619 throws com.liferay.portal.kernel.exception.SystemException;
620
621
625 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
626 public com.liferay.portal.kernel.search.Hits search(long companyId,
627 long[] groupIds, java.lang.String className, java.lang.String keywords,
628 int start, int end)
629 throws com.liferay.portal.kernel.exception.SystemException;
630
631 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
632 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
633 java.lang.String className, long classPK, java.lang.String classUuid,
634 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
635 boolean visible, java.util.Date startDate, java.util.Date endDate,
636 java.util.Date expirationDate, java.lang.String mimeType,
637 java.lang.String title, java.lang.String description,
638 java.lang.String summary, java.lang.String url,
639 java.lang.String layoutUuid, int height, int width,
640 java.lang.Integer priority, boolean sync)
641 throws com.liferay.portal.kernel.exception.PortalException,
642 com.liferay.portal.kernel.exception.SystemException;
643
644 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
645 long groupId, java.lang.String className, long classPK,
646 long[] categoryIds, java.lang.String[] tagNames)
647 throws com.liferay.portal.kernel.exception.PortalException,
648 com.liferay.portal.kernel.exception.SystemException;
649
650
656 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
657 long groupId, java.lang.String className, long classPK,
658 java.lang.String classUuid, long classTypeId, long[] categoryIds,
659 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
660 java.util.Date endDate, java.util.Date publishDate,
661 java.util.Date expirationDate, java.lang.String mimeType,
662 java.lang.String title, java.lang.String description,
663 java.lang.String summary, java.lang.String url,
664 java.lang.String layoutUuid, int height, int width,
665 java.lang.Integer priority, boolean sync)
666 throws com.liferay.portal.kernel.exception.PortalException,
667 com.liferay.portal.kernel.exception.SystemException;
668
669
675 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
676 long groupId, java.lang.String className, long classPK,
677 java.lang.String classUuid, long classTypeId, long[] categoryIds,
678 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
679 java.util.Date endDate, java.util.Date expirationDate,
680 java.lang.String mimeType, java.lang.String title,
681 java.lang.String description, java.lang.String summary,
682 java.lang.String url, java.lang.String layoutUuid, int height,
683 int width, java.lang.Integer priority, boolean sync)
684 throws com.liferay.portal.kernel.exception.PortalException,
685 com.liferay.portal.kernel.exception.SystemException;
686
687 public com.liferay.portlet.asset.model.AssetEntry updateEntry(
688 java.lang.String className, long classPK, java.util.Date publishDate,
689 boolean visible)
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 java.util.Date expirationDate, 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 updateVisible(
700 java.lang.String className, long classPK, boolean visible)
701 throws com.liferay.portal.kernel.exception.PortalException,
702 com.liferay.portal.kernel.exception.SystemException;
703
704 public void validate(long groupId, java.lang.String className,
705 long[] categoryIds, java.lang.String[] tagNames)
706 throws com.liferay.portal.kernel.exception.PortalException,
707 com.liferay.portal.kernel.exception.SystemException;
708 }