com.liferay.portlet.shopping.service
Interface ShoppingItemLocalService
public interface ShoppingItemLocalService
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This interface defines the service. The default implementation is
com.liferay.portlet.shopping.service.impl.ShoppingItemLocalServiceImpl
.
Modify methods in that class and rerun ServiceBuilder to populate this class
and all other generated classes.
This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
- Author:
- Brian Wing Shun Chan
- See Also:
ShoppingItemLocalServiceFactory
,
ShoppingItemLocalServiceUtil
Method Summary |
void |
addBookItems(long userId,
long categoryId,
java.lang.String[] isbns)
|
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<ShoppingItemField> itemFields,
java.util.List<ShoppingItemPrice> itemPrices,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
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<ShoppingItemField> itemFields,
java.util.List<ShoppingItemPrice> itemPrices,
java.lang.Boolean addCommunityPermissions,
java.lang.Boolean addGuestPermissions,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
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<ShoppingItemField> itemFields,
java.util.List<ShoppingItemPrice> 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(ShoppingCategory category,
ShoppingItem item,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addItemResources(ShoppingCategory category,
ShoppingItem item,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
ShoppingItem |
addShoppingItem(ShoppingItem shoppingItem)
|
void |
deleteItem(long itemId)
|
void |
deleteItem(ShoppingItem item)
|
void |
deleteItems(long categoryId)
|
void |
deleteShoppingItem(long itemId)
|
void |
deleteShoppingItem(ShoppingItem shoppingItem)
|
java.util.List<ShoppingItem> |
dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
|
java.util.List<ShoppingItem> |
dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
|
int |
getCategoriesItemsCount(java.util.List<java.lang.Long> categoryIds)
|
java.util.List<ShoppingItem> |
getFeaturedItems(long groupId,
long categoryId,
int numOfItems)
|
ShoppingItem |
getItem(long itemId)
|
ShoppingItem |
getItem(long companyId,
java.lang.String sku)
|
ShoppingItem |
getItemByLargeImageId(long largeImageId)
|
ShoppingItem |
getItemByMediumImageId(long mediumImageId)
|
ShoppingItem |
getItemBySmallImageId(long smallImageId)
|
java.util.List<ShoppingItem> |
getItems(long categoryId)
|
java.util.List<ShoppingItem> |
getItems(long categoryId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
int |
getItemsCount(long categoryId)
|
ShoppingItem[] |
getItemsPrevAndNext(long itemId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<ShoppingItem> |
getSaleItems(long groupId,
long categoryId,
int numOfItems)
|
java.util.List<ShoppingItem> |
search(long groupId,
long[] categoryIds,
java.lang.String keywords,
int begin,
int end)
|
int |
searchCount(long groupId,
long[] categoryIds,
java.lang.String keywords)
|
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<ShoppingItemField> itemFields,
java.util.List<ShoppingItemPrice> itemPrices)
|
ShoppingItem |
updateShoppingItem(ShoppingItem shoppingItem)
|
addShoppingItem
ShoppingItem addShoppingItem(ShoppingItem shoppingItem)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
deleteShoppingItem
void deleteShoppingItem(long itemId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
deleteShoppingItem
void deleteShoppingItem(ShoppingItem shoppingItem)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
dynamicQuery
java.util.List<ShoppingItem> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
java.util.List<ShoppingItem> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateShoppingItem
ShoppingItem updateShoppingItem(ShoppingItem shoppingItem)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addBookItems
void addBookItems(long userId,
long categoryId,
java.lang.String[] isbns)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addItem
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<ShoppingItemField> itemFields,
java.util.List<ShoppingItemPrice> itemPrices,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addItem
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<ShoppingItemField> itemFields,
java.util.List<ShoppingItemPrice> itemPrices,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addItem
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<ShoppingItemField> itemFields,
java.util.List<ShoppingItemPrice> itemPrices,
java.lang.Boolean addCommunityPermissions,
java.lang.Boolean addGuestPermissions,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addItemResources
void addItemResources(long itemId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addItemResources
void addItemResources(ShoppingCategory category,
ShoppingItem item,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addItemResources
void addItemResources(long itemId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addItemResources
void addItemResources(ShoppingCategory category,
ShoppingItem item,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
deleteItem
void deleteItem(long itemId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
deleteItem
void deleteItem(ShoppingItem item)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
deleteItems
void deleteItems(long categoryId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getCategoriesItemsCount
int getCategoriesItemsCount(java.util.List<java.lang.Long> categoryIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getFeaturedItems
java.util.List<ShoppingItem> getFeaturedItems(long groupId,
long categoryId,
int numOfItems)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getItem
ShoppingItem getItem(long itemId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getItem
ShoppingItem getItem(long companyId,
java.lang.String sku)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getItemByLargeImageId
ShoppingItem getItemByLargeImageId(long largeImageId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getItemByMediumImageId
ShoppingItem getItemByMediumImageId(long mediumImageId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getItemBySmallImageId
ShoppingItem getItemBySmallImageId(long smallImageId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getItems
java.util.List<ShoppingItem> getItems(long categoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getItems
java.util.List<ShoppingItem> 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
ShoppingItem[] getItemsPrevAndNext(long itemId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getItemsCount
int getItemsCount(long categoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getSaleItems
java.util.List<ShoppingItem> getSaleItems(long groupId,
long categoryId,
int numOfItems)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
search
java.util.List<ShoppingItem> search(long groupId,
long[] categoryIds,
java.lang.String keywords,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
searchCount
int searchCount(long groupId,
long[] categoryIds,
java.lang.String keywords)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateItem
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<ShoppingItemField> itemFields,
java.util.List<ShoppingItemPrice> itemPrices)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException