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.jsonwebservice.JSONWebService;
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.security.ac.AccessControlled;
026 import com.liferay.portal.service.BaseService;
027
028
039 @ProviderType
040 @AccessControlled
041 @JSONWebService
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface AssetTagService extends BaseService {
045
050
051
056 public java.lang.String getBeanIdentifier();
057
058
063 public void setBeanIdentifier(java.lang.String beanIdentifier);
064
065 public com.liferay.portlet.asset.model.AssetTag addTag(
066 java.lang.String name, java.lang.String[] tagProperties,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException;
070
071 public void deleteTag(long tagId)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException;
074
075 public void deleteTags(long[] tagIds)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
081 long[] groupIds)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
085 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
086 long groupId)
087 throws com.liferay.portal.kernel.exception.SystemException;
088
089 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
090 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
091 long groupId, int start, int end,
092 com.liferay.portal.kernel.util.OrderByComparator obc)
093 throws com.liferay.portal.kernel.exception.SystemException;
094
095 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
096 public int getGroupTagsCount(long groupId)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100 public com.liferay.portlet.asset.model.AssetTagDisplay getGroupTagsDisplay(
101 long groupId, java.lang.String name, int start, int end)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104
108 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109 public com.liferay.portal.kernel.json.JSONObject getJSONGroupTags(
110 long groupId, java.lang.String name, int start, int end)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115 public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
116 throws com.liferay.portal.kernel.exception.PortalException,
117 com.liferay.portal.kernel.exception.SystemException;
118
119 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
121 long groupId, long classNameId, java.lang.String name)
122 throws com.liferay.portal.kernel.exception.SystemException;
123
124 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
125 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
126 long groupId, long classNameId, java.lang.String name, int start,
127 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
128 throws com.liferay.portal.kernel.exception.SystemException;
129
130 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
132 long groupId, java.lang.String name, java.lang.String[] tagProperties,
133 int start, int end)
134 throws com.liferay.portal.kernel.exception.SystemException;
135
136 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
138 long[] groupIds, java.lang.String name,
139 java.lang.String[] tagProperties, int start, int end)
140 throws com.liferay.portal.kernel.exception.SystemException;
141
142 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
144 java.lang.String className, long classPK)
145 throws com.liferay.portal.kernel.exception.PortalException,
146 com.liferay.portal.kernel.exception.SystemException;
147
148 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149 public int getTagsCount(long groupId, long classNameId,
150 java.lang.String name)
151 throws com.liferay.portal.kernel.exception.SystemException;
152
153 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154 public int getTagsCount(long groupId, java.lang.String name)
155 throws com.liferay.portal.kernel.exception.SystemException;
156
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public int getTagsCount(long groupId, java.lang.String name,
159 java.lang.String[] tagProperties)
160 throws com.liferay.portal.kernel.exception.SystemException;
161
162 public void mergeTags(long fromTagId, long toTagId,
163 boolean overrideProperties)
164 throws com.liferay.portal.kernel.exception.PortalException,
165 com.liferay.portal.kernel.exception.SystemException;
166
167 public void mergeTags(long[] fromTagIds, long toTagId,
168 boolean overrideProperties)
169 throws com.liferay.portal.kernel.exception.PortalException,
170 com.liferay.portal.kernel.exception.SystemException;
171
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
174 java.lang.String name, java.lang.String[] tagProperties, int start,
175 int end) throws com.liferay.portal.kernel.exception.SystemException;
176
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public com.liferay.portal.kernel.json.JSONArray search(long[] groupIds,
179 java.lang.String name, java.lang.String[] tagProperties, int start,
180 int end) throws com.liferay.portal.kernel.exception.SystemException;
181
182 public com.liferay.portlet.asset.model.AssetTag updateTag(long tagId,
183 java.lang.String name, java.lang.String[] tagProperties,
184 com.liferay.portal.service.ServiceContext serviceContext)
185 throws com.liferay.portal.kernel.exception.PortalException,
186 com.liferay.portal.kernel.exception.SystemException;
187 }