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