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.asset.kernel.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.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.asset.kernel.model.AssetCategoryProperty addAssetCategoryProperty(
045                    com.liferay.asset.kernel.model.AssetCategoryProperty assetCategoryProperty) {
046                    return _assetCategoryPropertyLocalService.addAssetCategoryProperty(assetCategoryProperty);
047            }
048    
049            @Override
050            public com.liferay.asset.kernel.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.asset.kernel.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.asset.kernel.model.AssetCategoryProperty deleteAssetCategoryProperty(
078                    com.liferay.asset.kernel.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.asset.kernel.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 com.liferay.asset.kernel.model.AssetCategoryProperty fetchAssetCategoryProperty(
098                    long categoryPropertyId) {
099                    return _assetCategoryPropertyLocalService.fetchAssetCategoryProperty(categoryPropertyId);
100            }
101    
102            /**
103            * Returns the asset category property with the primary key.
104            *
105            * @param categoryPropertyId the primary key of the asset category property
106            * @return the asset category property
107            * @throws PortalException if a asset category property with the primary key could not be found
108            */
109            @Override
110            public com.liferay.asset.kernel.model.AssetCategoryProperty getAssetCategoryProperty(
111                    long categoryPropertyId)
112                    throws com.liferay.portal.kernel.exception.PortalException {
113                    return _assetCategoryPropertyLocalService.getAssetCategoryProperty(categoryPropertyId);
114            }
115    
116            @Override
117            public com.liferay.asset.kernel.model.AssetCategoryProperty getCategoryProperty(
118                    long categoryId, java.lang.String key)
119                    throws com.liferay.portal.kernel.exception.PortalException {
120                    return _assetCategoryPropertyLocalService.getCategoryProperty(categoryId,
121                            key);
122            }
123    
124            @Override
125            public com.liferay.asset.kernel.model.AssetCategoryProperty getCategoryProperty(
126                    long categoryPropertyId)
127                    throws com.liferay.portal.kernel.exception.PortalException {
128                    return _assetCategoryPropertyLocalService.getCategoryProperty(categoryPropertyId);
129            }
130    
131            /**
132            * Updates the asset category property in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
133            *
134            * @param assetCategoryProperty the asset category property
135            * @return the asset category property that was updated
136            */
137            @Override
138            public com.liferay.asset.kernel.model.AssetCategoryProperty updateAssetCategoryProperty(
139                    com.liferay.asset.kernel.model.AssetCategoryProperty assetCategoryProperty) {
140                    return _assetCategoryPropertyLocalService.updateAssetCategoryProperty(assetCategoryProperty);
141            }
142    
143            @Override
144            public com.liferay.asset.kernel.model.AssetCategoryProperty updateCategoryProperty(
145                    long categoryPropertyId, java.lang.String key, java.lang.String value)
146                    throws com.liferay.portal.kernel.exception.PortalException {
147                    return _assetCategoryPropertyLocalService.updateCategoryProperty(categoryPropertyId,
148                            key, value);
149            }
150    
151            @Override
152            public com.liferay.asset.kernel.model.AssetCategoryProperty updateCategoryProperty(
153                    long userId, long categoryPropertyId, java.lang.String key,
154                    java.lang.String value)
155                    throws com.liferay.portal.kernel.exception.PortalException {
156                    return _assetCategoryPropertyLocalService.updateCategoryProperty(userId,
157                            categoryPropertyId, key, value);
158            }
159    
160            @Override
161            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
162                    return _assetCategoryPropertyLocalService.getActionableDynamicQuery();
163            }
164    
165            @Override
166            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
167                    return _assetCategoryPropertyLocalService.dynamicQuery();
168            }
169    
170            @Override
171            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
172                    return _assetCategoryPropertyLocalService.getIndexableActionableDynamicQuery();
173            }
174    
175            /**
176            * @throws PortalException
177            */
178            @Override
179            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
180                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
181                    throws com.liferay.portal.kernel.exception.PortalException {
182                    return _assetCategoryPropertyLocalService.deletePersistedModel(persistedModel);
183            }
184    
185            @Override
186            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
187                    java.io.Serializable primaryKeyObj)
188                    throws com.liferay.portal.kernel.exception.PortalException {
189                    return _assetCategoryPropertyLocalService.getPersistedModel(primaryKeyObj);
190            }
191    
192            /**
193            * Returns the number of asset category properties.
194            *
195            * @return the number of asset category properties
196            */
197            @Override
198            public int getAssetCategoryPropertiesCount() {
199                    return _assetCategoryPropertyLocalService.getAssetCategoryPropertiesCount();
200            }
201    
202            /**
203            * Returns the OSGi service identifier.
204            *
205            * @return the OSGi service identifier
206            */
207            @Override
208            public java.lang.String getOSGiServiceIdentifier() {
209                    return _assetCategoryPropertyLocalService.getOSGiServiceIdentifier();
210            }
211    
212            /**
213            * Performs a dynamic query on the database and returns the matching rows.
214            *
215            * @param dynamicQuery the dynamic query
216            * @return the matching rows
217            */
218            @Override
219            public <T> java.util.List<T> dynamicQuery(
220                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
221                    return _assetCategoryPropertyLocalService.dynamicQuery(dynamicQuery);
222            }
223    
224            /**
225            * Performs a dynamic query on the database and returns a range of the matching rows.
226            *
227            * <p>
228            * 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.
229            * </p>
230            *
231            * @param dynamicQuery the dynamic query
232            * @param start the lower bound of the range of model instances
233            * @param end the upper bound of the range of model instances (not inclusive)
234            * @return the range of matching rows
235            */
236            @Override
237            public <T> java.util.List<T> dynamicQuery(
238                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
239                    int end) {
240                    return _assetCategoryPropertyLocalService.dynamicQuery(dynamicQuery,
241                            start, end);
242            }
243    
244            /**
245            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
246            *
247            * <p>
248            * 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.
249            * </p>
250            *
251            * @param dynamicQuery the dynamic query
252            * @param start the lower bound of the range of model instances
253            * @param end the upper bound of the range of model instances (not inclusive)
254            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
255            * @return the ordered range of matching rows
256            */
257            @Override
258            public <T> java.util.List<T> dynamicQuery(
259                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
260                    int end,
261                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
262                    return _assetCategoryPropertyLocalService.dynamicQuery(dynamicQuery,
263                            start, end, orderByComparator);
264            }
265    
266            /**
267            * Returns a range of all the asset category properties.
268            *
269            * <p>
270            * 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.
271            * </p>
272            *
273            * @param start the lower bound of the range of asset category properties
274            * @param end the upper bound of the range of asset category properties (not inclusive)
275            * @return the range of asset category properties
276            */
277            @Override
278            public java.util.List<com.liferay.asset.kernel.model.AssetCategoryProperty> getAssetCategoryProperties(
279                    int start, int end) {
280                    return _assetCategoryPropertyLocalService.getAssetCategoryProperties(start,
281                            end);
282            }
283    
284            @Override
285            public java.util.List<com.liferay.asset.kernel.model.AssetCategoryProperty> getCategoryProperties() {
286                    return _assetCategoryPropertyLocalService.getCategoryProperties();
287            }
288    
289            @Override
290            public java.util.List<com.liferay.asset.kernel.model.AssetCategoryProperty> getCategoryProperties(
291                    long entryId) {
292                    return _assetCategoryPropertyLocalService.getCategoryProperties(entryId);
293            }
294    
295            @Override
296            public java.util.List<com.liferay.asset.kernel.model.AssetCategoryProperty> getCategoryPropertyValues(
297                    long groupId, java.lang.String key) {
298                    return _assetCategoryPropertyLocalService.getCategoryPropertyValues(groupId,
299                            key);
300            }
301    
302            /**
303            * Returns the number of rows matching the dynamic query.
304            *
305            * @param dynamicQuery the dynamic query
306            * @return the number of rows matching the dynamic query
307            */
308            @Override
309            public long dynamicQueryCount(
310                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
311                    return _assetCategoryPropertyLocalService.dynamicQueryCount(dynamicQuery);
312            }
313    
314            /**
315            * Returns the number of rows matching the dynamic query.
316            *
317            * @param dynamicQuery the dynamic query
318            * @param projection the projection to apply to the query
319            * @return the number of rows matching the dynamic query
320            */
321            @Override
322            public long dynamicQueryCount(
323                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
324                    com.liferay.portal.kernel.dao.orm.Projection projection) {
325                    return _assetCategoryPropertyLocalService.dynamicQueryCount(dynamicQuery,
326                            projection);
327            }
328    
329            @Override
330            public void deleteCategoryProperties(long entryId) {
331                    _assetCategoryPropertyLocalService.deleteCategoryProperties(entryId);
332            }
333    
334            @Override
335            public void deleteCategoryProperty(
336                    com.liferay.asset.kernel.model.AssetCategoryProperty categoryProperty) {
337                    _assetCategoryPropertyLocalService.deleteCategoryProperty(categoryProperty);
338            }
339    
340            @Override
341            public void deleteCategoryProperty(long categoryPropertyId)
342                    throws com.liferay.portal.kernel.exception.PortalException {
343                    _assetCategoryPropertyLocalService.deleteCategoryProperty(categoryPropertyId);
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    }