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