001
014
015 package com.liferay.portlet.shopping.service;
016
017 import com.liferay.portal.service.ServiceWrapper;
018
019
026 public class ShoppingCouponServiceWrapper implements ShoppingCouponService,
027 ServiceWrapper<ShoppingCouponService> {
028 public ShoppingCouponServiceWrapper(
029 ShoppingCouponService shoppingCouponService) {
030 _shoppingCouponService = shoppingCouponService;
031 }
032
033
038 @Override
039 public java.lang.String getBeanIdentifier() {
040 return _shoppingCouponService.getBeanIdentifier();
041 }
042
043
048 @Override
049 public void setBeanIdentifier(java.lang.String beanIdentifier) {
050 _shoppingCouponService.setBeanIdentifier(beanIdentifier);
051 }
052
053 @Override
054 public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
055 java.lang.String code, boolean autoCode, java.lang.String name,
056 java.lang.String description, int startDateMonth, int startDateDay,
057 int startDateYear, int startDateHour, int startDateMinute,
058 int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
059 int endDateMinute, boolean neverExpire, boolean active,
060 java.lang.String limitCategories, java.lang.String limitSkus,
061 double minOrder, double discount, java.lang.String discountType,
062 com.liferay.portal.service.ServiceContext serviceContext)
063 throws com.liferay.portal.kernel.exception.PortalException,
064 com.liferay.portal.kernel.exception.SystemException {
065 return _shoppingCouponService.addCoupon(code, autoCode, name,
066 description, startDateMonth, startDateDay, startDateYear,
067 startDateHour, startDateMinute, endDateMonth, endDateDay,
068 endDateYear, endDateHour, endDateMinute, neverExpire, active,
069 limitCategories, limitSkus, minOrder, discount, discountType,
070 serviceContext);
071 }
072
073 @Override
074 public void deleteCoupon(long groupId, long couponId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 _shoppingCouponService.deleteCoupon(groupId, couponId);
078 }
079
080 @Override
081 public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
082 long groupId, long couponId)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException {
085 return _shoppingCouponService.getCoupon(groupId, couponId);
086 }
087
088 @Override
089 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
090 long groupId, long companyId, java.lang.String code, boolean active,
091 java.lang.String discountType, boolean andOperator, int start, int end)
092 throws com.liferay.portal.kernel.exception.PortalException,
093 com.liferay.portal.kernel.exception.SystemException {
094 return _shoppingCouponService.search(groupId, companyId, code, active,
095 discountType, andOperator, start, end);
096 }
097
098 @Override
099 public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
100 long couponId, java.lang.String name, java.lang.String description,
101 int startDateMonth, int startDateDay, int startDateYear,
102 int startDateHour, int startDateMinute, int endDateMonth,
103 int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
104 boolean neverExpire, boolean active, java.lang.String limitCategories,
105 java.lang.String limitSkus, double minOrder, double discount,
106 java.lang.String discountType,
107 com.liferay.portal.service.ServiceContext serviceContext)
108 throws com.liferay.portal.kernel.exception.PortalException,
109 com.liferay.portal.kernel.exception.SystemException {
110 return _shoppingCouponService.updateCoupon(couponId, name, description,
111 startDateMonth, startDateDay, startDateYear, startDateHour,
112 startDateMinute, endDateMonth, endDateDay, endDateYear,
113 endDateHour, endDateMinute, neverExpire, active, limitCategories,
114 limitSkus, minOrder, discount, discountType, serviceContext);
115 }
116
117
120 public ShoppingCouponService getWrappedShoppingCouponService() {
121 return _shoppingCouponService;
122 }
123
124
127 public void setWrappedShoppingCouponService(
128 ShoppingCouponService shoppingCouponService) {
129 _shoppingCouponService = shoppingCouponService;
130 }
131
132 @Override
133 public ShoppingCouponService getWrappedService() {
134 return _shoppingCouponService;
135 }
136
137 @Override
138 public void setWrappedService(ShoppingCouponService shoppingCouponService) {
139 _shoppingCouponService = shoppingCouponService;
140 }
141
142 private ShoppingCouponService _shoppingCouponService;
143 }