public class ShoppingItemLocalServiceImpl extends ShoppingItemLocalServiceBaseImpl
counterLocalService, imageLocalService, imagePersistence, imageService, persistedModelLocalServiceRegistry, resourceLocalService, 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 and Description |
|---|
ShoppingItemLocalServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBookItems(long userId,
long groupId,
long categoryId,
java.lang.String[] isbns) |
com.liferay.portlet.shopping.model.ShoppingItem |
addItem(long userId,
long groupId,
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 smallImageFile,
boolean mediumImage,
java.lang.String mediumImageURL,
java.io.File mediumImageFile,
boolean largeImage,
java.lang.String largeImageURL,
java.io.File largeImageFile,
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 addGroupPermissions,
boolean addGuestPermissions) |
void |
addItemResources(long itemId,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions) |
void |
addItemResources(com.liferay.portlet.shopping.model.ShoppingItem item,
boolean addGroupPermissions,
boolean addGuestPermissions) |
void |
addItemResources(com.liferay.portlet.shopping.model.ShoppingItem item,
java.lang.String[] groupPermissions,
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 groupId,
long categoryId) |
protected void |
doAddBookItems(long userId,
long groupId,
long categoryId,
java.lang.String[] isbns) |
protected java.lang.String |
getBookProperties(AmazonRankings amazonRankings) |
int |
getCategoriesItemsCount(long groupId,
java.util.List<java.lang.Long> categoryIds) |
protected long |
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 groupId,
long categoryId) |
java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> |
getItems(long groupId,
long categoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc) |
int |
getItemsCount(long groupId,
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 smallImageFile,
byte[] smallImageBytes,
boolean mediumImage,
long mediumImageId,
java.io.File mediumImageFile,
byte[] mediumImageBytes,
boolean largeImage,
long largeImageId,
java.io.File largeImageFile,
byte[] largeImageBytes) |
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 groupId,
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 smallImageFile,
boolean mediumImage,
java.lang.String mediumImageURL,
java.io.File mediumImageFile,
boolean largeImage,
java.lang.String largeImageURL,
java.io.File largeImageFile,
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 smallImageFile,
byte[] smallImageBytes,
boolean mediumImage,
java.lang.String mediumImageURL,
java.io.File mediumImageFile,
byte[] mediumImageBytes,
boolean largeImage,
java.lang.String largeImageURL,
java.io.File largeImageFile,
byte[] largeImageBytes) |
addShoppingItem, afterPropertiesSet, createShoppingItem, deleteShoppingItem, deleteShoppingItem, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchShoppingItem, getBeanIdentifier, getCounterLocalService, getImageLocalService, getImagePersistence, getImageService, getModelClass, getModelClassName, getPersistedModel, getResourceLocalService, 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, setBeanIdentifier, setCounterLocalService, setImageLocalService, setImagePersistence, setImageService, setResourceLocalService, 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, updateShoppingItempublic void addBookItems(long userId,
long groupId,
long categoryId,
java.lang.String[] isbns)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.shopping.model.ShoppingItem addItem(long userId,
long groupId,
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 smallImageFile,
boolean mediumImage,
java.lang.String mediumImageURL,
java.io.File mediumImageFile,
boolean largeImage,
java.lang.String largeImageURL,
java.io.File largeImageFile,
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.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void addItemResources(long itemId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void addItemResources(long itemId,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void addItemResources(com.liferay.portlet.shopping.model.ShoppingItem item,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void addItemResources(com.liferay.portlet.shopping.model.ShoppingItem item,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void deleteItem(long itemId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void deleteItem(com.liferay.portlet.shopping.model.ShoppingItem item)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void deleteItems(long groupId,
long categoryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic int getCategoriesItemsCount(long groupId,
java.util.List<java.lang.Long> categoryIds)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getFeaturedItems(long groupId,
long categoryId,
int numOfItems)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.shopping.model.ShoppingItem getItem(long itemId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.shopping.model.ShoppingItem getItem(long companyId,
java.lang.String sku)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.shopping.model.ShoppingItem getItemByLargeImageId(long largeImageId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.shopping.model.ShoppingItem getItemByMediumImageId(long mediumImageId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.shopping.model.ShoppingItem getItemBySmallImageId(long smallImageId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(long groupId,
long categoryId)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getItems(long groupId,
long categoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic int getItemsCount(long groupId,
long categoryId)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.shopping.model.ShoppingItem[] getItemsPrevAndNext(long itemId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> getSaleItems(long groupId,
long categoryId,
int numOfItems)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic 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.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic int searchCount(long groupId,
long[] categoryIds,
java.lang.String keywords)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.shopping.model.ShoppingItem updateItem(long userId,
long itemId,
long groupId,
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 smallImageFile,
boolean mediumImage,
java.lang.String mediumImageURL,
java.io.File mediumImageFile,
boolean largeImage,
java.lang.String largeImageURL,
java.io.File largeImageFile,
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.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected java.lang.String checkItemField(java.lang.String value)
protected void doAddBookItems(long userId,
long groupId,
long categoryId,
java.lang.String[] isbns)
throws java.io.IOException,
com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
java.io.IOExceptioncom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected java.lang.String getBookProperties(AmazonRankings amazonRankings)
protected long getCategory(com.liferay.portlet.shopping.model.ShoppingItem item,
long categoryId)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionprotected void saveImages(boolean smallImage,
long smallImageId,
java.io.File smallImageFile,
byte[] smallImageBytes,
boolean mediumImage,
long mediumImageId,
java.io.File mediumImageFile,
byte[] mediumImageBytes,
boolean largeImage,
long largeImageId,
java.io.File largeImageFile,
byte[] largeImageBytes)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected void validate(long companyId,
long itemId,
java.lang.String sku,
java.lang.String name,
boolean smallImage,
java.lang.String smallImageURL,
java.io.File smallImageFile,
byte[] smallImageBytes,
boolean mediumImage,
java.lang.String mediumImageURL,
java.io.File mediumImageFile,
byte[] mediumImageBytes,
boolean largeImage,
java.lang.String largeImageURL,
java.io.File largeImageFile,
byte[] largeImageBytes)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException