001
014
015 package com.liferay.portlet.shopping.service;
016
017
026 public class ShoppingCouponServiceWrapper implements ShoppingCouponService {
027 public ShoppingCouponServiceWrapper(
028 ShoppingCouponService shoppingCouponService) {
029 _shoppingCouponService = shoppingCouponService;
030 }
031
032 public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
033 java.lang.String code, boolean autoCode, java.lang.String name,
034 java.lang.String description, int startDateMonth, int startDateDay,
035 int startDateYear, int startDateHour, int startDateMinute,
036 int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
037 int endDateMinute, boolean neverExpire, boolean active,
038 java.lang.String limitCategories, java.lang.String limitSkus,
039 double minOrder, double discount, java.lang.String discountType,
040 com.liferay.portal.service.ServiceContext serviceContext)
041 throws com.liferay.portal.kernel.exception.PortalException,
042 com.liferay.portal.kernel.exception.SystemException {
043 return _shoppingCouponService.addCoupon(code, autoCode, name,
044 description, startDateMonth, startDateDay, startDateYear,
045 startDateHour, startDateMinute, endDateMonth, endDateDay,
046 endDateYear, endDateHour, endDateMinute, neverExpire, active,
047 limitCategories, limitSkus, minOrder, discount, discountType,
048 serviceContext);
049 }
050
051 public void deleteCoupon(long groupId, long couponId)
052 throws com.liferay.portal.kernel.exception.PortalException,
053 com.liferay.portal.kernel.exception.SystemException {
054 _shoppingCouponService.deleteCoupon(groupId, couponId);
055 }
056
057 public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
058 long groupId, long couponId)
059 throws com.liferay.portal.kernel.exception.PortalException,
060 com.liferay.portal.kernel.exception.SystemException {
061 return _shoppingCouponService.getCoupon(groupId, couponId);
062 }
063
064 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
065 long groupId, long companyId, java.lang.String code, boolean active,
066 java.lang.String discountType, boolean andOperator, int start, int end)
067 throws com.liferay.portal.kernel.exception.PortalException,
068 com.liferay.portal.kernel.exception.SystemException {
069 return _shoppingCouponService.search(groupId, companyId, code, active,
070 discountType, andOperator, start, end);
071 }
072
073 public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
074 long couponId, java.lang.String name, java.lang.String description,
075 int startDateMonth, int startDateDay, int startDateYear,
076 int startDateHour, int startDateMinute, int endDateMonth,
077 int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
078 boolean neverExpire, boolean active, java.lang.String limitCategories,
079 java.lang.String limitSkus, double minOrder, double discount,
080 java.lang.String discountType,
081 com.liferay.portal.service.ServiceContext serviceContext)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException {
084 return _shoppingCouponService.updateCoupon(couponId, name, description,
085 startDateMonth, startDateDay, startDateYear, startDateHour,
086 startDateMinute, endDateMonth, endDateDay, endDateYear,
087 endDateHour, endDateMinute, neverExpire, active, limitCategories,
088 limitSkus, minOrder, discount, discountType, serviceContext);
089 }
090
091 public ShoppingCouponService getWrappedShoppingCouponService() {
092 return _shoppingCouponService;
093 }
094
095 private ShoppingCouponService _shoppingCouponService;
096 }