Liferay 7.0-ce-m3

com.liferay.portlet.shopping.service.impl
Class ShoppingCouponLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.shopping.service.base.ShoppingCouponLocalServiceBaseImpl
          extended by com.liferay.portlet.shopping.service.impl.ShoppingCouponLocalServiceImpl
All Implemented Interfaces:
IdentifiableBean, BaseLocalService, PersistedModelLocalService, ShoppingCouponLocalService

public class ShoppingCouponLocalServiceImpl
extends ShoppingCouponLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portlet.shopping.service.base.ShoppingCouponLocalServiceBaseImpl
counterLocalService, persistedModelLocalServiceRegistry, shoppingCategoryLocalService, shoppingCategoryPersistence, shoppingCategoryService, shoppingCouponFinder, shoppingCouponLocalService, shoppingCouponPersistence, shoppingCouponService, shoppingItemFinder, shoppingItemLocalService, shoppingItemPersistence, shoppingItemService, userFinder, userLocalService, userPersistence, userService
 
Constructor Summary
ShoppingCouponLocalServiceImpl()
           
 
Method Summary
 ShoppingCoupon addCoupon(long userId, 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 couponId)
           
 void deleteCoupon(ShoppingCoupon coupon)
           
 void deleteCoupons(long groupId)
           
protected  String getCode()
           
 ShoppingCoupon getCoupon(long couponId)
           
 ShoppingCoupon getCoupon(String code)
           
 List<ShoppingCoupon> search(long groupId, long companyId, String code, boolean active, String discountType, boolean andOperator, int start, int end)
           
 int searchCount(long groupId, long companyId, String code, boolean active, String discountType, boolean andOperator)
           
 ShoppingCoupon updateCoupon(long userId, 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)
           
protected  void validate(long companyId, long groupId, String code, boolean autoCode, String name, String description, String limitCategories, String limitSkus, double minOrder, double discount)
           
protected  void validate(long companyId, long groupId, String name, String description, String limitCategories, String limitSkus, double minOrder, double discount)
           
 
Methods inherited from class com.liferay.portlet.shopping.service.base.ShoppingCouponLocalServiceBaseImpl
addShoppingCoupon, afterPropertiesSet, createShoppingCoupon, deletePersistedModel, deleteShoppingCoupon, deleteShoppingCoupon, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchShoppingCoupon, getActionableDynamicQuery, getBeanIdentifier, getCounterLocalService, getModelClass, getModelClassName, getPersistedModel, getShoppingCategoryLocalService, getShoppingCategoryPersistence, getShoppingCategoryService, getShoppingCoupon, getShoppingCouponFinder, getShoppingCouponLocalService, getShoppingCouponPersistence, getShoppingCoupons, getShoppingCouponsCount, getShoppingCouponService, getShoppingItemFinder, getShoppingItemLocalService, getShoppingItemPersistence, getShoppingItemService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, initActionableDynamicQuery, runSQL, setBeanIdentifier, setCounterLocalService, setShoppingCategoryLocalService, setShoppingCategoryPersistence, setShoppingCategoryService, setShoppingCouponFinder, setShoppingCouponLocalService, setShoppingCouponPersistence, setShoppingCouponService, setShoppingItemFinder, setShoppingItemLocalService, setShoppingItemPersistence, setShoppingItemService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateShoppingCoupon
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingCouponLocalServiceImpl

public ShoppingCouponLocalServiceImpl()
Method Detail

addCoupon

public ShoppingCoupon addCoupon(long userId,
                                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
Throws:
PortalException

deleteCoupon

public void deleteCoupon(long couponId)
                  throws PortalException
Throws:
PortalException

deleteCoupon

public void deleteCoupon(ShoppingCoupon coupon)

deleteCoupons

public void deleteCoupons(long groupId)

getCoupon

public ShoppingCoupon getCoupon(long couponId)
                         throws PortalException
Throws:
PortalException

getCoupon

public ShoppingCoupon getCoupon(String code)
                         throws PortalException
Throws:
PortalException

search

public List<ShoppingCoupon> search(long groupId,
                                   long companyId,
                                   String code,
                                   boolean active,
                                   String discountType,
                                   boolean andOperator,
                                   int start,
                                   int end)

searchCount

public int searchCount(long groupId,
                       long companyId,
                       String code,
                       boolean active,
                       String discountType,
                       boolean andOperator)

updateCoupon

public ShoppingCoupon updateCoupon(long userId,
                                   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
Throws:
PortalException

getCode

protected String getCode()

validate

protected void validate(long companyId,
                        long groupId,
                        String code,
                        boolean autoCode,
                        String name,
                        String description,
                        String limitCategories,
                        String limitSkus,
                        double minOrder,
                        double discount)
                 throws PortalException
Throws:
PortalException

validate

protected void validate(long companyId,
                        long groupId,
                        String name,
                        String description,
                        String limitCategories,
                        String limitSkus,
                        double minOrder,
                        double discount)
                 throws PortalException
Throws:
PortalException

Liferay 7.0-ce-m3