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
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 itemFields,
java.util.List itemPrices,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
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 itemFields,
java.util.List itemPrices,
java.lang.Boolean addCommunityPermissions,
java.lang.Boolean addGuestPermissions,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
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 itemFields,
java.util.List itemPrices,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
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 java.lang.String |
getBookProperties(AmazonRankings amazonRankings)
|
int |
getCategoriesItemsCount(java.util.List categoryIds)
|
protected com.liferay.portlet.shopping.model.ShoppingCategory |
getCategory(com.liferay.portlet.shopping.model.ShoppingItem item,
long categoryId)
|
java.util.List |
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)
|
java.util.List |
getItems(long categoryId)
|
java.util.List |
getItems(long categoryId,
int begin,
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 |
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 |
search(long groupId,
long[] categoryIds,
java.lang.String keywords,
int begin,
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 itemFields,
java.util.List itemPrices)
|
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 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 itemFields,
java.util.List itemPrices,
boolean addCommunityPermissions,
boolean addGuestPermissions)
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 itemFields,
java.util.List itemPrices,
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
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 itemFields,
java.util.List itemPrices,
java.lang.Boolean addCommunityPermissions,
java.lang.Boolean addGuestPermissions,
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(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 categoryIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getFeaturedItems
public java.util.List 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
getItems
public java.util.List getItems(long categoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getItems
public java.util.List getItems(long categoryId,
int begin,
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 getSaleItems(long groupId,
long categoryId,
int numOfItems)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
search
public java.util.List search(long groupId,
long[] categoryIds,
java.lang.String keywords,
int begin,
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 itemFields,
java.util.List itemPrices)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
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.SystemException
- Throws:
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