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 public void checkTags(long userId, long groupId, java.lang.String[] names)
369 throws com.liferay.portal.kernel.exception.PortalException,
370 com.liferay.portal.kernel.exception.SystemException;
371
372 public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
373 long tagId, long classNameId)
374 throws com.liferay.portal.kernel.exception.PortalException,
375 com.liferay.portal.kernel.exception.SystemException;
376
377 public void deleteGroupTags(long groupId)
378 throws com.liferay.portal.kernel.exception.PortalException,
379 com.liferay.portal.kernel.exception.SystemException;
380
381 public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
382 throws com.liferay.portal.kernel.exception.PortalException,
383 com.liferay.portal.kernel.exception.SystemException;
384
385 public void deleteTag(long tagId)
386 throws com.liferay.portal.kernel.exception.PortalException,
387 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> getEntryTags(
391 long entryId)
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> getGroupsTags(
396 long[] groupIds)
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)
402 throws com.liferay.portal.kernel.exception.SystemException;
403
404 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
405 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
406 long groupId, int start, int end)
407 throws com.liferay.portal.kernel.exception.SystemException;
408
409 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
410 public int getGroupTagsCount(long groupId)
411 throws com.liferay.portal.kernel.exception.SystemException;
412
413 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
414 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterOffsetTags(
415 long groupId, java.lang.String socialActivityCounterName,
416 int startOffset, int endOffset)
417 throws 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> getSocialActivityCounterPeriodTags(
421 long groupId, java.lang.String socialActivityCounterName,
422 int startPeriod, int endPeriod)
423 throws com.liferay.portal.kernel.exception.SystemException;
424
425 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
426 public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
427 throws com.liferay.portal.kernel.exception.PortalException,
428 com.liferay.portal.kernel.exception.SystemException;
429
430 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
431 public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
432 java.lang.String name)
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 groupId, java.lang.String[] names)
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 name)
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 long[] getTagIds(long[] groupIds, java.lang.String[] names)
448 throws com.liferay.portal.kernel.exception.PortalException,
449 com.liferay.portal.kernel.exception.SystemException;
450
451 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
452 public java.lang.String[] getTagNames()
453 throws com.liferay.portal.kernel.exception.SystemException;
454
455 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
456 public java.lang.String[] getTagNames(long classNameId, long classPK)
457 throws com.liferay.portal.kernel.exception.SystemException;
458
459 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
460 public java.lang.String[] getTagNames(java.lang.String className,
461 long classPK)
462 throws com.liferay.portal.kernel.exception.SystemException;
463
464 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
465 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
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 classNameId, long classPK)
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)
476 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 long groupId, long classNameId, java.lang.String name, int start,
481 int end) throws com.liferay.portal.kernel.exception.SystemException;
482
483 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
484 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
485 java.lang.String className, long classPK)
486 throws com.liferay.portal.kernel.exception.SystemException;
487
488 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
489 public int getTagsSize(long groupId, long classNameId, java.lang.String name)
490 throws com.liferay.portal.kernel.exception.SystemException;
491
492 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
493 public boolean hasTag(long groupId, java.lang.String name)
494 throws com.liferay.portal.kernel.exception.PortalException,
495 com.liferay.portal.kernel.exception.SystemException;
496
497 public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
498 long tagId, long classNameId)
499 throws com.liferay.portal.kernel.exception.PortalException,
500 com.liferay.portal.kernel.exception.SystemException;
501
502 public void mergeTags(long fromTagId, long toTagId,
503 boolean overrideProperties)
504 throws com.liferay.portal.kernel.exception.PortalException,
505 com.liferay.portal.kernel.exception.SystemException;
506
507 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
508 public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
509 long groupId, java.lang.String name, java.lang.String[] tagProperties,
510 int start, int end)
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> search(
515 long[] groupIds, java.lang.String name,
516 java.lang.String[] tagProperties, int start, int end)
517 throws com.liferay.portal.kernel.exception.SystemException;
518
519 public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
520 long tagId, java.lang.String name, java.lang.String[] tagProperties,
521 com.liferay.portal.service.ServiceContext serviceContext)
522 throws com.liferay.portal.kernel.exception.PortalException,
523 com.liferay.portal.kernel.exception.SystemException;
524 }