001
014
015 package com.liferay.asset.kernel.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.asset.kernel.model.AssetEntry;
020 import com.liferay.asset.kernel.service.persistence.AssetEntryQuery;
021
022 import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
023 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
024 import com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery;
025 import com.liferay.portal.kernel.dao.orm.Projection;
026 import com.liferay.portal.kernel.exception.PortalException;
027 import com.liferay.portal.kernel.exception.SystemException;
028 import com.liferay.portal.kernel.increment.BufferedIncrement;
029 import com.liferay.portal.kernel.model.PersistedModel;
030 import com.liferay.portal.kernel.search.Hits;
031 import com.liferay.portal.kernel.search.Indexable;
032 import com.liferay.portal.kernel.search.IndexableType;
033 import com.liferay.portal.kernel.service.BaseLocalService;
034 import com.liferay.portal.kernel.service.PersistedModelLocalService;
035 import com.liferay.portal.kernel.transaction.Isolation;
036 import com.liferay.portal.kernel.transaction.Propagation;
037 import com.liferay.portal.kernel.transaction.Transactional;
038 import com.liferay.portal.kernel.util.OrderByComparator;
039
040 import java.io.Serializable;
041
042 import java.util.Date;
043 import java.util.List;
044
045
057 @ProviderType
058 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
059 PortalException.class, SystemException.class})
060 public interface AssetEntryLocalService extends BaseLocalService,
061 PersistedModelLocalService {
062
067 public void addAssetCategoryAssetEntries(long categoryId,
068 List<AssetEntry> AssetEntries);
069
070 public void addAssetCategoryAssetEntries(long categoryId, long[] entryIds);
071
072 public void addAssetCategoryAssetEntry(long categoryId,
073 AssetEntry assetEntry);
074
075 public void addAssetCategoryAssetEntry(long categoryId, long entryId);
076
077
083 @Indexable(type = IndexableType.REINDEX)
084 public AssetEntry addAssetEntry(AssetEntry assetEntry);
085
086 public void addAssetTagAssetEntries(long tagId,
087 List<AssetEntry> AssetEntries);
088
089 public void addAssetTagAssetEntries(long tagId, long[] entryIds);
090
091 public void addAssetTagAssetEntry(long tagId, AssetEntry assetEntry);
092
093 public void addAssetTagAssetEntry(long tagId, long entryId);
094
095 public void clearAssetCategoryAssetEntries(long categoryId);
096
097 public void clearAssetTagAssetEntries(long tagId);
098
099
105 public AssetEntry createAssetEntry(long entryId);
106
107 public void deleteAssetCategoryAssetEntries(long categoryId,
108 List<AssetEntry> AssetEntries);
109
110 public void deleteAssetCategoryAssetEntries(long categoryId, long[] entryIds);
111
112 public void deleteAssetCategoryAssetEntry(long categoryId,
113 AssetEntry assetEntry);
114
115 public void deleteAssetCategoryAssetEntry(long categoryId, long entryId);
116
117
123 @Indexable(type = IndexableType.DELETE)
124 public AssetEntry deleteAssetEntry(AssetEntry assetEntry);
125
126
133 @Indexable(type = IndexableType.DELETE)
134 public AssetEntry deleteAssetEntry(long entryId) throws PortalException;
135
136 public void deleteAssetTagAssetEntries(long tagId,
137 List<AssetEntry> AssetEntries);
138
139 public void deleteAssetTagAssetEntries(long tagId, long[] entryIds);
140
141 public void deleteAssetTagAssetEntry(long tagId, AssetEntry assetEntry);
142
143 public void deleteAssetTagAssetEntry(long tagId, long entryId);
144
145 public void deleteEntry(java.lang.String className, long classPK)
146 throws PortalException;
147
148 public void deleteEntry(AssetEntry entry) throws PortalException;
149
150 public void deleteEntry(long entryId) throws PortalException;
151
152 public void deleteGroupEntries(long groupId) throws PortalException;
153
154
157 @Override
158 public PersistedModel deletePersistedModel(PersistedModel persistedModel)
159 throws PortalException;
160
161 public DynamicQuery dynamicQuery();
162
163
169 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery);
170
171
183 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
184 int end);
185
186
199 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
200 int end, OrderByComparator<T> orderByComparator);
201
202
208 public long dynamicQueryCount(DynamicQuery dynamicQuery);
209
210
217 public long dynamicQueryCount(DynamicQuery dynamicQuery,
218 Projection projection);
219
220 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221 public AssetEntry fetchAssetEntry(long entryId);
222
223 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224 public AssetEntry fetchEntry(java.lang.String className, long classPK);
225
226 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227 public AssetEntry fetchEntry(long entryId);
228
229 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230 public AssetEntry fetchEntry(long groupId, java.lang.String classUuid);
231
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public ActionableDynamicQuery getActionableDynamicQuery();
234
235 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236 public List<AssetEntry> getAncestorEntries(long entryId)
237 throws PortalException;
238
239 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
240 public List<AssetEntry> getAssetCategoryAssetEntries(long categoryId);
241
242 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243 public List<AssetEntry> getAssetCategoryAssetEntries(long categoryId,
244 int start, int end);
245
246 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247 public List<AssetEntry> getAssetCategoryAssetEntries(long categoryId,
248 int start, int end, OrderByComparator<AssetEntry> orderByComparator);
249
250 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251 public int getAssetCategoryAssetEntriesCount(long categoryId);
252
253
259 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
260 public long[] getAssetCategoryPrimaryKeys(long entryId);
261
262
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public List<AssetEntry> getAssetEntries(int start, int end);
275
276
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public int getAssetEntriesCount();
283
284
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public AssetEntry getAssetEntry(long entryId) throws PortalException;
293
294 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295 public List<AssetEntry> getAssetTagAssetEntries(long tagId);
296
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public List<AssetEntry> getAssetTagAssetEntries(long tagId, int start,
299 int end);
300
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public List<AssetEntry> getAssetTagAssetEntries(long tagId, int start,
303 int end, OrderByComparator<AssetEntry> orderByComparator);
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public int getAssetTagAssetEntriesCount(long tagId);
307
308
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public long[] getAssetTagPrimaryKeys(long entryId);
316
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public List<AssetEntry> getChildEntries(long entryId)
319 throws PortalException;
320
321 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
322 public List<AssetEntry> getCompanyEntries(long companyId, int start, int end);
323
324 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325 public int getCompanyEntriesCount(long companyId);
326
327 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328 public List<AssetEntry> getEntries(AssetEntryQuery entryQuery);
329
330 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
331 public List<AssetEntry> getEntries(long[] groupIds, long[] classNameIds,
332 java.lang.String keywords, java.lang.String userName,
333 java.lang.String title, java.lang.String description,
334 java.lang.Boolean listable, boolean advancedSearch,
335 boolean andOperator, int start, int end, java.lang.String orderByCol1,
336 java.lang.String orderByCol2, java.lang.String orderByType1,
337 java.lang.String orderByType2);
338
339 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
340 public int getEntriesCount(AssetEntryQuery entryQuery);
341
342 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
343 public int getEntriesCount(long[] groupIds, long[] classNameIds,
344 java.lang.String keywords, java.lang.String userName,
345 java.lang.String title, java.lang.String description,
346 java.lang.Boolean listable, boolean advancedSearch, boolean andOperator);
347
348 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
349 public AssetEntry getEntry(java.lang.String className, long classPK)
350 throws PortalException;
351
352 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
353 public AssetEntry getEntry(long entryId) throws PortalException;
354
355 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356 public AssetEntry getEntry(long groupId, java.lang.String classUuid)
357 throws PortalException;
358
359 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
360 public List<AssetEntry> getGroupEntries(long groupId);
361
362 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
363 public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery();
364
365 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366 public AssetEntry getNextEntry(long entryId) throws PortalException;
367
368
373 public java.lang.String getOSGiServiceIdentifier();
374
375 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
376 public AssetEntry getParentEntry(long entryId) throws PortalException;
377
378 @Override
379 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
380 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
381 throws PortalException;
382
383 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
384 public AssetEntry getPreviousEntry(long entryId) throws PortalException;
385
386 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
387 public List<AssetEntry> getTopViewedEntries(java.lang.String className,
388 boolean asc, int start, int end);
389
390 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
391 public List<AssetEntry> getTopViewedEntries(java.lang.String[] className,
392 boolean asc, int start, int end);
393
394 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
395 public boolean hasAssetCategoryAssetEntries(long categoryId);
396
397 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
398 public boolean hasAssetCategoryAssetEntry(long categoryId, long entryId);
399
400 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
401 public boolean hasAssetTagAssetEntries(long tagId);
402
403 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
404 public boolean hasAssetTagAssetEntry(long tagId, long entryId);
405
406 public AssetEntry incrementViewCounter(long userId,
407 java.lang.String className, long classPK) throws PortalException;
408
409 @BufferedIncrement(configuration = "AssetEntry", incrementClass = com.liferay.portal.kernel.increment.NumberIncrement.class)
410 public void incrementViewCounter(long userId, java.lang.String className,
411 long classPK, int increment);
412
413 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
414 public void reindex(List<AssetEntry> entries) throws PortalException;
415
416 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
417 public Hits search(long companyId, long[] groupIds, long userId,
418 java.lang.String className, long classTypeId,
419 java.lang.String keywords, boolean showNonindexable, int status,
420 int start, int end);
421
422 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
423 public Hits search(long companyId, long[] groupIds, long userId,
424 java.lang.String className, long classTypeId,
425 java.lang.String keywords, boolean showNonindexable, int[] statuses,
426 int start, int end);
427
428 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
429 public Hits search(long companyId, long[] groupIds, long userId,
430 java.lang.String className, long classTypeId,
431 java.lang.String keywords, int status, int start, int end);
432
433 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
434 public Hits search(long companyId, long[] groupIds, long userId,
435 java.lang.String className, long classTypeId,
436 java.lang.String userName, java.lang.String title,
437 java.lang.String description, java.lang.String assetCategoryIds,
438 java.lang.String assetTagNames, boolean showNonindexable, int status,
439 boolean andSearch, int start, int end);
440
441 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
442 public Hits search(long companyId, long[] groupIds, long userId,
443 java.lang.String className, long classTypeId,
444 java.lang.String userName, java.lang.String title,
445 java.lang.String description, java.lang.String assetCategoryIds,
446 java.lang.String assetTagNames, boolean showNonindexable,
447 int[] statuses, boolean andSearch, int start, int end);
448
449 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
450 public Hits search(long companyId, long[] groupIds, long userId,
451 java.lang.String className, long classTypeId,
452 java.lang.String userName, java.lang.String title,
453 java.lang.String description, java.lang.String assetCategoryIds,
454 java.lang.String assetTagNames, int status, boolean andSearch,
455 int start, int end);
456
457 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
458 public Hits search(long companyId, long[] groupIds, long userId,
459 java.lang.String className, java.lang.String keywords, int status,
460 int start, int end);
461
462 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
463 public Hits search(long companyId, long[] groupIds, long userId,
464 java.lang.String className, java.lang.String userName,
465 java.lang.String title, java.lang.String description,
466 java.lang.String assetCategoryIds, java.lang.String assetTagNames,
467 int status, boolean andSearch, int start, int end);
468
469 public void setAssetCategoryAssetEntries(long categoryId, long[] entryIds);
470
471 public void setAssetTagAssetEntries(long tagId, long[] entryIds);
472
473
479 @Indexable(type = IndexableType.REINDEX)
480 public AssetEntry updateAssetEntry(AssetEntry assetEntry);
481
482 public AssetEntry updateEntry(java.lang.String className, long classPK,
483 Date publishDate, Date expirationDate, boolean visible)
484 throws PortalException;
485
486 public AssetEntry updateEntry(java.lang.String className, long classPK,
487 Date publishDate, boolean visible) throws PortalException;
488
489 public AssetEntry updateEntry(long userId, long groupId,
490 java.lang.String className, long classPK, long[] categoryIds,
491 java.lang.String[] tagNames) throws PortalException;
492
493 public AssetEntry updateEntry(long userId, long groupId, Date createDate,
494 Date modifiedDate, java.lang.String className, long classPK,
495 java.lang.String classUuid, long classTypeId, long[] categoryIds,
496 java.lang.String[] tagNames, boolean visible, Date startDate,
497 Date endDate, Date expirationDate, java.lang.String mimeType,
498 java.lang.String title, java.lang.String description,
499 java.lang.String summary, java.lang.String url,
500 java.lang.String layoutUuid, int height, int width,
501 java.lang.Double priority) throws PortalException;
502
503
509 @java.lang.Deprecated
510 public AssetEntry updateEntry(long userId, long groupId, Date createDate,
511 Date modifiedDate, java.lang.String className, long classPK,
512 java.lang.String classUuid, long classTypeId, long[] categoryIds,
513 java.lang.String[] tagNames, boolean visible, Date startDate,
514 Date endDate, Date expirationDate, java.lang.String mimeType,
515 java.lang.String title, java.lang.String description,
516 java.lang.String summary, java.lang.String url,
517 java.lang.String layoutUuid, int height, int width,
518 java.lang.Integer priority, boolean sync) throws PortalException;
519
520 public AssetEntry updateVisible(java.lang.String className, long classPK,
521 boolean visible) throws PortalException;
522
523 public AssetEntry updateVisible(AssetEntry entry, boolean visible)
524 throws PortalException;
525
526
530 @java.lang.Deprecated
531 public void validate(long groupId, java.lang.String className,
532 long[] categoryIds, java.lang.String[] tagNames)
533 throws PortalException;
534
535 public void validate(long groupId, java.lang.String className,
536 long classTypePK, long[] categoryIds, java.lang.String[] tagNames)
537 throws PortalException;
538 }