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