001    /**
002     * Copyright (c) 2000-2011 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
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
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
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
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
102            * @param start the lower bound of the range of model instances
103            * @param end the upper bound of the range of model instances (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
122            * @param start the lower bound of the range of model instances
123            * @param end the upper bound of the range of model instances (not inclusive)
124            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns the number of rows that match the dynamic query.
140            *
141            * @param dynamicQuery the dynamic query
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            * Returns the asset tag with the primary key.
153            *
154            * @param tagId the primary key of the asset tag
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            public com.liferay.portal.model.PersistedModel getPersistedModel(
166                    java.io.Serializable primaryKeyObj)
167                    throws com.liferay.portal.kernel.exception.PortalException,
168                            com.liferay.portal.kernel.exception.SystemException {
169                    return _assetTagLocalService.getPersistedModel(primaryKeyObj);
170            }
171    
172            /**
173            * Returns a range of all the asset tags.
174            *
175            * <p>
176            * 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.
177            * </p>
178            *
179            * @param start the lower bound of the range of asset tags
180            * @param end the upper bound of the range of asset tags (not inclusive)
181            * @return the range of asset tags
182            * @throws SystemException if a system exception occurred
183            */
184            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
185                    int start, int end)
186                    throws com.liferay.portal.kernel.exception.SystemException {
187                    return _assetTagLocalService.getAssetTags(start, end);
188            }
189    
190            /**
191            * Returns the number of asset tags.
192            *
193            * @return the number of asset tags
194            * @throws SystemException if a system exception occurred
195            */
196            public int getAssetTagsCount()
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return _assetTagLocalService.getAssetTagsCount();
199            }
200    
201            /**
202            * Updates the asset tag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
203            *
204            * @param assetTag the asset tag
205            * @return the asset tag that was updated
206            * @throws SystemException if a system exception occurred
207            */
208            public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
209                    com.liferay.portlet.asset.model.AssetTag assetTag)
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return _assetTagLocalService.updateAssetTag(assetTag);
212            }
213    
214            /**
215            * Updates the asset tag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
216            *
217            * @param assetTag the asset tag
218            * @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.
219            * @return the asset tag that was updated
220            * @throws SystemException if a system exception occurred
221            */
222            public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
223                    com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
224                    throws com.liferay.portal.kernel.exception.SystemException {
225                    return _assetTagLocalService.updateAssetTag(assetTag, merge);
226            }
227    
228            /**
229            * Returns the Spring bean ID for this bean.
230            *
231            * @return the Spring bean ID for this bean
232            */
233            public java.lang.String getBeanIdentifier() {
234                    return _assetTagLocalService.getBeanIdentifier();
235            }
236    
237            /**
238            * Sets the Spring bean ID for this bean.
239            *
240            * @param beanIdentifier the Spring bean ID for this bean
241            */
242            public void setBeanIdentifier(java.lang.String beanIdentifier) {
243                    _assetTagLocalService.setBeanIdentifier(beanIdentifier);
244            }
245    
246            public com.liferay.portlet.asset.model.AssetTag addTag(long userId,
247                    java.lang.String name, java.lang.String[] tagProperties,
248                    com.liferay.portal.service.ServiceContext serviceContext)
249                    throws com.liferay.portal.kernel.exception.PortalException,
250                            com.liferay.portal.kernel.exception.SystemException {
251                    return _assetTagLocalService.addTag(userId, name, tagProperties,
252                            serviceContext);
253            }
254    
255            public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
256                    boolean addGroupPermissions, boolean addGuestPermissions)
257                    throws com.liferay.portal.kernel.exception.PortalException,
258                            com.liferay.portal.kernel.exception.SystemException {
259                    _assetTagLocalService.addTagResources(tag, addGroupPermissions,
260                            addGuestPermissions);
261            }
262    
263            public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
264                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException {
267                    _assetTagLocalService.addTagResources(tag, groupPermissions,
268                            guestPermissions);
269            }
270    
271            public void checkTags(long userId, long groupId, java.lang.String[] names)
272                    throws com.liferay.portal.kernel.exception.PortalException,
273                            com.liferay.portal.kernel.exception.SystemException {
274                    _assetTagLocalService.checkTags(userId, groupId, names);
275            }
276    
277            public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
278                    long tagId, long classNameId)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    return _assetTagLocalService.decrementAssetCount(tagId, classNameId);
282            }
283    
284            public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException {
287                    _assetTagLocalService.deleteTag(tag);
288            }
289    
290            public void deleteTag(long tagId)
291                    throws com.liferay.portal.kernel.exception.PortalException,
292                            com.liferay.portal.kernel.exception.SystemException {
293                    _assetTagLocalService.deleteTag(tagId);
294            }
295    
296            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
297                    long entryId)
298                    throws com.liferay.portal.kernel.exception.SystemException {
299                    return _assetTagLocalService.getEntryTags(entryId);
300            }
301    
302            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
303                    long[] groupIds)
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    return _assetTagLocalService.getGroupsTags(groupIds);
306            }
307    
308            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
309                    long groupId)
310                    throws com.liferay.portal.kernel.exception.SystemException {
311                    return _assetTagLocalService.getGroupTags(groupId);
312            }
313    
314            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
315                    long groupId, int start, int end)
316                    throws com.liferay.portal.kernel.exception.SystemException {
317                    return _assetTagLocalService.getGroupTags(groupId, start, end);
318            }
319    
320            public int getGroupTagsCount(long groupId)
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    return _assetTagLocalService.getGroupTagsCount(groupId);
323            }
324    
325            public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException {
328                    return _assetTagLocalService.getTag(tagId);
329            }
330    
331            public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
332                    java.lang.String name)
333                    throws com.liferay.portal.kernel.exception.PortalException,
334                            com.liferay.portal.kernel.exception.SystemException {
335                    return _assetTagLocalService.getTag(groupId, name);
336            }
337    
338            public long[] getTagIds(long groupId, java.lang.String[] names)
339                    throws com.liferay.portal.kernel.exception.PortalException,
340                            com.liferay.portal.kernel.exception.SystemException {
341                    return _assetTagLocalService.getTagIds(groupId, names);
342            }
343    
344            public long[] getTagIds(long[] groupIds, java.lang.String[] names)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException {
347                    return _assetTagLocalService.getTagIds(groupIds, names);
348            }
349    
350            public java.lang.String[] getTagNames()
351                    throws com.liferay.portal.kernel.exception.SystemException {
352                    return _assetTagLocalService.getTagNames();
353            }
354    
355            public java.lang.String[] getTagNames(long classNameId, long classPK)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return _assetTagLocalService.getTagNames(classNameId, classPK);
358            }
359    
360            public java.lang.String[] getTagNames(java.lang.String className,
361                    long classPK)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    return _assetTagLocalService.getTagNames(className, classPK);
364            }
365    
366            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return _assetTagLocalService.getTags();
369            }
370    
371            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
372                    long classNameId, long classPK)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return _assetTagLocalService.getTags(classNameId, classPK);
375            }
376    
377            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
378                    long groupId, long classNameId, java.lang.String name)
379                    throws com.liferay.portal.kernel.exception.SystemException {
380                    return _assetTagLocalService.getTags(groupId, classNameId, name);
381            }
382    
383            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
384                    long groupId, long classNameId, java.lang.String name, int start,
385                    int end) throws com.liferay.portal.kernel.exception.SystemException {
386                    return _assetTagLocalService.getTags(groupId, classNameId, name, start,
387                            end);
388            }
389    
390            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
391                    java.lang.String className, long classPK)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return _assetTagLocalService.getTags(className, classPK);
394            }
395    
396            public int getTagsSize(long groupId, long classNameId, java.lang.String name)
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return _assetTagLocalService.getTagsSize(groupId, classNameId, name);
399            }
400    
401            public boolean hasTag(long groupId, java.lang.String name)
402                    throws com.liferay.portal.kernel.exception.PortalException,
403                            com.liferay.portal.kernel.exception.SystemException {
404                    return _assetTagLocalService.hasTag(groupId, name);
405            }
406    
407            public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
408                    long tagId, long classNameId)
409                    throws com.liferay.portal.kernel.exception.PortalException,
410                            com.liferay.portal.kernel.exception.SystemException {
411                    return _assetTagLocalService.incrementAssetCount(tagId, classNameId);
412            }
413    
414            public void mergeTags(long fromTagId, long toTagId,
415                    boolean overrideProperties)
416                    throws com.liferay.portal.kernel.exception.PortalException,
417                            com.liferay.portal.kernel.exception.SystemException {
418                    _assetTagLocalService.mergeTags(fromTagId, toTagId, overrideProperties);
419            }
420    
421            public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
422                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
423                    int start, int end)
424                    throws com.liferay.portal.kernel.exception.SystemException {
425                    return _assetTagLocalService.search(groupId, name, tagProperties,
426                            start, end);
427            }
428    
429            public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
430                    long tagId, java.lang.String name, java.lang.String[] tagProperties,
431                    com.liferay.portal.service.ServiceContext serviceContext)
432                    throws com.liferay.portal.kernel.exception.PortalException,
433                            com.liferay.portal.kernel.exception.SystemException {
434                    return _assetTagLocalService.updateTag(userId, tagId, name,
435                            tagProperties, serviceContext);
436            }
437    
438            public AssetTagLocalService getWrappedAssetTagLocalService() {
439                    return _assetTagLocalService;
440            }
441    
442            public void setWrappedAssetTagLocalService(
443                    AssetTagLocalService assetTagLocalService) {
444                    _assetTagLocalService = assetTagLocalService;
445            }
446    
447            private AssetTagLocalService _assetTagLocalService;
448    }