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    /**
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 addCommunityPermissions, boolean addGuestPermissions)
257                    throws com.liferay.portal.kernel.exception.PortalException,
258                            com.liferay.portal.kernel.exception.SystemException {
259                    _assetTagLocalService.addTagResources(tag, addCommunityPermissions,
260                            addGuestPermissions);
261            }
262    
263            public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
264                    java.lang.String[] communityPermissions,
265                    java.lang.String[] guestPermissions)
266                    throws com.liferay.portal.kernel.exception.PortalException,
267                            com.liferay.portal.kernel.exception.SystemException {
268                    _assetTagLocalService.addTagResources(tag, communityPermissions,
269                            guestPermissions);
270            }
271    
272            public void checkTags(long userId, long groupId, java.lang.String[] names)
273                    throws com.liferay.portal.kernel.exception.PortalException,
274                            com.liferay.portal.kernel.exception.SystemException {
275                    _assetTagLocalService.checkTags(userId, groupId, names);
276            }
277    
278            public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(
279                    long tagId, long classNameId)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    return _assetTagLocalService.decrementAssetCount(tagId, classNameId);
283            }
284    
285            public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    _assetTagLocalService.deleteTag(tag);
289            }
290    
291            public void deleteTag(long tagId)
292                    throws com.liferay.portal.kernel.exception.PortalException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    _assetTagLocalService.deleteTag(tagId);
295            }
296    
297            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(
298                    long entryId)
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    return _assetTagLocalService.getEntryTags(entryId);
301            }
302    
303            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
304                    long[] groupIds)
305                    throws com.liferay.portal.kernel.exception.SystemException {
306                    return _assetTagLocalService.getGroupsTags(groupIds);
307            }
308    
309            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
310                    long groupId)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return _assetTagLocalService.getGroupTags(groupId);
313            }
314    
315            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
316                    long groupId, int start, int end)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    return _assetTagLocalService.getGroupTags(groupId, start, end);
319            }
320    
321            public int getGroupTagsCount(long groupId)
322                    throws com.liferay.portal.kernel.exception.SystemException {
323                    return _assetTagLocalService.getGroupTagsCount(groupId);
324            }
325    
326            public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
327                    throws com.liferay.portal.kernel.exception.PortalException,
328                            com.liferay.portal.kernel.exception.SystemException {
329                    return _assetTagLocalService.getTag(tagId);
330            }
331    
332            public com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
333                    java.lang.String name)
334                    throws com.liferay.portal.kernel.exception.PortalException,
335                            com.liferay.portal.kernel.exception.SystemException {
336                    return _assetTagLocalService.getTag(groupId, name);
337            }
338    
339            public long[] getTagIds(long groupId, java.lang.String[] names)
340                    throws com.liferay.portal.kernel.exception.PortalException,
341                            com.liferay.portal.kernel.exception.SystemException {
342                    return _assetTagLocalService.getTagIds(groupId, names);
343            }
344    
345            public long[] getTagIds(long[] groupIds, java.lang.String[] names)
346                    throws com.liferay.portal.kernel.exception.PortalException,
347                            com.liferay.portal.kernel.exception.SystemException {
348                    return _assetTagLocalService.getTagIds(groupIds, names);
349            }
350    
351            public java.lang.String[] getTagNames()
352                    throws com.liferay.portal.kernel.exception.SystemException {
353                    return _assetTagLocalService.getTagNames();
354            }
355    
356            public java.lang.String[] getTagNames(long classNameId, long classPK)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return _assetTagLocalService.getTagNames(classNameId, classPK);
359            }
360    
361            public java.lang.String[] getTagNames(java.lang.String className,
362                    long classPK)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return _assetTagLocalService.getTagNames(className, classPK);
365            }
366    
367            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return _assetTagLocalService.getTags();
370            }
371    
372            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
373                    long classNameId, long classPK)
374                    throws com.liferay.portal.kernel.exception.SystemException {
375                    return _assetTagLocalService.getTags(classNameId, classPK);
376            }
377    
378            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
379                    long groupId, long classNameId, java.lang.String name)
380                    throws com.liferay.portal.kernel.exception.SystemException {
381                    return _assetTagLocalService.getTags(groupId, classNameId, name);
382            }
383    
384            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
385                    long groupId, long classNameId, java.lang.String name, int start,
386                    int end) throws com.liferay.portal.kernel.exception.SystemException {
387                    return _assetTagLocalService.getTags(groupId, classNameId, name, start,
388                            end);
389            }
390    
391            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
392                    java.lang.String className, long classPK)
393                    throws com.liferay.portal.kernel.exception.SystemException {
394                    return _assetTagLocalService.getTags(className, classPK);
395            }
396    
397            public int getTagsSize(long groupId, long classNameId, java.lang.String name)
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return _assetTagLocalService.getTagsSize(groupId, classNameId, name);
400            }
401    
402            public boolean hasTag(long groupId, java.lang.String name)
403                    throws com.liferay.portal.kernel.exception.PortalException,
404                            com.liferay.portal.kernel.exception.SystemException {
405                    return _assetTagLocalService.hasTag(groupId, name);
406            }
407    
408            public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(
409                    long tagId, long classNameId)
410                    throws com.liferay.portal.kernel.exception.PortalException,
411                            com.liferay.portal.kernel.exception.SystemException {
412                    return _assetTagLocalService.incrementAssetCount(tagId, classNameId);
413            }
414    
415            /**
416            * @deprecated {@link #mergeTags(long, long, boolean)}
417            */
418            public void mergeTags(long fromTagId, long toTagId)
419                    throws com.liferay.portal.kernel.exception.PortalException,
420                            com.liferay.portal.kernel.exception.SystemException {
421                    _assetTagLocalService.mergeTags(fromTagId, toTagId);
422            }
423    
424            public void mergeTags(long fromTagId, long toTagId,
425                    boolean overrideProperties)
426                    throws com.liferay.portal.kernel.exception.PortalException,
427                            com.liferay.portal.kernel.exception.SystemException {
428                    _assetTagLocalService.mergeTags(fromTagId, toTagId, overrideProperties);
429            }
430    
431            public java.util.List<com.liferay.portlet.asset.model.AssetTag> search(
432                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
433                    int start, int end)
434                    throws com.liferay.portal.kernel.exception.SystemException {
435                    return _assetTagLocalService.search(groupId, name, tagProperties,
436                            start, end);
437            }
438    
439            public com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
440                    long tagId, java.lang.String name, java.lang.String[] tagProperties,
441                    com.liferay.portal.service.ServiceContext serviceContext)
442                    throws com.liferay.portal.kernel.exception.PortalException,
443                            com.liferay.portal.kernel.exception.SystemException {
444                    return _assetTagLocalService.updateTag(userId, tagId, name,
445                            tagProperties, serviceContext);
446            }
447    
448            public AssetTagLocalService getWrappedAssetTagLocalService() {
449                    return _assetTagLocalService;
450            }
451    
452            public void setWrappedAssetTagLocalService(
453                    AssetTagLocalService assetTagLocalService) {
454                    _assetTagLocalService = assetTagLocalService;
455            }
456    
457            private AssetTagLocalService _assetTagLocalService;
458    }