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 AssetCategoryPropertyLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see AssetCategoryPropertyLocalService
026     * @generated
027     */
028    @ProviderType
029    public class AssetCategoryPropertyLocalServiceWrapper
030            implements AssetCategoryPropertyLocalService,
031                    ServiceWrapper<AssetCategoryPropertyLocalService> {
032            public AssetCategoryPropertyLocalServiceWrapper(
033                    AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
034                    _assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
035            }
036    
037            /**
038            * Adds the asset category property to the database. Also notifies the appropriate model listeners.
039            *
040            * @param assetCategoryProperty the asset category property
041            * @return the asset category property that was added
042            */
043            @Override
044            public com.liferay.portlet.asset.model.AssetCategoryProperty addAssetCategoryProperty(
045                    com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty) {
046                    return _assetCategoryPropertyLocalService.addAssetCategoryProperty(assetCategoryProperty);
047            }
048    
049            @Override
050            public com.liferay.portlet.asset.model.AssetCategoryProperty addCategoryProperty(
051                    long userId, long categoryId, java.lang.String key,
052                    java.lang.String value)
053                    throws com.liferay.portal.kernel.exception.PortalException {
054                    return _assetCategoryPropertyLocalService.addCategoryProperty(userId,
055                            categoryId, key, value);
056            }
057    
058            /**
059            * Creates a new asset category property with the primary key. Does not add the asset category property to the database.
060            *
061            * @param categoryPropertyId the primary key for the new asset category property
062            * @return the new asset category property
063            */
064            @Override
065            public com.liferay.portlet.asset.model.AssetCategoryProperty createAssetCategoryProperty(
066                    long categoryPropertyId) {
067                    return _assetCategoryPropertyLocalService.createAssetCategoryProperty(categoryPropertyId);
068            }
069    
070            /**
071            * Deletes the asset category property from the database. Also notifies the appropriate model listeners.
072            *
073            * @param assetCategoryProperty the asset category property
074            * @return the asset category property that was removed
075            */
076            @Override
077            public com.liferay.portlet.asset.model.AssetCategoryProperty deleteAssetCategoryProperty(
078                    com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty) {
079                    return _assetCategoryPropertyLocalService.deleteAssetCategoryProperty(assetCategoryProperty);
080            }
081    
082            /**
083            * Deletes the asset category property with the primary key from the database. Also notifies the appropriate model listeners.
084            *
085            * @param categoryPropertyId the primary key of the asset category property
086            * @return the asset category property that was removed
087            * @throws PortalException if a asset category property with the primary key could not be found
088            */
089            @Override
090            public com.liferay.portlet.asset.model.AssetCategoryProperty deleteAssetCategoryProperty(
091                    long categoryPropertyId)
092                    throws com.liferay.portal.kernel.exception.PortalException {
093                    return _assetCategoryPropertyLocalService.deleteAssetCategoryProperty(categoryPropertyId);
094            }
095    
096            @Override
097            public void deleteCategoryProperties(long entryId) {
098                    _assetCategoryPropertyLocalService.deleteCategoryProperties(entryId);
099            }
100    
101            @Override
102            public void deleteCategoryProperty(
103                    com.liferay.portlet.asset.model.AssetCategoryProperty categoryProperty) {
104                    _assetCategoryPropertyLocalService.deleteCategoryProperty(categoryProperty);
105            }
106    
107            @Override
108            public void deleteCategoryProperty(long categoryPropertyId)
109                    throws com.liferay.portal.kernel.exception.PortalException {
110                    _assetCategoryPropertyLocalService.deleteCategoryProperty(categoryPropertyId);
111            }
112    
113            /**
114            * @throws PortalException
115            */
116            @Override
117            public com.liferay.portal.model.PersistedModel deletePersistedModel(
118                    com.liferay.portal.model.PersistedModel persistedModel)
119                    throws com.liferay.portal.kernel.exception.PortalException {
120                    return _assetCategoryPropertyLocalService.deletePersistedModel(persistedModel);
121            }
122    
123            @Override
124            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
125                    return _assetCategoryPropertyLocalService.dynamicQuery();
126            }
127    
128            /**
129            * Performs a dynamic query on the database and returns the matching rows.
130            *
131            * @param dynamicQuery the dynamic query
132            * @return the matching rows
133            */
134            @Override
135            public <T> java.util.List<T> dynamicQuery(
136                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
137                    return _assetCategoryPropertyLocalService.dynamicQuery(dynamicQuery);
138            }
139    
140            /**
141            * Performs a dynamic query on the database and returns a range of the matching rows.
142            *
143            * <p>
144            * 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.AssetCategoryPropertyModelImpl}. 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.
145            * </p>
146            *
147            * @param dynamicQuery the dynamic query
148            * @param start the lower bound of the range of model instances
149            * @param end the upper bound of the range of model instances (not inclusive)
150            * @return the range of matching rows
151            */
152            @Override
153            public <T> java.util.List<T> dynamicQuery(
154                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
155                    int end) {
156                    return _assetCategoryPropertyLocalService.dynamicQuery(dynamicQuery,
157                            start, end);
158            }
159    
160            /**
161            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
162            *
163            * <p>
164            * 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.AssetCategoryPropertyModelImpl}. 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.
165            * </p>
166            *
167            * @param dynamicQuery the dynamic query
168            * @param start the lower bound of the range of model instances
169            * @param end the upper bound of the range of model instances (not inclusive)
170            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
171            * @return the ordered range of matching rows
172            */
173            @Override
174            public <T> java.util.List<T> dynamicQuery(
175                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
176                    int end,
177                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
178                    return _assetCategoryPropertyLocalService.dynamicQuery(dynamicQuery,
179                            start, end, orderByComparator);
180            }
181    
182            /**
183            * Returns the number of rows matching the dynamic query.
184            *
185            * @param dynamicQuery the dynamic query
186            * @return the number of rows matching the dynamic query
187            */
188            @Override
189            public long dynamicQueryCount(
190                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
191                    return _assetCategoryPropertyLocalService.dynamicQueryCount(dynamicQuery);
192            }
193    
194            /**
195            * Returns the number of rows matching the dynamic query.
196            *
197            * @param dynamicQuery the dynamic query
198            * @param projection the projection to apply to the query
199            * @return the number of rows matching the dynamic query
200            */
201            @Override
202            public long dynamicQueryCount(
203                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
204                    com.liferay.portal.kernel.dao.orm.Projection projection) {
205                    return _assetCategoryPropertyLocalService.dynamicQueryCount(dynamicQuery,
206                            projection);
207            }
208    
209            @Override
210            public com.liferay.portlet.asset.model.AssetCategoryProperty fetchAssetCategoryProperty(
211                    long categoryPropertyId) {
212                    return _assetCategoryPropertyLocalService.fetchAssetCategoryProperty(categoryPropertyId);
213            }
214    
215            @Override
216            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
217                    return _assetCategoryPropertyLocalService.getActionableDynamicQuery();
218            }
219    
220            /**
221            * Returns a range of all the asset category properties.
222            *
223            * <p>
224            * 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.AssetCategoryPropertyModelImpl}. 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.
225            * </p>
226            *
227            * @param start the lower bound of the range of asset category properties
228            * @param end the upper bound of the range of asset category properties (not inclusive)
229            * @return the range of asset category properties
230            */
231            @Override
232            public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getAssetCategoryProperties(
233                    int start, int end) {
234                    return _assetCategoryPropertyLocalService.getAssetCategoryProperties(start,
235                            end);
236            }
237    
238            /**
239            * Returns the number of asset category properties.
240            *
241            * @return the number of asset category properties
242            */
243            @Override
244            public int getAssetCategoryPropertiesCount() {
245                    return _assetCategoryPropertyLocalService.getAssetCategoryPropertiesCount();
246            }
247    
248            /**
249            * Returns the asset category property with the primary key.
250            *
251            * @param categoryPropertyId the primary key of the asset category property
252            * @return the asset category property
253            * @throws PortalException if a asset category property with the primary key could not be found
254            */
255            @Override
256            public com.liferay.portlet.asset.model.AssetCategoryProperty getAssetCategoryProperty(
257                    long categoryPropertyId)
258                    throws com.liferay.portal.kernel.exception.PortalException {
259                    return _assetCategoryPropertyLocalService.getAssetCategoryProperty(categoryPropertyId);
260            }
261    
262            /**
263            * Returns the Spring bean ID for this bean.
264            *
265            * @return the Spring bean ID for this bean
266            */
267            @Override
268            public java.lang.String getBeanIdentifier() {
269                    return _assetCategoryPropertyLocalService.getBeanIdentifier();
270            }
271    
272            @Override
273            public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryProperties() {
274                    return _assetCategoryPropertyLocalService.getCategoryProperties();
275            }
276    
277            @Override
278            public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryProperties(
279                    long entryId) {
280                    return _assetCategoryPropertyLocalService.getCategoryProperties(entryId);
281            }
282    
283            @Override
284            public com.liferay.portlet.asset.model.AssetCategoryProperty getCategoryProperty(
285                    long categoryId, java.lang.String key)
286                    throws com.liferay.portal.kernel.exception.PortalException {
287                    return _assetCategoryPropertyLocalService.getCategoryProperty(categoryId,
288                            key);
289            }
290    
291            @Override
292            public com.liferay.portlet.asset.model.AssetCategoryProperty getCategoryProperty(
293                    long categoryPropertyId)
294                    throws com.liferay.portal.kernel.exception.PortalException {
295                    return _assetCategoryPropertyLocalService.getCategoryProperty(categoryPropertyId);
296            }
297    
298            @Override
299            public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryPropertyValues(
300                    long groupId, java.lang.String key) {
301                    return _assetCategoryPropertyLocalService.getCategoryPropertyValues(groupId,
302                            key);
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 _assetCategoryPropertyLocalService.getPersistedModel(primaryKeyObj);
310            }
311    
312            /**
313            * Sets the Spring bean ID for this bean.
314            *
315            * @param beanIdentifier the Spring bean ID for this bean
316            */
317            @Override
318            public void setBeanIdentifier(java.lang.String beanIdentifier) {
319                    _assetCategoryPropertyLocalService.setBeanIdentifier(beanIdentifier);
320            }
321    
322            /**
323            * Updates the asset category property in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
324            *
325            * @param assetCategoryProperty the asset category property
326            * @return the asset category property that was updated
327            */
328            @Override
329            public com.liferay.portlet.asset.model.AssetCategoryProperty updateAssetCategoryProperty(
330                    com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty) {
331                    return _assetCategoryPropertyLocalService.updateAssetCategoryProperty(assetCategoryProperty);
332            }
333    
334            @Override
335            public com.liferay.portlet.asset.model.AssetCategoryProperty updateCategoryProperty(
336                    long categoryPropertyId, java.lang.String key, java.lang.String value)
337                    throws com.liferay.portal.kernel.exception.PortalException {
338                    return _assetCategoryPropertyLocalService.updateCategoryProperty(categoryPropertyId,
339                            key, value);
340            }
341    
342            @Override
343            public com.liferay.portlet.asset.model.AssetCategoryProperty updateCategoryProperty(
344                    long userId, long categoryPropertyId, java.lang.String key,
345                    java.lang.String value)
346                    throws com.liferay.portal.kernel.exception.PortalException {
347                    return _assetCategoryPropertyLocalService.updateCategoryProperty(userId,
348                            categoryPropertyId, key, value);
349            }
350    
351            /**
352             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
353             */
354            @Deprecated
355            public AssetCategoryPropertyLocalService getWrappedAssetCategoryPropertyLocalService() {
356                    return _assetCategoryPropertyLocalService;
357            }
358    
359            /**
360             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
361             */
362            @Deprecated
363            public void setWrappedAssetCategoryPropertyLocalService(
364                    AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
365                    _assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
366            }
367    
368            @Override
369            public AssetCategoryPropertyLocalService getWrappedService() {
370                    return _assetCategoryPropertyLocalService;
371            }
372    
373            @Override
374            public void setWrappedService(
375                    AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
376                    _assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
377            }
378    
379            private AssetCategoryPropertyLocalService _assetCategoryPropertyLocalService;
380    }