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.PersistedModelLocalService;
023
024
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface AssetTagLocalService extends PersistedModelLocalService {
040
045
046
053 public com.liferay.portlet.asset.model.AssetTag addAssetTag(
054 com.liferay.portlet.asset.model.AssetTag assetTag)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057
063 public com.liferay.portlet.asset.model.AssetTag createAssetTag(long tagId);
064
065
072 public void deleteAssetTag(long tagId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException;
075
076
082 public void deleteAssetTag(
083 com.liferay.portlet.asset.model.AssetTag assetTag)
084 throws com.liferay.portal.kernel.exception.SystemException;
085
086
093 @SuppressWarnings("rawtypes")
094 public java.util.List dynamicQuery(
095 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098
111 @SuppressWarnings("rawtypes")
112 public java.util.List dynamicQuery(
113 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
114 int end) throws com.liferay.portal.kernel.exception.SystemException;
115
116
130 @SuppressWarnings("rawtypes")
131 public java.util.List dynamicQuery(
132 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133 int end,
134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135 throws com.liferay.portal.kernel.exception.SystemException;
136
137
144 public long dynamicQueryCount(
145 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
146 throws com.liferay.portal.kernel.exception.SystemException;
147
148 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149 public com.liferay.portlet.asset.model.AssetTag fetchAssetTag(long tagId)
150 throws com.liferay.portal.kernel.exception.SystemException;
151
152
160 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161 public com.liferay.portlet.asset.model.AssetTag getAssetTag(long tagId)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException;
164
165 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166 public com.liferay.portal.model.PersistedModel getPersistedModel(
167 java.io.Serializable primaryKeyObj)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException;
170
171
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
185 int start, int end)
186 throws com.liferay.portal.kernel.exception.SystemException;
187
188
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public int getAssetTagsCount()
196 throws com.liferay.portal.kernel.exception.SystemException;
197
198
205 public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
206 com.liferay.portlet.asset.model.AssetTag assetTag)
207 throws com.liferay.portal.kernel.exception.SystemException;
208
209
217 public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
218 com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
219 throws com.liferay.portal.kernel.exception.SystemException;
220
221
226 public java.lang.String getBeanIdentifier();
227
228
233 public void setBeanIdentifier(java.lang.String beanIdentifier);
234
235 public com.liferay.portlet.asset.model.AssetTag addTag(long userId,
236 java.lang.String name, java.lang.String[] tagProperties,
237 com.liferay.portal.service.ServiceContext serviceContext)
238 throws com.liferay.portal.kernel.exception.PortalException,
239 com.liferay.portal.kernel.exception.SystemException;
240
241 public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
242 boolean addGroupPermissions, boolean addGuestPermissions)
243 throws com.liferay.portal.kernel.exception.PortalException,
244 com.liferay.portal.kernel.exception.SystemException;
245
246 public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
247 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
248 throws com.liferay.portal.kernel.exception.PortalException,
249 com.liferay.portal.kernel.exception.SystemException;
250
251 public void checkTags(long userId, long groupId, java.lang.String[] names)
252 throws com.liferay.portal.kernel.exception.PortalException,
253 com.liferay.portal.kernel.exception.SystemException;
254
255 public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
256 long tagId, long classNameId)
257 throws com.liferay.portal.kernel.exception.PortalException,
258 com.liferay.portal.kernel.exception.SystemException;
259
260 public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
261 throws com.liferay.portal.kernel.exception.PortalException,
262 com.liferay.portal.kernel.exception.SystemException;
263
264 public void deleteTag(long tagId)
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.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
270 long entryId)
271 throws com.liferay.portal.kernel.exception.SystemException;
272
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
275 long[] groupIds)
276 throws com.liferay.portal.kernel.exception.SystemException;
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
280 long groupId)
281 throws com.liferay.portal.kernel.exception.SystemException;
282
283 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
284 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
285 long groupId, int start, int end)
286 throws com.liferay.portal.kernel.exception.SystemException;
287
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public int getGroupTagsCount(long groupId)
290 throws com.liferay.portal.kernel.exception.SystemException;
291
292 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterOffsetTags(
294 long groupId, java.lang.String socialActivityCounterName,
295 int startOffset, int endOffset)
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> getSocialActivityCounterPeriodTags(
300 long groupId, java.lang.String socialActivityCounterName,
301 int startPeriod, int endPeriod)
302 throws com.liferay.portal.kernel.exception.SystemException;
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
306 throws com.liferay.portal.kernel.exception.PortalException,
307 com.liferay.portal.kernel.exception.SystemException;
308
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
311 java.lang.String name)
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 long[] getTagIds(long groupId, java.lang.String[] names)
317 throws com.liferay.portal.kernel.exception.PortalException,
318 com.liferay.portal.kernel.exception.SystemException;
319
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public long[] getTagIds(long[] groupIds, java.lang.String[] names)
322 throws com.liferay.portal.kernel.exception.PortalException,
323 com.liferay.portal.kernel.exception.SystemException;
324
325 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326 public java.lang.String[] getTagNames()
327 throws com.liferay.portal.kernel.exception.SystemException;
328
329 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330 public java.lang.String[] getTagNames(long classNameId, long classPK)
331 throws com.liferay.portal.kernel.exception.SystemException;
332
333 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
334 public java.lang.String[] getTagNames(java.lang.String className,
335 long classPK)
336 throws com.liferay.portal.kernel.exception.SystemException;
337
338 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
339 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
340 throws com.liferay.portal.kernel.exception.SystemException;
341
342 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
343 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
344 long classNameId, long classPK)
345 throws com.liferay.portal.kernel.exception.SystemException;
346
347 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
348 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
349 long groupId, long classNameId, java.lang.String name)
350 throws com.liferay.portal.kernel.exception.SystemException;
351
352 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
353 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
354 long groupId, long classNameId, java.lang.String name, int start,
355 int end) throws com.liferay.portal.kernel.exception.SystemException;
356
357 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
358 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
359 java.lang.String className, long classPK)
360 throws com.liferay.portal.kernel.exception.SystemException;
361
362 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
363 public int getTagsSize(long groupId, long classNameId, java.lang.String name)
364 throws com.liferay.portal.kernel.exception.SystemException;
365
366 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
367 public boolean hasTag(long groupId, java.lang.String name)
368 throws com.liferay.portal.kernel.exception.PortalException,
369 com.liferay.portal.kernel.exception.SystemException;
370
371 public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
372 long tagId, long classNameId)
373 throws com.liferay.portal.kernel.exception.PortalException,
374 com.liferay.portal.kernel.exception.SystemException;
375
376 public void mergeTags(long fromTagId, long toTagId,
377 boolean overrideProperties)
378 throws com.liferay.portal.kernel.exception.PortalException,
379 com.liferay.portal.kernel.exception.SystemException;
380
381 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
382 public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
383 long groupId, java.lang.String name, java.lang.String[] tagProperties,
384 int start, int end)
385 throws com.liferay.portal.kernel.exception.SystemException;
386
387 public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
388 long tagId, java.lang.String name, java.lang.String[] tagProperties,
389 com.liferay.portal.service.ServiceContext serviceContext)
390 throws com.liferay.portal.kernel.exception.PortalException,
391 com.liferay.portal.kernel.exception.SystemException;
392 }