Liferay 6.0.5

com.liferay.portlet.shopping.service
Interface ShoppingCouponService

All Known Implementing Classes:
ShoppingCouponServiceBaseImpl, ShoppingCouponServiceImpl, ShoppingCouponServiceWrapper

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

The interface for the shopping coupon remote service.

Never modify or reference this interface directly. Always use ShoppingCouponServiceUtil to access the shopping coupon remote service. Add custom service methods to ShoppingCouponServiceImpl and rerun ServiceBuilder to automatically copy the method declarations to this interface.

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.

See Also:
ShoppingCouponServiceUtil, ShoppingCouponServiceBaseImpl, ShoppingCouponServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Method Summary
 ShoppingCoupon addCoupon(String code, boolean autoCode, String name, 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, String limitCategories, String limitSkus, double minOrder, double discount, String discountType, ServiceContext serviceContext)
           
 void deleteCoupon(long groupId, long couponId)
           
 ShoppingCoupon getCoupon(long groupId, long couponId)
           
 List<ShoppingCoupon> search(long groupId, long companyId, String code, boolean active, String discountType, boolean andOperator, int start, int end)
           
 ShoppingCoupon updateCoupon(long couponId, String name, 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, String limitCategories, String limitSkus, double minOrder, double discount, String discountType, ServiceContext serviceContext)
           
 

Method Detail

addCoupon

ShoppingCoupon addCoupon(String code,
                         boolean autoCode,
                         String name,
                         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,
                         String limitCategories,
                         String limitSkus,
                         double minOrder,
                         double discount,
                         String discountType,
                         ServiceContext serviceContext)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

deleteCoupon

void deleteCoupon(long groupId,
                  long couponId)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

getCoupon

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingCoupon getCoupon(long groupId,
                                                                  long couponId)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<ShoppingCoupon> search(long groupId,
                                                                     long companyId,
                                                                     String code,
                                                                     boolean active,
                                                                     String discountType,
                                                                     boolean andOperator,
                                                                     int start,
                                                                     int end)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

updateCoupon

ShoppingCoupon updateCoupon(long couponId,
                            String name,
                            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,
                            String limitCategories,
                            String limitSkus,
                            double minOrder,
                            double discount,
                            String discountType,
                            ServiceContext serviceContext)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

Liferay 6.0.5