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 public void addAssetCategoryAssetEntries(long categoryId,
051 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries);
052
053 public void addAssetCategoryAssetEntries(long categoryId, long[] entryIds);
054
055 public void addAssetCategoryAssetEntry(long categoryId,
056 com.liferay.portlet.asset.model.AssetEntry assetEntry);
057
058 public void addAssetCategoryAssetEntry(long categoryId, long entryId);
059
060
066 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
067 public com.liferay.portlet.asset.model.AssetEntry addAssetEntry(
068 com.liferay.portlet.asset.model.AssetEntry assetEntry);
069
070 public void addAssetTagAssetEntries(long tagId,
071 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries);
072
073 public void addAssetTagAssetEntries(long tagId, long[] entryIds);
074
075 public void addAssetTagAssetEntry(long tagId,
076 com.liferay.portlet.asset.model.AssetEntry assetEntry);
077
078 public void addAssetTagAssetEntry(long tagId, long entryId);
079
080 public void clearAssetCategoryAssetEntries(long categoryId);
081
082 public void clearAssetTagAssetEntries(long tagId);
083
084
090 public com.liferay.portlet.asset.model.AssetEntry createAssetEntry(
091 long entryId);
092
093 public void deleteAssetCategoryAssetEntries(long categoryId,
094 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries);
095
096 public void deleteAssetCategoryAssetEntries(long categoryId, long[] entryIds);
097
098 public void deleteAssetCategoryAssetEntry(long categoryId,
099 com.liferay.portlet.asset.model.AssetEntry assetEntry);
100
101 public void deleteAssetCategoryAssetEntry(long categoryId, long entryId);
102
103
109 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
110 public com.liferay.portlet.asset.model.AssetEntry deleteAssetEntry(
111 com.liferay.portlet.asset.model.AssetEntry assetEntry);
112
113
120 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
121 public com.liferay.portlet.asset.model.AssetEntry deleteAssetEntry(
122 long entryId) throws PortalException;
123
124 public void deleteAssetTagAssetEntries(long tagId,
125 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries);
126
127 public void deleteAssetTagAssetEntries(long tagId, long[] entryIds);
128
129 public void deleteAssetTagAssetEntry(long tagId,
130 com.liferay.portlet.asset.model.AssetEntry assetEntry);
131
132 public void deleteAssetTagAssetEntry(long tagId, long entryId);
133
134 public void deleteEntry(java.lang.String className, long classPK)
135 throws PortalException;
136
137 public void deleteEntry(com.liferay.portlet.asset.model.AssetEntry entry)
138 throws PortalException;
139
140 public void deleteEntry(long entryId) throws PortalException;
141
142 public void deleteGroupEntries(long groupId) throws PortalException;
143
144
147 @Override
148 public com.liferay.portal.model.PersistedModel deletePersistedModel(
149 com.liferay.portal.model.PersistedModel persistedModel)
150 throws PortalException;
151
152 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
153
154
160 public <T> java.util.List<T> dynamicQuery(
161 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
162
163
175 public <T> java.util.List<T> dynamicQuery(
176 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
177 int end);
178
179
192 public <T> java.util.List<T> dynamicQuery(
193 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
194 int end,
195 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
196
197
203 public long dynamicQueryCount(
204 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
205
206
213 public long dynamicQueryCount(
214 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
215 com.liferay.portal.kernel.dao.orm.Projection projection);
216
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public com.liferay.portlet.asset.model.AssetEntry fetchAssetEntry(
219 long entryId);
220
221 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222 public com.liferay.portlet.asset.model.AssetEntry fetchEntry(
223 java.lang.String className, long classPK);
224
225 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226 public com.liferay.portlet.asset.model.AssetEntry fetchEntry(long entryId);
227
228 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229 public com.liferay.portlet.asset.model.AssetEntry fetchEntry(long groupId,
230 java.lang.String classUuid);
231
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
234
235 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAncestorEntries(
237 long entryId) throws PortalException;
238
239 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
240 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
241 long categoryId);
242
243 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
245 long categoryId, int start, int end);
246
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
249 long categoryId, int start, int end,
250 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetEntry> orderByComparator);
251
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public int getAssetCategoryAssetEntriesCount(long categoryId);
254
255
261 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262 public long[] getAssetCategoryPrimaryKeys(long entryId);
263
264
275 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
277 int start, int end);
278
279
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public int getAssetEntriesCount();
286
287
294 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295 public com.liferay.portlet.asset.model.AssetEntry getAssetEntry(
296 long entryId) throws PortalException;
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
300 long tagId);
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
304 long tagId, int start, int end);
305
306 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
308 long tagId, int start, int end,
309 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetEntry> orderByComparator);
310
311 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312 public int getAssetTagAssetEntriesCount(long tagId);
313
314
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public long[] getAssetTagPrimaryKeys(long entryId);
322
323
328 public java.lang.String getBeanIdentifier();
329
330 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
331 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getChildEntries(
332 long entryId) throws PortalException;
333
334 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
335 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
336 long companyId, int start, int end);
337
338 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
339 public int getCompanyEntriesCount(long companyId);
340
341 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
343 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery);
344
345 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
346 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
347 long[] groupIds, long[] classNameIds, java.lang.String keywords,
348 java.lang.String userName, java.lang.String title,
349 java.lang.String description, java.lang.Boolean listable,
350 boolean advancedSearch, boolean andOperator, int start, int end,
351 java.lang.String orderByCol1, java.lang.String orderByCol2,
352 java.lang.String orderByType1, java.lang.String orderByType2);
353
354 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
355 public int getEntriesCount(
356 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery);
357
358 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
359 public int getEntriesCount(long[] groupIds, long[] classNameIds,
360 java.lang.String keywords, java.lang.String userName,
361 java.lang.String title, java.lang.String description,
362 java.lang.Boolean listable, boolean advancedSearch, boolean andOperator);
363
364 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
365 public com.liferay.portlet.asset.model.AssetEntry getEntry(
366 java.lang.String className, long classPK) throws PortalException;
367
368 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
369 public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
370 throws PortalException;
371
372 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
373 public com.liferay.portlet.asset.model.AssetEntry getEntry(long groupId,
374 java.lang.String classUuid) throws PortalException;
375
376 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
377 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getGroupEntries(
378 long groupId);
379
380 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
381 public com.liferay.portlet.asset.model.AssetEntry getNextEntry(long entryId)
382 throws PortalException;
383
384 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
385 public com.liferay.portlet.asset.model.AssetEntry getParentEntry(
386 long entryId) throws PortalException;
387
388 @Override
389 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
390 public com.liferay.portal.model.PersistedModel getPersistedModel(
391 java.io.Serializable primaryKeyObj) throws PortalException;
392
393 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394 public com.liferay.portlet.asset.model.AssetEntry getPreviousEntry(
395 long entryId) throws PortalException;
396
397 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
398 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
399 java.lang.String[] className, boolean asc, int start, int end);
400
401 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
402 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
403 java.lang.String className, boolean asc, int start, int end);
404
405 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
406 public boolean hasAssetCategoryAssetEntries(long categoryId);
407
408 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
409 public boolean hasAssetCategoryAssetEntry(long categoryId, long entryId);
410
411 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
412 public boolean hasAssetTagAssetEntries(long tagId);
413
414 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
415 public boolean hasAssetTagAssetEntry(long tagId, long entryId);
416
417 public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
418 long userId, java.lang.String className, long classPK)
419 throws PortalException;
420
421 @com.liferay.portal.kernel.increment.BufferedIncrement(configuration = "AssetEntry", incrementClass = com.liferay.portal.kernel.increment.NumberIncrement.class)
422 public void incrementViewCounter(long userId, java.lang.String className,
423 long classPK, int increment);
424
425 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
426 public void reindex(
427 java.util.List<com.liferay.portlet.asset.model.AssetEntry> entries)
428 throws PortalException;
429
430
434 @java.lang.Deprecated
435 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
436 public com.liferay.portal.kernel.search.Hits search(long companyId,
437 long[] groupIds, java.lang.String className, java.lang.String keywords,
438 int start, int end);
439
440 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
441 public com.liferay.portal.kernel.search.Hits search(long companyId,
442 long[] groupIds, long userId, java.lang.String className,
443 long classTypeId, java.lang.String keywords, boolean showNonindexable,
444 int status, int start, int end);
445
446 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
447 public com.liferay.portal.kernel.search.Hits search(long companyId,
448 long[] groupIds, long userId, java.lang.String className,
449 long classTypeId, java.lang.String keywords, boolean showNonindexable,
450 int[] statuses, int start, int end);
451
452 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
453 public com.liferay.portal.kernel.search.Hits search(long companyId,
454 long[] groupIds, long userId, java.lang.String className,
455 long classTypeId, java.lang.String keywords, int status, int start,
456 int end);
457
458 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
459 public com.liferay.portal.kernel.search.Hits search(long companyId,
460 long[] groupIds, long userId, java.lang.String className,
461 long classTypeId, java.lang.String userName, java.lang.String title,
462 java.lang.String description, java.lang.String assetCategoryIds,
463 java.lang.String assetTagNames, boolean showNonindexable, int status,
464 boolean andSearch, int start, int end);
465
466 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
467 public com.liferay.portal.kernel.search.Hits search(long companyId,
468 long[] groupIds, long userId, java.lang.String className,
469 long classTypeId, java.lang.String userName, java.lang.String title,
470 java.lang.String description, java.lang.String assetCategoryIds,
471 java.lang.String assetTagNames, boolean showNonindexable,
472 int[] statuses, boolean andSearch, int start, int end);
473
474 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
475 public com.liferay.portal.kernel.search.Hits search(long companyId,
476 long[] groupIds, long userId, java.lang.String className,
477 long classTypeId, java.lang.String userName, java.lang.String title,
478 java.lang.String description, java.lang.String assetCategoryIds,
479 java.lang.String assetTagNames, int status, boolean andSearch,
480 int start, int end);
481
482
486 @java.lang.Deprecated
487 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
488 public com.liferay.portal.kernel.search.Hits search(long companyId,
489 long[] groupIds, long userId, java.lang.String className,
490 java.lang.String keywords, int start, int end);
491
492 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
493 public com.liferay.portal.kernel.search.Hits search(long companyId,
494 long[] groupIds, long userId, java.lang.String className,
495 java.lang.String keywords, int status, int start, int end);
496
497
502 @java.lang.Deprecated
503 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
504 public com.liferay.portal.kernel.search.Hits search(long companyId,
505 long[] groupIds, long userId, java.lang.String className,
506 java.lang.String userName, java.lang.String title,
507 java.lang.String description, java.lang.String assetCategoryIds,
508 java.lang.String assetTagNames, boolean andSearch, int start, int end);
509
510 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
511 public com.liferay.portal.kernel.search.Hits search(long companyId,
512 long[] groupIds, long userId, java.lang.String className,
513 java.lang.String userName, java.lang.String title,
514 java.lang.String description, java.lang.String assetCategoryIds,
515 java.lang.String assetTagNames, int status, boolean andSearch,
516 int start, int end);
517
518 public void setAssetCategoryAssetEntries(long categoryId, long[] entryIds);
519
520 public void setAssetTagAssetEntries(long tagId, long[] entryIds);
521
522
527 public void setBeanIdentifier(java.lang.String beanIdentifier);
528
529
535 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
536 public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
537 com.liferay.portlet.asset.model.AssetEntry assetEntry);
538
539 public com.liferay.portlet.asset.model.AssetEntry updateEntry(
540 java.lang.String className, long classPK, java.util.Date publishDate,
541 java.util.Date expirationDate, boolean visible)
542 throws PortalException;
543
544 public com.liferay.portlet.asset.model.AssetEntry updateEntry(
545 java.lang.String className, long classPK, java.util.Date publishDate,
546 boolean visible) throws PortalException;
547
548 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
549 long groupId, java.lang.String className, long classPK,
550 long[] categoryIds, java.lang.String[] tagNames)
551 throws PortalException;
552
553
559 @java.lang.Deprecated
560 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
561 long groupId, java.lang.String className, long classPK,
562 java.lang.String classUuid, long classTypeId, long[] categoryIds,
563 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
564 java.util.Date endDate, java.util.Date expirationDate,
565 java.lang.String mimeType, java.lang.String title,
566 java.lang.String description, java.lang.String summary,
567 java.lang.String url, java.lang.String layoutUuid, int height,
568 int width, java.lang.Integer priority, boolean sync)
569 throws PortalException;
570
571
577 @java.lang.Deprecated
578 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
579 long groupId, java.lang.String className, long classPK,
580 java.lang.String classUuid, long classTypeId, long[] categoryIds,
581 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
582 java.util.Date endDate, java.util.Date publishDate,
583 java.util.Date expirationDate, java.lang.String mimeType,
584 java.lang.String title, java.lang.String description,
585 java.lang.String summary, java.lang.String url,
586 java.lang.String layoutUuid, int height, int width,
587 java.lang.Integer priority, boolean sync) throws PortalException;
588
589 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
590 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
591 java.lang.String className, long classPK, java.lang.String classUuid,
592 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
593 boolean visible, java.util.Date startDate, java.util.Date endDate,
594 java.util.Date expirationDate, java.lang.String mimeType,
595 java.lang.String title, java.lang.String description,
596 java.lang.String summary, java.lang.String url,
597 java.lang.String layoutUuid, int height, int width,
598 java.lang.Double priority) throws PortalException;
599
600
606 @java.lang.Deprecated
607 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
608 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
609 java.lang.String className, long classPK, java.lang.String classUuid,
610 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
611 boolean visible, java.util.Date startDate, java.util.Date endDate,
612 java.util.Date expirationDate, java.lang.String mimeType,
613 java.lang.String title, java.lang.String description,
614 java.lang.String summary, java.lang.String url,
615 java.lang.String layoutUuid, int height, int width,
616 java.lang.Integer priority, boolean sync) throws PortalException;
617
618 public com.liferay.portlet.asset.model.AssetEntry updateVisible(
619 java.lang.String className, long classPK, boolean visible)
620 throws PortalException;
621
622 public com.liferay.portlet.asset.model.AssetEntry updateVisible(
623 com.liferay.portlet.asset.model.AssetEntry entry, boolean visible)
624 throws PortalException;
625
626
630 @java.lang.Deprecated
631 public void validate(long groupId, java.lang.String className,
632 long[] categoryIds, java.lang.String[] tagNames)
633 throws PortalException;
634
635 public void validate(long groupId, java.lang.String className,
636 long classTypePK, long[] categoryIds, java.lang.String[] tagNames)
637 throws PortalException;
638 }