001    /**
002     * Copyright (c) 2000-2010 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    /**
018     * <p>
019     * This class is a wrapper for {@link AssetTagLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       AssetTagLocalService
024     * @generated
025     */
026    public class AssetTagLocalServiceWrapper implements AssetTagLocalService {
027            public AssetTagLocalServiceWrapper(
028                    AssetTagLocalService assetTagLocalService) {
029                    _assetTagLocalService = assetTagLocalService;
030            }
031    
032            /**
033            * Adds the asset tag to the database. Also notifies the appropriate model listeners.
034            *
035            * @param assetTag the asset tag to add
036            * @return the asset tag that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portlet.asset.model.AssetTag addAssetTag(
040                    com.liferay.portlet.asset.model.AssetTag assetTag)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _assetTagLocalService.addAssetTag(assetTag);
043            }
044    
045            /**
046            * Creates a new asset tag with the primary key. Does not add the asset tag to the database.
047            *
048            * @param tagId the primary key for the new asset tag
049            * @return the new asset tag
050            */
051            public com.liferay.portlet.asset.model.AssetTag createAssetTag(long tagId) {
052                    return _assetTagLocalService.createAssetTag(tagId);
053            }
054    
055            /**
056            * Deletes the asset tag with the primary key from the database. Also notifies the appropriate model listeners.
057            *
058            * @param tagId the primary key of the asset tag to delete
059            * @throws PortalException if a asset tag with the primary key could not be found
060            * @throws SystemException if a system exception occurred
061            */
062            public void deleteAssetTag(long tagId)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    _assetTagLocalService.deleteAssetTag(tagId);
066            }
067    
068            /**
069            * Deletes the asset tag from the database. Also notifies the appropriate model listeners.
070            *
071            * @param assetTag the asset tag to delete
072            * @throws SystemException if a system exception occurred
073            */
074            public void deleteAssetTag(
075                    com.liferay.portlet.asset.model.AssetTag assetTag)
076                    throws com.liferay.portal.kernel.exception.SystemException {
077                    _assetTagLocalService.deleteAssetTag(assetTag);
078            }
079    
080            /**
081            * Performs a dynamic query on the database and returns the matching rows.
082            *
083            * @param dynamicQuery the dynamic query to search with
084            * @return the matching rows
085            * @throws SystemException if a system exception occurred
086            */
087            @SuppressWarnings("rawtypes")
088            public java.util.List dynamicQuery(
089                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
090                    throws com.liferay.portal.kernel.exception.SystemException {
091                    return _assetTagLocalService.dynamicQuery(dynamicQuery);
092            }
093    
094            /**
095            * Performs a dynamic query on the database and returns a range of the matching rows.
096            *
097            * <p>
098            * 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.
099            * </p>
100            *
101            * @param dynamicQuery the dynamic query to search with
102            * @param start the lower bound of the range of model instances to return
103            * @param end the upper bound of the range of model instances to return (not inclusive)
104            * @return the range of matching rows
105            * @throws SystemException if a system exception occurred
106            */
107            @SuppressWarnings("rawtypes")
108            public java.util.List dynamicQuery(
109                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
110                    int end) throws com.liferay.portal.kernel.exception.SystemException {
111                    return _assetTagLocalService.dynamicQuery(dynamicQuery, start, end);
112            }
113    
114            /**
115            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
116            *
117            * <p>
118            * 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.
119            * </p>
120            *
121            * @param dynamicQuery the dynamic query to search with
122            * @param start the lower bound of the range of model instances to return
123            * @param end the upper bound of the range of model instances to return (not inclusive)
124            * @param orderByComparator the comparator to order the results by
125            * @return the ordered range of matching rows
126            * @throws SystemException if a system exception occurred
127            */
128            @SuppressWarnings("rawtypes")
129            public java.util.List dynamicQuery(
130                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131                    int end,
132                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return _assetTagLocalService.dynamicQuery(dynamicQuery, start, end,
135                            orderByComparator);
136            }
137    
138            /**
139            * Counts the number of rows that match the dynamic query.
140            *
141            * @param dynamicQuery the dynamic query to search with
142            * @return the number of rows that match the dynamic query
143            * @throws SystemException if a system exception occurred
144            */
145            public long dynamicQueryCount(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147                    throws com.liferay.portal.kernel.exception.SystemException {
148                    return _assetTagLocalService.dynamicQueryCount(dynamicQuery);
149            }
150    
151            /**
152            * Gets the asset tag with the primary key.
153            *
154            * @param tagId the primary key of the asset tag to get
155            * @return the asset tag
156            * @throws PortalException if a asset tag with the primary key could not be found
157            * @throws SystemException if a system exception occurred
158            */
159            public com.liferay.portlet.asset.model.AssetTag getAssetTag(long tagId)
160                    throws com.liferay.portal.kernel.exception.PortalException,
161                            com.liferay.portal.kernel.exception.SystemException {
162                    return _assetTagLocalService.getAssetTag(tagId);
163            }
164    
165            /**
166            * Gets a range of all the asset tags.
167            *
168            * <p>
169            * 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.
170            * </p>
171            *
172            * @param start the lower bound of the range of asset tags to return
173            * @param end the upper bound of the range of asset tags to return (not inclusive)
174            * @return the range of asset tags
175            * @throws SystemException if a system exception occurred
176            */
177            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
178                    int start, int end)
179                    throws com.liferay.portal.kernel.exception.SystemException {
180                    return _assetTagLocalService.getAssetTags(start, end);
181            }
182    
183            /**
184            * Gets the number of asset tags.
185            *
186            * @return the number of asset tags
187            * @throws SystemException if a system exception occurred
188            */
189            public int getAssetTagsCount()
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return _assetTagLocalService.getAssetTagsCount();
192            }
193    
194            /**
195            * Updates the asset tag in the database. Also notifies the appropriate model listeners.
196            *
197            * @param assetTag the asset tag to update
198            * @return the asset tag that was updated
199            * @throws SystemException if a system exception occurred
200            */
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                    return _assetTagLocalService.updateAssetTag(assetTag);
205            }
206    
207            /**
208            * Updates the asset tag in the database. Also notifies the appropriate model listeners.
209            *
210            * @param assetTag the asset tag to update
211            * @param merge whether to merge the asset tag with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
212            * @return the asset tag that was updated
213            * @throws SystemException if a system exception occurred
214            */
215            public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
216                    com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
217                    throws com.liferay.portal.kernel.exception.SystemException {
218                    return _assetTagLocalService.updateAssetTag(assetTag, merge);
219            }
220    
221            public com.liferay.portlet.asset.model.AssetTag addTag(long userId,
222                    java.lang.String name, java.lang.String[] tagProperties,
223                    com.liferay.portal.service.ServiceContext serviceContext)
224                    throws com.liferay.portal.kernel.exception.PortalException,
225                            com.liferay.portal.kernel.exception.SystemException {
226                    return _assetTagLocalService.addTag(userId, name, tagProperties,
227                            serviceContext);
228            }
229    
230            public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
231                    boolean addCommunityPermissions, boolean addGuestPermissions)
232                    throws com.liferay.portal.kernel.exception.PortalException,
233                            com.liferay.portal.kernel.exception.SystemException {
234                    _assetTagLocalService.addTagResources(tag, addCommunityPermissions,
235                            addGuestPermissions);
236            }
237    
238            public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
239                    java.lang.String[] communityPermissions,
240                    java.lang.String[] guestPermissions)
241                    throws com.liferay.portal.kernel.exception.PortalException,
242                            com.liferay.portal.kernel.exception.SystemException {
243                    _assetTagLocalService.addTagResources(tag, communityPermissions,
244                            guestPermissions);
245            }
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                    _assetTagLocalService.checkTags(userId, groupId, names);
251            }
252    
253            public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
254                    long tagId, long classNameId)
255                    throws com.liferay.portal.kernel.exception.PortalException,
256                            com.liferay.portal.kernel.exception.SystemException {
257                    return _assetTagLocalService.decrementAssetCount(tagId, classNameId);
258            }
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                    _assetTagLocalService.deleteTag(tag);
264            }
265    
266            public void deleteTag(long tagId)
267                    throws com.liferay.portal.kernel.exception.PortalException,
268                            com.liferay.portal.kernel.exception.SystemException {
269                    _assetTagLocalService.deleteTag(tagId);
270            }
271    
272            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
273                    long entryId)
274                    throws com.liferay.portal.kernel.exception.SystemException {
275                    return _assetTagLocalService.getEntryTags(entryId);
276            }
277    
278            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
279                    long groupId)
280                    throws com.liferay.portal.kernel.exception.SystemException {
281                    return _assetTagLocalService.getGroupTags(groupId);
282            }
283    
284            public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException {
287                    return _assetTagLocalService.getTag(tagId);
288            }
289    
290            public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
291                    java.lang.String name)
292                    throws com.liferay.portal.kernel.exception.PortalException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    return _assetTagLocalService.getTag(groupId, name);
295            }
296    
297            public long[] getTagIds(long groupId, java.lang.String[] names)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException {
300                    return _assetTagLocalService.getTagIds(groupId, names);
301            }
302    
303            public java.lang.String[] getTagNames()
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    return _assetTagLocalService.getTagNames();
306            }
307    
308            public java.lang.String[] getTagNames(long classNameId, long classPK)
309                    throws com.liferay.portal.kernel.exception.SystemException {
310                    return _assetTagLocalService.getTagNames(classNameId, classPK);
311            }
312    
313            public java.lang.String[] getTagNames(java.lang.String className,
314                    long classPK)
315                    throws com.liferay.portal.kernel.exception.SystemException {
316                    return _assetTagLocalService.getTagNames(className, classPK);
317            }
318    
319            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    return _assetTagLocalService.getTags();
322            }
323    
324            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
325                    long classNameId, long classPK)
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    return _assetTagLocalService.getTags(classNameId, classPK);
328            }
329    
330            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
331                    long groupId, long classNameId, java.lang.String name)
332                    throws com.liferay.portal.kernel.exception.SystemException {
333                    return _assetTagLocalService.getTags(groupId, classNameId, name);
334            }
335    
336            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
337                    long groupId, long classNameId, java.lang.String name, int start,
338                    int end) throws com.liferay.portal.kernel.exception.SystemException {
339                    return _assetTagLocalService.getTags(groupId, classNameId, name, start,
340                            end);
341            }
342    
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                    return _assetTagLocalService.getTags(className, classPK);
347            }
348    
349            public int getTagsSize(long groupId, long classNameId, java.lang.String name)
350                    throws com.liferay.portal.kernel.exception.SystemException {
351                    return _assetTagLocalService.getTagsSize(groupId, classNameId, name);
352            }
353    
354            public boolean hasTag(long groupId, java.lang.String name)
355                    throws com.liferay.portal.kernel.exception.PortalException,
356                            com.liferay.portal.kernel.exception.SystemException {
357                    return _assetTagLocalService.hasTag(groupId, name);
358            }
359    
360            public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
361                    long tagId, long classNameId)
362                    throws com.liferay.portal.kernel.exception.PortalException,
363                            com.liferay.portal.kernel.exception.SystemException {
364                    return _assetTagLocalService.incrementAssetCount(tagId, classNameId);
365            }
366    
367            public void mergeTags(long fromTagId, long toTagId)
368                    throws com.liferay.portal.kernel.exception.PortalException,
369                            com.liferay.portal.kernel.exception.SystemException {
370                    _assetTagLocalService.mergeTags(fromTagId, toTagId);
371            }
372    
373            public com.liferay.portal.kernel.json.JSONArray search(long groupId,
374                    java.lang.String name, java.lang.String[] tagProperties, int start,
375                    int end) throws com.liferay.portal.kernel.exception.SystemException {
376                    return _assetTagLocalService.search(groupId, name, tagProperties,
377                            start, end);
378            }
379    
380            public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
381                    long tagId, java.lang.String name, java.lang.String[] tagProperties,
382                    com.liferay.portal.service.ServiceContext serviceContext)
383                    throws com.liferay.portal.kernel.exception.PortalException,
384                            com.liferay.portal.kernel.exception.SystemException {
385                    return _assetTagLocalService.updateTag(userId, tagId, name,
386                            tagProperties, serviceContext);
387            }
388    
389            public AssetTagLocalService getWrappedAssetTagLocalService() {
390                    return _assetTagLocalService;
391            }
392    
393            private AssetTagLocalService _assetTagLocalService;
394    }