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