com.liferay.portlet.shopping.service
Interface ShoppingCouponService


@Transactional(isolation=PORTAL,
               rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface ShoppingCouponService

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.ShoppingCouponServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

Author:
Brian Wing Shun Chan
See Also:
ShoppingCouponServiceUtil

Method Summary
 ShoppingCoupon addCoupon(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)
           
 void deleteCoupon(long plid, long couponId)
           
 ShoppingCoupon getCoupon(long plid, long couponId)
           
 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)
           
 ShoppingCoupon updateCoupon(long plid, 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)
           
 

Method Detail

addCoupon

ShoppingCoupon addCoupon(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 java.rmi.RemoteException,
                                com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteCoupon

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

getCoupon

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingCoupon getCoupon(long plid,
                                       long couponId)
                         throws java.rmi.RemoteException,
                                com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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 java.rmi.RemoteException,
                                             com.liferay.portal.PortalException,
                                             com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateCoupon

ShoppingCoupon updateCoupon(long plid,
                            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 java.rmi.RemoteException,
                                   com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException