Liferay 6.0.5

com.liferay.portlet.shopping.service.impl
Class ShoppingOrderLocalServiceImpl

java.lang.Object
  extended by com.liferay.portlet.shopping.service.base.ShoppingOrderLocalServiceBaseImpl
      extended by com.liferay.portlet.shopping.service.impl.ShoppingOrderLocalServiceImpl
All Implemented Interfaces:
ShoppingOrderLocalService

public class ShoppingOrderLocalServiceImpl
extends ShoppingOrderLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portlet.shopping.service.base.ShoppingOrderLocalServiceBaseImpl
companyLocalService, companyPersistence, companyService, counterLocalService, mailService, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, shoppingCartLocalService, shoppingCartPersistence, shoppingCategoryLocalService, shoppingCategoryPersistence, shoppingCategoryService, shoppingCouponFinder, shoppingCouponLocalService, shoppingCouponPersistence, shoppingCouponService, shoppingItemFieldLocalService, shoppingItemFieldPersistence, shoppingItemFinder, shoppingItemLocalService, shoppingItemPersistence, shoppingItemPriceLocalService, shoppingItemPricePersistence, shoppingItemService, shoppingOrderFinder, shoppingOrderItemLocalService, shoppingOrderItemPersistence, shoppingOrderLocalService, shoppingOrderPersistence, shoppingOrderService, userFinder, userLocalService, userPersistence, userService
 
Constructor Summary
ShoppingOrderLocalServiceImpl()
           
 
Method Summary
 ShoppingOrder addLatestOrder(long userId, long groupId)
           
 void completeOrder(String number, String ppTxnId, String ppPaymentStatus, double ppPaymentGross, String ppReceiverEmail, String ppPayerEmail, boolean updateInventory)
           
 void deleteOrder(long orderId)
           
 void deleteOrder(ShoppingOrder order)
           
 void deleteOrders(long groupId)
           
protected  void doSendEmail(ShoppingOrder order, String emailType)
           
 ShoppingOrder getLatestOrder(long userId, long groupId)
           
protected  String getNumber()
           
 ShoppingOrder getOrder(long orderId)
           
 ShoppingOrder getOrder(String number)
           
 ShoppingOrder getPayPalTxnIdOrder(String ppTxnId)
           
 ShoppingOrder saveLatestOrder(ShoppingCart cart)
           
 List<ShoppingOrder> search(long groupId, long companyId, long userId, String number, String billingFirstName, String billingLastName, String billingEmailAddress, String shippingFirstName, String shippingLastName, String shippingEmailAddress, String ppPaymentStatus, boolean andOperator, int start, int end)
           
 int searchCount(long groupId, long companyId, long userId, String number, String billingFirstName, String billingLastName, String billingEmailAddress, String shippingFirstName, String shippingLastName, String shippingEmailAddress, String ppPaymentStatus, boolean andOperator)
           
 void sendEmail(long orderId, String emailType)
           
 void sendEmail(ShoppingOrder order, String emailType)
           
 ShoppingOrder updateLatestOrder(long userId, long groupId, String billingFirstName, String billingLastName, String billingEmailAddress, String billingCompany, String billingStreet, String billingCity, String billingState, String billingZip, String billingCountry, String billingPhone, boolean shipToBilling, String shippingFirstName, String shippingLastName, String shippingEmailAddress, String shippingCompany, String shippingStreet, String shippingCity, String shippingState, String shippingZip, String shippingCountry, String shippingPhone, String ccName, String ccType, String ccNumber, int ccExpMonth, int ccExpYear, String ccVerNumber, String comments)
           
 ShoppingOrder updateOrder(long orderId, String ppTxnId, String ppPaymentStatus, double ppPaymentGross, String ppReceiverEmail, String ppPayerEmail)
           
 ShoppingOrder updateOrder(long orderId, String billingFirstName, String billingLastName, String billingEmailAddress, String billingCompany, String billingStreet, String billingCity, String billingState, String billingZip, String billingCountry, String billingPhone, boolean shipToBilling, String shippingFirstName, String shippingLastName, String shippingEmailAddress, String shippingCompany, String shippingStreet, String shippingCity, String shippingState, String shippingZip, String shippingCountry, String shippingPhone, String ccName, String ccType, String ccNumber, int ccExpMonth, int ccExpYear, String ccVerNumber, String comments)
           
protected  void validate(ShoppingPreferences shoppingPrefs, String billingFirstName, String billingLastName, String billingEmailAddress, String billingStreet, String billingCity, String billingState, String billingZip, String billingCountry, String billingPhone, boolean shipToBilling, String shippingFirstName, String shippingLastName, String shippingEmailAddress, String shippingStreet, String shippingCity, String shippingState, String shippingZip, String shippingCountry, String shippingPhone, String ccName, String ccType, String ccNumber, int ccExpMonth, int ccExpYear, String ccVerNumber)
           
 
Methods inherited from class com.liferay.portlet.shopping.service.base.ShoppingOrderLocalServiceBaseImpl
addShoppingOrder, createShoppingOrder, deleteShoppingOrder, deleteShoppingOrder, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getMailService, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getShoppingCartLocalService, getShoppingCartPersistence, getShoppingCategoryLocalService, getShoppingCategoryPersistence, getShoppingCategoryService, getShoppingCouponFinder, getShoppingCouponLocalService, getShoppingCouponPersistence, getShoppingCouponService, getShoppingItemFieldLocalService, getShoppingItemFieldPersistence, getShoppingItemFinder, getShoppingItemLocalService, getShoppingItemPersistence, getShoppingItemPriceLocalService, getShoppingItemPricePersistence, getShoppingItemService, getShoppingOrder, getShoppingOrderFinder, getShoppingOrderItemLocalService, getShoppingOrderItemPersistence, getShoppingOrderLocalService, getShoppingOrderPersistence, getShoppingOrders, getShoppingOrdersCount, getShoppingOrderService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setMailService, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setShoppingCartLocalService, setShoppingCartPersistence, setShoppingCategoryLocalService, setShoppingCategoryPersistence, setShoppingCategoryService, setShoppingCouponFinder, setShoppingCouponLocalService, setShoppingCouponPersistence, setShoppingCouponService, setShoppingItemFieldLocalService, setShoppingItemFieldPersistence, setShoppingItemFinder, setShoppingItemLocalService, setShoppingItemPersistence, setShoppingItemPriceLocalService, setShoppingItemPricePersistence, setShoppingItemService, setShoppingOrderFinder, setShoppingOrderItemLocalService, setShoppingOrderItemPersistence, setShoppingOrderLocalService, setShoppingOrderPersistence, setShoppingOrderService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateShoppingOrder, updateShoppingOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingOrderLocalServiceImpl

public ShoppingOrderLocalServiceImpl()
Method Detail

addLatestOrder

public ShoppingOrder addLatestOrder(long userId,
                                    long groupId)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

completeOrder

public void completeOrder(String number,
                          String ppTxnId,
                          String ppPaymentStatus,
                          double ppPaymentGross,
                          String ppReceiverEmail,
                          String ppPayerEmail,
                          boolean updateInventory)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

deleteOrder

public void deleteOrder(long orderId)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

deleteOrder

public void deleteOrder(ShoppingOrder order)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

deleteOrders

public void deleteOrders(long groupId)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

getLatestOrder

public ShoppingOrder getLatestOrder(long userId,
                                    long groupId)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getOrder

public ShoppingOrder getOrder(long orderId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getOrder

public ShoppingOrder getOrder(String number)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getPayPalTxnIdOrder

public ShoppingOrder getPayPalTxnIdOrder(String ppTxnId)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

saveLatestOrder

public ShoppingOrder saveLatestOrder(ShoppingCart cart)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

search

public List<ShoppingOrder> search(long groupId,
                                  long companyId,
                                  long userId,
                                  String number,
                                  String billingFirstName,
                                  String billingLastName,
                                  String billingEmailAddress,
                                  String shippingFirstName,
                                  String shippingLastName,
                                  String shippingEmailAddress,
                                  String ppPaymentStatus,
                                  boolean andOperator,
                                  int start,
                                  int end)
                           throws SystemException
Throws:
SystemException

searchCount

public int searchCount(long groupId,
                       long companyId,
                       long userId,
                       String number,
                       String billingFirstName,
                       String billingLastName,
                       String billingEmailAddress,
                       String shippingFirstName,
                       String shippingLastName,
                       String shippingEmailAddress,
                       String ppPaymentStatus,
                       boolean andOperator)
                throws SystemException
Throws:
SystemException

sendEmail

public void sendEmail(long orderId,
                      String emailType)
               throws PortalException,
                      SystemException
Throws:
PortalException
SystemException

sendEmail

public void sendEmail(ShoppingOrder order,
                      String emailType)
               throws PortalException,
                      SystemException
Throws:
PortalException
SystemException

updateLatestOrder

public ShoppingOrder updateLatestOrder(long userId,
                                       long groupId,
                                       String billingFirstName,
                                       String billingLastName,
                                       String billingEmailAddress,
                                       String billingCompany,
                                       String billingStreet,
                                       String billingCity,
                                       String billingState,
                                       String billingZip,
                                       String billingCountry,
                                       String billingPhone,
                                       boolean shipToBilling,
                                       String shippingFirstName,
                                       String shippingLastName,
                                       String shippingEmailAddress,
                                       String shippingCompany,
                                       String shippingStreet,
                                       String shippingCity,
                                       String shippingState,
                                       String shippingZip,
                                       String shippingCountry,
                                       String shippingPhone,
                                       String ccName,
                                       String ccType,
                                       String ccNumber,
                                       int ccExpMonth,
                                       int ccExpYear,
                                       String ccVerNumber,
                                       String comments)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

updateOrder

public ShoppingOrder updateOrder(long orderId,
                                 String ppTxnId,
                                 String ppPaymentStatus,
                                 double ppPaymentGross,
                                 String ppReceiverEmail,
                                 String ppPayerEmail)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

updateOrder

public ShoppingOrder updateOrder(long orderId,
                                 String billingFirstName,
                                 String billingLastName,
                                 String billingEmailAddress,
                                 String billingCompany,
                                 String billingStreet,
                                 String billingCity,
                                 String billingState,
                                 String billingZip,
                                 String billingCountry,
                                 String billingPhone,
                                 boolean shipToBilling,
                                 String shippingFirstName,
                                 String shippingLastName,
                                 String shippingEmailAddress,
                                 String shippingCompany,
                                 String shippingStreet,
                                 String shippingCity,
                                 String shippingState,
                                 String shippingZip,
                                 String shippingCountry,
                                 String shippingPhone,
                                 String ccName,
                                 String ccType,
                                 String ccNumber,
                                 int ccExpMonth,
                                 int ccExpYear,
                                 String ccVerNumber,
                                 String comments)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

doSendEmail

protected void doSendEmail(ShoppingOrder order,
                           String emailType)
                    throws IOException,
                           PortalException,
                           SystemException
Throws:
IOException
PortalException
SystemException

getNumber

protected String getNumber()
                    throws SystemException
Throws:
SystemException

validate

protected void validate(ShoppingPreferences shoppingPrefs,
                        String billingFirstName,
                        String billingLastName,
                        String billingEmailAddress,
                        String billingStreet,
                        String billingCity,
                        String billingState,
                        String billingZip,
                        String billingCountry,
                        String billingPhone,
                        boolean shipToBilling,
                        String shippingFirstName,
                        String shippingLastName,
                        String shippingEmailAddress,
                        String shippingStreet,
                        String shippingCity,
                        String shippingState,
                        String shippingZip,
                        String shippingCountry,
                        String shippingPhone,
                        String ccName,
                        String ccType,
                        String ccNumber,
                        int ccExpMonth,
                        int ccExpYear,
                        String ccVerNumber)
                 throws PortalException
Throws:
PortalException

Liferay 6.0.5