001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.search.IndexableType;
022    import com.liferay.portal.kernel.transaction.Isolation;
023    import com.liferay.portal.kernel.transaction.Propagation;
024    import com.liferay.portal.kernel.transaction.Transactional;
025    import com.liferay.portal.service.BaseLocalService;
026    import com.liferay.portal.service.PersistedModelLocalService;
027    
028    /**
029     * Provides the local service interface for AssetTag. Methods of this
030     * service will not have security checks based on the propagated JAAS
031     * credentials because this service can only be accessed from within the same
032     * VM.
033     *
034     * @author Brian Wing Shun Chan
035     * @see AssetTagLocalServiceUtil
036     * @see com.liferay.portlet.asset.service.base.AssetTagLocalServiceBaseImpl
037     * @see com.liferay.portlet.asset.service.impl.AssetTagLocalServiceImpl
038     * @generated
039     */
040    @ProviderType
041    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
042            PortalException.class, SystemException.class})
043    public interface AssetTagLocalService extends BaseLocalService,
044            PersistedModelLocalService {
045            /*
046             * NOTE FOR DEVELOPERS:
047             *
048             * Never modify or reference this interface directly. Always use {@link AssetTagLocalServiceUtil} to access the asset tag local service. Add custom service methods to {@link com.liferay.portlet.asset.service.impl.AssetTagLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
049             */
050    
051            /**
052            * Adds the asset tag to the database. Also notifies the appropriate model listeners.
053            *
054            * @param assetTag the asset tag
055            * @return the asset tag that was added
056            * @throws SystemException if a system exception occurred
057            */
058            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
059            public com.liferay.portlet.asset.model.AssetTag addAssetTag(
060                    com.liferay.portlet.asset.model.AssetTag assetTag)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            /**
064            * Creates a new asset tag with the primary key. Does not add the asset tag to the database.
065            *
066            * @param tagId the primary key for the new asset tag
067            * @return the new asset tag
068            */
069            public com.liferay.portlet.asset.model.AssetTag createAssetTag(long tagId);
070    
071            /**
072            * Deletes the asset tag with the primary key from the database. Also notifies the appropriate model listeners.
073            *
074            * @param tagId the primary key of the asset tag
075            * @return the asset tag that was removed
076            * @throws PortalException if a asset tag with the primary key could not be found
077            * @throws SystemException if a system exception occurred
078            */
079            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
080            public com.liferay.portlet.asset.model.AssetTag deleteAssetTag(long tagId)
081                    throws com.liferay.portal.kernel.exception.PortalException,
082                            com.liferay.portal.kernel.exception.SystemException;
083    
084            /**
085            * Deletes the asset tag from the database. Also notifies the appropriate model listeners.
086            *
087            * @param assetTag the asset tag
088            * @return the asset tag that was removed
089            * @throws SystemException if a system exception occurred
090            */
091            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
092            public com.liferay.portlet.asset.model.AssetTag deleteAssetTag(
093                    com.liferay.portlet.asset.model.AssetTag assetTag)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
097    
098            /**
099            * Performs a dynamic query on the database and returns the matching rows.
100            *
101            * @param dynamicQuery the dynamic query
102            * @return the matching rows
103            * @throws SystemException if a system exception occurred
104            */
105            @SuppressWarnings("rawtypes")
106            public java.util.List dynamicQuery(
107                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
108                    throws com.liferay.portal.kernel.exception.SystemException;
109    
110            /**
111            * Performs a dynamic query on the database and returns a range of the matching rows.
112            *
113            * <p>
114            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
115            * </p>
116            *
117            * @param dynamicQuery the dynamic query
118            * @param start the lower bound of the range of model instances
119            * @param end the upper bound of the range of model instances (not inclusive)
120            * @return the range of matching rows
121            * @throws SystemException if a system exception occurred
122            */
123            @SuppressWarnings("rawtypes")
124            public java.util.List dynamicQuery(
125                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126                    int end) throws com.liferay.portal.kernel.exception.SystemException;
127    
128            /**
129            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
130            *
131            * <p>
132            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
133            * </p>
134            *
135            * @param dynamicQuery the dynamic query
136            * @param start the lower bound of the range of model instances
137            * @param end the upper bound of the range of model instances (not inclusive)
138            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
139            * @return the ordered range of matching rows
140            * @throws SystemException if a system exception occurred
141            */
142            @SuppressWarnings("rawtypes")
143            public java.util.List dynamicQuery(
144                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
145                    int end,
146                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147                    throws com.liferay.portal.kernel.exception.SystemException;
148    
149            /**
150            * Returns the number of rows that match the dynamic query.
151            *
152            * @param dynamicQuery the dynamic query
153            * @return the number of rows that match the dynamic query
154            * @throws SystemException if a system exception occurred
155            */
156            public long dynamicQueryCount(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158                    throws com.liferay.portal.kernel.exception.SystemException;
159    
160            /**
161            * Returns the number of rows that match the dynamic query.
162            *
163            * @param dynamicQuery the dynamic query
164            * @param projection the projection to apply to the query
165            * @return the number of rows that match the dynamic query
166            * @throws SystemException if a system exception occurred
167            */
168            public long dynamicQueryCount(
169                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
170                    com.liferay.portal.kernel.dao.orm.Projection projection)
171                    throws com.liferay.portal.kernel.exception.SystemException;
172    
173            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174            public com.liferay.portlet.asset.model.AssetTag fetchAssetTag(long tagId)
175                    throws com.liferay.portal.kernel.exception.SystemException;
176    
177            /**
178            * Returns the asset tag with the primary key.
179            *
180            * @param tagId the primary key of the asset tag
181            * @return the asset tag
182            * @throws PortalException if a asset tag with the primary key could not be found
183            * @throws SystemException if a system exception occurred
184            */
185            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186            public com.liferay.portlet.asset.model.AssetTag getAssetTag(long tagId)
187                    throws com.liferay.portal.kernel.exception.PortalException,
188                            com.liferay.portal.kernel.exception.SystemException;
189    
190            @Override
191            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192            public com.liferay.portal.model.PersistedModel getPersistedModel(
193                    java.io.Serializable primaryKeyObj)
194                    throws com.liferay.portal.kernel.exception.PortalException,
195                            com.liferay.portal.kernel.exception.SystemException;
196    
197            /**
198            * Returns a range of all the asset tags.
199            *
200            * <p>
201            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
202            * </p>
203            *
204            * @param start the lower bound of the range of asset tags
205            * @param end the upper bound of the range of asset tags (not inclusive)
206            * @return the range of asset tags
207            * @throws SystemException if a system exception occurred
208            */
209            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
211                    int start, int end)
212                    throws com.liferay.portal.kernel.exception.SystemException;
213    
214            /**
215            * Returns the number of asset tags.
216            *
217            * @return the number of asset tags
218            * @throws SystemException if a system exception occurred
219            */
220            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221            public int getAssetTagsCount()
222                    throws com.liferay.portal.kernel.exception.SystemException;
223    
224            /**
225            * Updates the asset tag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
226            *
227            * @param assetTag the asset tag
228            * @return the asset tag that was updated
229            * @throws SystemException if a system exception occurred
230            */
231            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
232            public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
233                    com.liferay.portlet.asset.model.AssetTag assetTag)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            /**
237            * @throws SystemException if a system exception occurred
238            */
239            public void addAssetEntryAssetTag(long entryId, long tagId)
240                    throws com.liferay.portal.kernel.exception.SystemException;
241    
242            /**
243            * @throws SystemException if a system exception occurred
244            */
245            public void addAssetEntryAssetTag(long entryId,
246                    com.liferay.portlet.asset.model.AssetTag assetTag)
247                    throws com.liferay.portal.kernel.exception.SystemException;
248    
249            /**
250            * @throws SystemException if a system exception occurred
251            */
252            public void addAssetEntryAssetTags(long entryId, long[] tagIds)
253                    throws com.liferay.portal.kernel.exception.SystemException;
254    
255            /**
256            * @throws SystemException if a system exception occurred
257            */
258            public void addAssetEntryAssetTags(long entryId,
259                    java.util.List<com.liferay.portlet.asset.model.AssetTag> AssetTags)
260                    throws com.liferay.portal.kernel.exception.SystemException;
261    
262            /**
263            * @throws SystemException if a system exception occurred
264            */
265            public void clearAssetEntryAssetTags(long entryId)
266                    throws com.liferay.portal.kernel.exception.SystemException;
267    
268            /**
269            * @throws SystemException if a system exception occurred
270            */
271            public void deleteAssetEntryAssetTag(long entryId, long tagId)
272                    throws com.liferay.portal.kernel.exception.SystemException;
273    
274            /**
275            * @throws SystemException if a system exception occurred
276            */
277            public void deleteAssetEntryAssetTag(long entryId,
278                    com.liferay.portlet.asset.model.AssetTag assetTag)
279                    throws com.liferay.portal.kernel.exception.SystemException;
280    
281            /**
282            * @throws SystemException if a system exception occurred
283            */
284            public void deleteAssetEntryAssetTags(long entryId, long[] tagIds)
285                    throws com.liferay.portal.kernel.exception.SystemException;
286    
287            /**
288            * @throws SystemException if a system exception occurred
289            */
290            public void deleteAssetEntryAssetTags(long entryId,
291                    java.util.List<com.liferay.portlet.asset.model.AssetTag> AssetTags)
292                    throws com.liferay.portal.kernel.exception.SystemException;
293    
294            /**
295            * @throws SystemException if a system exception occurred
296            */
297            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
299                    long entryId)
300                    throws com.liferay.portal.kernel.exception.SystemException;
301    
302            /**
303            * @throws SystemException if a system exception occurred
304            */
305            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
307                    long entryId, int start, int end)
308                    throws com.liferay.portal.kernel.exception.SystemException;
309    
310            /**
311            * @throws SystemException if a system exception occurred
312            */
313            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetEntryAssetTags(
315                    long entryId, int start, int end,
316                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
317                    throws com.liferay.portal.kernel.exception.SystemException;
318    
319            /**
320            * @throws SystemException if a system exception occurred
321            */
322            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
323            public int getAssetEntryAssetTagsCount(long entryId)
324                    throws com.liferay.portal.kernel.exception.SystemException;
325    
326            /**
327            * @throws SystemException if a system exception occurred
328            */
329            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330            public boolean hasAssetEntryAssetTag(long entryId, long tagId)
331                    throws com.liferay.portal.kernel.exception.SystemException;
332    
333            /**
334            * @throws SystemException if a system exception occurred
335            */
336            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
337            public boolean hasAssetEntryAssetTags(long entryId)
338                    throws com.liferay.portal.kernel.exception.SystemException;
339    
340            /**
341            * @throws SystemException if a system exception occurred
342            */
343            public void setAssetEntryAssetTags(long entryId, long[] tagIds)
344                    throws com.liferay.portal.kernel.exception.SystemException;
345    
346            /**
347            * Returns the Spring bean ID for this bean.
348            *
349            * @return the Spring bean ID for this bean
350            */
351            public java.lang.String getBeanIdentifier();
352    
353            /**
354            * Sets the Spring bean ID for this bean.
355            *
356            * @param beanIdentifier the Spring bean ID for this bean
357            */
358            public void setBeanIdentifier(java.lang.String beanIdentifier);
359    
360            public com.liferay.portlet.asset.model.AssetTag addTag(long userId,
361                    java.lang.String name, java.lang.String[] tagProperties,
362                    com.liferay.portal.service.ServiceContext serviceContext)
363                    throws com.liferay.portal.kernel.exception.PortalException,
364                            com.liferay.portal.kernel.exception.SystemException;
365    
366            public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
367                    boolean addGroupPermissions, boolean addGuestPermissions)
368                    throws com.liferay.portal.kernel.exception.PortalException,
369                            com.liferay.portal.kernel.exception.SystemException;
370    
371            public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
372                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
373                    throws com.liferay.portal.kernel.exception.PortalException,
374                            com.liferay.portal.kernel.exception.SystemException;
375    
376            /**
377            * Returns the tags matching the group and names, creating new tags with the
378            * names if the group doesn't already have them.
379            *
380            * <p>
381            * For each name, if a tag with that name doesn't already exist for the
382            * group, this method creates a new tag with that name for the group. If a
383            * tag with that name already exists in the company group, this method
384            * copies that company group's tag's properties to the group's new tag.
385            * </p>
386            *
387            * @param userId the primary key of the user
388            * @param group ID the primary key of the tag's group
389            * @param names the tag names
390            * @return the tags matching the group and names and new tags matching the
391            names that don't already exist for the group
392            * @throws PortalException if a matching group could not be found, if the
393            tag's key or value were invalid, or if a portal exception
394            occurred
395            * @throws SystemException if a system exception occurred
396            */
397            public java.util.List<com.liferay.portlet.asset.model.AssetTag> checkTags(
398                    long userId, com.liferay.portal.model.Group group,
399                    java.lang.String[] names)
400                    throws com.liferay.portal.kernel.exception.PortalException,
401                            com.liferay.portal.kernel.exception.SystemException;
402    
403            public void checkTags(long userId, long groupId, java.lang.String[] names)
404                    throws com.liferay.portal.kernel.exception.PortalException,
405                            com.liferay.portal.kernel.exception.SystemException;
406    
407            public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
408                    long tagId, long classNameId)
409                    throws com.liferay.portal.kernel.exception.PortalException,
410                            com.liferay.portal.kernel.exception.SystemException;
411    
412            public void deleteGroupTags(long groupId)
413                    throws com.liferay.portal.kernel.exception.PortalException,
414                            com.liferay.portal.kernel.exception.SystemException;
415    
416            public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
417                    throws com.liferay.portal.kernel.exception.PortalException,
418                            com.liferay.portal.kernel.exception.SystemException;
419    
420            public void deleteTag(long tagId)
421                    throws com.liferay.portal.kernel.exception.PortalException,
422                            com.liferay.portal.kernel.exception.SystemException;
423    
424            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
426                    long entryId)
427                    throws com.liferay.portal.kernel.exception.SystemException;
428    
429            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
430            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
431                    long[] groupIds)
432                    throws com.liferay.portal.kernel.exception.SystemException;
433    
434            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
435            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
436                    long groupId)
437                    throws com.liferay.portal.kernel.exception.SystemException;
438    
439            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
440            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
441                    long groupId, int start, int end)
442                    throws com.liferay.portal.kernel.exception.SystemException;
443    
444            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
445            public int getGroupTagsCount(long groupId)
446                    throws com.liferay.portal.kernel.exception.SystemException;
447    
448            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
449            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterOffsetTags(
450                    long groupId, java.lang.String socialActivityCounterName,
451                    int startOffset, int endOffset)
452                    throws com.liferay.portal.kernel.exception.SystemException;
453    
454            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
455            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterPeriodTags(
456                    long groupId, java.lang.String socialActivityCounterName,
457                    int startPeriod, int endPeriod)
458                    throws com.liferay.portal.kernel.exception.SystemException;
459    
460            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
461            public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
462                    throws com.liferay.portal.kernel.exception.PortalException,
463                            com.liferay.portal.kernel.exception.SystemException;
464    
465            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
466            public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
467                    java.lang.String name)
468                    throws com.liferay.portal.kernel.exception.PortalException,
469                            com.liferay.portal.kernel.exception.SystemException;
470    
471            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
472            public long[] getTagIds(long groupId, java.lang.String[] names)
473                    throws com.liferay.portal.kernel.exception.PortalException,
474                            com.liferay.portal.kernel.exception.SystemException;
475    
476            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
477            public long[] getTagIds(long[] groupIds, java.lang.String name)
478                    throws com.liferay.portal.kernel.exception.PortalException,
479                            com.liferay.portal.kernel.exception.SystemException;
480    
481            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
482            public long[] getTagIds(long[] groupIds, java.lang.String[] names)
483                    throws com.liferay.portal.kernel.exception.PortalException,
484                            com.liferay.portal.kernel.exception.SystemException;
485    
486            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
487            public java.lang.String[] getTagNames()
488                    throws com.liferay.portal.kernel.exception.SystemException;
489    
490            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
491            public java.lang.String[] getTagNames(long classNameId, long classPK)
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
495            public java.lang.String[] getTagNames(java.lang.String className,
496                    long classPK)
497                    throws com.liferay.portal.kernel.exception.SystemException;
498    
499            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
500            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
501                    throws com.liferay.portal.kernel.exception.SystemException;
502    
503            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
504            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
505                    long classNameId, long classPK)
506                    throws com.liferay.portal.kernel.exception.SystemException;
507    
508            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
509            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
510                    long groupId, long classNameId, java.lang.String name)
511                    throws com.liferay.portal.kernel.exception.SystemException;
512    
513            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
514            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
515                    long groupId, long classNameId, java.lang.String name, int start,
516                    int end) throws com.liferay.portal.kernel.exception.SystemException;
517    
518            @com.liferay.portal.kernel.cache.ThreadLocalCachable
519            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
520            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
521                    java.lang.String className, long classPK)
522                    throws com.liferay.portal.kernel.exception.SystemException;
523    
524            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
525            public int getTagsSize(long groupId, long classNameId, java.lang.String name)
526                    throws com.liferay.portal.kernel.exception.SystemException;
527    
528            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
529            public boolean hasTag(long groupId, java.lang.String name)
530                    throws com.liferay.portal.kernel.exception.PortalException,
531                            com.liferay.portal.kernel.exception.SystemException;
532    
533            public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
534                    long tagId, long classNameId)
535                    throws com.liferay.portal.kernel.exception.PortalException,
536                            com.liferay.portal.kernel.exception.SystemException;
537    
538            public void mergeTags(long fromTagId, long toTagId,
539                    boolean overrideProperties)
540                    throws com.liferay.portal.kernel.exception.PortalException,
541                            com.liferay.portal.kernel.exception.SystemException;
542    
543            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
544            public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
545                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
546                    int start, int end)
547                    throws com.liferay.portal.kernel.exception.SystemException;
548    
549            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
550            public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
551                    long[] groupIds, java.lang.String name,
552                    java.lang.String[] tagProperties, int start, int end)
553                    throws com.liferay.portal.kernel.exception.SystemException;
554    
555            public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
556                    long tagId, java.lang.String name, java.lang.String[] tagProperties,
557                    com.liferay.portal.service.ServiceContext serviceContext)
558                    throws com.liferay.portal.kernel.exception.PortalException,
559                            com.liferay.portal.kernel.exception.SystemException;
560    }