001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.
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.
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.
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            * Updates the asset tag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
230            *
231            * @param assetTag the asset tag
232            * @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.
233            * @return the asset tag that was updated
234            * @throws SystemException if a system exception occurred
235            */
236            public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
237                    com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
238                    throws com.liferay.portal.kernel.exception.SystemException {
239                    return _assetTagLocalService.updateAssetTag(assetTag, merge);
240            }
241    
242            /**
243            * Returns the Spring bean ID for this bean.
244            *
245            * @return the Spring bean ID for this bean
246            */
247            public java.lang.String getBeanIdentifier() {
248                    return _assetTagLocalService.getBeanIdentifier();
249            }
250    
251            /**
252            * Sets the Spring bean ID for this bean.
253            *
254            * @param beanIdentifier the Spring bean ID for this bean
255            */
256            public void setBeanIdentifier(java.lang.String beanIdentifier) {
257                    _assetTagLocalService.setBeanIdentifier(beanIdentifier);
258            }
259    
260            public com.liferay.portlet.asset.model.AssetTag addTag(long userId,
261                    java.lang.String name, java.lang.String[] tagProperties,
262                    com.liferay.portal.service.ServiceContext serviceContext)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException {
265                    return _assetTagLocalService.addTag(userId, name, tagProperties,
266                            serviceContext);
267            }
268    
269            public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
270                    boolean addGroupPermissions, boolean addGuestPermissions)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    _assetTagLocalService.addTagResources(tag, addGroupPermissions,
274                            addGuestPermissions);
275            }
276    
277            public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
278                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    _assetTagLocalService.addTagResources(tag, groupPermissions,
282                            guestPermissions);
283            }
284    
285            public void checkTags(long userId, long groupId, java.lang.String[] names)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    _assetTagLocalService.checkTags(userId, groupId, names);
289            }
290    
291            public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
292                    long tagId, long classNameId)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    return _assetTagLocalService.decrementAssetCount(tagId, classNameId);
296            }
297    
298            public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    _assetTagLocalService.deleteTag(tag);
302            }
303    
304            public void deleteTag(long tagId)
305                    throws com.liferay.portal.kernel.exception.PortalException,
306                            com.liferay.portal.kernel.exception.SystemException {
307                    _assetTagLocalService.deleteTag(tagId);
308            }
309    
310            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
311                    long entryId)
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    return _assetTagLocalService.getEntryTags(entryId);
314            }
315    
316            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
317                    long[] groupIds)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    return _assetTagLocalService.getGroupsTags(groupIds);
320            }
321    
322            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
323                    long groupId)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return _assetTagLocalService.getGroupTags(groupId);
326            }
327    
328            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
329                    long groupId, int start, int end)
330                    throws com.liferay.portal.kernel.exception.SystemException {
331                    return _assetTagLocalService.getGroupTags(groupId, start, end);
332            }
333    
334            public int getGroupTagsCount(long groupId)
335                    throws com.liferay.portal.kernel.exception.SystemException {
336                    return _assetTagLocalService.getGroupTagsCount(groupId);
337            }
338    
339            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterOffsetTags(
340                    long groupId, java.lang.String socialActivityCounterName,
341                    int startOffset, int endOffset)
342                    throws com.liferay.portal.kernel.exception.SystemException {
343                    return _assetTagLocalService.getSocialActivityCounterOffsetTags(groupId,
344                            socialActivityCounterName, startOffset, endOffset);
345            }
346    
347            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterPeriodTags(
348                    long groupId, java.lang.String socialActivityCounterName,
349                    int startPeriod, int endPeriod)
350                    throws com.liferay.portal.kernel.exception.SystemException {
351                    return _assetTagLocalService.getSocialActivityCounterPeriodTags(groupId,
352                            socialActivityCounterName, startPeriod, endPeriod);
353            }
354    
355            public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
356                    throws com.liferay.portal.kernel.exception.PortalException,
357                            com.liferay.portal.kernel.exception.SystemException {
358                    return _assetTagLocalService.getTag(tagId);
359            }
360    
361            public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
362                    java.lang.String name)
363                    throws com.liferay.portal.kernel.exception.PortalException,
364                            com.liferay.portal.kernel.exception.SystemException {
365                    return _assetTagLocalService.getTag(groupId, name);
366            }
367    
368            public long[] getTagIds(long groupId, java.lang.String[] names)
369                    throws com.liferay.portal.kernel.exception.PortalException,
370                            com.liferay.portal.kernel.exception.SystemException {
371                    return _assetTagLocalService.getTagIds(groupId, names);
372            }
373    
374            public long[] getTagIds(long[] groupIds, java.lang.String name)
375                    throws com.liferay.portal.kernel.exception.PortalException,
376                            com.liferay.portal.kernel.exception.SystemException {
377                    return _assetTagLocalService.getTagIds(groupIds, name);
378            }
379    
380            public long[] getTagIds(long[] groupIds, java.lang.String[] names)
381                    throws com.liferay.portal.kernel.exception.PortalException,
382                            com.liferay.portal.kernel.exception.SystemException {
383                    return _assetTagLocalService.getTagIds(groupIds, names);
384            }
385    
386            public java.lang.String[] getTagNames()
387                    throws com.liferay.portal.kernel.exception.SystemException {
388                    return _assetTagLocalService.getTagNames();
389            }
390    
391            public java.lang.String[] getTagNames(long classNameId, long classPK)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return _assetTagLocalService.getTagNames(classNameId, classPK);
394            }
395    
396            public java.lang.String[] getTagNames(java.lang.String className,
397                    long classPK)
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return _assetTagLocalService.getTagNames(className, classPK);
400            }
401    
402            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
403                    throws com.liferay.portal.kernel.exception.SystemException {
404                    return _assetTagLocalService.getTags();
405            }
406    
407            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
408                    long classNameId, long classPK)
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    return _assetTagLocalService.getTags(classNameId, classPK);
411            }
412    
413            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
414                    long groupId, long classNameId, java.lang.String name)
415                    throws com.liferay.portal.kernel.exception.SystemException {
416                    return _assetTagLocalService.getTags(groupId, classNameId, name);
417            }
418    
419            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
420                    long groupId, long classNameId, java.lang.String name, int start,
421                    int end) throws com.liferay.portal.kernel.exception.SystemException {
422                    return _assetTagLocalService.getTags(groupId, classNameId, name, start,
423                            end);
424            }
425    
426            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
427                    java.lang.String className, long classPK)
428                    throws com.liferay.portal.kernel.exception.SystemException {
429                    return _assetTagLocalService.getTags(className, classPK);
430            }
431    
432            public int getTagsSize(long groupId, long classNameId, java.lang.String name)
433                    throws com.liferay.portal.kernel.exception.SystemException {
434                    return _assetTagLocalService.getTagsSize(groupId, classNameId, name);
435            }
436    
437            public boolean hasTag(long groupId, java.lang.String name)
438                    throws com.liferay.portal.kernel.exception.PortalException,
439                            com.liferay.portal.kernel.exception.SystemException {
440                    return _assetTagLocalService.hasTag(groupId, name);
441            }
442    
443            public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
444                    long tagId, long classNameId)
445                    throws com.liferay.portal.kernel.exception.PortalException,
446                            com.liferay.portal.kernel.exception.SystemException {
447                    return _assetTagLocalService.incrementAssetCount(tagId, classNameId);
448            }
449    
450            public void mergeTags(long fromTagId, long toTagId,
451                    boolean overrideProperties)
452                    throws com.liferay.portal.kernel.exception.PortalException,
453                            com.liferay.portal.kernel.exception.SystemException {
454                    _assetTagLocalService.mergeTags(fromTagId, toTagId, overrideProperties);
455            }
456    
457            public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
458                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
459                    int start, int end)
460                    throws com.liferay.portal.kernel.exception.SystemException {
461                    return _assetTagLocalService.search(groupId, name, tagProperties,
462                            start, end);
463            }
464    
465            public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
466                    long tagId, java.lang.String name, java.lang.String[] tagProperties,
467                    com.liferay.portal.service.ServiceContext serviceContext)
468                    throws com.liferay.portal.kernel.exception.PortalException,
469                            com.liferay.portal.kernel.exception.SystemException {
470                    return _assetTagLocalService.updateTag(userId, tagId, name,
471                            tagProperties, serviceContext);
472            }
473    
474            /**
475             * @deprecated Renamed to {@link #getWrappedService}
476             */
477            public AssetTagLocalService getWrappedAssetTagLocalService() {
478                    return _assetTagLocalService;
479            }
480    
481            /**
482             * @deprecated Renamed to {@link #setWrappedService}
483             */
484            public void setWrappedAssetTagLocalService(
485                    AssetTagLocalService assetTagLocalService) {
486                    _assetTagLocalService = assetTagLocalService;
487            }
488    
489            public AssetTagLocalService getWrappedService() {
490                    return _assetTagLocalService;
491            }
492    
493            public void setWrappedService(AssetTagLocalService assetTagLocalService) {
494                    _assetTagLocalService = assetTagLocalService;
495            }
496    
497            private AssetTagLocalService _assetTagLocalService;
498    }