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
This interface defines the service. The default implementation is
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.
- See Also:
ShoppingCouponServiceUtil- 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)
|
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