1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.shopping.service;
16  
17  /**
18   * <a href="ShoppingCategoryLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
19   *
20   * <p>
21   * ServiceBuilder generated this class. Modifications in this class will be
22   * overwritten the next time is generated.
23   * </p>
24   *
25   * <p>
26   * This class is a wrapper for {@link ShoppingCategoryLocalService}.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       ShoppingCategoryLocalService
31   * @generated
32   */
33  public class ShoppingCategoryLocalServiceWrapper
34      implements ShoppingCategoryLocalService {
35      public ShoppingCategoryLocalServiceWrapper(
36          ShoppingCategoryLocalService shoppingCategoryLocalService) {
37          _shoppingCategoryLocalService = shoppingCategoryLocalService;
38      }
39  
40      public com.liferay.portlet.shopping.model.ShoppingCategory addShoppingCategory(
41          com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
42          throws com.liferay.portal.SystemException {
43          return _shoppingCategoryLocalService.addShoppingCategory(shoppingCategory);
44      }
45  
46      public com.liferay.portlet.shopping.model.ShoppingCategory createShoppingCategory(
47          long categoryId) {
48          return _shoppingCategoryLocalService.createShoppingCategory(categoryId);
49      }
50  
51      public void deleteShoppingCategory(long categoryId)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          _shoppingCategoryLocalService.deleteShoppingCategory(categoryId);
55      }
56  
57      public void deleteShoppingCategory(
58          com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
59          throws com.liferay.portal.SystemException {
60          _shoppingCategoryLocalService.deleteShoppingCategory(shoppingCategory);
61      }
62  
63      @SuppressWarnings("rawtypes")
64      public java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException {
67          return _shoppingCategoryLocalService.dynamicQuery(dynamicQuery);
68      }
69  
70      @SuppressWarnings("rawtypes")
71      public java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.SystemException {
74          return _shoppingCategoryLocalService.dynamicQuery(dynamicQuery, start,
75              end);
76      }
77  
78      @SuppressWarnings("rawtypes")
79      public java.util.List dynamicQuery(
80          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
81          int end,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.SystemException {
84          return _shoppingCategoryLocalService.dynamicQuery(dynamicQuery, start,
85              end, orderByComparator);
86      }
87  
88      public int dynamicQueryCount(
89          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
90          throws com.liferay.portal.SystemException {
91          return _shoppingCategoryLocalService.dynamicQueryCount(dynamicQuery);
92      }
93  
94      public com.liferay.portlet.shopping.model.ShoppingCategory getShoppingCategory(
95          long categoryId)
96          throws com.liferay.portal.PortalException,
97              com.liferay.portal.SystemException {
98          return _shoppingCategoryLocalService.getShoppingCategory(categoryId);
99      }
100 
101     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getShoppingCategories(
102         int start, int end) throws com.liferay.portal.SystemException {
103         return _shoppingCategoryLocalService.getShoppingCategories(start, end);
104     }
105 
106     public int getShoppingCategoriesCount()
107         throws com.liferay.portal.SystemException {
108         return _shoppingCategoryLocalService.getShoppingCategoriesCount();
109     }
110 
111     public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
112         com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
113         throws com.liferay.portal.SystemException {
114         return _shoppingCategoryLocalService.updateShoppingCategory(shoppingCategory);
115     }
116 
117     public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
118         com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
119         boolean merge) throws com.liferay.portal.SystemException {
120         return _shoppingCategoryLocalService.updateShoppingCategory(shoppingCategory,
121             merge);
122     }
123 
124     public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
125         long userId, long parentCategoryId, java.lang.String name,
126         java.lang.String description,
127         com.liferay.portal.service.ServiceContext serviceContext)
128         throws com.liferay.portal.PortalException,
129             com.liferay.portal.SystemException {
130         return _shoppingCategoryLocalService.addCategory(userId,
131             parentCategoryId, name, description, serviceContext);
132     }
133 
134     public void addCategoryResources(long categoryId,
135         boolean addCommunityPermissions, boolean addGuestPermissions)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException {
138         _shoppingCategoryLocalService.addCategoryResources(categoryId,
139             addCommunityPermissions, addGuestPermissions);
140     }
141 
142     public void addCategoryResources(long categoryId,
143         java.lang.String[] communityPermissions,
144         java.lang.String[] guestPermissions)
145         throws com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException {
147         _shoppingCategoryLocalService.addCategoryResources(categoryId,
148             communityPermissions, guestPermissions);
149     }
150 
151     public void addCategoryResources(
152         com.liferay.portlet.shopping.model.ShoppingCategory category,
153         boolean addCommunityPermissions, boolean addGuestPermissions)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException {
156         _shoppingCategoryLocalService.addCategoryResources(category,
157             addCommunityPermissions, addGuestPermissions);
158     }
159 
160     public void addCategoryResources(
161         com.liferay.portlet.shopping.model.ShoppingCategory category,
162         java.lang.String[] communityPermissions,
163         java.lang.String[] guestPermissions)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException {
166         _shoppingCategoryLocalService.addCategoryResources(category,
167             communityPermissions, guestPermissions);
168     }
169 
170     public void deleteCategories(long groupId)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException {
173         _shoppingCategoryLocalService.deleteCategories(groupId);
174     }
175 
176     public void deleteCategory(long categoryId)
177         throws com.liferay.portal.PortalException,
178             com.liferay.portal.SystemException {
179         _shoppingCategoryLocalService.deleteCategory(categoryId);
180     }
181 
182     public void deleteCategory(
183         com.liferay.portlet.shopping.model.ShoppingCategory category)
184         throws com.liferay.portal.PortalException,
185             com.liferay.portal.SystemException {
186         _shoppingCategoryLocalService.deleteCategory(category);
187     }
188 
189     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
190         long groupId) throws com.liferay.portal.SystemException {
191         return _shoppingCategoryLocalService.getCategories(groupId);
192     }
193 
194     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
195         long groupId, long parentCategoryId, int start, int end)
196         throws com.liferay.portal.SystemException {
197         return _shoppingCategoryLocalService.getCategories(groupId,
198             parentCategoryId, start, end);
199     }
200 
201     public int getCategoriesCount(long groupId, long parentCategoryId)
202         throws com.liferay.portal.SystemException {
203         return _shoppingCategoryLocalService.getCategoriesCount(groupId,
204             parentCategoryId);
205     }
206 
207     public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
208         long categoryId)
209         throws com.liferay.portal.PortalException,
210             com.liferay.portal.SystemException {
211         return _shoppingCategoryLocalService.getCategory(categoryId);
212     }
213 
214     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
215         long categoryId)
216         throws com.liferay.portal.PortalException,
217             com.liferay.portal.SystemException {
218         return _shoppingCategoryLocalService.getParentCategories(categoryId);
219     }
220 
221     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
222         com.liferay.portlet.shopping.model.ShoppingCategory category)
223         throws com.liferay.portal.PortalException,
224             com.liferay.portal.SystemException {
225         return _shoppingCategoryLocalService.getParentCategories(category);
226     }
227 
228     public com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
229         com.liferay.portlet.shopping.model.ShoppingCategory category)
230         throws com.liferay.portal.PortalException,
231             com.liferay.portal.SystemException {
232         return _shoppingCategoryLocalService.getParentCategory(category);
233     }
234 
235     public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
236         long groupId, long categoryId)
237         throws com.liferay.portal.SystemException {
238         _shoppingCategoryLocalService.getSubcategoryIds(categoryIds, groupId,
239             categoryId);
240     }
241 
242     public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
243         long categoryId, long parentCategoryId, java.lang.String name,
244         java.lang.String description, boolean mergeWithParentCategory,
245         com.liferay.portal.service.ServiceContext serviceContext)
246         throws com.liferay.portal.PortalException,
247             com.liferay.portal.SystemException {
248         return _shoppingCategoryLocalService.updateCategory(categoryId,
249             parentCategoryId, name, description, mergeWithParentCategory,
250             serviceContext);
251     }
252 
253     public ShoppingCategoryLocalService getWrappedShoppingCategoryLocalService() {
254         return _shoppingCategoryLocalService;
255     }
256 
257     private ShoppingCategoryLocalService _shoppingCategoryLocalService;
258 }