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 addGroupPermissions, 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[] groupPermissions, java.lang.String[] guestPermissions)
244 throws com.liferay.portal.kernel.exception.PortalException,
245 com.liferay.portal.kernel.exception.SystemException;
246
247 public void checkTags(long userId, long groupId, java.lang.String[] names)
248 throws com.liferay.portal.kernel.exception.PortalException,
249 com.liferay.portal.kernel.exception.SystemException;
250
251 public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
252 long tagId, long classNameId)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException;
255
256 public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
257 throws com.liferay.portal.kernel.exception.PortalException,
258 com.liferay.portal.kernel.exception.SystemException;
259
260 public void deleteTag(long tagId)
261 throws com.liferay.portal.kernel.exception.PortalException,
262 com.liferay.portal.kernel.exception.SystemException;
263
264 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
266 long entryId)
267 throws com.liferay.portal.kernel.exception.SystemException;
268
269 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
271 long[] groupIds)
272 throws 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> getGroupTags(
276 long groupId)
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> getGroupTags(
281 long groupId, int start, int end)
282 throws com.liferay.portal.kernel.exception.SystemException;
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public int getGroupTagsCount(long groupId)
286 throws com.liferay.portal.kernel.exception.SystemException;
287
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
290 throws com.liferay.portal.kernel.exception.PortalException,
291 com.liferay.portal.kernel.exception.SystemException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
295 java.lang.String name)
296 throws com.liferay.portal.kernel.exception.PortalException,
297 com.liferay.portal.kernel.exception.SystemException;
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public long[] getTagIds(long groupId, java.lang.String[] names)
301 throws com.liferay.portal.kernel.exception.PortalException,
302 com.liferay.portal.kernel.exception.SystemException;
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public long[] getTagIds(long[] groupIds, java.lang.String[] names)
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 java.lang.String[] getTagNames()
311 throws com.liferay.portal.kernel.exception.SystemException;
312
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public java.lang.String[] getTagNames(long classNameId, long classPK)
315 throws com.liferay.portal.kernel.exception.SystemException;
316
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public java.lang.String[] getTagNames(java.lang.String className,
319 long classPK)
320 throws com.liferay.portal.kernel.exception.SystemException;
321
322 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
323 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
324 throws com.liferay.portal.kernel.exception.SystemException;
325
326 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
327 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
328 long classNameId, long classPK)
329 throws com.liferay.portal.kernel.exception.SystemException;
330
331 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
332 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
333 long groupId, long classNameId, java.lang.String name)
334 throws com.liferay.portal.kernel.exception.SystemException;
335
336 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
337 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
338 long groupId, long classNameId, java.lang.String name, int start,
339 int end) 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 java.lang.String className, long classPK)
344 throws com.liferay.portal.kernel.exception.SystemException;
345
346 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347 public int getTagsSize(long groupId, long classNameId, java.lang.String name)
348 throws com.liferay.portal.kernel.exception.SystemException;
349
350 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
351 public boolean hasTag(long groupId, java.lang.String name)
352 throws com.liferay.portal.kernel.exception.PortalException,
353 com.liferay.portal.kernel.exception.SystemException;
354
355 public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
356 long tagId, long classNameId)
357 throws com.liferay.portal.kernel.exception.PortalException,
358 com.liferay.portal.kernel.exception.SystemException;
359
360 public void mergeTags(long fromTagId, long toTagId,
361 boolean overrideProperties)
362 throws com.liferay.portal.kernel.exception.PortalException,
363 com.liferay.portal.kernel.exception.SystemException;
364
365 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366 public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
367 long groupId, java.lang.String name, java.lang.String[] tagProperties,
368 int start, int end)
369 throws com.liferay.portal.kernel.exception.SystemException;
370
371 public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
372 long tagId, java.lang.String name, java.lang.String[] tagProperties,
373 com.liferay.portal.service.ServiceContext serviceContext)
374 throws com.liferay.portal.kernel.exception.PortalException,
375 com.liferay.portal.kernel.exception.SystemException;
376 }