com.liferay.portlet.shopping.service.impl
Class ShoppingCouponServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.base.PrincipalBean
      extended by com.liferay.portlet.shopping.service.base.ShoppingCouponServiceBaseImpl
          extended by com.liferay.portlet.shopping.service.impl.ShoppingCouponServiceImpl
All Implemented Interfaces:
com.liferay.portlet.shopping.service.ShoppingCouponService

public class ShoppingCouponServiceImpl
extends ShoppingCouponServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class com.liferay.portlet.shopping.service.base.ShoppingCouponServiceBaseImpl
counterLocalService, counterService, shoppingCartLocalService, shoppingCartPersistence, shoppingCategoryLocalService, shoppingCategoryPersistence, shoppingCategoryService, shoppingCouponFinder, shoppingCouponLocalService, shoppingCouponPersistence, shoppingCouponService, shoppingItemFieldLocalService, shoppingItemFieldPersistence, shoppingItemFinder, shoppingItemLocalService, shoppingItemPersistence, shoppingItemPriceLocalService, shoppingItemPricePersistence, shoppingItemService, shoppingOrderFinder, shoppingOrderItemLocalService, shoppingOrderItemPersistence, shoppingOrderLocalService, shoppingOrderPersistence, shoppingOrderService, userFinder, userLocalService, userPersistence, userService
 
Fields inherited from class com.liferay.portal.service.base.PrincipalBean
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
ShoppingCouponServiceImpl()
           
 
Method Summary
 com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(java.lang.String code, boolean autoCode, java.lang.String name, java.lang.String description, int startDateMonth, int startDateDay, int startDateYear, int startDateHour, int startDateMinute, int endDateMonth, int endDateDay, int endDateYear, int endDateHour, int endDateMinute, boolean neverExpire, boolean active, java.lang.String limitCategories, java.lang.String limitSkus, double minOrder, double discount, java.lang.String discountType, com.liferay.portal.service.ServiceContext serviceContext)
           
 void deleteCoupon(long groupId, long couponId)
           
 com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(long groupId, long couponId)
           
 java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(long groupId, long companyId, java.lang.String code, boolean active, java.lang.String discountType, boolean andOperator, int start, int end)
           
 com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(long couponId, java.lang.String name, java.lang.String description, int startDateMonth, int startDateDay, int startDateYear, int startDateHour, int startDateMinute, int endDateMonth, int endDateDay, int endDateYear, int endDateHour, int endDateMinute, boolean neverExpire, boolean active, java.lang.String limitCategories, java.lang.String limitSkus, double minOrder, double discount, java.lang.String discountType, com.liferay.portal.service.ServiceContext serviceContext)
           
 
Methods inherited from class com.liferay.portlet.shopping.service.base.ShoppingCouponServiceBaseImpl
getCounterLocalService, getCounterService, getShoppingCartLocalService, getShoppingCartPersistence, getShoppingCategoryLocalService, getShoppingCategoryPersistence, getShoppingCategoryService, getShoppingCouponFinder, getShoppingCouponLocalService, getShoppingCouponPersistence, getShoppingCouponService, getShoppingItemFieldLocalService, getShoppingItemFieldPersistence, getShoppingItemFinder, getShoppingItemLocalService, getShoppingItemPersistence, getShoppingItemPriceLocalService, getShoppingItemPricePersistence, getShoppingItemService, getShoppingOrderFinder, getShoppingOrderItemLocalService, getShoppingOrderItemPersistence, getShoppingOrderLocalService, getShoppingOrderPersistence, getShoppingOrderService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setCounterLocalService, setCounterService, setShoppingCartLocalService, setShoppingCartPersistence, setShoppingCategoryLocalService, setShoppingCategoryPersistence, setShoppingCategoryService, setShoppingCouponFinder, setShoppingCouponLocalService, setShoppingCouponPersistence, setShoppingCouponService, setShoppingItemFieldLocalService, setShoppingItemFieldPersistence, setShoppingItemFinder, setShoppingItemLocalService, setShoppingItemPersistence, setShoppingItemPriceLocalService, setShoppingItemPricePersistence, setShoppingItemService, setShoppingOrderFinder, setShoppingOrderItemLocalService, setShoppingOrderItemPersistence, setShoppingOrderLocalService, setShoppingOrderPersistence, setShoppingOrderService, setUserFinder, setUserLocalService, setUserPersistence, setUserService
 
Methods inherited from class com.liferay.portal.service.base.PrincipalBean
getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingCouponServiceImpl

public ShoppingCouponServiceImpl()
Method Detail

addCoupon

public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(java.lang.String code,
                                                                   boolean autoCode,
                                                                   java.lang.String name,
                                                                   java.lang.String description,
                                                                   int startDateMonth,
                                                                   int startDateDay,
                                                                   int startDateYear,
                                                                   int startDateHour,
                                                                   int startDateMinute,
                                                                   int endDateMonth,
                                                                   int endDateDay,
                                                                   int endDateYear,
                                                                   int endDateHour,
                                                                   int endDateMinute,
                                                                   boolean neverExpire,
                                                                   boolean active,
                                                                   java.lang.String limitCategories,
                                                                   java.lang.String limitSkus,
                                                                   double minOrder,
                                                                   double discount,
                                                                   java.lang.String discountType,
                                                                   com.liferay.portal.service.ServiceContext serviceContext)
                                                            throws com.liferay.portal.PortalException,
                                                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteCoupon

public void deleteCoupon(long groupId,
                         long couponId)
                  throws com.liferay.portal.PortalException,
                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCoupon

public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(long groupId,
                                                                   long couponId)
                                                            throws com.liferay.portal.PortalException,
                                                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

search

public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(long groupId,
                                                                                long companyId,
                                                                                java.lang.String code,
                                                                                boolean active,
                                                                                java.lang.String discountType,
                                                                                boolean andOperator,
                                                                                int start,
                                                                                int end)
                                                                         throws com.liferay.portal.PortalException,
                                                                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateCoupon

public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(long couponId,
                                                                      java.lang.String name,
                                                                      java.lang.String description,
                                                                      int startDateMonth,
                                                                      int startDateDay,
                                                                      int startDateYear,
                                                                      int startDateHour,
                                                                      int startDateMinute,
                                                                      int endDateMonth,
                                                                      int endDateDay,
                                                                      int endDateYear,
                                                                      int endDateHour,
                                                                      int endDateMinute,
                                                                      boolean neverExpire,
                                                                      boolean active,
                                                                      java.lang.String limitCategories,
                                                                      java.lang.String limitSkus,
                                                                      double minOrder,
                                                                      double discount,
                                                                      java.lang.String discountType,
                                                                      com.liferay.portal.service.ServiceContext serviceContext)
                                                               throws com.liferay.portal.PortalException,
                                                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException