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
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface AssetTagLocalService extends BaseLocalService,
041 PersistedModelLocalService {
042
047
048
055 public com.liferay.portlet.asset.model.AssetTag addAssetTag(
056 com.liferay.portlet.asset.model.AssetTag assetTag)
057 throws com.liferay.portal.kernel.exception.SystemException;
058
059
065 public com.liferay.portlet.asset.model.AssetTag createAssetTag(long tagId);
066
067
075 public com.liferay.portlet.asset.model.AssetTag deleteAssetTag(long tagId)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException;
078
079
086 public com.liferay.portlet.asset.model.AssetTag deleteAssetTag(
087 com.liferay.portlet.asset.model.AssetTag assetTag)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
091
092
099 @SuppressWarnings("rawtypes")
100 public java.util.List dynamicQuery(
101 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104
117 @SuppressWarnings("rawtypes")
118 public java.util.List dynamicQuery(
119 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120 int end) throws com.liferay.portal.kernel.exception.SystemException;
121
122
136 @SuppressWarnings("rawtypes")
137 public java.util.List dynamicQuery(
138 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
139 int end,
140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141 throws com.liferay.portal.kernel.exception.SystemException;
142
143
150 public long dynamicQueryCount(
151 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152 throws com.liferay.portal.kernel.exception.SystemException;
153
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.asset.model.AssetTag fetchAssetTag(long tagId)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public com.liferay.portlet.asset.model.AssetTag getAssetTag(long tagId)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public com.liferay.portal.model.PersistedModel getPersistedModel(
173 java.io.Serializable primaryKeyObj)
174 throws com.liferay.portal.kernel.exception.PortalException,
175 com.liferay.portal.kernel.exception.SystemException;
176
177
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
191 int start, int end)
192 throws com.liferay.portal.kernel.exception.SystemException;
193
194
200 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201 public int getAssetTagsCount()
202 throws com.liferay.portal.kernel.exception.SystemException;
203
204
211 public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
212 com.liferay.portlet.asset.model.AssetTag assetTag)
213 throws com.liferay.portal.kernel.exception.SystemException;
214
215
223 public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
224 com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
225 throws com.liferay.portal.kernel.exception.SystemException;
226
227
232 public java.lang.String getBeanIdentifier();
233
234
239 public void setBeanIdentifier(java.lang.String beanIdentifier);
240
241 public com.liferay.portlet.asset.model.AssetTag addTag(long userId,
242 java.lang.String name, java.lang.String[] tagProperties,
243 com.liferay.portal.service.ServiceContext serviceContext)
244 throws com.liferay.portal.kernel.exception.PortalException,
245 com.liferay.portal.kernel.exception.SystemException;
246
247 public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
248 boolean addGroupPermissions, boolean addGuestPermissions)
249 throws com.liferay.portal.kernel.exception.PortalException,
250 com.liferay.portal.kernel.exception.SystemException;
251
252 public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
253 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException;
256
257 public void checkTags(long userId, long groupId, java.lang.String[] names)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException;
260
261 public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
262 long tagId, long classNameId)
263 throws com.liferay.portal.kernel.exception.PortalException,
264 com.liferay.portal.kernel.exception.SystemException;
265
266 public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException;
269
270 public void deleteTag(long tagId)
271 throws com.liferay.portal.kernel.exception.PortalException,
272 com.liferay.portal.kernel.exception.SystemException;
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
276 long entryId)
277 throws com.liferay.portal.kernel.exception.SystemException;
278
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
281 long[] groupIds)
282 throws com.liferay.portal.kernel.exception.SystemException;
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
286 long groupId)
287 throws com.liferay.portal.kernel.exception.SystemException;
288
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
291 long groupId, int start, int end)
292 throws com.liferay.portal.kernel.exception.SystemException;
293
294 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295 public int getGroupTagsCount(long groupId)
296 throws com.liferay.portal.kernel.exception.SystemException;
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterOffsetTags(
300 long groupId, java.lang.String socialActivityCounterName,
301 int startOffset, int endOffset)
302 throws com.liferay.portal.kernel.exception.SystemException;
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterPeriodTags(
306 long groupId, java.lang.String socialActivityCounterName,
307 int startPeriod, int endPeriod)
308 throws com.liferay.portal.kernel.exception.SystemException;
309
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
312 throws com.liferay.portal.kernel.exception.PortalException,
313 com.liferay.portal.kernel.exception.SystemException;
314
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
317 java.lang.String name)
318 throws com.liferay.portal.kernel.exception.PortalException,
319 com.liferay.portal.kernel.exception.SystemException;
320
321 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
322 public long[] getTagIds(long groupId, java.lang.String[] names)
323 throws com.liferay.portal.kernel.exception.PortalException,
324 com.liferay.portal.kernel.exception.SystemException;
325
326 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
327 public long[] getTagIds(long[] groupIds, java.lang.String name)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException;
330
331 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
332 public long[] getTagIds(long[] groupIds, java.lang.String[] names)
333 throws com.liferay.portal.kernel.exception.PortalException,
334 com.liferay.portal.kernel.exception.SystemException;
335
336 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
337 public java.lang.String[] getTagNames()
338 throws com.liferay.portal.kernel.exception.SystemException;
339
340 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
341 public java.lang.String[] getTagNames(long classNameId, long classPK)
342 throws com.liferay.portal.kernel.exception.SystemException;
343
344 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
345 public java.lang.String[] getTagNames(java.lang.String className,
346 long classPK)
347 throws com.liferay.portal.kernel.exception.SystemException;
348
349 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
350 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
351 throws com.liferay.portal.kernel.exception.SystemException;
352
353 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
354 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
355 long classNameId, long classPK)
356 throws com.liferay.portal.kernel.exception.SystemException;
357
358 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
359 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
360 long groupId, long classNameId, java.lang.String name)
361 throws com.liferay.portal.kernel.exception.SystemException;
362
363 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
364 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
365 long groupId, long classNameId, java.lang.String name, int start,
366 int end) throws com.liferay.portal.kernel.exception.SystemException;
367
368 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
369 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
370 java.lang.String className, long classPK)
371 throws com.liferay.portal.kernel.exception.SystemException;
372
373 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374 public int getTagsSize(long groupId, long classNameId, java.lang.String name)
375 throws com.liferay.portal.kernel.exception.SystemException;
376
377 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378 public boolean hasTag(long groupId, java.lang.String name)
379 throws com.liferay.portal.kernel.exception.PortalException,
380 com.liferay.portal.kernel.exception.SystemException;
381
382 public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
383 long tagId, long classNameId)
384 throws com.liferay.portal.kernel.exception.PortalException,
385 com.liferay.portal.kernel.exception.SystemException;
386
387 public void mergeTags(long fromTagId, long toTagId,
388 boolean overrideProperties)
389 throws com.liferay.portal.kernel.exception.PortalException,
390 com.liferay.portal.kernel.exception.SystemException;
391
392 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
393 public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
394 long groupId, java.lang.String name, java.lang.String[] tagProperties,
395 int start, int end)
396 throws com.liferay.portal.kernel.exception.SystemException;
397
398 public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
399 long tagId, java.lang.String name, java.lang.String[] tagProperties,
400 com.liferay.portal.service.ServiceContext serviceContext)
401 throws com.liferay.portal.kernel.exception.PortalException,
402 com.liferay.portal.kernel.exception.SystemException;
403 }