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 com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
049 long categoryId)
050 throws com.liferay.portal.kernel.exception.PortalException,
051 com.liferay.portal.kernel.exception.SystemException {
052 return _shoppingCategoryService.getCategory(categoryId);
053 }
054
055 public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
056 long categoryId, long parentCategoryId, java.lang.String name,
057 java.lang.String description, boolean mergeWithParentCategory,
058 com.liferay.portal.service.ServiceContext serviceContext)
059 throws com.liferay.portal.kernel.exception.PortalException,
060 com.liferay.portal.kernel.exception.SystemException {
061 return _shoppingCategoryService.updateCategory(categoryId,
062 parentCategoryId, name, description, mergeWithParentCategory,
063 serviceContext);
064 }
065
066 public ShoppingCategoryService getWrappedShoppingCategoryService() {
067 return _shoppingCategoryService;
068 }
069
070 private ShoppingCategoryService _shoppingCategoryService;
071 }