001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface AssetTagLocalService {
043
050 public com.liferay.portlet.asset.model.AssetTag addAssetTag(
051 com.liferay.portlet.asset.model.AssetTag assetTag)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portlet.asset.model.AssetTag createAssetTag(long tagId);
061
062
069 public void deleteAssetTag(long tagId)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException;
072
073
079 public void deleteAssetTag(
080 com.liferay.portlet.asset.model.AssetTag assetTag)
081 throws com.liferay.portal.kernel.exception.SystemException;
082
083
090 @SuppressWarnings("rawtypes")
091 public java.util.List dynamicQuery(
092 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
093 throws com.liferay.portal.kernel.exception.SystemException;
094
095
108 @SuppressWarnings("rawtypes")
109 public java.util.List dynamicQuery(
110 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
111 int end) throws com.liferay.portal.kernel.exception.SystemException;
112
113
127 @SuppressWarnings("rawtypes")
128 public java.util.List dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end,
131 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
132 throws com.liferay.portal.kernel.exception.SystemException;
133
134
141 public long dynamicQueryCount(
142 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145
153 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154 public com.liferay.portlet.asset.model.AssetTag getAssetTag(long tagId)
155 throws com.liferay.portal.kernel.exception.PortalException,
156 com.liferay.portal.kernel.exception.SystemException;
157
158
170 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
172 int start, int end)
173 throws com.liferay.portal.kernel.exception.SystemException;
174
175
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public int getAssetTagsCount()
183 throws com.liferay.portal.kernel.exception.SystemException;
184
185
192 public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
193 com.liferay.portlet.asset.model.AssetTag assetTag)
194 throws com.liferay.portal.kernel.exception.SystemException;
195
196
204 public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
205 com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
206 throws com.liferay.portal.kernel.exception.SystemException;
207
208 public com.liferay.portlet.asset.model.AssetTag addTag(long userId,
209 java.lang.String name, java.lang.String[] tagProperties,
210 com.liferay.portal.service.ServiceContext serviceContext)
211 throws com.liferay.portal.kernel.exception.PortalException,
212 com.liferay.portal.kernel.exception.SystemException;
213
214 public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
215 boolean addCommunityPermissions, boolean addGuestPermissions)
216 throws com.liferay.portal.kernel.exception.PortalException,
217 com.liferay.portal.kernel.exception.SystemException;
218
219 public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
220 java.lang.String[] communityPermissions,
221 java.lang.String[] guestPermissions)
222 throws com.liferay.portal.kernel.exception.PortalException,
223 com.liferay.portal.kernel.exception.SystemException;
224
225 public void checkTags(long userId, long groupId, java.lang.String[] names)
226 throws com.liferay.portal.kernel.exception.PortalException,
227 com.liferay.portal.kernel.exception.SystemException;
228
229 public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
230 long tagId, long classNameId)
231 throws com.liferay.portal.kernel.exception.PortalException,
232 com.liferay.portal.kernel.exception.SystemException;
233
234 public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.SystemException;
237
238 public void deleteTag(long tagId)
239 throws com.liferay.portal.kernel.exception.PortalException,
240 com.liferay.portal.kernel.exception.SystemException;
241
242 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
244 long entryId)
245 throws com.liferay.portal.kernel.exception.SystemException;
246
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
249 long groupId)
250 throws com.liferay.portal.kernel.exception.SystemException;
251
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException;
256
257 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258 public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
259 java.lang.String name)
260 throws com.liferay.portal.kernel.exception.PortalException,
261 com.liferay.portal.kernel.exception.SystemException;
262
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public long[] getTagIds(long groupId, java.lang.String[] names)
265 throws com.liferay.portal.kernel.exception.PortalException,
266 com.liferay.portal.kernel.exception.SystemException;
267
268 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269 public java.lang.String[] getTagNames()
270 throws com.liferay.portal.kernel.exception.SystemException;
271
272 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273 public java.lang.String[] getTagNames(long classNameId, long classPK)
274 throws com.liferay.portal.kernel.exception.SystemException;
275
276 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277 public java.lang.String[] getTagNames(java.lang.String className,
278 long classPK)
279 throws com.liferay.portal.kernel.exception.SystemException;
280
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
287 long classNameId, long classPK)
288 throws com.liferay.portal.kernel.exception.SystemException;
289
290 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
291 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
292 long groupId, long classNameId, java.lang.String name)
293 throws com.liferay.portal.kernel.exception.SystemException;
294
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
297 long groupId, long classNameId, java.lang.String name, int start,
298 int end) throws com.liferay.portal.kernel.exception.SystemException;
299
300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
302 java.lang.String className, long classPK)
303 throws com.liferay.portal.kernel.exception.SystemException;
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public int getTagsSize(long groupId, long classNameId, java.lang.String name)
307 throws com.liferay.portal.kernel.exception.SystemException;
308
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public boolean hasTag(long groupId, java.lang.String name)
311 throws com.liferay.portal.kernel.exception.PortalException,
312 com.liferay.portal.kernel.exception.SystemException;
313
314 public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
315 long tagId, long classNameId)
316 throws com.liferay.portal.kernel.exception.PortalException,
317 com.liferay.portal.kernel.exception.SystemException;
318
319 public void mergeTags(long fromTagId, long toTagId)
320 throws com.liferay.portal.kernel.exception.PortalException,
321 com.liferay.portal.kernel.exception.SystemException;
322
323 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
325 java.lang.String name, java.lang.String[] tagProperties, int start,
326 int end) throws com.liferay.portal.kernel.exception.SystemException;
327
328 public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
329 long tagId, java.lang.String name, java.lang.String[] tagProperties,
330 com.liferay.portal.service.ServiceContext serviceContext)
331 throws com.liferay.portal.kernel.exception.PortalException,
332 com.liferay.portal.kernel.exception.SystemException;
333 }