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 AssetTagLocalService extends BaseLocalService,
044 PersistedModelLocalService {
045
050
051
058 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
059 public com.liferay.portlet.asset.model.AssetTag addAssetTag(
060 com.liferay.portlet.asset.model.AssetTag assetTag)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063
069 public com.liferay.portlet.asset.model.AssetTag createAssetTag(long tagId);
070
071
079 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
080 public com.liferay.portlet.asset.model.AssetTag deleteAssetTag(long tagId)
081 throws com.liferay.portal.kernel.exception.PortalException,
082 com.liferay.portal.kernel.exception.SystemException;
083
084
091 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
092 public com.liferay.portlet.asset.model.AssetTag deleteAssetTag(
093 com.liferay.portlet.asset.model.AssetTag assetTag)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
097
098
105 @SuppressWarnings("rawtypes")
106 public java.util.List dynamicQuery(
107 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
108 throws com.liferay.portal.kernel.exception.SystemException;
109
110
123 @SuppressWarnings("rawtypes")
124 public java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException;
127
128
142 @SuppressWarnings("rawtypes")
143 public java.util.List dynamicQuery(
144 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
145 int end,
146 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149
156 public long dynamicQueryCount(
157 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158 throws com.liferay.portal.kernel.exception.SystemException;
159
160
168 public long dynamicQueryCount(
169 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
170 com.liferay.portal.kernel.dao.orm.Projection projection)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public com.liferay.portlet.asset.model.AssetTag fetchAssetTag(long tagId)
175 throws com.liferay.portal.kernel.exception.SystemException;
176
177
185 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186 public com.liferay.portlet.asset.model.AssetTag getAssetTag(long tagId)
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.AssetTag> getAssetTags(
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 getAssetTagsCount()
222 throws com.liferay.portal.kernel.exception.SystemException;
223
224
231 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
232 public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
233 com.liferay.portlet.asset.model.AssetTag assetTag)
234 throws com.liferay.portal.kernel.exception.SystemException;
235
236
239 public void addAssetEntryAssetTag(long entryId, long tagId)
240 throws com.liferay.portal.kernel.exception.SystemException;
241
242
245 public void addAssetEntryAssetTag(long entryId,
246 com.liferay.portlet.asset.model.AssetTag assetTag)
247 throws com.liferay.portal.kernel.exception.SystemException;
248
249
252 public void addAssetEntryAssetTags(long entryId, long[] tagIds)
253 throws com.liferay.portal.kernel.exception.SystemException;
254
255
258 public void addAssetEntryAssetTags(long entryId,
259 java.util.List<com.liferay.portlet.asset.model.AssetTag> AssetTags)
260 throws com.liferay.portal.kernel.exception.SystemException;
261
262
265 public void clearAssetEntryAssetTags(long entryId)
266 throws com.liferay.portal.kernel.exception.SystemException;
267
268
271 public void deleteAssetEntryAssetTag(long entryId, long tagId)
272 throws com.liferay.portal.kernel.exception.SystemException;
273
274
277 public void deleteAssetEntryAssetTag(long entryId,
278 com.liferay.portlet.asset.model.AssetTag assetTag)
279 throws com.liferay.portal.kernel.exception.SystemException;
280
281
284 public void deleteAssetEntryAssetTags(long entryId, long[] tagIds)
285 throws com.liferay.portal.kernel.exception.SystemException;
286
287
290 public void deleteAssetEntryAssetTags(long entryId,
291 java.util.List<com.liferay.portlet.asset.model.AssetTag> AssetTags)
292 throws com.liferay.portal.kernel.exception.SystemException;
293
294
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
299 long entryId)
300 throws com.liferay.portal.kernel.exception.SystemException;
301
302
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
307 long entryId, int start, int end)
308 throws com.liferay.portal.kernel.exception.SystemException;
309
310
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
315 long entryId, int start, int end,
316 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
317 throws com.liferay.portal.kernel.exception.SystemException;
318
319
322 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
323 public int getAssetEntryAssetTagsCount(long entryId)
324 throws com.liferay.portal.kernel.exception.SystemException;
325
326
329 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330 public boolean hasAssetEntryAssetTag(long entryId, long tagId)
331 throws com.liferay.portal.kernel.exception.SystemException;
332
333
336 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
337 public boolean hasAssetEntryAssetTags(long entryId)
338 throws com.liferay.portal.kernel.exception.SystemException;
339
340
343 public void setAssetEntryAssetTags(long entryId, long[] tagIds)
344 throws com.liferay.portal.kernel.exception.SystemException;
345
346
351 public java.lang.String getBeanIdentifier();
352
353
358 public void setBeanIdentifier(java.lang.String beanIdentifier);
359
360 public com.liferay.portlet.asset.model.AssetTag addTag(long userId,
361 java.lang.String name, java.lang.String[] tagProperties,
362 com.liferay.portal.service.ServiceContext serviceContext)
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 boolean addGroupPermissions, boolean addGuestPermissions)
368 throws com.liferay.portal.kernel.exception.PortalException,
369 com.liferay.portal.kernel.exception.SystemException;
370
371 public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
372 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
373 throws com.liferay.portal.kernel.exception.PortalException,
374 com.liferay.portal.kernel.exception.SystemException;
375
376
397 public java.util.List<com.liferay.portlet.asset.model.AssetTag> checkTags(
398 long userId, com.liferay.portal.model.Group group,
399 java.lang.String[] names)
400 throws com.liferay.portal.kernel.exception.PortalException,
401 com.liferay.portal.kernel.exception.SystemException;
402
403 public void checkTags(long userId, long groupId, java.lang.String[] names)
404 throws com.liferay.portal.kernel.exception.PortalException,
405 com.liferay.portal.kernel.exception.SystemException;
406
407 public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
408 long tagId, long classNameId)
409 throws com.liferay.portal.kernel.exception.PortalException,
410 com.liferay.portal.kernel.exception.SystemException;
411
412 public void deleteGroupTags(long groupId)
413 throws com.liferay.portal.kernel.exception.PortalException,
414 com.liferay.portal.kernel.exception.SystemException;
415
416 public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
417 throws com.liferay.portal.kernel.exception.PortalException,
418 com.liferay.portal.kernel.exception.SystemException;
419
420 public void deleteTag(long tagId)
421 throws com.liferay.portal.kernel.exception.PortalException,
422 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> getEntryTags(
426 long entryId)
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> getGroupsTags(
431 long[] groupIds)
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)
437 throws com.liferay.portal.kernel.exception.SystemException;
438
439 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
440 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
441 long groupId, int start, int end)
442 throws com.liferay.portal.kernel.exception.SystemException;
443
444 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
445 public int getGroupTagsCount(long groupId)
446 throws com.liferay.portal.kernel.exception.SystemException;
447
448 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
449 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterOffsetTags(
450 long groupId, java.lang.String socialActivityCounterName,
451 int startOffset, int endOffset)
452 throws com.liferay.portal.kernel.exception.SystemException;
453
454 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
455 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterPeriodTags(
456 long groupId, java.lang.String socialActivityCounterName,
457 int startPeriod, int endPeriod)
458 throws com.liferay.portal.kernel.exception.SystemException;
459
460 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
461 public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
462 throws com.liferay.portal.kernel.exception.PortalException,
463 com.liferay.portal.kernel.exception.SystemException;
464
465 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
466 public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
467 java.lang.String name)
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 groupId, java.lang.String[] names)
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 name)
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 long[] getTagIds(long[] groupIds, java.lang.String[] names)
483 throws com.liferay.portal.kernel.exception.PortalException,
484 com.liferay.portal.kernel.exception.SystemException;
485
486 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
487 public java.lang.String[] getTagNames()
488 throws com.liferay.portal.kernel.exception.SystemException;
489
490 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
491 public java.lang.String[] getTagNames(long classNameId, long classPK)
492 throws com.liferay.portal.kernel.exception.SystemException;
493
494 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
495 public java.lang.String[] getTagNames(java.lang.String className,
496 long classPK)
497 throws com.liferay.portal.kernel.exception.SystemException;
498
499 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
500 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
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 classNameId, long classPK)
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)
511 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 long groupId, long classNameId, java.lang.String name, int start,
516 int end) throws com.liferay.portal.kernel.exception.SystemException;
517
518 @com.liferay.portal.kernel.cache.ThreadLocalCachable
519 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
520 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
521 java.lang.String className, long classPK)
522 throws com.liferay.portal.kernel.exception.SystemException;
523
524 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
525 public int getTagsSize(long groupId, long classNameId, java.lang.String name)
526 throws com.liferay.portal.kernel.exception.SystemException;
527
528 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
529 public boolean hasTag(long groupId, java.lang.String name)
530 throws com.liferay.portal.kernel.exception.PortalException,
531 com.liferay.portal.kernel.exception.SystemException;
532
533 public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
534 long tagId, long classNameId)
535 throws com.liferay.portal.kernel.exception.PortalException,
536 com.liferay.portal.kernel.exception.SystemException;
537
538 public void mergeTags(long fromTagId, long toTagId,
539 boolean overrideProperties)
540 throws com.liferay.portal.kernel.exception.PortalException,
541 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 groupId, java.lang.String name, java.lang.String[] tagProperties,
546 int start, int end)
547 throws com.liferay.portal.kernel.exception.SystemException;
548
549 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
550 public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
551 long[] groupIds, java.lang.String name,
552 java.lang.String[] tagProperties, int start, int end)
553 throws com.liferay.portal.kernel.exception.SystemException;
554
555 public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
556 long tagId, java.lang.String name, java.lang.String[] tagProperties,
557 com.liferay.portal.service.ServiceContext serviceContext)
558 throws com.liferay.portal.kernel.exception.PortalException,
559 com.liferay.portal.kernel.exception.SystemException;
560 }