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 AssetTagLocalService extends BaseLocalService,
043 PersistedModelLocalService {
044
049
050
057 public com.liferay.portlet.asset.model.AssetTag addAssetTag(
058 com.liferay.portlet.asset.model.AssetTag assetTag)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061
067 public com.liferay.portlet.asset.model.AssetTag createAssetTag(long tagId);
068
069
077 public com.liferay.portlet.asset.model.AssetTag deleteAssetTag(long tagId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException;
080
081
088 public com.liferay.portlet.asset.model.AssetTag deleteAssetTag(
089 com.liferay.portlet.asset.model.AssetTag assetTag)
090 throws com.liferay.portal.kernel.exception.SystemException;
091
092 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
093
094
101 @SuppressWarnings("rawtypes")
102 public java.util.List dynamicQuery(
103 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106
119 @SuppressWarnings("rawtypes")
120 public java.util.List dynamicQuery(
121 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122 int end) throws com.liferay.portal.kernel.exception.SystemException;
123
124
138 @SuppressWarnings("rawtypes")
139 public java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145
152 public long dynamicQueryCount(
153 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156
164 public long dynamicQueryCount(
165 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
166 com.liferay.portal.kernel.dao.orm.Projection projection)
167 throws com.liferay.portal.kernel.exception.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.asset.model.AssetTag fetchAssetTag(long tagId)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public com.liferay.portlet.asset.model.AssetTag getAssetTag(long tagId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException;
185
186 @Override
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public com.liferay.portal.model.PersistedModel getPersistedModel(
189 java.io.Serializable primaryKeyObj)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException;
192
193
205 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
207 int start, int end)
208 throws com.liferay.portal.kernel.exception.SystemException;
209
210
216 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217 public int getAssetTagsCount()
218 throws com.liferay.portal.kernel.exception.SystemException;
219
220
227 public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
228 com.liferay.portlet.asset.model.AssetTag assetTag)
229 throws com.liferay.portal.kernel.exception.SystemException;
230
231
234 public void addAssetEntryAssetTag(long entryId, long tagId)
235 throws com.liferay.portal.kernel.exception.SystemException;
236
237
240 public void addAssetEntryAssetTag(long entryId,
241 com.liferay.portlet.asset.model.AssetTag assetTag)
242 throws com.liferay.portal.kernel.exception.SystemException;
243
244
247 public void addAssetEntryAssetTags(long entryId, long[] tagIds)
248 throws com.liferay.portal.kernel.exception.SystemException;
249
250
253 public void addAssetEntryAssetTags(long entryId,
254 java.util.List<com.liferay.portlet.asset.model.AssetTag> AssetTags)
255 throws com.liferay.portal.kernel.exception.SystemException;
256
257
260 public void clearAssetEntryAssetTags(long entryId)
261 throws com.liferay.portal.kernel.exception.SystemException;
262
263
266 public void deleteAssetEntryAssetTag(long entryId, long tagId)
267 throws com.liferay.portal.kernel.exception.SystemException;
268
269
272 public void deleteAssetEntryAssetTag(long entryId,
273 com.liferay.portlet.asset.model.AssetTag assetTag)
274 throws com.liferay.portal.kernel.exception.SystemException;
275
276
279 public void deleteAssetEntryAssetTags(long entryId, long[] tagIds)
280 throws com.liferay.portal.kernel.exception.SystemException;
281
282
285 public void deleteAssetEntryAssetTags(long entryId,
286 java.util.List<com.liferay.portlet.asset.model.AssetTag> AssetTags)
287 throws com.liferay.portal.kernel.exception.SystemException;
288
289
292 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
294 long entryId)
295 throws com.liferay.portal.kernel.exception.SystemException;
296
297
300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
302 long entryId, int start, int end)
303 throws com.liferay.portal.kernel.exception.SystemException;
304
305
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
310 long entryId, int start, int end,
311 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312 throws com.liferay.portal.kernel.exception.SystemException;
313
314
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public int getAssetEntryAssetTagsCount(long entryId)
319 throws com.liferay.portal.kernel.exception.SystemException;
320
321
324 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325 public boolean hasAssetEntryAssetTag(long entryId, long tagId)
326 throws com.liferay.portal.kernel.exception.SystemException;
327
328
331 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
332 public boolean hasAssetEntryAssetTags(long entryId)
333 throws com.liferay.portal.kernel.exception.SystemException;
334
335
338 public void setAssetEntryAssetTags(long entryId, long[] tagIds)
339 throws com.liferay.portal.kernel.exception.SystemException;
340
341
346 public java.lang.String getBeanIdentifier();
347
348
353 public void setBeanIdentifier(java.lang.String beanIdentifier);
354
355 public com.liferay.portlet.asset.model.AssetTag addTag(long userId,
356 java.lang.String name, java.lang.String[] tagProperties,
357 com.liferay.portal.service.ServiceContext serviceContext)
358 throws com.liferay.portal.kernel.exception.PortalException,
359 com.liferay.portal.kernel.exception.SystemException;
360
361 public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
362 boolean addGroupPermissions, boolean addGuestPermissions)
363 throws com.liferay.portal.kernel.exception.PortalException,
364 com.liferay.portal.kernel.exception.SystemException;
365
366 public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
367 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
368 throws com.liferay.portal.kernel.exception.PortalException,
369 com.liferay.portal.kernel.exception.SystemException;
370
371
392 public java.util.List<com.liferay.portlet.asset.model.AssetTag> checkTags(
393 long userId, com.liferay.portal.model.Group group,
394 java.lang.String[] names)
395 throws com.liferay.portal.kernel.exception.PortalException,
396 com.liferay.portal.kernel.exception.SystemException;
397
398 public void checkTags(long userId, long groupId, java.lang.String[] names)
399 throws com.liferay.portal.kernel.exception.PortalException,
400 com.liferay.portal.kernel.exception.SystemException;
401
402 public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
403 long tagId, long classNameId)
404 throws com.liferay.portal.kernel.exception.PortalException,
405 com.liferay.portal.kernel.exception.SystemException;
406
407 public void deleteGroupTags(long groupId)
408 throws com.liferay.portal.kernel.exception.PortalException,
409 com.liferay.portal.kernel.exception.SystemException;
410
411 public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
412 throws com.liferay.portal.kernel.exception.PortalException,
413 com.liferay.portal.kernel.exception.SystemException;
414
415 public void deleteTag(long tagId)
416 throws com.liferay.portal.kernel.exception.PortalException,
417 com.liferay.portal.kernel.exception.SystemException;
418
419 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
420 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
421 long entryId)
422 throws com.liferay.portal.kernel.exception.SystemException;
423
424 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
426 long[] groupIds)
427 throws com.liferay.portal.kernel.exception.SystemException;
428
429 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
430 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
431 long groupId)
432 throws com.liferay.portal.kernel.exception.SystemException;
433
434 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
435 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
436 long groupId, int start, int end)
437 throws com.liferay.portal.kernel.exception.SystemException;
438
439 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
440 public int getGroupTagsCount(long groupId)
441 throws com.liferay.portal.kernel.exception.SystemException;
442
443 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
444 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterOffsetTags(
445 long groupId, java.lang.String socialActivityCounterName,
446 int startOffset, int endOffset)
447 throws com.liferay.portal.kernel.exception.SystemException;
448
449 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
450 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterPeriodTags(
451 long groupId, java.lang.String socialActivityCounterName,
452 int startPeriod, int endPeriod)
453 throws com.liferay.portal.kernel.exception.SystemException;
454
455 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
456 public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
457 throws com.liferay.portal.kernel.exception.PortalException,
458 com.liferay.portal.kernel.exception.SystemException;
459
460 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
461 public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
462 java.lang.String name)
463 throws com.liferay.portal.kernel.exception.PortalException,
464 com.liferay.portal.kernel.exception.SystemException;
465
466 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
467 public long[] getTagIds(long groupId, java.lang.String[] names)
468 throws com.liferay.portal.kernel.exception.PortalException,
469 com.liferay.portal.kernel.exception.SystemException;
470
471 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
472 public long[] getTagIds(long[] groupIds, java.lang.String name)
473 throws com.liferay.portal.kernel.exception.PortalException,
474 com.liferay.portal.kernel.exception.SystemException;
475
476 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
477 public long[] getTagIds(long[] groupIds, java.lang.String[] names)
478 throws com.liferay.portal.kernel.exception.PortalException,
479 com.liferay.portal.kernel.exception.SystemException;
480
481 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
482 public java.lang.String[] getTagNames()
483 throws com.liferay.portal.kernel.exception.SystemException;
484
485 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
486 public java.lang.String[] getTagNames(long classNameId, long classPK)
487 throws com.liferay.portal.kernel.exception.SystemException;
488
489 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
490 public java.lang.String[] getTagNames(java.lang.String className,
491 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.AssetTag> getTags()
496 throws com.liferay.portal.kernel.exception.SystemException;
497
498 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
499 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
500 long classNameId, long classPK)
501 throws com.liferay.portal.kernel.exception.SystemException;
502
503 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
504 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
505 long groupId, long classNameId, java.lang.String name)
506 throws com.liferay.portal.kernel.exception.SystemException;
507
508 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
509 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
510 long groupId, long classNameId, java.lang.String name, int start,
511 int end) throws com.liferay.portal.kernel.exception.SystemException;
512
513 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
514 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
515 java.lang.String className, long classPK)
516 throws com.liferay.portal.kernel.exception.SystemException;
517
518 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
519 public int getTagsSize(long groupId, long classNameId, java.lang.String name)
520 throws com.liferay.portal.kernel.exception.SystemException;
521
522 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
523 public boolean hasTag(long groupId, java.lang.String name)
524 throws com.liferay.portal.kernel.exception.PortalException,
525 com.liferay.portal.kernel.exception.SystemException;
526
527 public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
528 long tagId, long classNameId)
529 throws com.liferay.portal.kernel.exception.PortalException,
530 com.liferay.portal.kernel.exception.SystemException;
531
532 public void mergeTags(long fromTagId, long toTagId,
533 boolean overrideProperties)
534 throws com.liferay.portal.kernel.exception.PortalException,
535 com.liferay.portal.kernel.exception.SystemException;
536
537 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
538 public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
539 long groupId, java.lang.String name, java.lang.String[] tagProperties,
540 int start, int end)
541 throws com.liferay.portal.kernel.exception.SystemException;
542
543 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
544 public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
545 long[] groupIds, java.lang.String name,
546 java.lang.String[] tagProperties, int start, int end)
547 throws com.liferay.portal.kernel.exception.SystemException;
548
549 public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
550 long tagId, java.lang.String name, java.lang.String[] tagProperties,
551 com.liferay.portal.service.ServiceContext serviceContext)
552 throws com.liferay.portal.kernel.exception.PortalException,
553 com.liferay.portal.kernel.exception.SystemException;
554 }