001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link AssetTagStatsLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see AssetTagStatsLocalService
026     * @generated
027     */
028    @ProviderType
029    public class AssetTagStatsLocalServiceWrapper
030            implements AssetTagStatsLocalService,
031                    ServiceWrapper<AssetTagStatsLocalService> {
032            public AssetTagStatsLocalServiceWrapper(
033                    AssetTagStatsLocalService assetTagStatsLocalService) {
034                    _assetTagStatsLocalService = assetTagStatsLocalService;
035            }
036    
037            /**
038            * Adds the asset tag stats to the database. Also notifies the appropriate model listeners.
039            *
040            * @param assetTagStats the asset tag stats
041            * @return the asset tag stats that was added
042            */
043            @Override
044            public com.liferay.portlet.asset.model.AssetTagStats addAssetTagStats(
045                    com.liferay.portlet.asset.model.AssetTagStats assetTagStats) {
046                    return _assetTagStatsLocalService.addAssetTagStats(assetTagStats);
047            }
048    
049            /**
050            * Adds an asset tag statistics instance.
051            *
052            * @param tagId the primary key of the tag
053            * @param classNameId the asset entry's class name ID
054            * @return the asset tag statistics instance
055            */
056            @Override
057            public com.liferay.portlet.asset.model.AssetTagStats addTagStats(
058                    long tagId, long classNameId) {
059                    return _assetTagStatsLocalService.addTagStats(tagId, classNameId);
060            }
061    
062            /**
063            * Creates a new asset tag stats with the primary key. Does not add the asset tag stats to the database.
064            *
065            * @param tagStatsId the primary key for the new asset tag stats
066            * @return the new asset tag stats
067            */
068            @Override
069            public com.liferay.portlet.asset.model.AssetTagStats createAssetTagStats(
070                    long tagStatsId) {
071                    return _assetTagStatsLocalService.createAssetTagStats(tagStatsId);
072            }
073    
074            /**
075            * Deletes the asset tag stats from the database. Also notifies the appropriate model listeners.
076            *
077            * @param assetTagStats the asset tag stats
078            * @return the asset tag stats that was removed
079            */
080            @Override
081            public com.liferay.portlet.asset.model.AssetTagStats deleteAssetTagStats(
082                    com.liferay.portlet.asset.model.AssetTagStats assetTagStats) {
083                    return _assetTagStatsLocalService.deleteAssetTagStats(assetTagStats);
084            }
085    
086            /**
087            * Deletes the asset tag stats with the primary key from the database. Also notifies the appropriate model listeners.
088            *
089            * @param tagStatsId the primary key of the asset tag stats
090            * @return the asset tag stats that was removed
091            * @throws PortalException if a asset tag stats with the primary key could not be found
092            */
093            @Override
094            public com.liferay.portlet.asset.model.AssetTagStats deleteAssetTagStats(
095                    long tagStatsId)
096                    throws com.liferay.portal.kernel.exception.PortalException {
097                    return _assetTagStatsLocalService.deleteAssetTagStats(tagStatsId);
098            }
099    
100            /**
101            * @throws PortalException
102            */
103            @Override
104            public com.liferay.portal.model.PersistedModel deletePersistedModel(
105                    com.liferay.portal.model.PersistedModel persistedModel)
106                    throws com.liferay.portal.kernel.exception.PortalException {
107                    return _assetTagStatsLocalService.deletePersistedModel(persistedModel);
108            }
109    
110            /**
111            * Deletes the asset tag statistics instance.
112            *
113            * @param tagStats the asset tag statistics instance
114            */
115            @Override
116            public void deleteTagStats(
117                    com.liferay.portlet.asset.model.AssetTagStats tagStats) {
118                    _assetTagStatsLocalService.deleteTagStats(tagStats);
119            }
120    
121            /**
122            * Deletes the asset tag statistics instance matching the tag statistics ID.
123            *
124            * @param tagStatsId the primary key of the asset tag statistics instance
125            */
126            @Override
127            public void deleteTagStats(long tagStatsId)
128                    throws com.liferay.portal.kernel.exception.PortalException {
129                    _assetTagStatsLocalService.deleteTagStats(tagStatsId);
130            }
131    
132            /**
133            * Deletes all asset tag statistics instances associated with the asset
134            * entry matching the class name ID.
135            *
136            * @param classNameId the asset entry's class name ID
137            */
138            @Override
139            public void deleteTagStatsByClassNameId(long classNameId) {
140                    _assetTagStatsLocalService.deleteTagStatsByClassNameId(classNameId);
141            }
142    
143            /**
144            * Deletes all asset tag statistics instances associated with the tag.
145            *
146            * @param tagId the primary key of the tag
147            */
148            @Override
149            public void deleteTagStatsByTagId(long tagId) {
150                    _assetTagStatsLocalService.deleteTagStatsByTagId(tagId);
151            }
152    
153            @Override
154            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
155                    return _assetTagStatsLocalService.dynamicQuery();
156            }
157    
158            /**
159            * Performs a dynamic query on the database and returns the matching rows.
160            *
161            * @param dynamicQuery the dynamic query
162            * @return the matching rows
163            */
164            @Override
165            public <T> java.util.List<T> dynamicQuery(
166                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
167                    return _assetTagStatsLocalService.dynamicQuery(dynamicQuery);
168            }
169    
170            /**
171            * Performs a dynamic query on the database and returns a range of the matching rows.
172            *
173            * <p>
174            * 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.AssetTagStatsModelImpl}. 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.
175            * </p>
176            *
177            * @param dynamicQuery the dynamic query
178            * @param start the lower bound of the range of model instances
179            * @param end the upper bound of the range of model instances (not inclusive)
180            * @return the range of matching rows
181            */
182            @Override
183            public <T> java.util.List<T> dynamicQuery(
184                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
185                    int end) {
186                    return _assetTagStatsLocalService.dynamicQuery(dynamicQuery, start, end);
187            }
188    
189            /**
190            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
191            *
192            * <p>
193            * 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.AssetTagStatsModelImpl}. 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.
194            * </p>
195            *
196            * @param dynamicQuery the dynamic query
197            * @param start the lower bound of the range of model instances
198            * @param end the upper bound of the range of model instances (not inclusive)
199            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
200            * @return the ordered range of matching rows
201            */
202            @Override
203            public <T> java.util.List<T> dynamicQuery(
204                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
205                    int end,
206                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
207                    return _assetTagStatsLocalService.dynamicQuery(dynamicQuery, start,
208                            end, orderByComparator);
209            }
210    
211            /**
212            * Returns the number of rows matching the dynamic query.
213            *
214            * @param dynamicQuery the dynamic query
215            * @return the number of rows matching the dynamic query
216            */
217            @Override
218            public long dynamicQueryCount(
219                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
220                    return _assetTagStatsLocalService.dynamicQueryCount(dynamicQuery);
221            }
222    
223            /**
224            * Returns the number of rows matching the dynamic query.
225            *
226            * @param dynamicQuery the dynamic query
227            * @param projection the projection to apply to the query
228            * @return the number of rows matching the dynamic query
229            */
230            @Override
231            public long dynamicQueryCount(
232                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
233                    com.liferay.portal.kernel.dao.orm.Projection projection) {
234                    return _assetTagStatsLocalService.dynamicQueryCount(dynamicQuery,
235                            projection);
236            }
237    
238            @Override
239            public com.liferay.portlet.asset.model.AssetTagStats fetchAssetTagStats(
240                    long tagStatsId) {
241                    return _assetTagStatsLocalService.fetchAssetTagStats(tagStatsId);
242            }
243    
244            @Override
245            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
246                    return _assetTagStatsLocalService.getActionableDynamicQuery();
247            }
248    
249            /**
250            * Returns the asset tag stats with the primary key.
251            *
252            * @param tagStatsId the primary key of the asset tag stats
253            * @return the asset tag stats
254            * @throws PortalException if a asset tag stats with the primary key could not be found
255            */
256            @Override
257            public com.liferay.portlet.asset.model.AssetTagStats getAssetTagStats(
258                    long tagStatsId)
259                    throws com.liferay.portal.kernel.exception.PortalException {
260                    return _assetTagStatsLocalService.getAssetTagStats(tagStatsId);
261            }
262    
263            /**
264            * Returns a range of all the asset tag statses.
265            *
266            * <p>
267            * 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.AssetTagStatsModelImpl}. 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.
268            * </p>
269            *
270            * @param start the lower bound of the range of asset tag statses
271            * @param end the upper bound of the range of asset tag statses (not inclusive)
272            * @return the range of asset tag statses
273            */
274            @Override
275            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> getAssetTagStatses(
276                    int start, int end) {
277                    return _assetTagStatsLocalService.getAssetTagStatses(start, end);
278            }
279    
280            /**
281            * Returns the number of asset tag statses.
282            *
283            * @return the number of asset tag statses
284            */
285            @Override
286            public int getAssetTagStatsesCount() {
287                    return _assetTagStatsLocalService.getAssetTagStatsesCount();
288            }
289    
290            @Override
291            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
292                    return _assetTagStatsLocalService.getIndexableActionableDynamicQuery();
293            }
294    
295            /**
296            * Returns the OSGi service identifier.
297            *
298            * @return the OSGi service identifier
299            */
300            @Override
301            public java.lang.String getOSGiServiceIdentifier() {
302                    return _assetTagStatsLocalService.getOSGiServiceIdentifier();
303            }
304    
305            @Override
306            public com.liferay.portal.model.PersistedModel getPersistedModel(
307                    java.io.Serializable primaryKeyObj)
308                    throws com.liferay.portal.kernel.exception.PortalException {
309                    return _assetTagStatsLocalService.getPersistedModel(primaryKeyObj);
310            }
311    
312            /**
313            * Returns a range of all the asset tag statistics instances associated with
314            * the asset entry matching the class name ID.
315            *
316            * <p>
317            * Useful when paginating results. Returns a maximum of <code>end -
318            * start</code> instances. <code>start</code> and <code>end</code> are not
319            * primary keys, they are indexes in the result set. Thus, <code>0</code>
320            * refers to the first result in the set. Setting both <code>start</code>
321            * and <code>end</code> to {@link
322            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
323            * result set.
324            * </p>
325            *
326            * @param classNameId the asset entry's class name ID
327            * @param start the lower bound of the range of results
328            * @param end the upper bound of the range of results (not inclusive)
329            * @return the range of asset tag statistics associated with the asset entry
330            matching the class name ID
331            */
332            @Override
333            public java.util.List<com.liferay.portlet.asset.model.AssetTagStats> getTagStats(
334                    long classNameId, int start, int end) {
335                    return _assetTagStatsLocalService.getTagStats(classNameId, start, end);
336            }
337    
338            /**
339            * Returns the asset tag statistics instance with the tag and asset entry
340            * matching the class name ID
341            *
342            * @param tagId the primary key of the tag
343            * @param classNameId the asset entry's class name ID
344            * @return Returns the asset tag statistics instance with the tag and asset
345            entry  matching the class name ID
346            */
347            @Override
348            public com.liferay.portlet.asset.model.AssetTagStats getTagStats(
349                    long tagId, long classNameId) {
350                    return _assetTagStatsLocalService.getTagStats(tagId, classNameId);
351            }
352    
353            /**
354            * Updates the asset tag stats in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
355            *
356            * @param assetTagStats the asset tag stats
357            * @return the asset tag stats that was updated
358            */
359            @Override
360            public com.liferay.portlet.asset.model.AssetTagStats updateAssetTagStats(
361                    com.liferay.portlet.asset.model.AssetTagStats assetTagStats) {
362                    return _assetTagStatsLocalService.updateAssetTagStats(assetTagStats);
363            }
364    
365            /**
366            * Updates the asset tag statistics instance.
367            *
368            * @param tagId the primary key of the tag
369            * @param classNameId the asset entry's class name ID
370            * @return the updated asset tag statistics instance
371            */
372            @Override
373            public com.liferay.portlet.asset.model.AssetTagStats updateTagStats(
374                    long tagId, long classNameId)
375                    throws com.liferay.portal.kernel.exception.PortalException {
376                    return _assetTagStatsLocalService.updateTagStats(tagId, classNameId);
377            }
378    
379            @Override
380            public AssetTagStatsLocalService getWrappedService() {
381                    return _assetTagStatsLocalService;
382            }
383    
384            @Override
385            public void setWrappedService(
386                    AssetTagStatsLocalService assetTagStatsLocalService) {
387                    _assetTagStatsLocalService = assetTagStatsLocalService;
388            }
389    
390            private AssetTagStatsLocalService _assetTagStatsLocalService;
391    }