1
22
23 package com.liferay.portlet.shopping.service;
24
25
26
53 public class ShoppingCategoryLocalServiceUtil {
54 public static com.liferay.portlet.shopping.model.ShoppingCategory addShoppingCategory(
55 com.liferay.portlet.shopping.model.ShoppingCategory model)
56 throws com.liferay.portal.SystemException {
57 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
58
59 return shoppingCategoryLocalService.addShoppingCategory(model);
60 }
61
62 public static java.util.List dynamicQuery(
63 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
64 throws com.liferay.portal.SystemException {
65 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
66
67 return shoppingCategoryLocalService.dynamicQuery(queryInitializer);
68 }
69
70 public static java.util.List dynamicQuery(
71 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
72 int begin, int end) throws com.liferay.portal.SystemException {
73 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
74
75 return shoppingCategoryLocalService.dynamicQuery(queryInitializer,
76 begin, end);
77 }
78
79 public static com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
80 com.liferay.portlet.shopping.model.ShoppingCategory model)
81 throws com.liferay.portal.SystemException {
82 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
83
84 return shoppingCategoryLocalService.updateShoppingCategory(model);
85 }
86
87 public static com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence getShoppingCartPersistence() {
88 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
89
90 return shoppingCategoryLocalService.getShoppingCartPersistence();
91 }
92
93 public static void setShoppingCartPersistence(
94 com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence shoppingCartPersistence) {
95 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
96
97 shoppingCategoryLocalService.setShoppingCartPersistence(shoppingCartPersistence);
98 }
99
100 public static com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence getShoppingCategoryPersistence() {
101 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
102
103 return shoppingCategoryLocalService.getShoppingCategoryPersistence();
104 }
105
106 public static void setShoppingCategoryPersistence(
107 com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence shoppingCategoryPersistence) {
108 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
109
110 shoppingCategoryLocalService.setShoppingCategoryPersistence(shoppingCategoryPersistence);
111 }
112
113 public static com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence getShoppingCouponPersistence() {
114 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
115
116 return shoppingCategoryLocalService.getShoppingCouponPersistence();
117 }
118
119 public static void setShoppingCouponPersistence(
120 com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence shoppingCouponPersistence) {
121 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
122
123 shoppingCategoryLocalService.setShoppingCouponPersistence(shoppingCouponPersistence);
124 }
125
126 public static com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinder getShoppingCouponFinder() {
127 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
128
129 return shoppingCategoryLocalService.getShoppingCouponFinder();
130 }
131
132 public static void setShoppingCouponFinder(
133 com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinder shoppingCouponFinder) {
134 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
135
136 shoppingCategoryLocalService.setShoppingCouponFinder(shoppingCouponFinder);
137 }
138
139 public static com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence getShoppingItemPersistence() {
140 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
141
142 return shoppingCategoryLocalService.getShoppingItemPersistence();
143 }
144
145 public static void setShoppingItemPersistence(
146 com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence shoppingItemPersistence) {
147 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
148
149 shoppingCategoryLocalService.setShoppingItemPersistence(shoppingItemPersistence);
150 }
151
152 public static com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder getShoppingItemFinder() {
153 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
154
155 return shoppingCategoryLocalService.getShoppingItemFinder();
156 }
157
158 public static void setShoppingItemFinder(
159 com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder shoppingItemFinder) {
160 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
161
162 shoppingCategoryLocalService.setShoppingItemFinder(shoppingItemFinder);
163 }
164
165 public static com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence getShoppingItemFieldPersistence() {
166 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
167
168 return shoppingCategoryLocalService.getShoppingItemFieldPersistence();
169 }
170
171 public static void setShoppingItemFieldPersistence(
172 com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence shoppingItemFieldPersistence) {
173 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
174
175 shoppingCategoryLocalService.setShoppingItemFieldPersistence(shoppingItemFieldPersistence);
176 }
177
178 public static com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence getShoppingItemPricePersistence() {
179 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
180
181 return shoppingCategoryLocalService.getShoppingItemPricePersistence();
182 }
183
184 public static void setShoppingItemPricePersistence(
185 com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence shoppingItemPricePersistence) {
186 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
187
188 shoppingCategoryLocalService.setShoppingItemPricePersistence(shoppingItemPricePersistence);
189 }
190
191 public static com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence getShoppingOrderPersistence() {
192 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
193
194 return shoppingCategoryLocalService.getShoppingOrderPersistence();
195 }
196
197 public static void setShoppingOrderPersistence(
198 com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence shoppingOrderPersistence) {
199 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
200
201 shoppingCategoryLocalService.setShoppingOrderPersistence(shoppingOrderPersistence);
202 }
203
204 public static com.liferay.portlet.shopping.service.persistence.ShoppingOrderFinder getShoppingOrderFinder() {
205 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
206
207 return shoppingCategoryLocalService.getShoppingOrderFinder();
208 }
209
210 public static void setShoppingOrderFinder(
211 com.liferay.portlet.shopping.service.persistence.ShoppingOrderFinder shoppingOrderFinder) {
212 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
213
214 shoppingCategoryLocalService.setShoppingOrderFinder(shoppingOrderFinder);
215 }
216
217 public static com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence getShoppingOrderItemPersistence() {
218 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
219
220 return shoppingCategoryLocalService.getShoppingOrderItemPersistence();
221 }
222
223 public static void setShoppingOrderItemPersistence(
224 com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence shoppingOrderItemPersistence) {
225 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
226
227 shoppingCategoryLocalService.setShoppingOrderItemPersistence(shoppingOrderItemPersistence);
228 }
229
230 public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
231 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
232
233 return shoppingCategoryLocalService.getResourcePersistence();
234 }
235
236 public static void setResourcePersistence(
237 com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
238 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
239
240 shoppingCategoryLocalService.setResourcePersistence(resourcePersistence);
241 }
242
243 public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
244 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
245
246 return shoppingCategoryLocalService.getResourceFinder();
247 }
248
249 public static void setResourceFinder(
250 com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
251 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
252
253 shoppingCategoryLocalService.setResourceFinder(resourceFinder);
254 }
255
256 public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
257 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
258
259 return shoppingCategoryLocalService.getUserPersistence();
260 }
261
262 public static void setUserPersistence(
263 com.liferay.portal.service.persistence.UserPersistence userPersistence) {
264 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
265
266 shoppingCategoryLocalService.setUserPersistence(userPersistence);
267 }
268
269 public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
270 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
271
272 return shoppingCategoryLocalService.getUserFinder();
273 }
274
275 public static void setUserFinder(
276 com.liferay.portal.service.persistence.UserFinder userFinder) {
277 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
278
279 shoppingCategoryLocalService.setUserFinder(userFinder);
280 }
281
282 public static void afterPropertiesSet() {
283 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
284
285 shoppingCategoryLocalService.afterPropertiesSet();
286 }
287
288 public static com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
289 long userId, long plid, long parentCategoryId, java.lang.String name,
290 java.lang.String description, boolean addCommunityPermissions,
291 boolean addGuestPermissions)
292 throws com.liferay.portal.PortalException,
293 com.liferay.portal.SystemException {
294 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
295
296 return shoppingCategoryLocalService.addCategory(userId, plid,
297 parentCategoryId, name, description, addCommunityPermissions,
298 addGuestPermissions);
299 }
300
301 public static com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
302 long userId, long plid, long parentCategoryId, java.lang.String name,
303 java.lang.String description, java.lang.String[] communityPermissions,
304 java.lang.String[] guestPermissions)
305 throws com.liferay.portal.PortalException,
306 com.liferay.portal.SystemException {
307 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
308
309 return shoppingCategoryLocalService.addCategory(userId, plid,
310 parentCategoryId, name, description, communityPermissions,
311 guestPermissions);
312 }
313
314 public static com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
315 long userId, long plid, long parentCategoryId, java.lang.String name,
316 java.lang.String description,
317 java.lang.Boolean addCommunityPermissions,
318 java.lang.Boolean addGuestPermissions,
319 java.lang.String[] communityPermissions,
320 java.lang.String[] guestPermissions)
321 throws com.liferay.portal.PortalException,
322 com.liferay.portal.SystemException {
323 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
324
325 return shoppingCategoryLocalService.addCategory(userId, plid,
326 parentCategoryId, name, description, addCommunityPermissions,
327 addGuestPermissions, communityPermissions, guestPermissions);
328 }
329
330 public static void addCategoryResources(long categoryId,
331 boolean addCommunityPermissions, boolean addGuestPermissions)
332 throws com.liferay.portal.PortalException,
333 com.liferay.portal.SystemException {
334 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
335
336 shoppingCategoryLocalService.addCategoryResources(categoryId,
337 addCommunityPermissions, addGuestPermissions);
338 }
339
340 public static void addCategoryResources(
341 com.liferay.portlet.shopping.model.ShoppingCategory category,
342 boolean addCommunityPermissions, boolean addGuestPermissions)
343 throws com.liferay.portal.PortalException,
344 com.liferay.portal.SystemException {
345 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
346
347 shoppingCategoryLocalService.addCategoryResources(category,
348 addCommunityPermissions, addGuestPermissions);
349 }
350
351 public static void addCategoryResources(long categoryId,
352 java.lang.String[] communityPermissions,
353 java.lang.String[] guestPermissions)
354 throws com.liferay.portal.PortalException,
355 com.liferay.portal.SystemException {
356 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
357
358 shoppingCategoryLocalService.addCategoryResources(categoryId,
359 communityPermissions, guestPermissions);
360 }
361
362 public static void addCategoryResources(
363 com.liferay.portlet.shopping.model.ShoppingCategory category,
364 java.lang.String[] communityPermissions,
365 java.lang.String[] guestPermissions)
366 throws com.liferay.portal.PortalException,
367 com.liferay.portal.SystemException {
368 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
369
370 shoppingCategoryLocalService.addCategoryResources(category,
371 communityPermissions, guestPermissions);
372 }
373
374 public static void deleteCategories(long groupId)
375 throws com.liferay.portal.PortalException,
376 com.liferay.portal.SystemException {
377 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
378
379 shoppingCategoryLocalService.deleteCategories(groupId);
380 }
381
382 public static void deleteCategory(long categoryId)
383 throws com.liferay.portal.PortalException,
384 com.liferay.portal.SystemException {
385 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
386
387 shoppingCategoryLocalService.deleteCategory(categoryId);
388 }
389
390 public static void deleteCategory(
391 com.liferay.portlet.shopping.model.ShoppingCategory category)
392 throws com.liferay.portal.PortalException,
393 com.liferay.portal.SystemException {
394 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
395
396 shoppingCategoryLocalService.deleteCategory(category);
397 }
398
399 public static java.util.List getCategories(long groupId)
400 throws com.liferay.portal.SystemException {
401 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
402
403 return shoppingCategoryLocalService.getCategories(groupId);
404 }
405
406 public static java.util.List getCategories(long groupId,
407 long parentCategoryId, int begin, int end)
408 throws com.liferay.portal.SystemException {
409 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
410
411 return shoppingCategoryLocalService.getCategories(groupId,
412 parentCategoryId, begin, end);
413 }
414
415 public static int getCategoriesCount(long groupId, long parentCategoryId)
416 throws com.liferay.portal.SystemException {
417 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
418
419 return shoppingCategoryLocalService.getCategoriesCount(groupId,
420 parentCategoryId);
421 }
422
423 public static com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
424 long categoryId)
425 throws com.liferay.portal.PortalException,
426 com.liferay.portal.SystemException {
427 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
428
429 return shoppingCategoryLocalService.getCategory(categoryId);
430 }
431
432 public static com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
433 com.liferay.portlet.shopping.model.ShoppingCategory category)
434 throws com.liferay.portal.PortalException,
435 com.liferay.portal.SystemException {
436 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
437
438 return shoppingCategoryLocalService.getParentCategory(category);
439 }
440
441 public static java.util.List getParentCategories(long categoryId)
442 throws com.liferay.portal.PortalException,
443 com.liferay.portal.SystemException {
444 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
445
446 return shoppingCategoryLocalService.getParentCategories(categoryId);
447 }
448
449 public static java.util.List getParentCategories(
450 com.liferay.portlet.shopping.model.ShoppingCategory category)
451 throws com.liferay.portal.PortalException,
452 com.liferay.portal.SystemException {
453 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
454
455 return shoppingCategoryLocalService.getParentCategories(category);
456 }
457
458 public static void getSubcategoryIds(java.util.List categoryIds,
459 long groupId, long categoryId)
460 throws com.liferay.portal.SystemException {
461 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
462
463 shoppingCategoryLocalService.getSubcategoryIds(categoryIds, groupId,
464 categoryId);
465 }
466
467 public static com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
468 long categoryId, long parentCategoryId, java.lang.String name,
469 java.lang.String description, boolean mergeWithParentCategory)
470 throws com.liferay.portal.PortalException,
471 com.liferay.portal.SystemException {
472 ShoppingCategoryLocalService shoppingCategoryLocalService = ShoppingCategoryLocalServiceFactory.getService();
473
474 return shoppingCategoryLocalService.updateCategory(categoryId,
475 parentCategoryId, name, description, mergeWithParentCategory);
476 }
477 }