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
040 public java.lang.String getBeanIdentifier() {
041 return _shoppingCategoryService.getBeanIdentifier();
042 }
043
044
049 public void setBeanIdentifier(java.lang.String beanIdentifier) {
050 _shoppingCategoryService.setBeanIdentifier(beanIdentifier);
051 }
052
053 public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
054 long parentCategoryId, java.lang.String name,
055 java.lang.String description,
056 com.liferay.portal.service.ServiceContext serviceContext)
057 throws com.liferay.portal.kernel.exception.PortalException,
058 com.liferay.portal.kernel.exception.SystemException {
059 return _shoppingCategoryService.addCategory(parentCategoryId, name,
060 description, serviceContext);
061 }
062
063 public void deleteCategory(long categoryId)
064 throws com.liferay.portal.kernel.exception.PortalException,
065 com.liferay.portal.kernel.exception.SystemException {
066 _shoppingCategoryService.deleteCategory(categoryId);
067 }
068
069 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
070 long groupId)
071 throws com.liferay.portal.kernel.exception.SystemException {
072 return _shoppingCategoryService.getCategories(groupId);
073 }
074
075 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
076 long groupId, long parentCategoryId, int start, int end)
077 throws com.liferay.portal.kernel.exception.SystemException {
078 return _shoppingCategoryService.getCategories(groupId,
079 parentCategoryId, start, end);
080 }
081
082 public int getCategoriesCount(long groupId, long parentCategoryId)
083 throws com.liferay.portal.kernel.exception.SystemException {
084 return _shoppingCategoryService.getCategoriesCount(groupId,
085 parentCategoryId);
086 }
087
088 public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
089 long categoryId)
090 throws com.liferay.portal.kernel.exception.PortalException,
091 com.liferay.portal.kernel.exception.SystemException {
092 return _shoppingCategoryService.getCategory(categoryId);
093 }
094
095 public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
096 long groupId, long categoryId)
097 throws com.liferay.portal.kernel.exception.SystemException {
098 _shoppingCategoryService.getSubcategoryIds(categoryIds, groupId,
099 categoryId);
100 }
101
102 public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
103 long categoryId, long parentCategoryId, java.lang.String name,
104 java.lang.String description, boolean mergeWithParentCategory,
105 com.liferay.portal.service.ServiceContext serviceContext)
106 throws com.liferay.portal.kernel.exception.PortalException,
107 com.liferay.portal.kernel.exception.SystemException {
108 return _shoppingCategoryService.updateCategory(categoryId,
109 parentCategoryId, name, description, mergeWithParentCategory,
110 serviceContext);
111 }
112
113
116 public ShoppingCategoryService getWrappedShoppingCategoryService() {
117 return _shoppingCategoryService;
118 }
119
120
123 public void setWrappedShoppingCategoryService(
124 ShoppingCategoryService shoppingCategoryService) {
125 _shoppingCategoryService = shoppingCategoryService;
126 }
127
128 public ShoppingCategoryService getWrappedService() {
129 return _shoppingCategoryService;
130 }
131
132 public void setWrappedService(
133 ShoppingCategoryService shoppingCategoryService) {
134 _shoppingCategoryService = shoppingCategoryService;
135 }
136
137 private ShoppingCategoryService _shoppingCategoryService;
138 }