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
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public com.liferay.portlet.asset.model.AssetTag getAssetTag(long tagId)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public com.liferay.portal.model.PersistedModel getPersistedModel(
163 java.io.Serializable primaryKeyObj)
164 throws com.liferay.portal.kernel.exception.PortalException,
165 com.liferay.portal.kernel.exception.SystemException;
166
167
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
181 int start, int end)
182 throws com.liferay.portal.kernel.exception.SystemException;
183
184
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public int getAssetTagsCount()
192 throws com.liferay.portal.kernel.exception.SystemException;
193
194
201 public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
202 com.liferay.portlet.asset.model.AssetTag assetTag)
203 throws com.liferay.portal.kernel.exception.SystemException;
204
205
213 public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
214 com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
215 throws com.liferay.portal.kernel.exception.SystemException;
216
217
222 public java.lang.String getBeanIdentifier();
223
224
229 public void setBeanIdentifier(java.lang.String beanIdentifier);
230
231 public com.liferay.portlet.asset.model.AssetTag addTag(long userId,
232 java.lang.String name, java.lang.String[] tagProperties,
233 com.liferay.portal.service.ServiceContext serviceContext)
234 throws com.liferay.portal.kernel.exception.PortalException,
235 com.liferay.portal.kernel.exception.SystemException;
236
237 public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
238 boolean addCommunityPermissions, boolean addGuestPermissions)
239 throws com.liferay.portal.kernel.exception.PortalException,
240 com.liferay.portal.kernel.exception.SystemException;
241
242 public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
243 java.lang.String[] communityPermissions,
244 java.lang.String[] guestPermissions)
245 throws com.liferay.portal.kernel.exception.PortalException,
246 com.liferay.portal.kernel.exception.SystemException;
247
248 public void checkTags(long userId, long groupId, java.lang.String[] names)
249 throws com.liferay.portal.kernel.exception.PortalException,
250 com.liferay.portal.kernel.exception.SystemException;
251
252 public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
253 long tagId, long classNameId)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException;
256
257 public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException;
260
261 public void deleteTag(long tagId)
262 throws com.liferay.portal.kernel.exception.PortalException,
263 com.liferay.portal.kernel.exception.SystemException;
264
265 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
267 long entryId)
268 throws com.liferay.portal.kernel.exception.SystemException;
269
270 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
272 long[] groupIds)
273 throws com.liferay.portal.kernel.exception.SystemException;
274
275 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
277 long groupId)
278 throws com.liferay.portal.kernel.exception.SystemException;
279
280 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
282 long groupId, int start, int end)
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public int getGroupTagsCount(long groupId)
287 throws com.liferay.portal.kernel.exception.SystemException;
288
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
291 throws com.liferay.portal.kernel.exception.PortalException,
292 com.liferay.portal.kernel.exception.SystemException;
293
294 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295 public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
296 java.lang.String name)
297 throws com.liferay.portal.kernel.exception.PortalException,
298 com.liferay.portal.kernel.exception.SystemException;
299
300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301 public long[] getTagIds(long groupId, java.lang.String[] names)
302 throws com.liferay.portal.kernel.exception.PortalException,
303 com.liferay.portal.kernel.exception.SystemException;
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public long[] getTagIds(long[] groupIds, java.lang.String[] names)
307 throws com.liferay.portal.kernel.exception.PortalException,
308 com.liferay.portal.kernel.exception.SystemException;
309
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public java.lang.String[] getTagNames()
312 throws com.liferay.portal.kernel.exception.SystemException;
313
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public java.lang.String[] getTagNames(long classNameId, long classPK)
316 throws com.liferay.portal.kernel.exception.SystemException;
317
318 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
319 public java.lang.String[] getTagNames(java.lang.String className,
320 long classPK)
321 throws com.liferay.portal.kernel.exception.SystemException;
322
323 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
325 throws com.liferay.portal.kernel.exception.SystemException;
326
327 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
329 long classNameId, long classPK)
330 throws com.liferay.portal.kernel.exception.SystemException;
331
332 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
334 long groupId, long classNameId, java.lang.String name)
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 long groupId, long classNameId, java.lang.String name, int start,
340 int end) 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 java.lang.String className, long classPK)
345 throws com.liferay.portal.kernel.exception.SystemException;
346
347 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
348 public int getTagsSize(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 boolean hasTag(long groupId, java.lang.String name)
353 throws com.liferay.portal.kernel.exception.PortalException,
354 com.liferay.portal.kernel.exception.SystemException;
355
356 public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
357 long tagId, long classNameId)
358 throws com.liferay.portal.kernel.exception.PortalException,
359 com.liferay.portal.kernel.exception.SystemException;
360
361
364 public void mergeTags(long fromTagId, long toTagId)
365 throws com.liferay.portal.kernel.exception.PortalException,
366 com.liferay.portal.kernel.exception.SystemException;
367
368 public void mergeTags(long fromTagId, long toTagId,
369 boolean overrideProperties)
370 throws com.liferay.portal.kernel.exception.PortalException,
371 com.liferay.portal.kernel.exception.SystemException;
372
373 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374 public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
375 long groupId, java.lang.String name, java.lang.String[] tagProperties,
376 int start, int end)
377 throws com.liferay.portal.kernel.exception.SystemException;
378
379 public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
380 long tagId, java.lang.String name, java.lang.String[] tagProperties,
381 com.liferay.portal.service.ServiceContext serviceContext)
382 throws com.liferay.portal.kernel.exception.PortalException,
383 com.liferay.portal.kernel.exception.SystemException;
384 }