001    /**
002     * Copyright (c) 2000-2012 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 com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link AssetTagLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       AssetTagLocalService
026     * @generated
027     */
028    public class AssetTagLocalServiceWrapper implements AssetTagLocalService,
029            ServiceWrapper<AssetTagLocalService> {
030            public AssetTagLocalServiceWrapper(
031                    AssetTagLocalService assetTagLocalService) {
032                    _assetTagLocalService = assetTagLocalService;
033            }
034    
035            /**
036            * Adds the asset tag to the database. Also notifies the appropriate model listeners.
037            *
038            * @param assetTag the asset tag
039            * @return the asset tag that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.asset.model.AssetTag addAssetTag(
043                    com.liferay.portlet.asset.model.AssetTag assetTag)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _assetTagLocalService.addAssetTag(assetTag);
046            }
047    
048            /**
049            * Creates a new asset tag with the primary key. Does not add the asset tag to the database.
050            *
051            * @param tagId the primary key for the new asset tag
052            * @return the new asset tag
053            */
054            public com.liferay.portlet.asset.model.AssetTag createAssetTag(long tagId) {
055                    return _assetTagLocalService.createAssetTag(tagId);
056            }
057    
058            /**
059            * Deletes the asset tag with the primary key from the database. Also notifies the appropriate model listeners.
060            *
061            * @param tagId the primary key of the asset tag
062            * @return the asset tag that was removed
063            * @throws PortalException if a asset tag with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            public com.liferay.portlet.asset.model.AssetTag deleteAssetTag(long tagId)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    return _assetTagLocalService.deleteAssetTag(tagId);
070            }
071    
072            /**
073            * Deletes the asset tag from the database. Also notifies the appropriate model listeners.
074            *
075            * @param assetTag the asset tag
076            * @return the asset tag that was removed
077            * @throws SystemException if a system exception occurred
078            */
079            public com.liferay.portlet.asset.model.AssetTag deleteAssetTag(
080                    com.liferay.portlet.asset.model.AssetTag assetTag)
081                    throws com.liferay.portal.kernel.exception.SystemException {
082                    return _assetTagLocalService.deleteAssetTag(assetTag);
083            }
084    
085            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
086                    return _assetTagLocalService.dynamicQuery();
087            }
088    
089            /**
090            * Performs a dynamic query on the database and returns the matching rows.
091            *
092            * @param dynamicQuery the dynamic query
093            * @return the matching rows
094            * @throws SystemException if a system exception occurred
095            */
096            @SuppressWarnings("rawtypes")
097            public java.util.List dynamicQuery(
098                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
099                    throws com.liferay.portal.kernel.exception.SystemException {
100                    return _assetTagLocalService.dynamicQuery(dynamicQuery);
101            }
102    
103            /**
104            * Performs a dynamic query on the database and returns a range of the matching rows.
105            *
106            * <p>
107            * 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.
108            * </p>
109            *
110            * @param dynamicQuery the dynamic query
111            * @param start the lower bound of the range of model instances
112            * @param end the upper bound of the range of model instances (not inclusive)
113            * @return the range of matching rows
114            * @throws SystemException if a system exception occurred
115            */
116            @SuppressWarnings("rawtypes")
117            public java.util.List dynamicQuery(
118                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
119                    int end) throws com.liferay.portal.kernel.exception.SystemException {
120                    return _assetTagLocalService.dynamicQuery(dynamicQuery, start, end);
121            }
122    
123            /**
124            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
125            *
126            * <p>
127            * 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.
128            * </p>
129            *
130            * @param dynamicQuery the dynamic query
131            * @param start the lower bound of the range of model instances
132            * @param end the upper bound of the range of model instances (not inclusive)
133            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
134            * @return the ordered range of matching rows
135            * @throws SystemException if a system exception occurred
136            */
137            @SuppressWarnings("rawtypes")
138            public java.util.List dynamicQuery(
139                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
140                    int end,
141                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142                    throws com.liferay.portal.kernel.exception.SystemException {
143                    return _assetTagLocalService.dynamicQuery(dynamicQuery, start, end,
144                            orderByComparator);
145            }
146    
147            /**
148            * Returns the number of rows that match the dynamic query.
149            *
150            * @param dynamicQuery the dynamic query
151            * @return the number of rows that match the dynamic query
152            * @throws SystemException if a system exception occurred
153            */
154            public long dynamicQueryCount(
155                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
156                    throws com.liferay.portal.kernel.exception.SystemException {
157                    return _assetTagLocalService.dynamicQueryCount(dynamicQuery);
158            }
159    
160            public com.liferay.portlet.asset.model.AssetTag fetchAssetTag(long tagId)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return _assetTagLocalService.fetchAssetTag(tagId);
163            }
164    
165            /**
166            * Returns the asset tag with the primary key.
167            *
168            * @param tagId the primary key of the asset tag
169            * @return the asset tag
170            * @throws PortalException if a asset tag with the primary key could not be found
171            * @throws SystemException if a system exception occurred
172            */
173            public com.liferay.portlet.asset.model.AssetTag getAssetTag(long tagId)
174                    throws com.liferay.portal.kernel.exception.PortalException,
175                            com.liferay.portal.kernel.exception.SystemException {
176                    return _assetTagLocalService.getAssetTag(tagId);
177            }
178    
179            public com.liferay.portal.model.PersistedModel getPersistedModel(
180                    java.io.Serializable primaryKeyObj)
181                    throws com.liferay.portal.kernel.exception.PortalException,
182                            com.liferay.portal.kernel.exception.SystemException {
183                    return _assetTagLocalService.getPersistedModel(primaryKeyObj);
184            }
185    
186            /**
187            * Returns a range of all the asset tags.
188            *
189            * <p>
190            * 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.
191            * </p>
192            *
193            * @param start the lower bound of the range of asset tags
194            * @param end the upper bound of the range of asset tags (not inclusive)
195            * @return the range of asset tags
196            * @throws SystemException if a system exception occurred
197            */
198            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
199                    int start, int end)
200                    throws com.liferay.portal.kernel.exception.SystemException {
201                    return _assetTagLocalService.getAssetTags(start, end);
202            }
203    
204            /**
205            * Returns the number of asset tags.
206            *
207            * @return the number of asset tags
208            * @throws SystemException if a system exception occurred
209            */
210            public int getAssetTagsCount()
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return _assetTagLocalService.getAssetTagsCount();
213            }
214    
215            /**
216            * Updates the asset tag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
217            *
218            * @param assetTag the asset tag
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)
224                    throws com.liferay.portal.kernel.exception.SystemException {
225                    return _assetTagLocalService.updateAssetTag(assetTag);
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 java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterOffsetTags(
326                    long groupId, java.lang.String socialActivityCounterName,
327                    int startOffset, int endOffset)
328                    throws com.liferay.portal.kernel.exception.SystemException {
329                    return _assetTagLocalService.getSocialActivityCounterOffsetTags(groupId,
330                            socialActivityCounterName, startOffset, endOffset);
331            }
332    
333            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterPeriodTags(
334                    long groupId, java.lang.String socialActivityCounterName,
335                    int startPeriod, int endPeriod)
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    return _assetTagLocalService.getSocialActivityCounterPeriodTags(groupId,
338                            socialActivityCounterName, startPeriod, endPeriod);
339            }
340    
341            public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException {
344                    return _assetTagLocalService.getTag(tagId);
345            }
346    
347            public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
348                    java.lang.String name)
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException {
351                    return _assetTagLocalService.getTag(groupId, name);
352            }
353    
354            public long[] getTagIds(long groupId, java.lang.String[] names)
355                    throws com.liferay.portal.kernel.exception.PortalException,
356                            com.liferay.portal.kernel.exception.SystemException {
357                    return _assetTagLocalService.getTagIds(groupId, names);
358            }
359    
360            public long[] getTagIds(long[] groupIds, java.lang.String name)
361                    throws com.liferay.portal.kernel.exception.PortalException,
362                            com.liferay.portal.kernel.exception.SystemException {
363                    return _assetTagLocalService.getTagIds(groupIds, name);
364            }
365    
366            public long[] getTagIds(long[] groupIds, java.lang.String[] names)
367                    throws com.liferay.portal.kernel.exception.PortalException,
368                            com.liferay.portal.kernel.exception.SystemException {
369                    return _assetTagLocalService.getTagIds(groupIds, names);
370            }
371    
372            public java.lang.String[] getTagNames()
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return _assetTagLocalService.getTagNames();
375            }
376    
377            public java.lang.String[] getTagNames(long classNameId, long classPK)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return _assetTagLocalService.getTagNames(classNameId, classPK);
380            }
381    
382            public java.lang.String[] getTagNames(java.lang.String className,
383                    long classPK)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return _assetTagLocalService.getTagNames(className, classPK);
386            }
387    
388            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
389                    throws com.liferay.portal.kernel.exception.SystemException {
390                    return _assetTagLocalService.getTags();
391            }
392    
393            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
394                    long classNameId, long classPK)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    return _assetTagLocalService.getTags(classNameId, classPK);
397            }
398    
399            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
400                    long groupId, long classNameId, java.lang.String name)
401                    throws com.liferay.portal.kernel.exception.SystemException {
402                    return _assetTagLocalService.getTags(groupId, classNameId, name);
403            }
404    
405            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
406                    long groupId, long classNameId, java.lang.String name, int start,
407                    int end) throws com.liferay.portal.kernel.exception.SystemException {
408                    return _assetTagLocalService.getTags(groupId, classNameId, name, start,
409                            end);
410            }
411    
412            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
413                    java.lang.String className, long classPK)
414                    throws com.liferay.portal.kernel.exception.SystemException {
415                    return _assetTagLocalService.getTags(className, classPK);
416            }
417    
418            public int getTagsSize(long groupId, long classNameId, java.lang.String name)
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    return _assetTagLocalService.getTagsSize(groupId, classNameId, name);
421            }
422    
423            public boolean hasTag(long groupId, java.lang.String name)
424                    throws com.liferay.portal.kernel.exception.PortalException,
425                            com.liferay.portal.kernel.exception.SystemException {
426                    return _assetTagLocalService.hasTag(groupId, name);
427            }
428    
429            public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
430                    long tagId, long classNameId)
431                    throws com.liferay.portal.kernel.exception.PortalException,
432                            com.liferay.portal.kernel.exception.SystemException {
433                    return _assetTagLocalService.incrementAssetCount(tagId, classNameId);
434            }
435    
436            public void mergeTags(long fromTagId, long toTagId,
437                    boolean overrideProperties)
438                    throws com.liferay.portal.kernel.exception.PortalException,
439                            com.liferay.portal.kernel.exception.SystemException {
440                    _assetTagLocalService.mergeTags(fromTagId, toTagId, overrideProperties);
441            }
442    
443            public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
444                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
445                    int start, int end)
446                    throws com.liferay.portal.kernel.exception.SystemException {
447                    return _assetTagLocalService.search(groupId, name, tagProperties,
448                            start, end);
449            }
450    
451            public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
452                    long tagId, java.lang.String name, java.lang.String[] tagProperties,
453                    com.liferay.portal.service.ServiceContext serviceContext)
454                    throws com.liferay.portal.kernel.exception.PortalException,
455                            com.liferay.portal.kernel.exception.SystemException {
456                    return _assetTagLocalService.updateTag(userId, tagId, name,
457                            tagProperties, serviceContext);
458            }
459    
460            /**
461             * @deprecated Renamed to {@link #getWrappedService}
462             */
463            public AssetTagLocalService getWrappedAssetTagLocalService() {
464                    return _assetTagLocalService;
465            }
466    
467            /**
468             * @deprecated Renamed to {@link #setWrappedService}
469             */
470            public void setWrappedAssetTagLocalService(
471                    AssetTagLocalService assetTagLocalService) {
472                    _assetTagLocalService = assetTagLocalService;
473            }
474    
475            public AssetTagLocalService getWrappedService() {
476                    return _assetTagLocalService;
477            }
478    
479            public void setWrappedService(AssetTagLocalService assetTagLocalService) {
480                    _assetTagLocalService = assetTagLocalService;
481            }
482    
483            private AssetTagLocalService _assetTagLocalService;
484    }