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