1
14
15 package com.liferay.portlet.asset.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface AssetTagService {
50 public com.liferay.portlet.asset.model.AssetTag addTag(
51 java.lang.String name, java.lang.String[] tagProperties,
52 com.liferay.portal.service.ServiceContext serviceContext)
53 throws com.liferay.portal.kernel.exception.PortalException,
54 com.liferay.portal.kernel.exception.SystemException;
55
56 public void deleteTag(long tagId)
57 throws com.liferay.portal.kernel.exception.PortalException,
58 com.liferay.portal.kernel.exception.SystemException;
59
60 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
61 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
62 long groupId)
63 throws com.liferay.portal.kernel.exception.PortalException,
64 com.liferay.portal.kernel.exception.SystemException;
65
66 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
67 public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
68 throws com.liferay.portal.kernel.exception.PortalException,
69 com.liferay.portal.kernel.exception.SystemException;
70
71 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
72 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
73 long groupId, long classNameId, java.lang.String name)
74 throws com.liferay.portal.kernel.exception.PortalException,
75 com.liferay.portal.kernel.exception.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
79 java.lang.String className, long classPK)
80 throws com.liferay.portal.kernel.exception.PortalException,
81 com.liferay.portal.kernel.exception.SystemException;
82
83 public void mergeTags(long fromTagId, long toTagId)
84 throws com.liferay.portal.kernel.exception.PortalException,
85 com.liferay.portal.kernel.exception.SystemException;
86
87 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
89 java.lang.String name, java.lang.String[] tagProperties, int start,
90 int end) throws com.liferay.portal.kernel.exception.SystemException;
91
92 public com.liferay.portlet.asset.model.AssetTag updateTag(long tagId,
93 java.lang.String name, java.lang.String[] tagProperties,
94 com.liferay.portal.service.ServiceContext serviceContext)
95 throws com.liferay.portal.kernel.exception.PortalException,
96 com.liferay.portal.kernel.exception.SystemException;
97 }