com.liferay.portlet.shopping.service
Interface ShoppingCouponLocalService
- All Known Implementing Classes:
- ShoppingCouponLocalServiceWrapper
@Transactional(isolation=PORTAL,
rollbackFor={PortalException.class,SystemException.class})
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
- Generated:
Method Summary |
ShoppingCoupon |
addCoupon(long userId,
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,
ServiceContext serviceContext)
|
ShoppingCoupon |
addShoppingCoupon(ShoppingCoupon shoppingCoupon)
|
ShoppingCoupon |
createShoppingCoupon(long couponId)
|
void |
deleteCoupon(long couponId)
|
void |
deleteCoupons(long groupId)
|
void |
deleteShoppingCoupon(long couponId)
|
void |
deleteShoppingCoupon(ShoppingCoupon shoppingCoupon)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
|
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 groupId,
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,
ServiceContext serviceContext)
|
ShoppingCoupon |
updateShoppingCoupon(ShoppingCoupon shoppingCoupon)
|
ShoppingCoupon |
updateShoppingCoupon(ShoppingCoupon shoppingCoupon,
boolean merge)
|
addShoppingCoupon
ShoppingCoupon addShoppingCoupon(ShoppingCoupon shoppingCoupon)
throws SystemException
- Throws:
SystemException
createShoppingCoupon
ShoppingCoupon createShoppingCoupon(long couponId)
deleteShoppingCoupon
void deleteShoppingCoupon(long couponId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteShoppingCoupon
void deleteShoppingCoupon(ShoppingCoupon shoppingCoupon)
throws SystemException
- Throws:
SystemException
dynamicQuery
java.util.List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
dynamicQuery
java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
- Throws:
SystemException
dynamicQuery
java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
- Throws:
SystemException
dynamicQueryCount
long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
getShoppingCoupon
@Transactional(propagation=SUPPORTS,
readOnly=true)
ShoppingCoupon getShoppingCoupon(long couponId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getShoppingCoupons
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<ShoppingCoupon> getShoppingCoupons(int start,
int end)
throws SystemException
- Throws:
SystemException
getShoppingCouponsCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getShoppingCouponsCount()
throws SystemException
- Throws:
SystemException
updateShoppingCoupon
ShoppingCoupon updateShoppingCoupon(ShoppingCoupon shoppingCoupon)
throws SystemException
- Throws:
SystemException
updateShoppingCoupon
ShoppingCoupon updateShoppingCoupon(ShoppingCoupon shoppingCoupon,
boolean merge)
throws SystemException
- Throws:
SystemException
addCoupon
ShoppingCoupon addCoupon(long userId,
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,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteCoupon
void deleteCoupon(long couponId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteCoupons
void deleteCoupons(long groupId)
throws SystemException
- Throws:
SystemException
getCoupon
@Transactional(propagation=SUPPORTS,
readOnly=true)
ShoppingCoupon getCoupon(long couponId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCoupon
@Transactional(propagation=SUPPORTS,
readOnly=true)
ShoppingCoupon getCoupon(java.lang.String code)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
search
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<ShoppingCoupon> search(long groupId,
long companyId,
java.lang.String code,
boolean active,
java.lang.String discountType,
boolean andOperator,
int start,
int end)
throws SystemException
- Throws:
SystemException
searchCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int searchCount(long groupId,
long companyId,
java.lang.String code,
boolean active,
java.lang.String discountType,
boolean andOperator)
throws SystemException
- Throws:
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,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException