001
014
015 package com.liferay.portlet.shopping.service;
016
017 import com.liferay.portal.service.ServiceWrapper;
018
019
026 public class ShoppingCategoryServiceWrapper implements ShoppingCategoryService,
027 ServiceWrapper<ShoppingCategoryService> {
028 public ShoppingCategoryServiceWrapper(
029 ShoppingCategoryService shoppingCategoryService) {
030 _shoppingCategoryService = shoppingCategoryService;
031 }
032
033
038 @Override
039 public java.lang.String getBeanIdentifier() {
040 return _shoppingCategoryService.getBeanIdentifier();
041 }
042
043
048 @Override
049 public void setBeanIdentifier(java.lang.String beanIdentifier) {
050 _shoppingCategoryService.setBeanIdentifier(beanIdentifier);
051 }
052
053 @Override
054 public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
055 long parentCategoryId, java.lang.String name,
056 java.lang.String description,
057 com.liferay.portal.service.ServiceContext serviceContext)
058 throws com.liferay.portal.kernel.exception.PortalException,
059 com.liferay.portal.kernel.exception.SystemException {
060 return _shoppingCategoryService.addCategory(parentCategoryId, name,
061 description, serviceContext);
062 }
063
064 @Override
065 public void deleteCategory(long categoryId)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException {
068 _shoppingCategoryService.deleteCategory(categoryId);
069 }
070
071 @Override
072 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
073 long groupId)
074 throws com.liferay.portal.kernel.exception.SystemException {
075 return _shoppingCategoryService.getCategories(groupId);
076 }
077
078 @Override
079 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
080 long groupId, long parentCategoryId, int start, int end)
081 throws com.liferay.portal.kernel.exception.SystemException {
082 return _shoppingCategoryService.getCategories(groupId,
083 parentCategoryId, start, end);
084 }
085
086 @Override
087 public int getCategoriesCount(long groupId, long parentCategoryId)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return _shoppingCategoryService.getCategoriesCount(groupId,
090 parentCategoryId);
091 }
092
093 @Override
094 public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
095 long categoryId)
096 throws com.liferay.portal.kernel.exception.PortalException,
097 com.liferay.portal.kernel.exception.SystemException {
098 return _shoppingCategoryService.getCategory(categoryId);
099 }
100
101 @Override
102 public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
103 long groupId, long categoryId)
104 throws com.liferay.portal.kernel.exception.SystemException {
105 _shoppingCategoryService.getSubcategoryIds(categoryIds, groupId,
106 categoryId);
107 }
108
109 @Override
110 public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
111 long categoryId, long parentCategoryId, java.lang.String name,
112 java.lang.String description, boolean mergeWithParentCategory,
113 com.liferay.portal.service.ServiceContext serviceContext)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.SystemException {
116 return _shoppingCategoryService.updateCategory(categoryId,
117 parentCategoryId, name, description, mergeWithParentCategory,
118 serviceContext);
119 }
120
121
124 public ShoppingCategoryService getWrappedShoppingCategoryService() {
125 return _shoppingCategoryService;
126 }
127
128
131 public void setWrappedShoppingCategoryService(
132 ShoppingCategoryService shoppingCategoryService) {
133 _shoppingCategoryService = shoppingCategoryService;
134 }
135
136 @Override
137 public ShoppingCategoryService getWrappedService() {
138 return _shoppingCategoryService;
139 }
140
141 @Override
142 public void setWrappedService(
143 ShoppingCategoryService shoppingCategoryService) {
144 _shoppingCategoryService = shoppingCategoryService;
145 }
146
147 private ShoppingCategoryService _shoppingCategoryService;
148 }