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
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface AssetTagLocalService extends BaseLocalService,
040 PersistedModelLocalService {
041
046
047
054 public com.liferay.portlet.asset.model.AssetTag addAssetTag(
055 com.liferay.portlet.asset.model.AssetTag assetTag)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058
064 public com.liferay.portlet.asset.model.AssetTag createAssetTag(long tagId);
065
066
074 public com.liferay.portlet.asset.model.AssetTag deleteAssetTag(long tagId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException;
077
078
085 public com.liferay.portlet.asset.model.AssetTag deleteAssetTag(
086 com.liferay.portlet.asset.model.AssetTag assetTag)
087 throws com.liferay.portal.kernel.exception.SystemException;
088
089 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
090
091
098 @SuppressWarnings("rawtypes")
099 public java.util.List dynamicQuery(
100 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103
116 @SuppressWarnings("rawtypes")
117 public java.util.List dynamicQuery(
118 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
119 int end) throws com.liferay.portal.kernel.exception.SystemException;
120
121
135 @SuppressWarnings("rawtypes")
136 public java.util.List dynamicQuery(
137 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
138 int end,
139 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140 throws com.liferay.portal.kernel.exception.SystemException;
141
142
149 public long dynamicQueryCount(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
151 throws com.liferay.portal.kernel.exception.SystemException;
152
153
161 public long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
163 com.liferay.portal.kernel.dao.orm.Projection projection)
164 throws com.liferay.portal.kernel.exception.SystemException;
165
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public com.liferay.portlet.asset.model.AssetTag fetchAssetTag(long tagId)
168 throws com.liferay.portal.kernel.exception.SystemException;
169
170
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public com.liferay.portlet.asset.model.AssetTag getAssetTag(long tagId)
180 throws com.liferay.portal.kernel.exception.PortalException,
181 com.liferay.portal.kernel.exception.SystemException;
182
183 @Override
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public com.liferay.portal.model.PersistedModel getPersistedModel(
186 java.io.Serializable primaryKeyObj)
187 throws com.liferay.portal.kernel.exception.PortalException,
188 com.liferay.portal.kernel.exception.SystemException;
189
190
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
204 int start, int end)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public int getAssetTagsCount()
215 throws com.liferay.portal.kernel.exception.SystemException;
216
217
224 public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
225 com.liferay.portlet.asset.model.AssetTag assetTag)
226 throws com.liferay.portal.kernel.exception.SystemException;
227
228
231 public void addAssetEntryAssetTag(long entryId, long tagId)
232 throws com.liferay.portal.kernel.exception.SystemException;
233
234
237 public void addAssetEntryAssetTag(long entryId,
238 com.liferay.portlet.asset.model.AssetTag assetTag)
239 throws com.liferay.portal.kernel.exception.SystemException;
240
241
244 public void addAssetEntryAssetTags(long entryId, long[] tagIds)
245 throws com.liferay.portal.kernel.exception.SystemException;
246
247
250 public void addAssetEntryAssetTags(long entryId,
251 java.util.List<com.liferay.portlet.asset.model.AssetTag> AssetTags)
252 throws com.liferay.portal.kernel.exception.SystemException;
253
254
257 public void clearAssetEntryAssetTags(long entryId)
258 throws com.liferay.portal.kernel.exception.SystemException;
259
260
263 public void deleteAssetEntryAssetTag(long entryId, long tagId)
264 throws com.liferay.portal.kernel.exception.SystemException;
265
266
269 public void deleteAssetEntryAssetTag(long entryId,
270 com.liferay.portlet.asset.model.AssetTag assetTag)
271 throws com.liferay.portal.kernel.exception.SystemException;
272
273
276 public void deleteAssetEntryAssetTags(long entryId, long[] tagIds)
277 throws com.liferay.portal.kernel.exception.SystemException;
278
279
282 public void deleteAssetEntryAssetTags(long entryId,
283 java.util.List<com.liferay.portlet.asset.model.AssetTag> AssetTags)
284 throws com.liferay.portal.kernel.exception.SystemException;
285
286
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
291 long entryId)
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, int start, int end)
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 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309 throws com.liferay.portal.kernel.exception.SystemException;
310
311
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public int getAssetEntryAssetTagsCount(long entryId)
316 throws com.liferay.portal.kernel.exception.SystemException;
317
318
321 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
322 public boolean hasAssetEntryAssetTag(long entryId, long tagId)
323 throws com.liferay.portal.kernel.exception.SystemException;
324
325
328 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329 public boolean hasAssetEntryAssetTags(long entryId)
330 throws com.liferay.portal.kernel.exception.SystemException;
331
332
335 public void setAssetEntryAssetTags(long entryId, long[] tagIds)
336 throws com.liferay.portal.kernel.exception.SystemException;
337
338
343 public java.lang.String getBeanIdentifier();
344
345
350 public void setBeanIdentifier(java.lang.String beanIdentifier);
351
352 public com.liferay.portlet.asset.model.AssetTag addTag(long userId,
353 java.lang.String name, java.lang.String[] tagProperties,
354 com.liferay.portal.service.ServiceContext serviceContext)
355 throws com.liferay.portal.kernel.exception.PortalException,
356 com.liferay.portal.kernel.exception.SystemException;
357
358 public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
359 boolean addGroupPermissions, boolean addGuestPermissions)
360 throws com.liferay.portal.kernel.exception.PortalException,
361 com.liferay.portal.kernel.exception.SystemException;
362
363 public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
364 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
365 throws com.liferay.portal.kernel.exception.PortalException,
366 com.liferay.portal.kernel.exception.SystemException;
367
368
389 public java.util.List<com.liferay.portlet.asset.model.AssetTag> checkTags(
390 long userId, com.liferay.portal.model.Group group,
391 java.lang.String[] names)
392 throws com.liferay.portal.kernel.exception.PortalException,
393 com.liferay.portal.kernel.exception.SystemException;
394
395 public void checkTags(long userId, long groupId, java.lang.String[] names)
396 throws com.liferay.portal.kernel.exception.PortalException,
397 com.liferay.portal.kernel.exception.SystemException;
398
399 public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
400 long tagId, long classNameId)
401 throws com.liferay.portal.kernel.exception.PortalException,
402 com.liferay.portal.kernel.exception.SystemException;
403
404 public void deleteGroupTags(long groupId)
405 throws com.liferay.portal.kernel.exception.PortalException,
406 com.liferay.portal.kernel.exception.SystemException;
407
408 public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
409 throws com.liferay.portal.kernel.exception.PortalException,
410 com.liferay.portal.kernel.exception.SystemException;
411
412 public void deleteTag(long tagId)
413 throws com.liferay.portal.kernel.exception.PortalException,
414 com.liferay.portal.kernel.exception.SystemException;
415
416 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
417 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
418 long entryId)
419 throws com.liferay.portal.kernel.exception.SystemException;
420
421 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
422 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
423 long[] groupIds)
424 throws com.liferay.portal.kernel.exception.SystemException;
425
426 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
427 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
428 long groupId)
429 throws com.liferay.portal.kernel.exception.SystemException;
430
431 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
432 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
433 long groupId, int start, int end)
434 throws com.liferay.portal.kernel.exception.SystemException;
435
436 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437 public int getGroupTagsCount(long groupId)
438 throws com.liferay.portal.kernel.exception.SystemException;
439
440 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
441 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterOffsetTags(
442 long groupId, java.lang.String socialActivityCounterName,
443 int startOffset, int endOffset)
444 throws com.liferay.portal.kernel.exception.SystemException;
445
446 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
447 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterPeriodTags(
448 long groupId, java.lang.String socialActivityCounterName,
449 int startPeriod, int endPeriod)
450 throws com.liferay.portal.kernel.exception.SystemException;
451
452 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
453 public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
454 throws com.liferay.portal.kernel.exception.PortalException,
455 com.liferay.portal.kernel.exception.SystemException;
456
457 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
458 public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
459 java.lang.String name)
460 throws com.liferay.portal.kernel.exception.PortalException,
461 com.liferay.portal.kernel.exception.SystemException;
462
463 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
464 public long[] getTagIds(long groupId, java.lang.String[] names)
465 throws com.liferay.portal.kernel.exception.PortalException,
466 com.liferay.portal.kernel.exception.SystemException;
467
468 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
469 public long[] getTagIds(long[] groupIds, java.lang.String name)
470 throws com.liferay.portal.kernel.exception.PortalException,
471 com.liferay.portal.kernel.exception.SystemException;
472
473 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
474 public long[] getTagIds(long[] groupIds, java.lang.String[] names)
475 throws com.liferay.portal.kernel.exception.PortalException,
476 com.liferay.portal.kernel.exception.SystemException;
477
478 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
479 public java.lang.String[] getTagNames()
480 throws com.liferay.portal.kernel.exception.SystemException;
481
482 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
483 public java.lang.String[] getTagNames(long classNameId, long classPK)
484 throws com.liferay.portal.kernel.exception.SystemException;
485
486 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
487 public java.lang.String[] getTagNames(java.lang.String className,
488 long classPK)
489 throws com.liferay.portal.kernel.exception.SystemException;
490
491 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
492 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
493 throws com.liferay.portal.kernel.exception.SystemException;
494
495 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
496 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
497 long classNameId, long classPK)
498 throws com.liferay.portal.kernel.exception.SystemException;
499
500 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
501 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
502 long groupId, long classNameId, java.lang.String name)
503 throws com.liferay.portal.kernel.exception.SystemException;
504
505 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
506 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
507 long groupId, long classNameId, java.lang.String name, int start,
508 int end) throws com.liferay.portal.kernel.exception.SystemException;
509
510 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
511 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
512 java.lang.String className, long classPK)
513 throws com.liferay.portal.kernel.exception.SystemException;
514
515 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
516 public int getTagsSize(long groupId, long classNameId, java.lang.String name)
517 throws com.liferay.portal.kernel.exception.SystemException;
518
519 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
520 public boolean hasTag(long groupId, java.lang.String name)
521 throws com.liferay.portal.kernel.exception.PortalException,
522 com.liferay.portal.kernel.exception.SystemException;
523
524 public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
525 long tagId, long classNameId)
526 throws com.liferay.portal.kernel.exception.PortalException,
527 com.liferay.portal.kernel.exception.SystemException;
528
529 public void mergeTags(long fromTagId, long toTagId,
530 boolean overrideProperties)
531 throws com.liferay.portal.kernel.exception.PortalException,
532 com.liferay.portal.kernel.exception.SystemException;
533
534 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
535 public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
536 long groupId, java.lang.String name, java.lang.String[] tagProperties,
537 int start, int end)
538 throws com.liferay.portal.kernel.exception.SystemException;
539
540 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
541 public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
542 long[] groupIds, java.lang.String name,
543 java.lang.String[] tagProperties, int start, int end)
544 throws com.liferay.portal.kernel.exception.SystemException;
545
546 public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
547 long tagId, java.lang.String name, java.lang.String[] tagProperties,
548 com.liferay.portal.service.ServiceContext serviceContext)
549 throws com.liferay.portal.kernel.exception.PortalException,
550 com.liferay.portal.kernel.exception.SystemException;
551 }