com.liferay.portlet.shopping.service.impl
Class ShoppingCouponLocalServiceImpl
java.lang.Object
com.liferay.portlet.shopping.service.base.ShoppingCouponLocalServiceBaseImpl
com.liferay.portlet.shopping.service.impl.ShoppingCouponLocalServiceImpl
- All Implemented Interfaces:
- com.liferay.portlet.shopping.service.ShoppingCouponLocalService
public class ShoppingCouponLocalServiceImpl
- extends ShoppingCouponLocalServiceBaseImpl
View Source
- Author:
- Brian Wing Shun Chan
Fields inherited from class com.liferay.portlet.shopping.service.base.ShoppingCouponLocalServiceBaseImpl |
counterLocalService, counterService, shoppingCartLocalService, shoppingCartPersistence, shoppingCategoryLocalService, shoppingCategoryPersistence, shoppingCategoryService, shoppingCouponFinder, shoppingCouponLocalService, shoppingCouponPersistence, shoppingCouponService, shoppingItemFieldLocalService, shoppingItemFieldPersistence, shoppingItemFinder, shoppingItemLocalService, shoppingItemPersistence, shoppingItemPriceLocalService, shoppingItemPricePersistence, shoppingItemService, shoppingOrderFinder, shoppingOrderItemLocalService, shoppingOrderItemPersistence, shoppingOrderLocalService, shoppingOrderPersistence, shoppingOrderService, userFinder, userLocalService, userPersistence, userService |
Method Summary |
com.liferay.portlet.shopping.model.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,
com.liferay.portal.service.ServiceContext serviceContext)
|
void |
deleteCoupon(long couponId)
|
void |
deleteCoupons(long groupId)
|
protected java.lang.String |
getCode()
|
com.liferay.portlet.shopping.model.ShoppingCoupon |
getCoupon(long couponId)
|
com.liferay.portlet.shopping.model.ShoppingCoupon |
getCoupon(java.lang.String code)
|
java.util.List<com.liferay.portlet.shopping.model.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)
|
com.liferay.portlet.shopping.model.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,
com.liferay.portal.service.ServiceContext serviceContext)
|
protected void |
validate(long companyId,
long groupId,
java.lang.String code,
boolean autoCode,
java.lang.String name,
java.lang.String description,
java.lang.String limitCategories,
java.lang.String limitSkus)
|
protected void |
validate(long companyId,
long groupId,
java.lang.String name,
java.lang.String description,
java.lang.String limitCategories,
java.lang.String limitSkus)
|
Methods inherited from class com.liferay.portlet.shopping.service.base.ShoppingCouponLocalServiceBaseImpl |
addShoppingCoupon, createShoppingCoupon, deleteShoppingCoupon, deleteShoppingCoupon, dynamicQuery, dynamicQuery, getCounterLocalService, getCounterService, getShoppingCartLocalService, getShoppingCartPersistence, getShoppingCategoryLocalService, getShoppingCategoryPersistence, getShoppingCategoryService, getShoppingCoupon, getShoppingCouponFinder, getShoppingCouponLocalService, getShoppingCouponPersistence, getShoppingCoupons, getShoppingCouponsCount, getShoppingCouponService, getShoppingItemFieldLocalService, getShoppingItemFieldPersistence, getShoppingItemFinder, getShoppingItemLocalService, getShoppingItemPersistence, getShoppingItemPriceLocalService, getShoppingItemPricePersistence, getShoppingItemService, getShoppingOrderFinder, getShoppingOrderItemLocalService, getShoppingOrderItemPersistence, getShoppingOrderLocalService, getShoppingOrderPersistence, getShoppingOrderService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, setCounterLocalService, setCounterService, setShoppingCartLocalService, setShoppingCartPersistence, setShoppingCategoryLocalService, setShoppingCategoryPersistence, setShoppingCategoryService, setShoppingCouponFinder, setShoppingCouponLocalService, setShoppingCouponPersistence, setShoppingCouponService, setShoppingItemFieldLocalService, setShoppingItemFieldPersistence, setShoppingItemFinder, setShoppingItemLocalService, setShoppingItemPersistence, setShoppingItemPriceLocalService, setShoppingItemPricePersistence, setShoppingItemService, setShoppingOrderFinder, setShoppingOrderItemLocalService, setShoppingOrderItemPersistence, setShoppingOrderLocalService, setShoppingOrderPersistence, setShoppingOrderService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateShoppingCoupon |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShoppingCouponLocalServiceImpl
public ShoppingCouponLocalServiceImpl()
addCoupon
public com.liferay.portlet.shopping.model.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,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteCoupon
public void deleteCoupon(long couponId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteCoupons
public void deleteCoupons(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getCoupon
public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(long couponId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getCoupon
public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(java.lang.String code)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
search
public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(long groupId,
long companyId,
java.lang.String code,
boolean active,
java.lang.String discountType,
boolean andOperator,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
searchCount
public int searchCount(long groupId,
long companyId,
java.lang.String code,
boolean active,
java.lang.String discountType,
boolean andOperator)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateCoupon
public com.liferay.portlet.shopping.model.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,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getCode
protected java.lang.String getCode()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
validate
protected void validate(long companyId,
long groupId,
java.lang.String code,
boolean autoCode,
java.lang.String name,
java.lang.String description,
java.lang.String limitCategories,
java.lang.String limitSkus)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
validate
protected void validate(long companyId,
long groupId,
java.lang.String name,
java.lang.String description,
java.lang.String limitCategories,
java.lang.String limitSkus)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException