001
014
015 package com.liferay.portlet.shopping.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class ShoppingOrderLocalServiceUtil {
038
043
044
051 public static com.liferay.portlet.shopping.model.ShoppingOrder addShoppingOrder(
052 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
053 throws com.liferay.portal.kernel.exception.SystemException {
054 return getService().addShoppingOrder(shoppingOrder);
055 }
056
057
063 public static com.liferay.portlet.shopping.model.ShoppingOrder createShoppingOrder(
064 long orderId) {
065 return getService().createShoppingOrder(orderId);
066 }
067
068
076 public static com.liferay.portlet.shopping.model.ShoppingOrder deleteShoppingOrder(
077 long orderId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().deleteShoppingOrder(orderId);
081 }
082
083
090 public static com.liferay.portlet.shopping.model.ShoppingOrder deleteShoppingOrder(
091 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().deleteShoppingOrder(shoppingOrder);
094 }
095
096 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097 return getService().dynamicQuery();
098 }
099
100
107 @SuppressWarnings("rawtypes")
108 public static java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().dynamicQuery(dynamicQuery);
112 }
113
114
127 @SuppressWarnings("rawtypes")
128 public static java.util.List dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end) throws com.liferay.portal.kernel.exception.SystemException {
131 return getService().dynamicQuery(dynamicQuery, start, end);
132 }
133
134
148 @SuppressWarnings("rawtypes")
149 public static java.util.List dynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151 int end,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService()
155 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156 }
157
158
165 public static long dynamicQueryCount(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService().dynamicQueryCount(dynamicQuery);
169 }
170
171
179 public static long dynamicQueryCount(
180 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181 com.liferay.portal.kernel.dao.orm.Projection projection)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService().dynamicQueryCount(dynamicQuery, projection);
184 }
185
186 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchShoppingOrder(
187 long orderId)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getService().fetchShoppingOrder(orderId);
190 }
191
192
200 public static com.liferay.portlet.shopping.model.ShoppingOrder getShoppingOrder(
201 long orderId)
202 throws com.liferay.portal.kernel.exception.PortalException,
203 com.liferay.portal.kernel.exception.SystemException {
204 return getService().getShoppingOrder(orderId);
205 }
206
207 public static com.liferay.portal.model.PersistedModel getPersistedModel(
208 java.io.Serializable primaryKeyObj)
209 throws com.liferay.portal.kernel.exception.PortalException,
210 com.liferay.portal.kernel.exception.SystemException {
211 return getService().getPersistedModel(primaryKeyObj);
212 }
213
214
226 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> getShoppingOrders(
227 int start, int end)
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return getService().getShoppingOrders(start, end);
230 }
231
232
238 public static int getShoppingOrdersCount()
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return getService().getShoppingOrdersCount();
241 }
242
243
250 public static com.liferay.portlet.shopping.model.ShoppingOrder updateShoppingOrder(
251 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
252 throws com.liferay.portal.kernel.exception.SystemException {
253 return getService().updateShoppingOrder(shoppingOrder);
254 }
255
256
261 public static java.lang.String getBeanIdentifier() {
262 return getService().getBeanIdentifier();
263 }
264
265
270 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
271 getService().setBeanIdentifier(beanIdentifier);
272 }
273
274 public static com.liferay.portlet.shopping.model.ShoppingOrder addLatestOrder(
275 long userId, long groupId)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException {
278 return getService().addLatestOrder(userId, groupId);
279 }
280
281 public static void completeOrder(java.lang.String number,
282 java.lang.String ppTxnId, java.lang.String ppPaymentStatus,
283 double ppPaymentGross, java.lang.String ppReceiverEmail,
284 java.lang.String ppPayerEmail, boolean updateInventory,
285 com.liferay.portal.service.ServiceContext serviceContext)
286 throws com.liferay.portal.kernel.exception.PortalException,
287 com.liferay.portal.kernel.exception.SystemException {
288 getService()
289 .completeOrder(number, ppTxnId, ppPaymentStatus, ppPaymentGross,
290 ppReceiverEmail, ppPayerEmail, updateInventory, serviceContext);
291 }
292
293 public static void deleteOrder(long orderId)
294 throws com.liferay.portal.kernel.exception.PortalException,
295 com.liferay.portal.kernel.exception.SystemException {
296 getService().deleteOrder(orderId);
297 }
298
299 public static void deleteOrder(
300 com.liferay.portlet.shopping.model.ShoppingOrder order)
301 throws com.liferay.portal.kernel.exception.PortalException,
302 com.liferay.portal.kernel.exception.SystemException {
303 getService().deleteOrder(order);
304 }
305
306 public static void deleteOrders(long groupId)
307 throws com.liferay.portal.kernel.exception.PortalException,
308 com.liferay.portal.kernel.exception.SystemException {
309 getService().deleteOrders(groupId);
310 }
311
312 public static com.liferay.portlet.shopping.model.ShoppingOrder getLatestOrder(
313 long userId, long groupId)
314 throws com.liferay.portal.kernel.exception.PortalException,
315 com.liferay.portal.kernel.exception.SystemException {
316 return getService().getLatestOrder(userId, groupId);
317 }
318
319 public static com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
320 long orderId)
321 throws com.liferay.portal.kernel.exception.PortalException,
322 com.liferay.portal.kernel.exception.SystemException {
323 return getService().getOrder(orderId);
324 }
325
326 public static com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
327 java.lang.String number)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException {
330 return getService().getOrder(number);
331 }
332
333 public static com.liferay.portlet.shopping.model.ShoppingOrder getPayPalTxnIdOrder(
334 java.lang.String ppTxnId)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException {
337 return getService().getPayPalTxnIdOrder(ppTxnId);
338 }
339
340 public static com.liferay.portlet.shopping.model.ShoppingOrder saveLatestOrder(
341 com.liferay.portlet.shopping.model.ShoppingCart cart)
342 throws com.liferay.portal.kernel.exception.PortalException,
343 com.liferay.portal.kernel.exception.SystemException {
344 return getService().saveLatestOrder(cart);
345 }
346
347 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> search(
348 long groupId, long companyId, long userId, java.lang.String number,
349 java.lang.String billingFirstName, java.lang.String billingLastName,
350 java.lang.String billingEmailAddress,
351 java.lang.String shippingFirstName, java.lang.String shippingLastName,
352 java.lang.String shippingEmailAddress,
353 java.lang.String ppPaymentStatus, boolean andOperator, int start,
354 int end) throws com.liferay.portal.kernel.exception.SystemException {
355 return getService()
356 .search(groupId, companyId, userId, number,
357 billingFirstName, billingLastName, billingEmailAddress,
358 shippingFirstName, shippingLastName, shippingEmailAddress,
359 ppPaymentStatus, andOperator, start, end);
360 }
361
362 public static int searchCount(long groupId, long companyId, long userId,
363 java.lang.String number, java.lang.String billingFirstName,
364 java.lang.String billingLastName, java.lang.String billingEmailAddress,
365 java.lang.String shippingFirstName, java.lang.String shippingLastName,
366 java.lang.String shippingEmailAddress,
367 java.lang.String ppPaymentStatus, boolean andOperator)
368 throws com.liferay.portal.kernel.exception.SystemException {
369 return getService()
370 .searchCount(groupId, companyId, userId, number,
371 billingFirstName, billingLastName, billingEmailAddress,
372 shippingFirstName, shippingLastName, shippingEmailAddress,
373 ppPaymentStatus, andOperator);
374 }
375
376 public static void sendEmail(long orderId, java.lang.String emailType,
377 com.liferay.portal.service.ServiceContext serviceContext)
378 throws com.liferay.portal.kernel.exception.PortalException,
379 com.liferay.portal.kernel.exception.SystemException {
380 getService().sendEmail(orderId, emailType, serviceContext);
381 }
382
383 public static void sendEmail(
384 com.liferay.portlet.shopping.model.ShoppingOrder order,
385 java.lang.String emailType,
386 com.liferay.portal.service.ServiceContext serviceContext)
387 throws com.liferay.portal.kernel.exception.PortalException,
388 com.liferay.portal.kernel.exception.SystemException {
389 getService().sendEmail(order, emailType, serviceContext);
390 }
391
392 public static com.liferay.portlet.shopping.model.ShoppingOrder updateLatestOrder(
393 long userId, long groupId, java.lang.String billingFirstName,
394 java.lang.String billingLastName, java.lang.String billingEmailAddress,
395 java.lang.String billingCompany, java.lang.String billingStreet,
396 java.lang.String billingCity, java.lang.String billingState,
397 java.lang.String billingZip, java.lang.String billingCountry,
398 java.lang.String billingPhone, boolean shipToBilling,
399 java.lang.String shippingFirstName, java.lang.String shippingLastName,
400 java.lang.String shippingEmailAddress,
401 java.lang.String shippingCompany, java.lang.String shippingStreet,
402 java.lang.String shippingCity, java.lang.String shippingState,
403 java.lang.String shippingZip, java.lang.String shippingCountry,
404 java.lang.String shippingPhone, java.lang.String ccName,
405 java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
406 int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
407 throws com.liferay.portal.kernel.exception.PortalException,
408 com.liferay.portal.kernel.exception.SystemException {
409 return getService()
410 .updateLatestOrder(userId, groupId, billingFirstName,
411 billingLastName, billingEmailAddress, billingCompany,
412 billingStreet, billingCity, billingState, billingZip,
413 billingCountry, billingPhone, shipToBilling, shippingFirstName,
414 shippingLastName, shippingEmailAddress, shippingCompany,
415 shippingStreet, shippingCity, shippingState, shippingZip,
416 shippingCountry, shippingPhone, ccName, ccType, ccNumber,
417 ccExpMonth, ccExpYear, ccVerNumber, comments);
418 }
419
420 public static com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
421 long orderId, java.lang.String ppTxnId,
422 java.lang.String ppPaymentStatus, double ppPaymentGross,
423 java.lang.String ppReceiverEmail, java.lang.String ppPayerEmail)
424 throws com.liferay.portal.kernel.exception.PortalException,
425 com.liferay.portal.kernel.exception.SystemException {
426 return getService()
427 .updateOrder(orderId, ppTxnId, ppPaymentStatus,
428 ppPaymentGross, ppReceiverEmail, ppPayerEmail);
429 }
430
431 public static com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
432 long orderId, java.lang.String billingFirstName,
433 java.lang.String billingLastName, java.lang.String billingEmailAddress,
434 java.lang.String billingCompany, java.lang.String billingStreet,
435 java.lang.String billingCity, java.lang.String billingState,
436 java.lang.String billingZip, java.lang.String billingCountry,
437 java.lang.String billingPhone, boolean shipToBilling,
438 java.lang.String shippingFirstName, java.lang.String shippingLastName,
439 java.lang.String shippingEmailAddress,
440 java.lang.String shippingCompany, java.lang.String shippingStreet,
441 java.lang.String shippingCity, java.lang.String shippingState,
442 java.lang.String shippingZip, java.lang.String shippingCountry,
443 java.lang.String shippingPhone, java.lang.String ccName,
444 java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
445 int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
446 throws com.liferay.portal.kernel.exception.PortalException,
447 com.liferay.portal.kernel.exception.SystemException {
448 return getService()
449 .updateOrder(orderId, billingFirstName, billingLastName,
450 billingEmailAddress, billingCompany, billingStreet, billingCity,
451 billingState, billingZip, billingCountry, billingPhone,
452 shipToBilling, shippingFirstName, shippingLastName,
453 shippingEmailAddress, shippingCompany, shippingStreet,
454 shippingCity, shippingState, shippingZip, shippingCountry,
455 shippingPhone, ccName, ccType, ccNumber, ccExpMonth, ccExpYear,
456 ccVerNumber, comments);
457 }
458
459 public static ShoppingOrderLocalService getService() {
460 if (_service == null) {
461 _service = (ShoppingOrderLocalService)PortalBeanLocatorUtil.locate(ShoppingOrderLocalService.class.getName());
462
463 ReferenceRegistry.registerReference(ShoppingOrderLocalServiceUtil.class,
464 "_service");
465 }
466
467 return _service;
468 }
469
470
473 public void setService(ShoppingOrderLocalService service) {
474 }
475
476 private static ShoppingOrderLocalService _service;
477 }