Liferay 6.1.2-ce-ga3

com.liferay.portlet.shopping.service
Interface ShoppingCouponService

All Superinterfaces:
BaseService
All Known Implementing Classes:
ShoppingCouponServiceWrapper

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

The interface for the shopping coupon remote service.

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, com.liferay.portlet.shopping.service.base.ShoppingCouponServiceBaseImpl, com.liferay.portlet.shopping.service.impl.ShoppingCouponServiceImpl

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)
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 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)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 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

getBeanIdentifier

String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

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.1.2-ce-ga3