001
014
015 package com.liferay.portlet.shopping.service;
016
017
026 public class ShoppingCategoryServiceWrapper implements ShoppingCategoryService {
027 public ShoppingCategoryServiceWrapper(
028 ShoppingCategoryService shoppingCategoryService) {
029 _shoppingCategoryService = shoppingCategoryService;
030 }
031
032 public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
033 long parentCategoryId, java.lang.String name,
034 java.lang.String description,
035 com.liferay.portal.service.ServiceContext serviceContext)
036 throws com.liferay.portal.kernel.exception.PortalException,
037 com.liferay.portal.kernel.exception.SystemException {
038 return _shoppingCategoryService.addCategory(parentCategoryId, name,
039 description, serviceContext);
040 }
041
042 public void deleteCategory(long categoryId)
043 throws com.liferay.portal.kernel.exception.PortalException,
044 com.liferay.portal.kernel.exception.SystemException {
045 _shoppingCategoryService.deleteCategory(categoryId);
046 }
047
048 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
049 long groupId)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return _shoppingCategoryService.getCategories(groupId);
052 }
053
054 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
055 long groupId, long parentCategoryId, int start, int end)
056 throws com.liferay.portal.kernel.exception.SystemException {
057 return _shoppingCategoryService.getCategories(groupId,
058 parentCategoryId, start, end);
059 }
060
061 public int getCategoriesCount(long groupId, long parentCategoryId)
062 throws com.liferay.portal.kernel.exception.SystemException {
063 return _shoppingCategoryService.getCategoriesCount(groupId,
064 parentCategoryId);
065 }
066
067 public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
068 long categoryId)
069 throws com.liferay.portal.kernel.exception.PortalException,
070 com.liferay.portal.kernel.exception.SystemException {
071 return _shoppingCategoryService.getCategory(categoryId);
072 }
073
074 public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
075 long groupId, long categoryId)
076 throws com.liferay.portal.kernel.exception.SystemException {
077 _shoppingCategoryService.getSubcategoryIds(categoryIds, groupId,
078 categoryId);
079 }
080
081 public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
082 long categoryId, long parentCategoryId, java.lang.String name,
083 java.lang.String description, boolean mergeWithParentCategory,
084 com.liferay.portal.service.ServiceContext serviceContext)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException {
087 return _shoppingCategoryService.updateCategory(categoryId,
088 parentCategoryId, name, description, mergeWithParentCategory,
089 serviceContext);
090 }
091
092 public ShoppingCategoryService getWrappedShoppingCategoryService() {
093 return _shoppingCategoryService;
094 }
095
096 public void setWrappedShoppingCategoryService(
097 ShoppingCategoryService shoppingCategoryService) {
098 _shoppingCategoryService = shoppingCategoryService;
099 }
100
101 private ShoppingCategoryService _shoppingCategoryService;
102 }