001    /**
002     * Copyright (c) 2000-2010 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    /**
018     * <p>
019     * This class is a wrapper for {@link ShoppingCategoryLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       ShoppingCategoryLocalService
024     * @generated
025     */
026    public class ShoppingCategoryLocalServiceWrapper
027            implements ShoppingCategoryLocalService {
028            public ShoppingCategoryLocalServiceWrapper(
029                    ShoppingCategoryLocalService shoppingCategoryLocalService) {
030                    _shoppingCategoryLocalService = shoppingCategoryLocalService;
031            }
032    
033            public com.liferay.portlet.shopping.model.ShoppingCategory addShoppingCategory(
034                    com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return _shoppingCategoryLocalService.addShoppingCategory(shoppingCategory);
037            }
038    
039            public com.liferay.portlet.shopping.model.ShoppingCategory createShoppingCategory(
040                    long categoryId) {
041                    return _shoppingCategoryLocalService.createShoppingCategory(categoryId);
042            }
043    
044            public void deleteShoppingCategory(long categoryId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    _shoppingCategoryLocalService.deleteShoppingCategory(categoryId);
048            }
049    
050            public void deleteShoppingCategory(
051                    com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    _shoppingCategoryLocalService.deleteShoppingCategory(shoppingCategory);
054            }
055    
056            @SuppressWarnings("unchecked")
057            public java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return _shoppingCategoryLocalService.dynamicQuery(dynamicQuery);
061            }
062    
063            @SuppressWarnings("unchecked")
064            public java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException {
067                    return _shoppingCategoryLocalService.dynamicQuery(dynamicQuery, start,
068                            end);
069            }
070    
071            @SuppressWarnings("unchecked")
072            public java.util.List dynamicQuery(
073                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
074                    int end,
075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076                    throws com.liferay.portal.kernel.exception.SystemException {
077                    return _shoppingCategoryLocalService.dynamicQuery(dynamicQuery, start,
078                            end, orderByComparator);
079            }
080    
081            public long dynamicQueryCount(
082                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _shoppingCategoryLocalService.dynamicQueryCount(dynamicQuery);
085            }
086    
087            public com.liferay.portlet.shopping.model.ShoppingCategory getShoppingCategory(
088                    long categoryId)
089                    throws com.liferay.portal.kernel.exception.PortalException,
090                            com.liferay.portal.kernel.exception.SystemException {
091                    return _shoppingCategoryLocalService.getShoppingCategory(categoryId);
092            }
093    
094            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getShoppingCategories(
095                    int start, int end)
096                    throws com.liferay.portal.kernel.exception.SystemException {
097                    return _shoppingCategoryLocalService.getShoppingCategories(start, end);
098            }
099    
100            public int getShoppingCategoriesCount()
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return _shoppingCategoryLocalService.getShoppingCategoriesCount();
103            }
104    
105            public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
106                    com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return _shoppingCategoryLocalService.updateShoppingCategory(shoppingCategory);
109            }
110    
111            public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
112                    com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
113                    boolean merge)
114                    throws com.liferay.portal.kernel.exception.SystemException {
115                    return _shoppingCategoryLocalService.updateShoppingCategory(shoppingCategory,
116                            merge);
117            }
118    
119            public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
120                    long userId, long parentCategoryId, java.lang.String name,
121                    java.lang.String description,
122                    com.liferay.portal.service.ServiceContext serviceContext)
123                    throws com.liferay.portal.kernel.exception.PortalException,
124                            com.liferay.portal.kernel.exception.SystemException {
125                    return _shoppingCategoryLocalService.addCategory(userId,
126                            parentCategoryId, name, description, serviceContext);
127            }
128    
129            public void addCategoryResources(long categoryId,
130                    boolean addCommunityPermissions, boolean addGuestPermissions)
131                    throws com.liferay.portal.kernel.exception.PortalException,
132                            com.liferay.portal.kernel.exception.SystemException {
133                    _shoppingCategoryLocalService.addCategoryResources(categoryId,
134                            addCommunityPermissions, addGuestPermissions);
135            }
136    
137            public void addCategoryResources(long categoryId,
138                    java.lang.String[] communityPermissions,
139                    java.lang.String[] guestPermissions)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException {
142                    _shoppingCategoryLocalService.addCategoryResources(categoryId,
143                            communityPermissions, guestPermissions);
144            }
145    
146            public void addCategoryResources(
147                    com.liferay.portlet.shopping.model.ShoppingCategory category,
148                    boolean addCommunityPermissions, boolean addGuestPermissions)
149                    throws com.liferay.portal.kernel.exception.PortalException,
150                            com.liferay.portal.kernel.exception.SystemException {
151                    _shoppingCategoryLocalService.addCategoryResources(category,
152                            addCommunityPermissions, addGuestPermissions);
153            }
154    
155            public void addCategoryResources(
156                    com.liferay.portlet.shopping.model.ShoppingCategory category,
157                    java.lang.String[] communityPermissions,
158                    java.lang.String[] guestPermissions)
159                    throws com.liferay.portal.kernel.exception.PortalException,
160                            com.liferay.portal.kernel.exception.SystemException {
161                    _shoppingCategoryLocalService.addCategoryResources(category,
162                            communityPermissions, guestPermissions);
163            }
164    
165            public void deleteCategories(long groupId)
166                    throws com.liferay.portal.kernel.exception.PortalException,
167                            com.liferay.portal.kernel.exception.SystemException {
168                    _shoppingCategoryLocalService.deleteCategories(groupId);
169            }
170    
171            public void deleteCategory(long categoryId)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    _shoppingCategoryLocalService.deleteCategory(categoryId);
175            }
176    
177            public void deleteCategory(
178                    com.liferay.portlet.shopping.model.ShoppingCategory category)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    _shoppingCategoryLocalService.deleteCategory(category);
182            }
183    
184            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
185                    long groupId)
186                    throws com.liferay.portal.kernel.exception.SystemException {
187                    return _shoppingCategoryLocalService.getCategories(groupId);
188            }
189    
190            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
191                    long groupId, long parentCategoryId, int start, int end)
192                    throws com.liferay.portal.kernel.exception.SystemException {
193                    return _shoppingCategoryLocalService.getCategories(groupId,
194                            parentCategoryId, start, end);
195            }
196    
197            public int getCategoriesCount(long groupId, long parentCategoryId)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return _shoppingCategoryLocalService.getCategoriesCount(groupId,
200                            parentCategoryId);
201            }
202    
203            public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
204                    long categoryId)
205                    throws com.liferay.portal.kernel.exception.PortalException,
206                            com.liferay.portal.kernel.exception.SystemException {
207                    return _shoppingCategoryLocalService.getCategory(categoryId);
208            }
209    
210            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
211                    long categoryId)
212                    throws com.liferay.portal.kernel.exception.PortalException,
213                            com.liferay.portal.kernel.exception.SystemException {
214                    return _shoppingCategoryLocalService.getParentCategories(categoryId);
215            }
216    
217            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
218                    com.liferay.portlet.shopping.model.ShoppingCategory category)
219                    throws com.liferay.portal.kernel.exception.PortalException,
220                            com.liferay.portal.kernel.exception.SystemException {
221                    return _shoppingCategoryLocalService.getParentCategories(category);
222            }
223    
224            public com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
225                    com.liferay.portlet.shopping.model.ShoppingCategory category)
226                    throws com.liferay.portal.kernel.exception.PortalException,
227                            com.liferay.portal.kernel.exception.SystemException {
228                    return _shoppingCategoryLocalService.getParentCategory(category);
229            }
230    
231            public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
232                    long groupId, long categoryId)
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    _shoppingCategoryLocalService.getSubcategoryIds(categoryIds, groupId,
235                            categoryId);
236            }
237    
238            public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
239                    long categoryId, long parentCategoryId, java.lang.String name,
240                    java.lang.String description, boolean mergeWithParentCategory,
241                    com.liferay.portal.service.ServiceContext serviceContext)
242                    throws com.liferay.portal.kernel.exception.PortalException,
243                            com.liferay.portal.kernel.exception.SystemException {
244                    return _shoppingCategoryLocalService.updateCategory(categoryId,
245                            parentCategoryId, name, description, mergeWithParentCategory,
246                            serviceContext);
247            }
248    
249            public ShoppingCategoryLocalService getWrappedShoppingCategoryLocalService() {
250                    return _shoppingCategoryLocalService;
251            }
252    
253            private ShoppingCategoryLocalService _shoppingCategoryLocalService;
254    }