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.shopping.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * Provides a wrapper for {@link ShoppingCategoryLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see ShoppingCategoryLocalService
024     * @generated
025     */
026    public class ShoppingCategoryLocalServiceWrapper
027            implements ShoppingCategoryLocalService,
028                    ServiceWrapper<ShoppingCategoryLocalService> {
029            public ShoppingCategoryLocalServiceWrapper(
030                    ShoppingCategoryLocalService shoppingCategoryLocalService) {
031                    _shoppingCategoryLocalService = shoppingCategoryLocalService;
032            }
033    
034            /**
035            * Adds the shopping category to the database. Also notifies the appropriate model listeners.
036            *
037            * @param shoppingCategory the shopping category
038            * @return the shopping category that was added
039            * @throws SystemException if a system exception occurred
040            */
041            @Override
042            public com.liferay.portlet.shopping.model.ShoppingCategory addShoppingCategory(
043                    com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _shoppingCategoryLocalService.addShoppingCategory(shoppingCategory);
046            }
047    
048            /**
049            * Creates a new shopping category with the primary key. Does not add the shopping category to the database.
050            *
051            * @param categoryId the primary key for the new shopping category
052            * @return the new shopping category
053            */
054            @Override
055            public com.liferay.portlet.shopping.model.ShoppingCategory createShoppingCategory(
056                    long categoryId) {
057                    return _shoppingCategoryLocalService.createShoppingCategory(categoryId);
058            }
059    
060            /**
061            * Deletes the shopping category with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param categoryId the primary key of the shopping category
064            * @return the shopping category that was removed
065            * @throws PortalException if a shopping category with the primary key could not be found
066            * @throws SystemException if a system exception occurred
067            */
068            @Override
069            public com.liferay.portlet.shopping.model.ShoppingCategory deleteShoppingCategory(
070                    long categoryId)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException {
073                    return _shoppingCategoryLocalService.deleteShoppingCategory(categoryId);
074            }
075    
076            /**
077            * Deletes the shopping category from the database. Also notifies the appropriate model listeners.
078            *
079            * @param shoppingCategory the shopping category
080            * @return the shopping category that was removed
081            * @throws SystemException if a system exception occurred
082            */
083            @Override
084            public com.liferay.portlet.shopping.model.ShoppingCategory deleteShoppingCategory(
085                    com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
086                    throws com.liferay.portal.kernel.exception.SystemException {
087                    return _shoppingCategoryLocalService.deleteShoppingCategory(shoppingCategory);
088            }
089    
090            @Override
091            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
092                    return _shoppingCategoryLocalService.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 _shoppingCategoryLocalService.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.shopping.model.impl.ShoppingCategoryModelImpl}. 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 _shoppingCategoryLocalService.dynamicQuery(dynamicQuery, start,
129                            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.shopping.model.impl.ShoppingCategoryModelImpl}. 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 _shoppingCategoryLocalService.dynamicQuery(dynamicQuery, start,
154                            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 _shoppingCategoryLocalService.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 _shoppingCategoryLocalService.dynamicQueryCount(dynamicQuery,
185                            projection);
186            }
187    
188            @Override
189            public com.liferay.portlet.shopping.model.ShoppingCategory fetchShoppingCategory(
190                    long categoryId)
191                    throws com.liferay.portal.kernel.exception.SystemException {
192                    return _shoppingCategoryLocalService.fetchShoppingCategory(categoryId);
193            }
194    
195            /**
196            * Returns the shopping category with the primary key.
197            *
198            * @param categoryId the primary key of the shopping category
199            * @return the shopping category
200            * @throws PortalException if a shopping category with the primary key could not be found
201            * @throws SystemException if a system exception occurred
202            */
203            @Override
204            public com.liferay.portlet.shopping.model.ShoppingCategory getShoppingCategory(
205                    long categoryId)
206                    throws com.liferay.portal.kernel.exception.PortalException,
207                            com.liferay.portal.kernel.exception.SystemException {
208                    return _shoppingCategoryLocalService.getShoppingCategory(categoryId);
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 _shoppingCategoryLocalService.getPersistedModel(primaryKeyObj);
217            }
218    
219            /**
220            * Returns a range of all the shopping categories.
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.shopping.model.impl.ShoppingCategoryModelImpl}. 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 shopping categories
227            * @param end the upper bound of the range of shopping categories (not inclusive)
228            * @return the range of shopping categories
229            * @throws SystemException if a system exception occurred
230            */
231            @Override
232            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getShoppingCategories(
233                    int start, int end)
234                    throws com.liferay.portal.kernel.exception.SystemException {
235                    return _shoppingCategoryLocalService.getShoppingCategories(start, end);
236            }
237    
238            /**
239            * Returns the number of shopping categories.
240            *
241            * @return the number of shopping categories
242            * @throws SystemException if a system exception occurred
243            */
244            @Override
245            public int getShoppingCategoriesCount()
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    return _shoppingCategoryLocalService.getShoppingCategoriesCount();
248            }
249    
250            /**
251            * Updates the shopping category in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
252            *
253            * @param shoppingCategory the shopping category
254            * @return the shopping category that was updated
255            * @throws SystemException if a system exception occurred
256            */
257            @Override
258            public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
259                    com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    return _shoppingCategoryLocalService.updateShoppingCategory(shoppingCategory);
262            }
263    
264            /**
265            * Returns the Spring bean ID for this bean.
266            *
267            * @return the Spring bean ID for this bean
268            */
269            @Override
270            public java.lang.String getBeanIdentifier() {
271                    return _shoppingCategoryLocalService.getBeanIdentifier();
272            }
273    
274            /**
275            * Sets the Spring bean ID for this bean.
276            *
277            * @param beanIdentifier the Spring bean ID for this bean
278            */
279            @Override
280            public void setBeanIdentifier(java.lang.String beanIdentifier) {
281                    _shoppingCategoryLocalService.setBeanIdentifier(beanIdentifier);
282            }
283    
284            @Override
285            public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
286                    long userId, long parentCategoryId, java.lang.String name,
287                    java.lang.String description,
288                    com.liferay.portal.service.ServiceContext serviceContext)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    return _shoppingCategoryLocalService.addCategory(userId,
292                            parentCategoryId, name, description, serviceContext);
293            }
294    
295            @Override
296            public void addCategoryResources(long categoryId,
297                    boolean addGroupPermissions, boolean addGuestPermissions)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException {
300                    _shoppingCategoryLocalService.addCategoryResources(categoryId,
301                            addGroupPermissions, addGuestPermissions);
302            }
303    
304            @Override
305            public void addCategoryResources(long categoryId,
306                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    _shoppingCategoryLocalService.addCategoryResources(categoryId,
310                            groupPermissions, guestPermissions);
311            }
312    
313            @Override
314            public void addCategoryResources(
315                    com.liferay.portlet.shopping.model.ShoppingCategory category,
316                    boolean addGroupPermissions, boolean addGuestPermissions)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    _shoppingCategoryLocalService.addCategoryResources(category,
320                            addGroupPermissions, addGuestPermissions);
321            }
322    
323            @Override
324            public void addCategoryResources(
325                    com.liferay.portlet.shopping.model.ShoppingCategory category,
326                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
327                    throws com.liferay.portal.kernel.exception.PortalException,
328                            com.liferay.portal.kernel.exception.SystemException {
329                    _shoppingCategoryLocalService.addCategoryResources(category,
330                            groupPermissions, guestPermissions);
331            }
332    
333            @Override
334            public void deleteCategories(long groupId)
335                    throws com.liferay.portal.kernel.exception.PortalException,
336                            com.liferay.portal.kernel.exception.SystemException {
337                    _shoppingCategoryLocalService.deleteCategories(groupId);
338            }
339    
340            @Override
341            public void deleteCategory(long categoryId)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException {
344                    _shoppingCategoryLocalService.deleteCategory(categoryId);
345            }
346    
347            @Override
348            public void deleteCategory(
349                    com.liferay.portlet.shopping.model.ShoppingCategory category)
350                    throws com.liferay.portal.kernel.exception.PortalException,
351                            com.liferay.portal.kernel.exception.SystemException {
352                    _shoppingCategoryLocalService.deleteCategory(category);
353            }
354    
355            @Override
356            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
357                    long groupId)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return _shoppingCategoryLocalService.getCategories(groupId);
360            }
361    
362            @Override
363            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
364                    long groupId, long parentCategoryId, int start, int end)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return _shoppingCategoryLocalService.getCategories(groupId,
367                            parentCategoryId, start, end);
368            }
369    
370            @Override
371            public int getCategoriesCount(long groupId, long parentCategoryId)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return _shoppingCategoryLocalService.getCategoriesCount(groupId,
374                            parentCategoryId);
375            }
376    
377            @Override
378            public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
379                    long categoryId)
380                    throws com.liferay.portal.kernel.exception.PortalException,
381                            com.liferay.portal.kernel.exception.SystemException {
382                    return _shoppingCategoryLocalService.getCategory(categoryId);
383            }
384    
385            @Override
386            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
387                    long categoryId)
388                    throws com.liferay.portal.kernel.exception.PortalException,
389                            com.liferay.portal.kernel.exception.SystemException {
390                    return _shoppingCategoryLocalService.getParentCategories(categoryId);
391            }
392    
393            @Override
394            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
395                    com.liferay.portlet.shopping.model.ShoppingCategory category)
396                    throws com.liferay.portal.kernel.exception.PortalException,
397                            com.liferay.portal.kernel.exception.SystemException {
398                    return _shoppingCategoryLocalService.getParentCategories(category);
399            }
400    
401            @Override
402            public com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
403                    com.liferay.portlet.shopping.model.ShoppingCategory category)
404                    throws com.liferay.portal.kernel.exception.PortalException,
405                            com.liferay.portal.kernel.exception.SystemException {
406                    return _shoppingCategoryLocalService.getParentCategory(category);
407            }
408    
409            @Override
410            public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
411                    long groupId, long categoryId)
412                    throws com.liferay.portal.kernel.exception.SystemException {
413                    _shoppingCategoryLocalService.getSubcategoryIds(categoryIds, groupId,
414                            categoryId);
415            }
416    
417            @Override
418            public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
419                    long categoryId, long parentCategoryId, java.lang.String name,
420                    java.lang.String description, boolean mergeWithParentCategory,
421                    com.liferay.portal.service.ServiceContext serviceContext)
422                    throws com.liferay.portal.kernel.exception.PortalException,
423                            com.liferay.portal.kernel.exception.SystemException {
424                    return _shoppingCategoryLocalService.updateCategory(categoryId,
425                            parentCategoryId, name, description, mergeWithParentCategory,
426                            serviceContext);
427            }
428    
429            /**
430             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
431             */
432            public ShoppingCategoryLocalService getWrappedShoppingCategoryLocalService() {
433                    return _shoppingCategoryLocalService;
434            }
435    
436            /**
437             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
438             */
439            public void setWrappedShoppingCategoryLocalService(
440                    ShoppingCategoryLocalService shoppingCategoryLocalService) {
441                    _shoppingCategoryLocalService = shoppingCategoryLocalService;
442            }
443    
444            @Override
445            public ShoppingCategoryLocalService getWrappedService() {
446                    return _shoppingCategoryLocalService;
447            }
448    
449            @Override
450            public void setWrappedService(
451                    ShoppingCategoryLocalService shoppingCategoryLocalService) {
452                    _shoppingCategoryLocalService = shoppingCategoryLocalService;
453            }
454    
455            private ShoppingCategoryLocalService _shoppingCategoryLocalService;
456    }