001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.shopping.service;
022:
023: /**
024: * <a href="ShoppingCouponLocalService.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This interface defines the service. The default implementation is
033: * <code>com.liferay.portlet.shopping.service.impl.ShoppingCouponLocalServiceImpl</code>.
034: * Modify methods in that class and rerun ServiceBuilder to populate this class
035: * and all other generated classes.
036: * </p>
037: *
038: * <p>
039: * 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.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.shopping.service.ShoppingCouponLocalServiceFactory
045: * @see com.liferay.portlet.shopping.service.ShoppingCouponLocalServiceUtil
046: *
047: */
048: public interface ShoppingCouponLocalService {
049: public com.liferay.portlet.shopping.model.ShoppingCoupon addShoppingCoupon(
050: com.liferay.portlet.shopping.model.ShoppingCoupon model)
051: throws com.liferay.portal.SystemException;
052:
053: public java.util.List dynamicQuery(
054: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
055: throws com.liferay.portal.SystemException;
056:
057: public java.util.List dynamicQuery(
058: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
059: int begin, int end)
060: throws com.liferay.portal.SystemException;
061:
062: public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
063: com.liferay.portlet.shopping.model.ShoppingCoupon model)
064: throws com.liferay.portal.SystemException;
065:
066: public com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence getShoppingCartPersistence();
067:
068: public void setShoppingCartPersistence(
069: com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence shoppingCartPersistence);
070:
071: public com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence getShoppingCategoryPersistence();
072:
073: public void setShoppingCategoryPersistence(
074: com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence shoppingCategoryPersistence);
075:
076: public com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence getShoppingCouponPersistence();
077:
078: public void setShoppingCouponPersistence(
079: com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence shoppingCouponPersistence);
080:
081: public com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinder getShoppingCouponFinder();
082:
083: public void setShoppingCouponFinder(
084: com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinder shoppingCouponFinder);
085:
086: public com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence getShoppingItemPersistence();
087:
088: public void setShoppingItemPersistence(
089: com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence shoppingItemPersistence);
090:
091: public com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder getShoppingItemFinder();
092:
093: public void setShoppingItemFinder(
094: com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder shoppingItemFinder);
095:
096: public com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence getShoppingItemFieldPersistence();
097:
098: public void setShoppingItemFieldPersistence(
099: com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence shoppingItemFieldPersistence);
100:
101: public com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence getShoppingItemPricePersistence();
102:
103: public void setShoppingItemPricePersistence(
104: com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence shoppingItemPricePersistence);
105:
106: public com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence getShoppingOrderPersistence();
107:
108: public void setShoppingOrderPersistence(
109: com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence shoppingOrderPersistence);
110:
111: public com.liferay.portlet.shopping.service.persistence.ShoppingOrderFinder getShoppingOrderFinder();
112:
113: public void setShoppingOrderFinder(
114: com.liferay.portlet.shopping.service.persistence.ShoppingOrderFinder shoppingOrderFinder);
115:
116: public com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence getShoppingOrderItemPersistence();
117:
118: public void setShoppingOrderItemPersistence(
119: com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence shoppingOrderItemPersistence);
120:
121: public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
122:
123: public void setUserPersistence(
124: com.liferay.portal.service.persistence.UserPersistence userPersistence);
125:
126: public com.liferay.portal.service.persistence.UserFinder getUserFinder();
127:
128: public void setUserFinder(
129: com.liferay.portal.service.persistence.UserFinder userFinder);
130:
131: public void afterPropertiesSet();
132:
133: public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
134: long userId, long plid, java.lang.String code,
135: boolean autoCode, java.lang.String name,
136: java.lang.String description, int startDateMonth,
137: int startDateDay, int startDateYear, int startDateHour,
138: int startDateMinute, int endDateMonth, int endDateDay,
139: int endDateYear, int endDateHour, int endDateMinute,
140: boolean neverExpire, boolean active,
141: java.lang.String limitCategories,
142: java.lang.String limitSkus, double minOrder,
143: double discount, java.lang.String discountType)
144: throws com.liferay.portal.SystemException,
145: com.liferay.portal.PortalException;
146:
147: public void deleteCoupon(long couponId)
148: throws com.liferay.portal.SystemException,
149: com.liferay.portal.PortalException;
150:
151: public void deleteCoupons(long groupId)
152: throws com.liferay.portal.SystemException;
153:
154: public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
155: long couponId) throws com.liferay.portal.SystemException,
156: com.liferay.portal.PortalException;
157:
158: public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
159: java.lang.String code)
160: throws com.liferay.portal.SystemException,
161: com.liferay.portal.PortalException;
162:
163: public java.util.List search(long plid, long companyId,
164: java.lang.String code, boolean active,
165: java.lang.String discountType, boolean andOperator,
166: int begin, int end)
167: throws com.liferay.portal.SystemException;
168:
169: public int searchCount(long groupId, long companyId,
170: java.lang.String code, boolean active,
171: java.lang.String discountType, boolean andOperator)
172: throws com.liferay.portal.SystemException;
173:
174: public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
175: long userId, long couponId, java.lang.String name,
176: java.lang.String description, int startDateMonth,
177: int startDateDay, int startDateYear, int startDateHour,
178: int startDateMinute, int endDateMonth, int endDateDay,
179: int endDateYear, int endDateHour, int endDateMinute,
180: boolean neverExpire, boolean active,
181: java.lang.String limitCategories,
182: java.lang.String limitSkus, double minOrder,
183: double discount, java.lang.String discountType)
184: throws com.liferay.portal.SystemException,
185: com.liferay.portal.PortalException;
186: }
|