com.liferay.portlet.shopping.service.impl
Class ShoppingItemLocalServiceImpl
java.lang.Object
com.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portlet.shopping.service.base.ShoppingItemLocalServiceBaseImpl
com.liferay.portlet.shopping.service.impl.ShoppingItemLocalServiceImpl
- All Implemented Interfaces:
- IdentifiableBean, BaseLocalService, PersistedModelLocalService, ShoppingItemLocalService
public class ShoppingItemLocalServiceImpl
- extends ShoppingItemLocalServiceBaseImpl
Fields inherited from class com.liferay.portlet.shopping.service.base.ShoppingItemLocalServiceBaseImpl |
counterLocalService, imageLocalService, imagePersistence, imageService, 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 |
void |
addBookItems(long userId,
long groupId,
long categoryId,
String[] isbns)
|
ShoppingItem |
addItem(long userId,
long groupId,
long categoryId,
String sku,
String name,
String description,
String properties,
String fieldsQuantities,
boolean requiresShipping,
int stockQuantity,
boolean featured,
Boolean sale,
boolean smallImage,
String smallImageURL,
File smallImageFile,
boolean mediumImage,
String mediumImageURL,
File mediumImageFile,
boolean largeImage,
String largeImageURL,
File largeImageFile,
List<ShoppingItemField> itemFields,
List<ShoppingItemPrice> itemPrices,
ServiceContext serviceContext)
|
void |
addItemResources(long itemId,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addItemResources(long itemId,
String[] groupPermissions,
String[] guestPermissions)
|
void |
addItemResources(ShoppingItem item,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addItemResources(ShoppingItem item,
String[] groupPermissions,
String[] guestPermissions)
|
protected String |
checkItemField(String value)
|
void |
deleteItem(long itemId)
|
void |
deleteItem(ShoppingItem item)
|
void |
deleteItems(long groupId,
long categoryId)
|
protected void |
doAddBookItems(long userId,
long groupId,
long categoryId,
String[] isbns)
|
protected String |
getBookProperties(AmazonRankings amazonRankings)
|
int |
getCategoriesItemsCount(long groupId,
List<Long> categoryIds)
|
protected long |
getCategory(ShoppingItem item,
long categoryId)
|
List<ShoppingItem> |
getFeaturedItems(long groupId,
long categoryId,
int numOfItems)
|
ShoppingItem |
getItem(long itemId)
|
ShoppingItem |
getItem(long companyId,
String sku)
|
ShoppingItem |
getItemByLargeImageId(long largeImageId)
|
ShoppingItem |
getItemByMediumImageId(long mediumImageId)
|
ShoppingItem |
getItemBySmallImageId(long smallImageId)
|
List<ShoppingItem> |
getItems(long groupId,
long categoryId)
|
List<ShoppingItem> |
getItems(long groupId,
long categoryId,
int start,
int end,
OrderByComparator obc)
|
int |
getItemsCount(long groupId,
long categoryId)
|
ShoppingItem[] |
getItemsPrevAndNext(long itemId,
OrderByComparator obc)
|
List<ShoppingItem> |
getSaleItems(long groupId,
long categoryId,
int numOfItems)
|
protected void |
saveImages(boolean smallImage,
long smallImageId,
File smallImageFile,
byte[] smallImageBytes,
boolean mediumImage,
long mediumImageId,
File mediumImageFile,
byte[] mediumImageBytes,
boolean largeImage,
long largeImageId,
File largeImageFile,
byte[] largeImageBytes)
|
List<ShoppingItem> |
search(long groupId,
long[] categoryIds,
String keywords,
int start,
int end)
|
int |
searchCount(long groupId,
long[] categoryIds,
String keywords)
|
ShoppingItem |
updateItem(long userId,
long itemId,
long groupId,
long categoryId,
String sku,
String name,
String description,
String properties,
String fieldsQuantities,
boolean requiresShipping,
int stockQuantity,
boolean featured,
Boolean sale,
boolean smallImage,
String smallImageURL,
File smallImageFile,
boolean mediumImage,
String mediumImageURL,
File mediumImageFile,
boolean largeImage,
String largeImageURL,
File largeImageFile,
List<ShoppingItemField> itemFields,
List<ShoppingItemPrice> itemPrices,
ServiceContext serviceContext)
|
protected void |
validate(long companyId,
long itemId,
String sku,
String name,
boolean smallImage,
String smallImageURL,
File smallImageFile,
byte[] smallImageBytes,
boolean mediumImage,
String mediumImageURL,
File mediumImageFile,
byte[] mediumImageBytes,
boolean largeImage,
String largeImageURL,
File largeImageFile,
byte[] largeImageBytes)
|
Methods inherited from class com.liferay.portlet.shopping.service.base.ShoppingItemLocalServiceBaseImpl |
addShoppingItem, afterPropertiesSet, createShoppingItem, deleteShoppingItem, deleteShoppingItem, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, fetchShoppingItem, getBeanIdentifier, getCounterLocalService, getImageLocalService, getImagePersistence, getImageService, getModelClass, getModelClassName, getPersistedModel, 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, setBeanIdentifier, setCounterLocalService, setImageLocalService, setImagePersistence, setImageService, 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 groupId,
long categoryId,
String[] isbns)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addItem
public ShoppingItem addItem(long userId,
long groupId,
long categoryId,
String sku,
String name,
String description,
String properties,
String fieldsQuantities,
boolean requiresShipping,
int stockQuantity,
boolean featured,
Boolean sale,
boolean smallImage,
String smallImageURL,
File smallImageFile,
boolean mediumImage,
String mediumImageURL,
File mediumImageFile,
boolean largeImage,
String largeImageURL,
File largeImageFile,
List<ShoppingItemField> itemFields,
List<ShoppingItemPrice> itemPrices,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addItemResources
public void addItemResources(long itemId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addItemResources
public void addItemResources(long itemId,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addItemResources
public void addItemResources(ShoppingItem item,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addItemResources
public void addItemResources(ShoppingItem item,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteItem
public void deleteItem(long itemId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteItem
public void deleteItem(ShoppingItem item)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteItems
public void deleteItems(long groupId,
long categoryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCategoriesItemsCount
public int getCategoriesItemsCount(long groupId,
List<Long> categoryIds)
throws SystemException
- Throws:
SystemException
getFeaturedItems
public List<ShoppingItem> getFeaturedItems(long groupId,
long categoryId,
int numOfItems)
throws SystemException
- Throws:
SystemException
getItem
public ShoppingItem getItem(long itemId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getItem
public ShoppingItem getItem(long companyId,
String sku)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getItemByLargeImageId
public ShoppingItem getItemByLargeImageId(long largeImageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getItemByMediumImageId
public ShoppingItem getItemByMediumImageId(long mediumImageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getItemBySmallImageId
public ShoppingItem getItemBySmallImageId(long smallImageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getItems
public List<ShoppingItem> getItems(long groupId,
long categoryId)
throws SystemException
- Throws:
SystemException
getItems
public List<ShoppingItem> getItems(long groupId,
long categoryId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getItemsCount
public int getItemsCount(long groupId,
long categoryId)
throws SystemException
- Throws:
SystemException
getItemsPrevAndNext
public ShoppingItem[] getItemsPrevAndNext(long itemId,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getSaleItems
public List<ShoppingItem> getSaleItems(long groupId,
long categoryId,
int numOfItems)
throws SystemException
- Throws:
SystemException
search
public List<ShoppingItem> search(long groupId,
long[] categoryIds,
String keywords,
int start,
int end)
throws SystemException
- Throws:
SystemException
searchCount
public int searchCount(long groupId,
long[] categoryIds,
String keywords)
throws SystemException
- Throws:
SystemException
updateItem
public ShoppingItem updateItem(long userId,
long itemId,
long groupId,
long categoryId,
String sku,
String name,
String description,
String properties,
String fieldsQuantities,
boolean requiresShipping,
int stockQuantity,
boolean featured,
Boolean sale,
boolean smallImage,
String smallImageURL,
File smallImageFile,
boolean mediumImage,
String mediumImageURL,
File mediumImageFile,
boolean largeImage,
String largeImageURL,
File largeImageFile,
List<ShoppingItemField> itemFields,
List<ShoppingItemPrice> itemPrices,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
checkItemField
protected String checkItemField(String value)
doAddBookItems
protected void doAddBookItems(long userId,
long groupId,
long categoryId,
String[] isbns)
throws IOException,
PortalException,
SystemException
- Throws:
IOException
PortalException
SystemException
getBookProperties
protected String getBookProperties(AmazonRankings amazonRankings)
getCategory
protected long getCategory(ShoppingItem item,
long categoryId)
throws SystemException
- Throws:
SystemException
saveImages
protected void saveImages(boolean smallImage,
long smallImageId,
File smallImageFile,
byte[] smallImageBytes,
boolean mediumImage,
long mediumImageId,
File mediumImageFile,
byte[] mediumImageBytes,
boolean largeImage,
long largeImageId,
File largeImageFile,
byte[] largeImageBytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
protected void validate(long companyId,
long itemId,
String sku,
String name,
boolean smallImage,
String smallImageURL,
File smallImageFile,
byte[] smallImageBytes,
boolean mediumImage,
String mediumImageURL,
File mediumImageFile,
byte[] mediumImageBytes,
boolean largeImage,
String largeImageURL,
File largeImageFile,
byte[] largeImageBytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException