1
22
23 package com.liferay.portlet.shopping.service;
24
25
26
51 public interface ShoppingItemLocalService {
52 public com.liferay.portlet.shopping.model.ShoppingItem addShoppingItem(
53 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
54 throws com.liferay.portal.SystemException;
55
56 public void deleteShoppingItem(long itemId)
57 throws com.liferay.portal.SystemException,
58 com.liferay.portal.PortalException;
59
60 public void deleteShoppingItem(
61 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
62 throws com.liferay.portal.SystemException;
63
64 public java.util.List<Object> dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.SystemException;
67
68 public java.util.List<Object> dynamicQuery(
69 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
70 int end) throws com.liferay.portal.SystemException;
71
72 public com.liferay.portlet.shopping.model.ShoppingItem getShoppingItem(
73 long itemId)
74 throws com.liferay.portal.SystemException,
75 com.liferay.portal.PortalException;
76
77 public com.liferay.portlet.shopping.model.ShoppingItem updateShoppingItem(
78 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
79 throws com.liferay.portal.SystemException;
80
81 public void addBookItems(long userId, long categoryId,
82 java.lang.String[] isbns)
83 throws com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException;
85
86 public com.liferay.portlet.shopping.model.ShoppingItem addItem(
87 long userId, long categoryId, java.lang.String sku,
88 java.lang.String name, java.lang.String description,
89 java.lang.String properties, java.lang.String fieldsQuantities,
90 boolean requiresShipping, int stockQuantity, boolean featured,
91 java.lang.Boolean sale, boolean smallImage,
92 java.lang.String smallImageURL, java.io.File smallFile,
93 boolean mediumImage, java.lang.String mediumImageURL,
94 java.io.File mediumFile, boolean largeImage,
95 java.lang.String largeImageURL, java.io.File largeFile,
96 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
97 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
98 boolean addCommunityPermissions, boolean addGuestPermissions)
99 throws com.liferay.portal.PortalException,
100 com.liferay.portal.SystemException;
101
102 public com.liferay.portlet.shopping.model.ShoppingItem addItem(
103 long userId, long categoryId, java.lang.String sku,
104 java.lang.String name, java.lang.String description,
105 java.lang.String properties, java.lang.String fieldsQuantities,
106 boolean requiresShipping, int stockQuantity, boolean featured,
107 java.lang.Boolean sale, boolean smallImage,
108 java.lang.String smallImageURL, java.io.File smallFile,
109 boolean mediumImage, java.lang.String mediumImageURL,
110 java.io.File mediumFile, boolean largeImage,
111 java.lang.String largeImageURL, java.io.File largeFile,
112 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
113 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
114 java.lang.String[] communityPermissions,
115 java.lang.String[] guestPermissions)
116 throws com.liferay.portal.PortalException,
117 com.liferay.portal.SystemException;
118
119 public com.liferay.portlet.shopping.model.ShoppingItem addItem(
120 long userId, long categoryId, java.lang.String sku,
121 java.lang.String name, java.lang.String description,
122 java.lang.String properties, java.lang.String fieldsQuantities,
123 boolean requiresShipping, int stockQuantity, boolean featured,
124 java.lang.Boolean sale, boolean smallImage,
125 java.lang.String smallImageURL, java.io.File smallFile,
126 boolean mediumImage, java.lang.String mediumImageURL,
127 java.io.File mediumFile, boolean largeImage,
128 java.lang.String largeImageURL, java.io.File largeFile,
129 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
130 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
131 java.lang.Boolean addCommunityPermissions,
132 java.lang.Boolean addGuestPermissions,
133 java.lang.String[] communityPermissions,
134 java.lang.String[] guestPermissions)
135 throws com.liferay.portal.PortalException,
136 com.liferay.portal.SystemException;
137
138 public void addItemResources(long itemId, boolean addCommunityPermissions,
139 boolean addGuestPermissions)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException;
142
143 public void addItemResources(
144 com.liferay.portlet.shopping.model.ShoppingCategory category,
145 com.liferay.portlet.shopping.model.ShoppingItem item,
146 boolean addCommunityPermissions, boolean addGuestPermissions)
147 throws com.liferay.portal.PortalException,
148 com.liferay.portal.SystemException;
149
150 public void addItemResources(long itemId,
151 java.lang.String[] communityPermissions,
152 java.lang.String[] guestPermissions)
153 throws com.liferay.portal.PortalException,
154 com.liferay.portal.SystemException;
155
156 public void addItemResources(
157 com.liferay.portlet.shopping.model.ShoppingCategory category,
158 com.liferay.portlet.shopping.model.ShoppingItem item,
159 java.lang.String[] communityPermissions,
160 java.lang.String[] guestPermissions)
161 throws com.liferay.portal.PortalException,
162 com.liferay.portal.SystemException;
163
164 public void deleteItem(long itemId)
165 throws com.liferay.portal.PortalException,
166 com.liferay.portal.SystemException;
167
168 public void deleteItem(com.liferay.portlet.shopping.model.ShoppingItem item)
169 throws com.liferay.portal.PortalException,
170 com.liferay.portal.SystemException;
171
172 public void deleteItems(long categoryId)
173 throws com.liferay.portal.PortalException,
174 com.liferay.portal.SystemException;
175
176 public int getCategoriesItemsCount(java.util.List<Long> categoryIds)
177 throws com.liferay.portal.SystemException;
178
179 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getFeaturedItems(
180 long groupId, long categoryId, int numOfItems)
181 throws com.liferay.portal.SystemException;
182
183 public com.liferay.portlet.shopping.model.ShoppingItem getItem(long itemId)
184 throws com.liferay.portal.PortalException,
185 com.liferay.portal.SystemException;
186
187 public com.liferay.portlet.shopping.model.ShoppingItem getItem(
188 long companyId, java.lang.String sku)
189 throws com.liferay.portal.PortalException,
190 com.liferay.portal.SystemException;
191
192 public com.liferay.portlet.shopping.model.ShoppingItem getItemByLargeImageId(
193 long largeImageId)
194 throws com.liferay.portal.PortalException,
195 com.liferay.portal.SystemException;
196
197 public com.liferay.portlet.shopping.model.ShoppingItem getItemByMediumImageId(
198 long mediumImageId)
199 throws com.liferay.portal.PortalException,
200 com.liferay.portal.SystemException;
201
202 public com.liferay.portlet.shopping.model.ShoppingItem getItemBySmallImageId(
203 long smallImageId)
204 throws com.liferay.portal.PortalException,
205 com.liferay.portal.SystemException;
206
207 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
208 long categoryId) throws com.liferay.portal.SystemException;
209
210 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(
211 long categoryId, int start, int end,
212 com.liferay.portal.kernel.util.OrderByComparator obc)
213 throws com.liferay.portal.SystemException;
214
215 public com.liferay.portlet.shopping.model.ShoppingItem[] getItemsPrevAndNext(
216 long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
217 throws com.liferay.portal.PortalException,
218 com.liferay.portal.SystemException;
219
220 public int getItemsCount(long categoryId)
221 throws com.liferay.portal.SystemException;
222
223 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getSaleItems(
224 long groupId, long categoryId, int numOfItems)
225 throws com.liferay.portal.SystemException;
226
227 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> search(
228 long groupId, long[] categoryIds, java.lang.String keywords, int start,
229 int end) throws com.liferay.portal.SystemException;
230
231 public int searchCount(long groupId, long[] categoryIds,
232 java.lang.String keywords) throws com.liferay.portal.SystemException;
233
234 public com.liferay.portlet.shopping.model.ShoppingItem updateItem(
235 long userId, long itemId, long categoryId, java.lang.String sku,
236 java.lang.String name, java.lang.String description,
237 java.lang.String properties, java.lang.String fieldsQuantities,
238 boolean requiresShipping, int stockQuantity, boolean featured,
239 java.lang.Boolean sale, boolean smallImage,
240 java.lang.String smallImageURL, java.io.File smallFile,
241 boolean mediumImage, java.lang.String mediumImageURL,
242 java.io.File mediumFile, boolean largeImage,
243 java.lang.String largeImageURL, java.io.File largeFile,
244 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
245 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices)
246 throws com.liferay.portal.PortalException,
247 com.liferay.portal.SystemException;
248 }