com.liferay.portlet.shopping.service
Interface ShoppingCouponLocalService


public interface ShoppingCouponLocalService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portlet.shopping.service.impl.ShoppingCouponLocalServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
ShoppingCouponLocalServiceUtil

Method Summary
 ShoppingCoupon addCoupon(long userId, long plid, 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)
           
 ShoppingCoupon addShoppingCoupon(ShoppingCoupon shoppingCoupon)
           
 void deleteCoupon(long couponId)
           
 void deleteCoupons(long groupId)
           
 void deleteShoppingCoupon(long couponId)
           
 void deleteShoppingCoupon(ShoppingCoupon shoppingCoupon)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 ShoppingCoupon getCoupon(long couponId)
           
 ShoppingCoupon getCoupon(java.lang.String code)
           
 ShoppingCoupon getShoppingCoupon(long couponId)
           
 java.util.List<ShoppingCoupon> getShoppingCoupons(int start, int end)
           
 int getShoppingCouponsCount()
           
 java.util.List<ShoppingCoupon> search(long plid, long companyId, java.lang.String code, boolean active, java.lang.String discountType, boolean andOperator, int start, int end)
           
 int searchCount(long groupId, long companyId, java.lang.String code, boolean active, java.lang.String discountType, boolean andOperator)
           
 ShoppingCoupon updateCoupon(long userId, 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)
           
 ShoppingCoupon updateShoppingCoupon(ShoppingCoupon shoppingCoupon)
           
 

Method Detail

addShoppingCoupon

ShoppingCoupon addShoppingCoupon(ShoppingCoupon shoppingCoupon)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteShoppingCoupon

void deleteShoppingCoupon(long couponId)
                          throws com.liferay.portal.SystemException,
                                 com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteShoppingCoupon

void deleteShoppingCoupon(ShoppingCoupon shoppingCoupon)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                              int start,
                                              int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getShoppingCoupon

ShoppingCoupon getShoppingCoupon(long couponId)
                                 throws com.liferay.portal.SystemException,
                                        com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getShoppingCoupons

java.util.List<ShoppingCoupon> getShoppingCoupons(int start,
                                                  int end)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getShoppingCouponsCount

int getShoppingCouponsCount()
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateShoppingCoupon

ShoppingCoupon updateShoppingCoupon(ShoppingCoupon shoppingCoupon)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addCoupon

ShoppingCoupon addCoupon(long userId,
                         long plid,
                         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)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteCoupon

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

deleteCoupons

void deleteCoupons(long groupId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCoupon

ShoppingCoupon getCoupon(long couponId)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCoupon

ShoppingCoupon getCoupon(java.lang.String code)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

search

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

searchCount

int searchCount(long groupId,
                long companyId,
                java.lang.String code,
                boolean active,
                java.lang.String discountType,
                boolean andOperator)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateCoupon

ShoppingCoupon updateCoupon(long userId,
                            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)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException