com.liferay.portlet.shopping.service.impl
Class ShoppingItemLocalServiceImpl
java.lang.Object
com.liferay.portlet.shopping.service.base.ShoppingItemLocalServiceBaseImpl
com.liferay.portlet.shopping.service.impl.ShoppingItemLocalServiceImpl
- All Implemented Interfaces:
- com.liferay.portlet.shopping.service.ShoppingItemLocalService
public class ShoppingItemLocalServiceImpl
- extends ShoppingItemLocalServiceBaseImpl
View Source
- Author:
- Brian Wing Shun Chan
Fields inherited from class com.liferay.portlet.shopping.service.base.ShoppingItemLocalServiceBaseImpl |
counterLocalService, counterService, imageLocalService, imagePersistence, 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 |
void |
addBookItems(long userId,
long categoryId,
java.lang.String[] isbns)
|
com.liferay.portlet.shopping.model.ShoppingItem |
addItem(long userId,
long categoryId,
java.lang.String sku,
java.lang.String name,
java.lang.String description,
java.lang.String properties,
java.lang.String fieldsQuantities,
boolean requiresShipping,
int stockQuantity,
boolean featured,
java.lang.Boolean sale,
boolean smallImage,
java.lang.String smallImageURL,
java.io.File smallFile,
boolean mediumImage,
java.lang.String mediumImageURL,
java.io.File mediumFile,
boolean largeImage,
java.lang.String largeImageURL,
java.io.File largeFile,
java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
com.liferay.portal.service.ServiceContext serviceContext)
|
void |
addItemResources(long itemId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addItemResources(long itemId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
void |
addItemResources(com.liferay.portlet.shopping.model.ShoppingCategory category,
com.liferay.portlet.shopping.model.ShoppingItem item,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addItemResources(com.liferay.portlet.shopping.model.ShoppingCategory category,
com.liferay.portlet.shopping.model.ShoppingItem item,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
protected java.lang.String |
checkItemField(java.lang.String value)
|
void |
deleteItem(long itemId)
|
void |
deleteItem(com.liferay.portlet.shopping.model.ShoppingItem item)
|
void |
deleteItems(long categoryId)
|
protected void |
doAddBookItems(long userId,
long categoryId,
java.lang.String[] isbns)
|
protected java.lang.String |
getBookProperties(AmazonRankings amazonRankings)
|
int |
getCategoriesItemsCount(java.util.List<java.lang.Long> categoryIds)
|
protected com.liferay.portlet.shopping.model.ShoppingCategory |
getCategory(com.liferay.portlet.shopping.model.ShoppingItem item,
long categoryId)
|
java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> |
getFeaturedItems(long groupId,
long categoryId,
int numOfItems)
|
com.liferay.portlet.shopping.model.ShoppingItem |
getItem(long itemId)
|
com.liferay.portlet.shopping.model.ShoppingItem |
getItem(long companyId,
java.lang.String sku)
|
com.liferay.portlet.shopping.model.ShoppingItem |
getItemByLargeImageId(long largeImageId)
|
com.liferay.portlet.shopping.model.ShoppingItem |
getItemByMediumImageId(long mediumImageId)
|
com.liferay.portlet.shopping.model.ShoppingItem |
getItemBySmallImageId(long smallImageId)
|
java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> |
getItems(long categoryId)
|
java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> |
getItems(long categoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
int |
getItemsCount(long categoryId)
|
com.liferay.portlet.shopping.model.ShoppingItem[] |
getItemsPrevAndNext(long itemId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> |
getSaleItems(long groupId,
long categoryId,
int numOfItems)
|
protected void |
saveImages(boolean smallImage,
long smallImageId,
java.io.File smallFile,
byte[] smallBytes,
boolean mediumImage,
long mediumImageId,
java.io.File mediumFile,
byte[] mediumBytes,
boolean largeImage,
long largeImageId,
java.io.File largeFile,
byte[] largeBytes)
|
java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> |
search(long groupId,
long[] categoryIds,
java.lang.String keywords,
int start,
int end)
|
int |
searchCount(long groupId,
long[] categoryIds,
java.lang.String keywords)
|
com.liferay.portlet.shopping.model.ShoppingItem |
updateItem(long userId,
long itemId,
long categoryId,
java.lang.String sku,
java.lang.String name,
java.lang.String description,
java.lang.String properties,
java.lang.String fieldsQuantities,
boolean requiresShipping,
int stockQuantity,
boolean featured,
java.lang.Boolean sale,
boolean smallImage,
java.lang.String smallImageURL,
java.io.File smallFile,
boolean mediumImage,
java.lang.String mediumImageURL,
java.io.File mediumFile,
boolean largeImage,
java.lang.String largeImageURL,
java.io.File largeFile,
java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
com.liferay.portal.service.ServiceContext serviceContext)
|
protected void |
validate(long companyId,
long itemId,
java.lang.String sku,
java.lang.String name,
boolean smallImage,
java.lang.String smallImageURL,
java.io.File smallFile,
byte[] smallBytes,
boolean mediumImage,
java.lang.String mediumImageURL,
java.io.File mediumFile,
byte[] mediumBytes,
boolean largeImage,
java.lang.String largeImageURL,
java.io.File largeFile,
byte[] largeBytes)
|
Methods inherited from class com.liferay.portlet.shopping.service.base.ShoppingItemLocalServiceBaseImpl |
addShoppingItem, createShoppingItem, deleteShoppingItem, deleteShoppingItem, dynamicQuery, dynamicQuery, getCounterLocalService, getCounterService, getImageLocalService, getImagePersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getShoppingCartLocalService, getShoppingCartPersistence, getShoppingCategoryLocalService, getShoppingCategoryPersistence, getShoppingCategoryService, getShoppingCouponFinder, getShoppingCouponLocalService, getShoppingCouponPersistence, getShoppingCouponService, getShoppingItem, getShoppingItemFieldLocalService, getShoppingItemFieldPersistence, getShoppingItemFinder, getShoppingItemLocalService, getShoppingItemPersistence, getShoppingItemPriceLocalService, getShoppingItemPricePersistence, getShoppingItems, getShoppingItemsCount, getShoppingItemService, getShoppingOrderFinder, getShoppingOrderItemLocalService, getShoppingOrderItemPersistence, getShoppingOrderLocalService, getShoppingOrderPersistence, getShoppingOrderService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setCounterLocalService, setCounterService, setImageLocalService, setImagePersistence, 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, updateShoppingItem, updateShoppingItem |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShoppingItemLocalServiceImpl
public ShoppingItemLocalServiceImpl()
addBookItems
public void addBookItems(long userId,
long categoryId,
java.lang.String[] isbns)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addItem
public com.liferay.portlet.shopping.model.ShoppingItem addItem(long userId,
long categoryId,
java.lang.String sku,
java.lang.String name,
java.lang.String description,
java.lang.String properties,
java.lang.String fieldsQuantities,
boolean requiresShipping,
int stockQuantity,
boolean featured,
java.lang.Boolean sale,
boolean smallImage,
java.lang.String smallImageURL,
java.io.File smallFile,
boolean mediumImage,
java.lang.String mediumImageURL,
java.io.File mediumFile,
boolean largeImage,
java.lang.String largeImageURL,
java.io.File largeFile,
java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addItemResources
public void addItemResources(long itemId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addItemResources
public void addItemResources(com.liferay.portlet.shopping.model.ShoppingCategory category,
com.liferay.portlet.shopping.model.ShoppingItem item,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addItemResources
public void addItemResources(long itemId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addItemResources
public void addItemResources(com.liferay.portlet.shopping.model.ShoppingCategory category,
com.liferay.portlet.shopping.model.ShoppingItem item,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteItem
public void deleteItem(long itemId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteItem
public void deleteItem(com.liferay.portlet.shopping.model.ShoppingItem item)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteItems
public void deleteItems(long categoryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getCategoriesItemsCount
public int getCategoriesItemsCount(java.util.List<java.lang.Long> categoryIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getFeaturedItems
public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getFeaturedItems(long groupId,
long categoryId,
int numOfItems)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getItem
public com.liferay.portlet.shopping.model.ShoppingItem getItem(long itemId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getItem
public com.liferay.portlet.shopping.model.ShoppingItem getItem(long companyId,
java.lang.String sku)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getItemByLargeImageId
public com.liferay.portlet.shopping.model.ShoppingItem getItemByLargeImageId(long largeImageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getItemByMediumImageId
public com.liferay.portlet.shopping.model.ShoppingItem getItemByMediumImageId(long mediumImageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getItemBySmallImageId
public com.liferay.portlet.shopping.model.ShoppingItem getItemBySmallImageId(long smallImageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getItems
public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(long categoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getItems
public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(long categoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getItemsPrevAndNext
public com.liferay.portlet.shopping.model.ShoppingItem[] getItemsPrevAndNext(long itemId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getItemsCount
public int getItemsCount(long categoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getSaleItems
public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getSaleItems(long groupId,
long categoryId,
int numOfItems)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
search
public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> search(long groupId,
long[] categoryIds,
java.lang.String keywords,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
searchCount
public int searchCount(long groupId,
long[] categoryIds,
java.lang.String keywords)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateItem
public com.liferay.portlet.shopping.model.ShoppingItem updateItem(long userId,
long itemId,
long categoryId,
java.lang.String sku,
java.lang.String name,
java.lang.String description,
java.lang.String properties,
java.lang.String fieldsQuantities,
boolean requiresShipping,
int stockQuantity,
boolean featured,
java.lang.Boolean sale,
boolean smallImage,
java.lang.String smallImageURL,
java.io.File smallFile,
boolean mediumImage,
java.lang.String mediumImageURL,
java.io.File mediumFile,
boolean largeImage,
java.lang.String largeImageURL,
java.io.File largeFile,
java.util.List<com.liferay.portlet.shopping.model.ShoppingItemField> itemFields,
java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> itemPrices,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
doAddBookItems
protected void doAddBookItems(long userId,
long categoryId,
java.lang.String[] isbns)
throws java.io.IOException,
com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
java.io.IOException
com.liferay.portal.PortalException
com.liferay.portal.SystemException
checkItemField
protected java.lang.String checkItemField(java.lang.String value)
getBookProperties
protected java.lang.String getBookProperties(AmazonRankings amazonRankings)
getCategory
protected com.liferay.portlet.shopping.model.ShoppingCategory getCategory(com.liferay.portlet.shopping.model.ShoppingItem item,
long categoryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
saveImages
protected void saveImages(boolean smallImage,
long smallImageId,
java.io.File smallFile,
byte[] smallBytes,
boolean mediumImage,
long mediumImageId,
java.io.File mediumFile,
byte[] mediumBytes,
boolean largeImage,
long largeImageId,
java.io.File largeFile,
byte[] largeBytes)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
validate
protected void validate(long companyId,
long itemId,
java.lang.String sku,
java.lang.String name,
boolean smallImage,
java.lang.String smallImageURL,
java.io.File smallFile,
byte[] smallBytes,
boolean mediumImage,
java.lang.String mediumImageURL,
java.io.File mediumFile,
byte[] mediumBytes,
boolean largeImage,
java.lang.String largeImageURL,
java.io.File largeFile,
byte[] largeBytes)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException