Liferay 7.0-ce-m3

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

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.shopping.service.base.ShoppingOrderLocalServiceBaseImpl
          extended by com.liferay.portlet.shopping.service.impl.ShoppingOrderLocalServiceImpl
All Implemented Interfaces:
IdentifiableBean, BaseLocalService, PersistedModelLocalService, 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, persistedModelLocalServiceRegistry, shoppingItemFieldLocalService, shoppingItemFieldPersistence, shoppingItemFinder, shoppingItemLocalService, shoppingItemPersistence, shoppingItemService, shoppingOrderFinder, shoppingOrderItemLocalService, shoppingOrderItemPersistence, shoppingOrderLocalService, shoppingOrderPersistence, shoppingOrderService, subscriptionLocalService, subscriptionPersistence, 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, ServiceContext serviceContext)
           
 void deleteOrder(long orderId)
           
 void deleteOrder(ShoppingOrder order)
           
 void deleteOrders(long groupId)
           
 ShoppingOrder getLatestOrder(long userId, long groupId)
           
protected  String getNumber()
           
 ShoppingOrder getOrder(long orderId)
           
 ShoppingOrder getOrder(String number)
           
 ShoppingOrder getPayPalTxnIdOrder(String ppTxnId)
           
protected  void notifyUser(ShoppingOrder order, String emailType, ShoppingSettings shoppingSettings, ServiceContext serviceContext)
           
 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, ServiceContext serviceContext)
           
 void sendEmail(ShoppingOrder order, String emailType, ServiceContext serviceContext)
           
 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(ShoppingSettings shoppingSettings, 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, afterPropertiesSet, createShoppingOrder, deletePersistedModel, deleteShoppingOrder, deleteShoppingOrder, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchShoppingOrder, getActionableDynamicQuery, getBeanIdentifier, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getMailService, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getModelClass, getModelClassName, getPersistedModel, getShoppingItemFieldLocalService, getShoppingItemFieldPersistence, getShoppingItemFinder, getShoppingItemLocalService, getShoppingItemPersistence, getShoppingItemService, getShoppingOrder, getShoppingOrderFinder, getShoppingOrderItemLocalService, getShoppingOrderItemPersistence, getShoppingOrderLocalService, getShoppingOrderPersistence, getShoppingOrders, getShoppingOrdersCount, getShoppingOrderService, getSubscriptionLocalService, getSubscriptionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, initActionableDynamicQuery, runSQL, setBeanIdentifier, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setMailService, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setShoppingItemFieldLocalService, setShoppingItemFieldPersistence, setShoppingItemFinder, setShoppingItemLocalService, setShoppingItemPersistence, setShoppingItemService, setShoppingOrderFinder, setShoppingOrderItemLocalService, setShoppingOrderItemPersistence, setShoppingOrderLocalService, setShoppingOrderPersistence, setShoppingOrderService, setSubscriptionLocalService, setSubscriptionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateShoppingOrder
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader
 
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
Throws:
PortalException

completeOrder

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

deleteOrder

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

deleteOrder

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

deleteOrders

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

getLatestOrder

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

getOrder

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

getOrder

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

getPayPalTxnIdOrder

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

saveLatestOrder

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

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)

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)

sendEmail

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

sendEmail

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

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
Throws:
PortalException

updateOrder

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

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
Throws:
PortalException

getNumber

protected String getNumber()

notifyUser

protected void notifyUser(ShoppingOrder order,
                          String emailType,
                          ShoppingSettings shoppingSettings,
                          ServiceContext serviceContext)
                   throws PortalException
Throws:
PortalException

validate

protected void validate(ShoppingSettings shoppingSettings,
                        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 7.0-ce-m3