001
014
015 package com.liferay.portlet.shopping.service;
016
017
018
027 public class ShoppingCategoryServiceWrapper implements ShoppingCategoryService {
028 public ShoppingCategoryServiceWrapper(
029 ShoppingCategoryService shoppingCategoryService) {
030 _shoppingCategoryService = shoppingCategoryService;
031 }
032
033 public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
034 long parentCategoryId, java.lang.String name,
035 java.lang.String description,
036 com.liferay.portal.service.ServiceContext serviceContext)
037 throws com.liferay.portal.kernel.exception.PortalException,
038 com.liferay.portal.kernel.exception.SystemException {
039 return _shoppingCategoryService.addCategory(parentCategoryId, name,
040 description, serviceContext);
041 }
042
043 public void deleteCategory(long categoryId)
044 throws com.liferay.portal.kernel.exception.PortalException,
045 com.liferay.portal.kernel.exception.SystemException {
046 _shoppingCategoryService.deleteCategory(categoryId);
047 }
048
049 public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
050 long categoryId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException {
053 return _shoppingCategoryService.getCategory(categoryId);
054 }
055
056 public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
057 long categoryId, long parentCategoryId, java.lang.String name,
058 java.lang.String description, boolean mergeWithParentCategory,
059 com.liferay.portal.service.ServiceContext serviceContext)
060 throws com.liferay.portal.kernel.exception.PortalException,
061 com.liferay.portal.kernel.exception.SystemException {
062 return _shoppingCategoryService.updateCategory(categoryId,
063 parentCategoryId, name, description, mergeWithParentCategory,
064 serviceContext);
065 }
066
067 public ShoppingCategoryService getWrappedShoppingCategoryService() {
068 return _shoppingCategoryService;
069 }
070
071 private ShoppingCategoryService _shoppingCategoryService;
072 }