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="ShoppingCategoryLocalService.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.ShoppingCategoryLocalServiceImpl</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.ShoppingCategoryLocalServiceFactory
045: * @see com.liferay.portlet.shopping.service.ShoppingCategoryLocalServiceUtil
046: *
047: */
048: public interface ShoppingCategoryLocalService {
049: public com.liferay.portlet.shopping.model.ShoppingCategory addShoppingCategory(
050: com.liferay.portlet.shopping.model.ShoppingCategory 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.ShoppingCategory updateShoppingCategory(
063: com.liferay.portlet.shopping.model.ShoppingCategory 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.ResourcePersistence getResourcePersistence();
122:
123: public void setResourcePersistence(
124: com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
125:
126: public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
127:
128: public void setResourceFinder(
129: com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
130:
131: public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
132:
133: public void setUserPersistence(
134: com.liferay.portal.service.persistence.UserPersistence userPersistence);
135:
136: public com.liferay.portal.service.persistence.UserFinder getUserFinder();
137:
138: public void setUserFinder(
139: com.liferay.portal.service.persistence.UserFinder userFinder);
140:
141: public void afterPropertiesSet();
142:
143: public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
144: long userId, long plid, long parentCategoryId,
145: java.lang.String name, java.lang.String description,
146: boolean addCommunityPermissions, boolean addGuestPermissions)
147: throws com.liferay.portal.SystemException,
148: com.liferay.portal.PortalException;
149:
150: public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
151: long userId, long plid, long parentCategoryId,
152: java.lang.String name, java.lang.String description,
153: java.lang.String[] communityPermissions,
154: java.lang.String[] guestPermissions)
155: throws com.liferay.portal.SystemException,
156: com.liferay.portal.PortalException;
157:
158: public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
159: long userId, long plid, long parentCategoryId,
160: java.lang.String name, java.lang.String description,
161: java.lang.Boolean addCommunityPermissions,
162: java.lang.Boolean addGuestPermissions,
163: java.lang.String[] communityPermissions,
164: java.lang.String[] guestPermissions)
165: throws com.liferay.portal.SystemException,
166: com.liferay.portal.PortalException;
167:
168: public void addCategoryResources(long categoryId,
169: boolean addCommunityPermissions, boolean addGuestPermissions)
170: throws com.liferay.portal.SystemException,
171: com.liferay.portal.PortalException;
172:
173: public void addCategoryResources(
174: com.liferay.portlet.shopping.model.ShoppingCategory category,
175: boolean addCommunityPermissions, boolean addGuestPermissions)
176: throws com.liferay.portal.SystemException,
177: com.liferay.portal.PortalException;
178:
179: public void addCategoryResources(long categoryId,
180: java.lang.String[] communityPermissions,
181: java.lang.String[] guestPermissions)
182: throws com.liferay.portal.SystemException,
183: com.liferay.portal.PortalException;
184:
185: public void addCategoryResources(
186: com.liferay.portlet.shopping.model.ShoppingCategory category,
187: java.lang.String[] communityPermissions,
188: java.lang.String[] guestPermissions)
189: throws com.liferay.portal.SystemException,
190: com.liferay.portal.PortalException;
191:
192: public void deleteCategories(long groupId)
193: throws com.liferay.portal.SystemException,
194: com.liferay.portal.PortalException;
195:
196: public void deleteCategory(long categoryId)
197: throws com.liferay.portal.SystemException,
198: com.liferay.portal.PortalException;
199:
200: public void deleteCategory(
201: com.liferay.portlet.shopping.model.ShoppingCategory category)
202: throws com.liferay.portal.SystemException,
203: com.liferay.portal.PortalException;
204:
205: public java.util.List getCategories(long groupId)
206: throws com.liferay.portal.SystemException;
207:
208: public java.util.List getCategories(long groupId,
209: long parentCategoryId, int begin, int end)
210: throws com.liferay.portal.SystemException;
211:
212: public int getCategoriesCount(long groupId, long parentCategoryId)
213: throws com.liferay.portal.SystemException;
214:
215: public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
216: long categoryId) throws com.liferay.portal.SystemException,
217: com.liferay.portal.PortalException;
218:
219: public com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
220: com.liferay.portlet.shopping.model.ShoppingCategory category)
221: throws com.liferay.portal.SystemException,
222: com.liferay.portal.PortalException;
223:
224: public java.util.List getParentCategories(long categoryId)
225: throws com.liferay.portal.SystemException,
226: com.liferay.portal.PortalException;
227:
228: public java.util.List getParentCategories(
229: com.liferay.portlet.shopping.model.ShoppingCategory category)
230: throws com.liferay.portal.SystemException,
231: com.liferay.portal.PortalException;
232:
233: public void getSubcategoryIds(java.util.List categoryIds,
234: long groupId, long categoryId)
235: throws com.liferay.portal.SystemException;
236:
237: public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
238: long categoryId, long parentCategoryId,
239: java.lang.String name, java.lang.String description,
240: boolean mergeWithParentCategory)
241: throws com.liferay.portal.SystemException,
242: com.liferay.portal.PortalException;
243: }
|