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