Liferay 6.1.2-ce-ga3

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, 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, 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)
           
 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(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, afterPropertiesSet, createShoppingOrder, deleteShoppingOrder, deleteShoppingOrder, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, fetchShoppingOrder, getBeanIdentifier, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getMailService, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getModelClass, getModelClassName, getPersistedModel, 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, getSubscriptionLocalService, getSubscriptionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setBeanIdentifier, 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, setSubscriptionLocalService, setSubscriptionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateShoppingOrder, 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,
                                    SystemException
Throws:
PortalException
SystemException

completeOrder

public void completeOrder(String number,
                          String ppTxnId,
                          String ppPaymentStatus,
                          double ppPaymentGross,
                          String ppReceiverEmail,
                          String ppPayerEmail,
                          boolean updateInventory,
                          ServiceContext serviceContext)
                   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,
                      ServiceContext serviceContext)
               throws PortalException,
                      SystemException
Throws:
PortalException
SystemException

sendEmail

public void sendEmail(ShoppingOrder order,
                      String emailType,
                      ServiceContext serviceContext)
               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

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.1.2-ce-ga3