com.liferay.portlet.shopping.service.impl
Class ShoppingCartLocalServiceImpl
java.lang.Object
com.liferay.portlet.shopping.service.base.ShoppingCartLocalServiceBaseImpl
com.liferay.portlet.shopping.service.impl.ShoppingCartLocalServiceImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.bean.IdentifiableBean, com.liferay.portal.service.PersistedModelLocalService, com.liferay.portlet.shopping.service.ShoppingCartLocalService
public class ShoppingCartLocalServiceImpl
- extends ShoppingCartLocalServiceBaseImpl
- Author:
- Brian Wing Shun Chan
| Fields inherited from class com.liferay.portlet.shopping.service.base.ShoppingCartLocalServiceBaseImpl |
counterLocalService, 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, userFinder, userLocalService, userPersistence, userService |
|
Method Summary |
protected java.lang.String |
checkItemIds(long groupId,
java.lang.String itemIds)
|
void |
deleteGroupCarts(long groupId)
|
void |
deleteShoppingCart(long cartId)
Deletes the shopping cart with the primary key from the database. |
void |
deleteShoppingCart(com.liferay.portlet.shopping.model.ShoppingCart cart)
Deletes the shopping cart from the database. |
void |
deleteUserCarts(long userId)
|
com.liferay.portlet.shopping.model.ShoppingCart |
getCart(long userId,
long groupId)
|
java.util.Map<com.liferay.portlet.shopping.model.ShoppingCartItem,java.lang.Integer> |
getItems(long groupId,
java.lang.String itemIds)
|
com.liferay.portlet.shopping.model.ShoppingCart |
updateCart(long userId,
long groupId,
java.lang.String itemIds,
java.lang.String couponCodes,
int altShipping,
boolean insure)
|
| Methods inherited from class com.liferay.portlet.shopping.service.base.ShoppingCartLocalServiceBaseImpl |
addShoppingCart, afterPropertiesSet, createShoppingCart, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, fetchShoppingCart, getBeanIdentifier, getCounterLocalService, getModelClass, getModelClassName, getPersistedModel, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getShoppingCart, getShoppingCartLocalService, getShoppingCartPersistence, getShoppingCarts, getShoppingCartsCount, getShoppingCategoryLocalService, getShoppingCategoryPersistence, getShoppingCategoryService, getShoppingCouponFinder, getShoppingCouponLocalService, getShoppingCouponPersistence, getShoppingCouponService, getShoppingItemFieldLocalService, getShoppingItemFieldPersistence, getShoppingItemFinder, getShoppingItemLocalService, getShoppingItemPersistence, getShoppingItemPriceLocalService, getShoppingItemPricePersistence, getShoppingItemService, getShoppingOrderFinder, getShoppingOrderItemLocalService, getShoppingOrderItemPersistence, getShoppingOrderLocalService, getShoppingOrderPersistence, getShoppingOrderService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setBeanIdentifier, setCounterLocalService, 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, updateShoppingCart, updateShoppingCart |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShoppingCartLocalServiceImpl
public ShoppingCartLocalServiceImpl()
deleteGroupCarts
public void deleteGroupCarts(long groupId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
deleteShoppingCart
public void deleteShoppingCart(long cartId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Description copied from class:
ShoppingCartLocalServiceBaseImpl
- Deletes the shopping cart with the primary key from the database. Also notifies the appropriate model listeners.
- Specified by:
deleteShoppingCart in interface com.liferay.portlet.shopping.service.ShoppingCartLocalService- Overrides:
deleteShoppingCart in class ShoppingCartLocalServiceBaseImpl
- Parameters:
cartId - the primary key of the shopping cart
- Throws:
com.liferay.portal.kernel.exception.PortalException - if a shopping cart with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
deleteShoppingCart
public void deleteShoppingCart(com.liferay.portlet.shopping.model.ShoppingCart cart)
throws com.liferay.portal.kernel.exception.SystemException
- Description copied from class:
ShoppingCartLocalServiceBaseImpl
- Deletes the shopping cart from the database. Also notifies the appropriate model listeners.
- Specified by:
deleteShoppingCart in interface com.liferay.portlet.shopping.service.ShoppingCartLocalService- Overrides:
deleteShoppingCart in class ShoppingCartLocalServiceBaseImpl
- Parameters:
cart - the shopping cart
- Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
deleteUserCarts
public void deleteUserCarts(long userId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getCart
public com.liferay.portlet.shopping.model.ShoppingCart getCart(long userId,
long groupId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getItems
public java.util.Map<com.liferay.portlet.shopping.model.ShoppingCartItem,java.lang.Integer> getItems(long groupId,
java.lang.String itemIds)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
updateCart
public com.liferay.portlet.shopping.model.ShoppingCart updateCart(long userId,
long groupId,
java.lang.String itemIds,
java.lang.String couponCodes,
int altShipping,
boolean insure)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
checkItemIds
protected java.lang.String checkItemIds(long groupId,
java.lang.String itemIds)