001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.BaseLocalService;
023 import com.liferay.portal.service.PersistedModelLocalService;
024
025
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface AssetTagLocalService extends BaseLocalService,
041 PersistedModelLocalService {
042
047
048
055 public com.liferay.portlet.asset.model.AssetTag addAssetTag(
056 com.liferay.portlet.asset.model.AssetTag assetTag)
057 throws com.liferay.portal.kernel.exception.SystemException;
058
059
065 public com.liferay.portlet.asset.model.AssetTag createAssetTag(long tagId);
066
067
075 public com.liferay.portlet.asset.model.AssetTag deleteAssetTag(long tagId)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException;
078
079
086 public com.liferay.portlet.asset.model.AssetTag deleteAssetTag(
087 com.liferay.portlet.asset.model.AssetTag assetTag)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
091
092
099 @SuppressWarnings("rawtypes")
100 public java.util.List dynamicQuery(
101 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104
117 @SuppressWarnings("rawtypes")
118 public java.util.List dynamicQuery(
119 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120 int end) throws com.liferay.portal.kernel.exception.SystemException;
121
122
136 @SuppressWarnings("rawtypes")
137 public java.util.List dynamicQuery(
138 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
139 int end,
140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141 throws com.liferay.portal.kernel.exception.SystemException;
142
143
150 public long dynamicQueryCount(
151 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152 throws com.liferay.portal.kernel.exception.SystemException;
153
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.asset.model.AssetTag fetchAssetTag(long tagId)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public com.liferay.portlet.asset.model.AssetTag getAssetTag(long tagId)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public com.liferay.portal.model.PersistedModel getPersistedModel(
173 java.io.Serializable primaryKeyObj)
174 throws com.liferay.portal.kernel.exception.PortalException,
175 com.liferay.portal.kernel.exception.SystemException;
176
177
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
191 int start, int end)
192 throws com.liferay.portal.kernel.exception.SystemException;
193
194
200 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201 public int getAssetTagsCount()
202 throws com.liferay.portal.kernel.exception.SystemException;
203
204
211 public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
212 com.liferay.portlet.asset.model.AssetTag assetTag)
213 throws com.liferay.portal.kernel.exception.SystemException;
214
215
223 public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
224 com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
225 throws com.liferay.portal.kernel.exception.SystemException;
226
227
230 public void addAssetEntryAssetTag(long entryId, long tagId)
231 throws com.liferay.portal.kernel.exception.SystemException;
232
233
236 public void addAssetEntryAssetTag(long entryId,
237 com.liferay.portlet.asset.model.AssetTag assetTag)
238 throws com.liferay.portal.kernel.exception.SystemException;
239
240
243 public void addAssetEntryAssetTags(long entryId, long[] tagIds)
244 throws com.liferay.portal.kernel.exception.SystemException;
245
246
249 public void addAssetEntryAssetTags(long entryId,
250 java.util.List<com.liferay.portlet.asset.model.AssetTag> AssetTags)
251 throws com.liferay.portal.kernel.exception.SystemException;
252
253
256 public void clearAssetEntryAssetTags(long entryId)
257 throws com.liferay.portal.kernel.exception.SystemException;
258
259
262 public void deleteAssetEntryAssetTag(long entryId, long tagId)
263 throws com.liferay.portal.kernel.exception.SystemException;
264
265
268 public void deleteAssetEntryAssetTag(long entryId,
269 com.liferay.portlet.asset.model.AssetTag assetTag)
270 throws com.liferay.portal.kernel.exception.SystemException;
271
272
275 public void deleteAssetEntryAssetTags(long entryId, long[] tagIds)
276 throws com.liferay.portal.kernel.exception.SystemException;
277
278
281 public void deleteAssetEntryAssetTags(long entryId,
282 java.util.List<com.liferay.portlet.asset.model.AssetTag> AssetTags)
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
290 long entryId)
291 throws com.liferay.portal.kernel.exception.SystemException;
292
293
296 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
298 long entryId, int start, int end)
299 throws com.liferay.portal.kernel.exception.SystemException;
300
301
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
306 long entryId, int start, int end,
307 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
308 throws com.liferay.portal.kernel.exception.SystemException;
309
310
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public int getAssetEntryAssetTagsCount(long entryId)
315 throws com.liferay.portal.kernel.exception.SystemException;
316
317
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public boolean hasAssetEntryAssetTag(long entryId, long tagId)
322 throws com.liferay.portal.kernel.exception.SystemException;
323
324
327 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328 public boolean hasAssetEntryAssetTags(long entryId)
329 throws com.liferay.portal.kernel.exception.SystemException;
330
331
334 public void setAssetEntryAssetTags(long entryId, long[] tagIds)
335 throws com.liferay.portal.kernel.exception.SystemException;
336
337
342 public java.lang.String getBeanIdentifier();
343
344
349 public void setBeanIdentifier(java.lang.String beanIdentifier);
350
351 public com.liferay.portlet.asset.model.AssetTag addTag(long userId,
352 java.lang.String name, java.lang.String[] tagProperties,
353 com.liferay.portal.service.ServiceContext serviceContext)
354 throws com.liferay.portal.kernel.exception.PortalException,
355 com.liferay.portal.kernel.exception.SystemException;
356
357 public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
358 boolean addGroupPermissions, boolean addGuestPermissions)
359 throws com.liferay.portal.kernel.exception.PortalException,
360 com.liferay.portal.kernel.exception.SystemException;
361
362 public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
363 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
364 throws com.liferay.portal.kernel.exception.PortalException,
365 com.liferay.portal.kernel.exception.SystemException;
366
367 public void checkTags(long userId, long groupId, java.lang.String[] names)
368 throws com.liferay.portal.kernel.exception.PortalException,
369 com.liferay.portal.kernel.exception.SystemException;
370
371 public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
372 long tagId, long classNameId)
373 throws com.liferay.portal.kernel.exception.PortalException,
374 com.liferay.portal.kernel.exception.SystemException;
375
376 public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
377 throws com.liferay.portal.kernel.exception.PortalException,
378 com.liferay.portal.kernel.exception.SystemException;
379
380 public void deleteTag(long tagId)
381 throws com.liferay.portal.kernel.exception.PortalException,
382 com.liferay.portal.kernel.exception.SystemException;
383
384 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
385 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
386 long entryId)
387 throws com.liferay.portal.kernel.exception.SystemException;
388
389 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
390 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
391 long[] groupIds)
392 throws com.liferay.portal.kernel.exception.SystemException;
393
394 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
395 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
396 long groupId)
397 throws com.liferay.portal.kernel.exception.SystemException;
398
399 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
400 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
401 long groupId, int start, int end)
402 throws com.liferay.portal.kernel.exception.SystemException;
403
404 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
405 public int getGroupTagsCount(long groupId)
406 throws com.liferay.portal.kernel.exception.SystemException;
407
408 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
409 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterOffsetTags(
410 long groupId, java.lang.String socialActivityCounterName,
411 int startOffset, int endOffset)
412 throws com.liferay.portal.kernel.exception.SystemException;
413
414 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
415 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterPeriodTags(
416 long groupId, java.lang.String socialActivityCounterName,
417 int startPeriod, int endPeriod)
418 throws com.liferay.portal.kernel.exception.SystemException;
419
420 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
421 public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
422 throws com.liferay.portal.kernel.exception.PortalException,
423 com.liferay.portal.kernel.exception.SystemException;
424
425 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
426 public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
427 java.lang.String name)
428 throws com.liferay.portal.kernel.exception.PortalException,
429 com.liferay.portal.kernel.exception.SystemException;
430
431 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
432 public long[] getTagIds(long groupId, java.lang.String[] names)
433 throws com.liferay.portal.kernel.exception.PortalException,
434 com.liferay.portal.kernel.exception.SystemException;
435
436 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437 public long[] getTagIds(long[] groupIds, java.lang.String name)
438 throws com.liferay.portal.kernel.exception.PortalException,
439 com.liferay.portal.kernel.exception.SystemException;
440
441 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
442 public long[] getTagIds(long[] groupIds, java.lang.String[] names)
443 throws com.liferay.portal.kernel.exception.PortalException,
444 com.liferay.portal.kernel.exception.SystemException;
445
446 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
447 public java.lang.String[] getTagNames()
448 throws com.liferay.portal.kernel.exception.SystemException;
449
450 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
451 public java.lang.String[] getTagNames(long classNameId, long classPK)
452 throws com.liferay.portal.kernel.exception.SystemException;
453
454 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
455 public java.lang.String[] getTagNames(java.lang.String className,
456 long classPK)
457 throws com.liferay.portal.kernel.exception.SystemException;
458
459 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
460 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
461 throws com.liferay.portal.kernel.exception.SystemException;
462
463 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
464 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
465 long classNameId, long classPK)
466 throws com.liferay.portal.kernel.exception.SystemException;
467
468 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
469 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
470 long groupId, long classNameId, java.lang.String name)
471 throws com.liferay.portal.kernel.exception.SystemException;
472
473 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
474 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
475 long groupId, long classNameId, java.lang.String name, int start,
476 int end) throws com.liferay.portal.kernel.exception.SystemException;
477
478 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
479 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
480 java.lang.String className, long classPK)
481 throws com.liferay.portal.kernel.exception.SystemException;
482
483 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
484 public int getTagsSize(long groupId, long classNameId, java.lang.String name)
485 throws com.liferay.portal.kernel.exception.SystemException;
486
487 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
488 public boolean hasTag(long groupId, java.lang.String name)
489 throws com.liferay.portal.kernel.exception.PortalException,
490 com.liferay.portal.kernel.exception.SystemException;
491
492 public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
493 long tagId, long classNameId)
494 throws com.liferay.portal.kernel.exception.PortalException,
495 com.liferay.portal.kernel.exception.SystemException;
496
497 public void mergeTags(long fromTagId, long toTagId,
498 boolean overrideProperties)
499 throws com.liferay.portal.kernel.exception.PortalException,
500 com.liferay.portal.kernel.exception.SystemException;
501
502 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
503 public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
504 long groupId, java.lang.String name, java.lang.String[] tagProperties,
505 int start, int end)
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> search(
510 long[] groupIds, java.lang.String name,
511 java.lang.String[] tagProperties, int start, int end)
512 throws com.liferay.portal.kernel.exception.SystemException;
513
514 public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
515 long tagId, java.lang.String name, java.lang.String[] tagProperties,
516 com.liferay.portal.service.ServiceContext serviceContext)
517 throws com.liferay.portal.kernel.exception.PortalException,
518 com.liferay.portal.kernel.exception.SystemException;
519 }