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            @Override
263            public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryProperties() {
264                    return _assetCategoryPropertyLocalService.getCategoryProperties();
265            }
266    
267            @Override
268            public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryProperties(
269                    long entryId) {
270                    return _assetCategoryPropertyLocalService.getCategoryProperties(entryId);
271            }
272    
273            @Override
274            public com.liferay.portlet.asset.model.AssetCategoryProperty getCategoryProperty(
275                    long categoryId, java.lang.String key)
276                    throws com.liferay.portal.kernel.exception.PortalException {
277                    return _assetCategoryPropertyLocalService.getCategoryProperty(categoryId,
278                            key);
279            }
280    
281            @Override
282            public com.liferay.portlet.asset.model.AssetCategoryProperty getCategoryProperty(
283                    long categoryPropertyId)
284                    throws com.liferay.portal.kernel.exception.PortalException {
285                    return _assetCategoryPropertyLocalService.getCategoryProperty(categoryPropertyId);
286            }
287    
288            @Override
289            public java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> getCategoryPropertyValues(
290                    long groupId, java.lang.String key) {
291                    return _assetCategoryPropertyLocalService.getCategoryPropertyValues(groupId,
292                            key);
293            }
294    
295            @Override
296            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
297                    return _assetCategoryPropertyLocalService.getIndexableActionableDynamicQuery();
298            }
299    
300            /**
301            * Returns the OSGi service identifier.
302            *
303            * @return the OSGi service identifier
304            */
305            @Override
306            public java.lang.String getOSGiServiceIdentifier() {
307                    return _assetCategoryPropertyLocalService.getOSGiServiceIdentifier();
308            }
309    
310            @Override
311            public com.liferay.portal.model.PersistedModel getPersistedModel(
312                    java.io.Serializable primaryKeyObj)
313                    throws com.liferay.portal.kernel.exception.PortalException {
314                    return _assetCategoryPropertyLocalService.getPersistedModel(primaryKeyObj);
315            }
316    
317            /**
318            * Updates the asset category property in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
319            *
320            * @param assetCategoryProperty the asset category property
321            * @return the asset category property that was updated
322            */
323            @Override
324            public com.liferay.portlet.asset.model.AssetCategoryProperty updateAssetCategoryProperty(
325                    com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty) {
326                    return _assetCategoryPropertyLocalService.updateAssetCategoryProperty(assetCategoryProperty);
327            }
328    
329            @Override
330            public com.liferay.portlet.asset.model.AssetCategoryProperty updateCategoryProperty(
331                    long categoryPropertyId, java.lang.String key, java.lang.String value)
332                    throws com.liferay.portal.kernel.exception.PortalException {
333                    return _assetCategoryPropertyLocalService.updateCategoryProperty(categoryPropertyId,
334                            key, value);
335            }
336    
337            @Override
338            public com.liferay.portlet.asset.model.AssetCategoryProperty updateCategoryProperty(
339                    long userId, long categoryPropertyId, java.lang.String key,
340                    java.lang.String value)
341                    throws com.liferay.portal.kernel.exception.PortalException {
342                    return _assetCategoryPropertyLocalService.updateCategoryProperty(userId,
343                            categoryPropertyId, key, value);
344            }
345    
346            @Override
347            public AssetCategoryPropertyLocalService getWrappedService() {
348                    return _assetCategoryPropertyLocalService;
349            }
350    
351            @Override
352            public void setWrappedService(
353                    AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
354                    _assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
355            }
356    
357            private AssetCategoryPropertyLocalService _assetCategoryPropertyLocalService;
358    }