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
220 public java.lang.String getBeanIdentifier();
221
222
227 public void setBeanIdentifier(java.lang.String beanIdentifier);
228
229 public com.liferay.portlet.asset.model.AssetTag addTag(long userId,
230 java.lang.String name, java.lang.String[] tagProperties,
231 com.liferay.portal.service.ServiceContext serviceContext)
232 throws com.liferay.portal.kernel.exception.PortalException,
233 com.liferay.portal.kernel.exception.SystemException;
234
235 public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
236 boolean addGroupPermissions, boolean addGuestPermissions)
237 throws com.liferay.portal.kernel.exception.PortalException,
238 com.liferay.portal.kernel.exception.SystemException;
239
240 public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
241 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
242 throws com.liferay.portal.kernel.exception.PortalException,
243 com.liferay.portal.kernel.exception.SystemException;
244
245 public void checkTags(long userId, long groupId, java.lang.String[] names)
246 throws com.liferay.portal.kernel.exception.PortalException,
247 com.liferay.portal.kernel.exception.SystemException;
248
249 public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
250 long tagId, long classNameId)
251 throws com.liferay.portal.kernel.exception.PortalException,
252 com.liferay.portal.kernel.exception.SystemException;
253
254 public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
255 throws com.liferay.portal.kernel.exception.PortalException,
256 com.liferay.portal.kernel.exception.SystemException;
257
258 public void deleteTag(long tagId)
259 throws com.liferay.portal.kernel.exception.PortalException,
260 com.liferay.portal.kernel.exception.SystemException;
261
262 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
264 long entryId)
265 throws com.liferay.portal.kernel.exception.SystemException;
266
267 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
269 long[] groupIds)
270 throws com.liferay.portal.kernel.exception.SystemException;
271
272 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
274 long groupId)
275 throws com.liferay.portal.kernel.exception.SystemException;
276
277 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
279 long groupId, int start, int end)
280 throws com.liferay.portal.kernel.exception.SystemException;
281
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public int getGroupTagsCount(long groupId)
284 throws com.liferay.portal.kernel.exception.SystemException;
285
286 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterOffsetTags(
288 long groupId, java.lang.String socialActivityCounterName,
289 int startOffset, int endOffset)
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> getSocialActivityCounterPeriodTags(
294 long groupId, java.lang.String socialActivityCounterName,
295 int startPeriod, int endPeriod)
296 throws com.liferay.portal.kernel.exception.SystemException;
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
300 throws com.liferay.portal.kernel.exception.PortalException,
301 com.liferay.portal.kernel.exception.SystemException;
302
303 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304 public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
305 java.lang.String name)
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 long[] getTagIds(long groupId, java.lang.String[] names)
311 throws com.liferay.portal.kernel.exception.PortalException,
312 com.liferay.portal.kernel.exception.SystemException;
313
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public long[] getTagIds(long[] groupIds, java.lang.String name)
316 throws com.liferay.portal.kernel.exception.PortalException,
317 com.liferay.portal.kernel.exception.SystemException;
318
319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320 public long[] getTagIds(long[] groupIds, java.lang.String[] names)
321 throws com.liferay.portal.kernel.exception.PortalException,
322 com.liferay.portal.kernel.exception.SystemException;
323
324 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325 public java.lang.String[] getTagNames()
326 throws com.liferay.portal.kernel.exception.SystemException;
327
328 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329 public java.lang.String[] getTagNames(long classNameId, long classPK)
330 throws com.liferay.portal.kernel.exception.SystemException;
331
332 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333 public java.lang.String[] getTagNames(java.lang.String className,
334 long classPK)
335 throws com.liferay.portal.kernel.exception.SystemException;
336
337 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
338 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
339 throws com.liferay.portal.kernel.exception.SystemException;
340
341 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
343 long classNameId, long classPK)
344 throws com.liferay.portal.kernel.exception.SystemException;
345
346 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
348 long groupId, long classNameId, java.lang.String name)
349 throws com.liferay.portal.kernel.exception.SystemException;
350
351 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
352 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
353 long groupId, long classNameId, java.lang.String name, int start,
354 int end) throws com.liferay.portal.kernel.exception.SystemException;
355
356 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
357 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
358 java.lang.String className, long classPK)
359 throws com.liferay.portal.kernel.exception.SystemException;
360
361 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362 public int getTagsSize(long groupId, long classNameId, java.lang.String name)
363 throws com.liferay.portal.kernel.exception.SystemException;
364
365 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366 public boolean hasTag(long groupId, java.lang.String name)
367 throws com.liferay.portal.kernel.exception.PortalException,
368 com.liferay.portal.kernel.exception.SystemException;
369
370 public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
371 long tagId, long classNameId)
372 throws com.liferay.portal.kernel.exception.PortalException,
373 com.liferay.portal.kernel.exception.SystemException;
374
375 public void mergeTags(long fromTagId, long toTagId,
376 boolean overrideProperties)
377 throws com.liferay.portal.kernel.exception.PortalException,
378 com.liferay.portal.kernel.exception.SystemException;
379
380 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
381 public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
382 long groupId, java.lang.String name, java.lang.String[] tagProperties,
383 int start, int end)
384 throws com.liferay.portal.kernel.exception.SystemException;
385
386 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
387 public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
388 long[] groupIds, java.lang.String name,
389 java.lang.String[] tagProperties, int start, int end)
390 throws com.liferay.portal.kernel.exception.SystemException;
391
392 public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
393 long tagId, java.lang.String name, java.lang.String[] tagProperties,
394 com.liferay.portal.service.ServiceContext serviceContext)
395 throws com.liferay.portal.kernel.exception.PortalException,
396 com.liferay.portal.kernel.exception.SystemException;
397 }