001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.shopping.service;
016    
017    import com.liferay.portal.kernel.annotation.Isolation;
018    import com.liferay.portal.kernel.annotation.Propagation;
019    import com.liferay.portal.kernel.annotation.Transactional;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.exception.SystemException;
022    
023    /**
024     * <p>
025     * This interface defines the service. The default implementation is
026     * {@link
027     * com.liferay.portlet.shopping.service.impl.ShoppingCouponLocalServiceImpl}.
028     * Modify methods in that class and rerun ServiceBuilder to populate this class
029     * and all other generated classes.
030     * </p>
031     *
032     * <p>
033     * 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.
034     * </p>
035     *
036     * @author    Brian Wing Shun Chan
037     * @see       ShoppingCouponLocalServiceUtil
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface ShoppingCouponLocalService {
043            public com.liferay.portlet.shopping.model.ShoppingCoupon addShoppingCoupon(
044                    com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.shopping.model.ShoppingCoupon createShoppingCoupon(
048                    long couponId);
049    
050            public void deleteShoppingCoupon(long couponId)
051                    throws com.liferay.portal.kernel.exception.PortalException,
052                            com.liferay.portal.kernel.exception.SystemException;
053    
054            public void deleteShoppingCoupon(
055                    com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            @SuppressWarnings("unchecked")
059            public java.util.List dynamicQuery(
060                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            @SuppressWarnings("unchecked")
064            public java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException;
067    
068            @SuppressWarnings("unchecked")
069            public java.util.List dynamicQuery(
070                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071                    int end,
072                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073                    throws com.liferay.portal.kernel.exception.SystemException;
074    
075            public long dynamicQueryCount(
076                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080            public com.liferay.portlet.shopping.model.ShoppingCoupon getShoppingCoupon(
081                    long couponId)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException;
084    
085            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> getShoppingCoupons(
087                    int start, int end)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091            public int getShoppingCouponsCount()
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
095                    com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
099                    com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
100                    boolean merge)
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
104                    long userId, java.lang.String code, boolean autoCode,
105                    java.lang.String name, java.lang.String description,
106                    int startDateMonth, int startDateDay, int startDateYear,
107                    int startDateHour, int startDateMinute, int endDateMonth,
108                    int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
109                    boolean neverExpire, boolean active, java.lang.String limitCategories,
110                    java.lang.String limitSkus, double minOrder, double discount,
111                    java.lang.String discountType,
112                    com.liferay.portal.service.ServiceContext serviceContext)
113                    throws com.liferay.portal.kernel.exception.PortalException,
114                            com.liferay.portal.kernel.exception.SystemException;
115    
116            public void deleteCoupon(long couponId)
117                    throws com.liferay.portal.kernel.exception.PortalException,
118                            com.liferay.portal.kernel.exception.SystemException;
119    
120            public void deleteCoupons(long groupId)
121                    throws com.liferay.portal.kernel.exception.SystemException;
122    
123            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124            public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
125                    long couponId)
126                    throws com.liferay.portal.kernel.exception.PortalException,
127                            com.liferay.portal.kernel.exception.SystemException;
128    
129            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130            public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
131                    java.lang.String code)
132                    throws com.liferay.portal.kernel.exception.PortalException,
133                            com.liferay.portal.kernel.exception.SystemException;
134    
135            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
137                    long groupId, long companyId, java.lang.String code, boolean active,
138                    java.lang.String discountType, boolean andOperator, int start, int end)
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142            public int searchCount(long groupId, long companyId, java.lang.String code,
143                    boolean active, java.lang.String discountType, boolean andOperator)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
147                    long userId, long couponId, java.lang.String name,
148                    java.lang.String description, int startDateMonth, int startDateDay,
149                    int startDateYear, int startDateHour, int startDateMinute,
150                    int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
151                    int endDateMinute, boolean neverExpire, boolean active,
152                    java.lang.String limitCategories, java.lang.String limitSkus,
153                    double minOrder, double discount, java.lang.String discountType,
154                    com.liferay.portal.service.ServiceContext serviceContext)
155                    throws com.liferay.portal.kernel.exception.PortalException,
156                            com.liferay.portal.kernel.exception.SystemException;
157    }