Liferay 6.1.2-ce-ga3

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, resourceFinder, resourceLocalService, resourcePersistence, resourceService, 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
 
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, deleteShoppingCoupon, deleteShoppingCoupon, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, fetchShoppingCoupon, getBeanIdentifier, getCounterLocalService, getModelClass, getModelClassName, getPersistedModel, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, 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, runSQL, setBeanIdentifier, setCounterLocalService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, 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, 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,
                                SystemException
Throws:
PortalException
SystemException

deleteCoupon

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

deleteCoupon

public void deleteCoupon(ShoppingCoupon coupon)
                  throws SystemException
Throws:
SystemException

deleteCoupons

public void deleteCoupons(long groupId)
                   throws SystemException
Throws:
SystemException

getCoupon

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

getCoupon

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

search

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

searchCount

public int searchCount(long groupId,
                       long companyId,
                       String code,
                       boolean active,
                       String discountType,
                       boolean andOperator)
                throws SystemException
Throws:
SystemException

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,
                                   SystemException
Throws:
PortalException
SystemException

getCode

protected String getCode()
                  throws SystemException
Throws:
SystemException

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,
                        SystemException
Throws:
PortalException
SystemException

validate

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

Liferay 6.1.2-ce-ga3