001    /**
002     * Copyright (c) 2000-2011 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            * @throws PortalException if a asset tag with the primary key could not be found
063            * @throws SystemException if a system exception occurred
064            */
065            public void deleteAssetTag(long tagId)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    _assetTagLocalService.deleteAssetTag(tagId);
069            }
070    
071            /**
072            * Deletes the asset tag from the database. Also notifies the appropriate model listeners.
073            *
074            * @param assetTag the asset tag
075            * @throws SystemException if a system exception occurred
076            */
077            public void deleteAssetTag(
078                    com.liferay.portlet.asset.model.AssetTag assetTag)
079                    throws com.liferay.portal.kernel.exception.SystemException {
080                    _assetTagLocalService.deleteAssetTag(assetTag);
081            }
082    
083            /**
084            * Performs a dynamic query on the database and returns the matching rows.
085            *
086            * @param dynamicQuery the dynamic query
087            * @return the matching rows
088            * @throws SystemException if a system exception occurred
089            */
090            @SuppressWarnings("rawtypes")
091            public java.util.List dynamicQuery(
092                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
093                    throws com.liferay.portal.kernel.exception.SystemException {
094                    return _assetTagLocalService.dynamicQuery(dynamicQuery);
095            }
096    
097            /**
098            * Performs a dynamic query on the database and returns a range of the matching rows.
099            *
100            * <p>
101            * 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.
102            * </p>
103            *
104            * @param dynamicQuery the dynamic query
105            * @param start the lower bound of the range of model instances
106            * @param end the upper bound of the range of model instances (not inclusive)
107            * @return the range of matching rows
108            * @throws SystemException if a system exception occurred
109            */
110            @SuppressWarnings("rawtypes")
111            public java.util.List dynamicQuery(
112                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
113                    int end) throws com.liferay.portal.kernel.exception.SystemException {
114                    return _assetTagLocalService.dynamicQuery(dynamicQuery, start, end);
115            }
116    
117            /**
118            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
119            *
120            * <p>
121            * 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.
122            * </p>
123            *
124            * @param dynamicQuery the dynamic query
125            * @param start the lower bound of the range of model instances
126            * @param end the upper bound of the range of model instances (not inclusive)
127            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
128            * @return the ordered range of matching rows
129            * @throws SystemException if a system exception occurred
130            */
131            @SuppressWarnings("rawtypes")
132            public java.util.List dynamicQuery(
133                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
134                    int end,
135                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return _assetTagLocalService.dynamicQuery(dynamicQuery, start, end,
138                            orderByComparator);
139            }
140    
141            /**
142            * Returns the number of rows that match the dynamic query.
143            *
144            * @param dynamicQuery the dynamic query
145            * @return the number of rows that match the dynamic query
146            * @throws SystemException if a system exception occurred
147            */
148            public long dynamicQueryCount(
149                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return _assetTagLocalService.dynamicQueryCount(dynamicQuery);
152            }
153    
154            public com.liferay.portlet.asset.model.AssetTag fetchAssetTag(long tagId)
155                    throws com.liferay.portal.kernel.exception.SystemException {
156                    return _assetTagLocalService.fetchAssetTag(tagId);
157            }
158    
159            /**
160            * Returns the asset tag with the primary key.
161            *
162            * @param tagId the primary key of the asset tag
163            * @return the asset tag
164            * @throws PortalException if a asset tag with the primary key could not be found
165            * @throws SystemException if a system exception occurred
166            */
167            public com.liferay.portlet.asset.model.AssetTag getAssetTag(long tagId)
168                    throws com.liferay.portal.kernel.exception.PortalException,
169                            com.liferay.portal.kernel.exception.SystemException {
170                    return _assetTagLocalService.getAssetTag(tagId);
171            }
172    
173            public com.liferay.portal.model.PersistedModel getPersistedModel(
174                    java.io.Serializable primaryKeyObj)
175                    throws com.liferay.portal.kernel.exception.PortalException,
176                            com.liferay.portal.kernel.exception.SystemException {
177                    return _assetTagLocalService.getPersistedModel(primaryKeyObj);
178            }
179    
180            /**
181            * Returns a range of all the asset tags.
182            *
183            * <p>
184            * 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.
185            * </p>
186            *
187            * @param start the lower bound of the range of asset tags
188            * @param end the upper bound of the range of asset tags (not inclusive)
189            * @return the range of asset tags
190            * @throws SystemException if a system exception occurred
191            */
192            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
193                    int start, int end)
194                    throws com.liferay.portal.kernel.exception.SystemException {
195                    return _assetTagLocalService.getAssetTags(start, end);
196            }
197    
198            /**
199            * Returns the number of asset tags.
200            *
201            * @return the number of asset tags
202            * @throws SystemException if a system exception occurred
203            */
204            public int getAssetTagsCount()
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return _assetTagLocalService.getAssetTagsCount();
207            }
208    
209            /**
210            * Updates the asset tag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
211            *
212            * @param assetTag the asset tag
213            * @return the asset tag that was updated
214            * @throws SystemException if a system exception occurred
215            */
216            public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
217                    com.liferay.portlet.asset.model.AssetTag assetTag)
218                    throws com.liferay.portal.kernel.exception.SystemException {
219                    return _assetTagLocalService.updateAssetTag(assetTag);
220            }
221    
222            /**
223            * Updates the asset tag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
224            *
225            * @param assetTag the asset tag
226            * @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.
227            * @return the asset tag that was updated
228            * @throws SystemException if a system exception occurred
229            */
230            public com.liferay.portlet.asset.model.AssetTag updateAssetTag(
231                    com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
232                    throws com.liferay.portal.kernel.exception.SystemException {
233                    return _assetTagLocalService.updateAssetTag(assetTag, merge);
234            }
235    
236            /**
237            * Returns the Spring bean ID for this bean.
238            *
239            * @return the Spring bean ID for this bean
240            */
241            public java.lang.String getBeanIdentifier() {
242                    return _assetTagLocalService.getBeanIdentifier();
243            }
244    
245            /**
246            * Sets the Spring bean ID for this bean.
247            *
248            * @param beanIdentifier the Spring bean ID for this bean
249            */
250            public void setBeanIdentifier(java.lang.String beanIdentifier) {
251                    _assetTagLocalService.setBeanIdentifier(beanIdentifier);
252            }
253    
254            public com.liferay.portlet.asset.model.AssetTag addTag(long userId,
255                    java.lang.String name, java.lang.String[] tagProperties,
256                    com.liferay.portal.service.ServiceContext serviceContext)
257                    throws com.liferay.portal.kernel.exception.PortalException,
258                            com.liferay.portal.kernel.exception.SystemException {
259                    return _assetTagLocalService.addTag(userId, name, tagProperties,
260                            serviceContext);
261            }
262    
263            public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
264                    boolean addGroupPermissions, boolean addGuestPermissions)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException {
267                    _assetTagLocalService.addTagResources(tag, addGroupPermissions,
268                            addGuestPermissions);
269            }
270    
271            public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
272                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
273                    throws com.liferay.portal.kernel.exception.PortalException,
274                            com.liferay.portal.kernel.exception.SystemException {
275                    _assetTagLocalService.addTagResources(tag, groupPermissions,
276                            guestPermissions);
277            }
278    
279            public void checkTags(long userId, long groupId, java.lang.String[] names)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    _assetTagLocalService.checkTags(userId, groupId, names);
283            }
284    
285            public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
286                    long tagId, long classNameId)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    return _assetTagLocalService.decrementAssetCount(tagId, classNameId);
290            }
291    
292            public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    _assetTagLocalService.deleteTag(tag);
296            }
297    
298            public void deleteTag(long tagId)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    _assetTagLocalService.deleteTag(tagId);
302            }
303    
304            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
305                    long entryId)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    return _assetTagLocalService.getEntryTags(entryId);
308            }
309    
310            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
311                    long[] groupIds)
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    return _assetTagLocalService.getGroupsTags(groupIds);
314            }
315    
316            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
317                    long groupId)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    return _assetTagLocalService.getGroupTags(groupId);
320            }
321    
322            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
323                    long groupId, int start, int end)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return _assetTagLocalService.getGroupTags(groupId, start, end);
326            }
327    
328            public int getGroupTagsCount(long groupId)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    return _assetTagLocalService.getGroupTagsCount(groupId);
331            }
332    
333            public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
334                    throws com.liferay.portal.kernel.exception.PortalException,
335                            com.liferay.portal.kernel.exception.SystemException {
336                    return _assetTagLocalService.getTag(tagId);
337            }
338    
339            public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
340                    java.lang.String name)
341                    throws com.liferay.portal.kernel.exception.PortalException,
342                            com.liferay.portal.kernel.exception.SystemException {
343                    return _assetTagLocalService.getTag(groupId, name);
344            }
345    
346            public long[] getTagIds(long groupId, java.lang.String[] names)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    return _assetTagLocalService.getTagIds(groupId, names);
350            }
351    
352            public long[] getTagIds(long[] groupIds, java.lang.String[] names)
353                    throws com.liferay.portal.kernel.exception.PortalException,
354                            com.liferay.portal.kernel.exception.SystemException {
355                    return _assetTagLocalService.getTagIds(groupIds, names);
356            }
357    
358            public java.lang.String[] getTagNames()
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return _assetTagLocalService.getTagNames();
361            }
362    
363            public java.lang.String[] getTagNames(long classNameId, long classPK)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return _assetTagLocalService.getTagNames(classNameId, classPK);
366            }
367    
368            public java.lang.String[] getTagNames(java.lang.String className,
369                    long classPK)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return _assetTagLocalService.getTagNames(className, classPK);
372            }
373    
374            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    return _assetTagLocalService.getTags();
377            }
378    
379            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
380                    long classNameId, long classPK)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return _assetTagLocalService.getTags(classNameId, classPK);
383            }
384    
385            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
386                    long groupId, long classNameId, java.lang.String name)
387                    throws com.liferay.portal.kernel.exception.SystemException {
388                    return _assetTagLocalService.getTags(groupId, classNameId, name);
389            }
390    
391            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
392                    long groupId, long classNameId, java.lang.String name, int start,
393                    int end) throws com.liferay.portal.kernel.exception.SystemException {
394                    return _assetTagLocalService.getTags(groupId, classNameId, name, start,
395                            end);
396            }
397    
398            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
399                    long groupId, java.lang.String socialActivityCounterName, int offset,
400                    boolean includeCurrentPeriod)
401                    throws com.liferay.portal.kernel.exception.SystemException {
402                    return _assetTagLocalService.getTags(groupId,
403                            socialActivityCounterName, offset, includeCurrentPeriod);
404            }
405    
406            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
407                    long groupId, java.lang.String socialActivityCounterName,
408                    int startPeriod, int endPeriod)
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    return _assetTagLocalService.getTags(groupId,
411                            socialActivityCounterName, startPeriod, endPeriod);
412            }
413    
414            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
415                    java.lang.String className, long classPK)
416                    throws com.liferay.portal.kernel.exception.SystemException {
417                    return _assetTagLocalService.getTags(className, classPK);
418            }
419    
420            public int getTagsSize(long groupId, long classNameId, java.lang.String name)
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    return _assetTagLocalService.getTagsSize(groupId, classNameId, name);
423            }
424    
425            public boolean hasTag(long groupId, java.lang.String name)
426                    throws com.liferay.portal.kernel.exception.PortalException,
427                            com.liferay.portal.kernel.exception.SystemException {
428                    return _assetTagLocalService.hasTag(groupId, name);
429            }
430    
431            public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
432                    long tagId, long classNameId)
433                    throws com.liferay.portal.kernel.exception.PortalException,
434                            com.liferay.portal.kernel.exception.SystemException {
435                    return _assetTagLocalService.incrementAssetCount(tagId, classNameId);
436            }
437    
438            public void mergeTags(long fromTagId, long toTagId,
439                    boolean overrideProperties)
440                    throws com.liferay.portal.kernel.exception.PortalException,
441                            com.liferay.portal.kernel.exception.SystemException {
442                    _assetTagLocalService.mergeTags(fromTagId, toTagId, overrideProperties);
443            }
444    
445            public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
446                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
447                    int start, int end)
448                    throws com.liferay.portal.kernel.exception.SystemException {
449                    return _assetTagLocalService.search(groupId, name, tagProperties,
450                            start, end);
451            }
452    
453            public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
454                    long tagId, java.lang.String name, java.lang.String[] tagProperties,
455                    com.liferay.portal.service.ServiceContext serviceContext)
456                    throws com.liferay.portal.kernel.exception.PortalException,
457                            com.liferay.portal.kernel.exception.SystemException {
458                    return _assetTagLocalService.updateTag(userId, tagId, name,
459                            tagProperties, serviceContext);
460            }
461    
462            /**
463             * @deprecated Renamed to {@link #getWrappedService}
464             */
465            public AssetTagLocalService getWrappedAssetTagLocalService() {
466                    return _assetTagLocalService;
467            }
468    
469            /**
470             * @deprecated Renamed to {@link #setWrappedService}
471             */
472            public void setWrappedAssetTagLocalService(
473                    AssetTagLocalService assetTagLocalService) {
474                    _assetTagLocalService = assetTagLocalService;
475            }
476    
477            public AssetTagLocalService getWrappedService() {
478                    return _assetTagLocalService;
479            }
480    
481            public void setWrappedService(AssetTagLocalService assetTagLocalService) {
482                    _assetTagLocalService = assetTagLocalService;
483            }
484    
485            private AssetTagLocalService _assetTagLocalService;
486    }