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)
123 throws com.liferay.portal.kernel.exception.PortalException;
124
125 public void deleteAssetTagAssetEntries(long tagId,
126 java.util.List<com.liferay.portlet.asset.model.AssetEntry> AssetEntries);
127
128 public void deleteAssetTagAssetEntries(long tagId, long[] entryIds);
129
130 public void deleteAssetTagAssetEntry(long tagId,
131 com.liferay.portlet.asset.model.AssetEntry assetEntry);
132
133 public void deleteAssetTagAssetEntry(long tagId, long entryId);
134
135 public void deleteEntry(java.lang.String className, long classPK)
136 throws com.liferay.portal.kernel.exception.PortalException;
137
138 public void deleteEntry(com.liferay.portlet.asset.model.AssetEntry entry)
139 throws com.liferay.portal.kernel.exception.PortalException;
140
141 public void deleteEntry(long entryId)
142 throws com.liferay.portal.kernel.exception.PortalException;
143
144 public void deleteGroupEntries(long groupId)
145 throws com.liferay.portal.kernel.exception.PortalException;
146
147
150 @Override
151 public com.liferay.portal.model.PersistedModel deletePersistedModel(
152 com.liferay.portal.model.PersistedModel persistedModel)
153 throws com.liferay.portal.kernel.exception.PortalException;
154
155 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
156
157
163 public <T> java.util.List<T> dynamicQuery(
164 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
165
166
178 public <T> java.util.List<T> dynamicQuery(
179 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
180 int end);
181
182
195 public <T> java.util.List<T> dynamicQuery(
196 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
197 int end,
198 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
199
200
206 public long dynamicQueryCount(
207 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
208
209
216 public long dynamicQueryCount(
217 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
218 com.liferay.portal.kernel.dao.orm.Projection projection);
219
220 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221 public com.liferay.portlet.asset.model.AssetEntry fetchAssetEntry(
222 long entryId);
223
224 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225 public com.liferay.portlet.asset.model.AssetEntry fetchEntry(
226 java.lang.String className, long classPK);
227
228 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229 public com.liferay.portlet.asset.model.AssetEntry fetchEntry(long entryId);
230
231 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232 public com.liferay.portlet.asset.model.AssetEntry fetchEntry(long groupId,
233 java.lang.String classUuid);
234
235 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
237
238 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAncestorEntries(
240 long entryId)
241 throws com.liferay.portal.kernel.exception.PortalException;
242
243 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
245 long categoryId);
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
251 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetCategoryAssetEntries(
253 long categoryId, int start, int end,
254 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetEntry> orderByComparator);
255
256 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257 public int getAssetCategoryAssetEntriesCount(long categoryId);
258
259
265 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266 public long[] getAssetCategoryPrimaryKeys(long entryId);
267
268
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
281 int start, int end);
282
283
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public int getAssetEntriesCount();
290
291
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public com.liferay.portlet.asset.model.AssetEntry getAssetEntry(
300 long entryId)
301 throws com.liferay.portal.kernel.exception.PortalException;
302
303 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
305 long tagId);
306
307 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
309 long tagId, int start, int end);
310
311 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetTagAssetEntries(
313 long tagId, int start, int end,
314 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetEntry> orderByComparator);
315
316 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
317 public int getAssetTagAssetEntriesCount(long tagId);
318
319
325 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326 public long[] getAssetTagPrimaryKeys(long entryId);
327
328
333 public java.lang.String getBeanIdentifier();
334
335 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
336 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getChildEntries(
337 long entryId)
338 throws com.liferay.portal.kernel.exception.PortalException;
339
340 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
341 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
342 long companyId, int start, int end);
343
344 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
345 public int getCompanyEntriesCount(long companyId);
346
347 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
348 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
349 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery);
350
351 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
352 public int getEntriesCount(
353 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery);
354
355 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356 public com.liferay.portlet.asset.model.AssetEntry getEntry(
357 java.lang.String className, long classPK)
358 throws com.liferay.portal.kernel.exception.PortalException;
359
360 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361 public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
362 throws com.liferay.portal.kernel.exception.PortalException;
363
364 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
365 public com.liferay.portlet.asset.model.AssetEntry getEntry(long groupId,
366 java.lang.String classUuid)
367 throws com.liferay.portal.kernel.exception.PortalException;
368
369 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getGroupEntries(
371 long groupId);
372
373 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374 public com.liferay.portlet.asset.model.AssetEntry getNextEntry(long entryId)
375 throws com.liferay.portal.kernel.exception.PortalException;
376
377 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378 public com.liferay.portlet.asset.model.AssetEntry getParentEntry(
379 long entryId)
380 throws com.liferay.portal.kernel.exception.PortalException;
381
382 @Override
383 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
384 public com.liferay.portal.model.PersistedModel getPersistedModel(
385 java.io.Serializable primaryKeyObj)
386 throws com.liferay.portal.kernel.exception.PortalException;
387
388 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
389 public com.liferay.portlet.asset.model.AssetEntry getPreviousEntry(
390 long entryId)
391 throws com.liferay.portal.kernel.exception.PortalException;
392
393 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
395 java.lang.String className, boolean asc, int start, int end);
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 boolean hasAssetCategoryAssetEntries(long categoryId);
403
404 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
405 public boolean hasAssetCategoryAssetEntry(long categoryId, long entryId);
406
407 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
408 public boolean hasAssetTagAssetEntries(long tagId);
409
410 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
411 public boolean hasAssetTagAssetEntry(long tagId, long entryId);
412
413 public com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
414 long userId, java.lang.String className, long classPK)
415 throws com.liferay.portal.kernel.exception.PortalException;
416
417 @com.liferay.portal.kernel.increment.BufferedIncrement(configuration = "AssetEntry", incrementClass = com.liferay.portal.kernel.increment.NumberIncrement.class)
418 public void incrementViewCounter(long userId, java.lang.String className,
419 long classPK, int increment);
420
421 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
422 public void reindex(
423 java.util.List<com.liferay.portlet.asset.model.AssetEntry> entries)
424 throws com.liferay.portal.kernel.exception.PortalException;
425
426
430 @java.lang.Deprecated
431 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
432 public com.liferay.portal.kernel.search.Hits search(long companyId,
433 long[] groupIds, java.lang.String className, java.lang.String keywords,
434 int start, int end);
435
436 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437 public com.liferay.portal.kernel.search.Hits search(long companyId,
438 long[] groupIds, long userId, java.lang.String className,
439 long classTypeId, java.lang.String keywords, int status, int start,
440 int end);
441
442 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
443 public com.liferay.portal.kernel.search.Hits search(long companyId,
444 long[] groupIds, long userId, java.lang.String className,
445 long classTypeId, java.lang.String userName, java.lang.String title,
446 java.lang.String description, java.lang.String assetCategoryIds,
447 java.lang.String assetTagNames, int status, boolean andSearch,
448 int start, int end);
449
450
454 @java.lang.Deprecated
455 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
456 public com.liferay.portal.kernel.search.Hits search(long companyId,
457 long[] groupIds, long userId, java.lang.String className,
458 java.lang.String keywords, int start, int end);
459
460 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
461 public com.liferay.portal.kernel.search.Hits search(long companyId,
462 long[] groupIds, long userId, java.lang.String className,
463 java.lang.String keywords, int status, int start, int end);
464
465
470 @java.lang.Deprecated
471 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
472 public com.liferay.portal.kernel.search.Hits search(long companyId,
473 long[] groupIds, long userId, java.lang.String className,
474 java.lang.String userName, java.lang.String title,
475 java.lang.String description, java.lang.String assetCategoryIds,
476 java.lang.String assetTagNames, boolean andSearch, int start, int end);
477
478 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
479 public com.liferay.portal.kernel.search.Hits search(long companyId,
480 long[] groupIds, long userId, java.lang.String className,
481 java.lang.String userName, java.lang.String title,
482 java.lang.String description, java.lang.String assetCategoryIds,
483 java.lang.String assetTagNames, int status, boolean andSearch,
484 int start, int end);
485
486 public void setAssetCategoryAssetEntries(long categoryId, long[] entryIds);
487
488 public void setAssetTagAssetEntries(long tagId, long[] entryIds);
489
490
495 public void setBeanIdentifier(java.lang.String beanIdentifier);
496
497
503 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
504 public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
505 com.liferay.portlet.asset.model.AssetEntry assetEntry);
506
507 public com.liferay.portlet.asset.model.AssetEntry updateEntry(
508 java.lang.String className, long classPK, java.util.Date publishDate,
509 java.util.Date expirationDate, boolean visible)
510 throws com.liferay.portal.kernel.exception.PortalException;
511
512 public com.liferay.portlet.asset.model.AssetEntry updateEntry(
513 java.lang.String className, long classPK, java.util.Date publishDate,
514 boolean visible)
515 throws com.liferay.portal.kernel.exception.PortalException;
516
517 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
518 long groupId, java.lang.String className, long classPK,
519 long[] categoryIds, java.lang.String[] tagNames)
520 throws com.liferay.portal.kernel.exception.PortalException;
521
522
528 @java.lang.Deprecated
529 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
530 long groupId, java.lang.String className, long classPK,
531 java.lang.String classUuid, long classTypeId, long[] categoryIds,
532 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
533 java.util.Date endDate, java.util.Date expirationDate,
534 java.lang.String mimeType, java.lang.String title,
535 java.lang.String description, java.lang.String summary,
536 java.lang.String url, java.lang.String layoutUuid, int height,
537 int width, java.lang.Integer priority, boolean sync)
538 throws com.liferay.portal.kernel.exception.PortalException;
539
540
546 @java.lang.Deprecated
547 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
548 long groupId, java.lang.String className, long classPK,
549 java.lang.String classUuid, long classTypeId, long[] categoryIds,
550 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
551 java.util.Date endDate, java.util.Date publishDate,
552 java.util.Date expirationDate, java.lang.String mimeType,
553 java.lang.String title, java.lang.String description,
554 java.lang.String summary, java.lang.String url,
555 java.lang.String layoutUuid, int height, int width,
556 java.lang.Integer priority, boolean sync)
557 throws com.liferay.portal.kernel.exception.PortalException;
558
559 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
560 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
561 java.lang.String className, long classPK, java.lang.String classUuid,
562 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
563 boolean visible, java.util.Date startDate, java.util.Date endDate,
564 java.util.Date expirationDate, java.lang.String mimeType,
565 java.lang.String title, java.lang.String description,
566 java.lang.String summary, java.lang.String url,
567 java.lang.String layoutUuid, int height, int width,
568 java.lang.Integer priority, boolean sync)
569 throws com.liferay.portal.kernel.exception.PortalException;
570
571 public com.liferay.portlet.asset.model.AssetEntry updateVisible(
572 java.lang.String className, long classPK, boolean visible)
573 throws com.liferay.portal.kernel.exception.PortalException;
574
575
579 @java.lang.Deprecated
580 public void validate(long groupId, java.lang.String className,
581 long[] categoryIds, java.lang.String[] tagNames)
582 throws com.liferay.portal.kernel.exception.PortalException;
583
584 public void validate(long groupId, java.lang.String className,
585 long classTypePK, long[] categoryIds, java.lang.String[] tagNames)
586 throws com.liferay.portal.kernel.exception.PortalException;
587 }