com.liferay.portlet.shopping.service
Class ShoppingItemLocalServiceUtil
java.lang.Object
com.liferay.portlet.shopping.service.ShoppingItemLocalServiceUtil
public class ShoppingItemLocalServiceUtil
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This class provides static methods for the
com.liferay.portlet.shopping.service.ShoppingItemLocalService
bean. The static methods of this class calls the same methods of the bean
instance. It's convenient to be able to just write one line to call a method
on a bean instead of writing a lookup call and a method call.
com.liferay.portlet.shopping.service.ShoppingItemLocalServiceFactory
is responsible for the lookup of the bean.
- Author:
- Brian Wing Shun Chan
- See Also:
ShoppingItemLocalService
,
ShoppingItemLocalServiceFactory
Method Summary |
static void |
addBookItems(long userId,
long categoryId,
java.lang.String[] isbns)
|
static 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)
|
static 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)
|
static 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)
|
static void |
addItemResources(long itemId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addItemResources(long itemId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
static void |
addItemResources(ShoppingCategory category,
ShoppingItem item,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addItemResources(ShoppingCategory category,
ShoppingItem item,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
static ShoppingItem |
addShoppingItem(ShoppingItem shoppingItem)
|
static void |
deleteItem(long itemId)
|
static void |
deleteItem(ShoppingItem item)
|
static void |
deleteItems(long categoryId)
|
static void |
deleteShoppingItem(long itemId)
|
static void |
deleteShoppingItem(ShoppingItem shoppingItem)
|
static java.util.List<ShoppingItem> |
dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
|
static java.util.List<ShoppingItem> |
dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
|
static int |
getCategoriesItemsCount(java.util.List<java.lang.Long> categoryIds)
|
static java.util.List<ShoppingItem> |
getFeaturedItems(long groupId,
long categoryId,
int numOfItems)
|
static ShoppingItem |
getItem(long itemId)
|
static ShoppingItem |
getItem(long companyId,
java.lang.String sku)
|
static ShoppingItem |
getItemByLargeImageId(long largeImageId)
|
static ShoppingItem |
getItemByMediumImageId(long mediumImageId)
|
static ShoppingItem |
getItemBySmallImageId(long smallImageId)
|
static java.util.List<ShoppingItem> |
getItems(long categoryId)
|
static java.util.List<ShoppingItem> |
getItems(long categoryId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static int |
getItemsCount(long categoryId)
|
static ShoppingItem[] |
getItemsPrevAndNext(long itemId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<ShoppingItem> |
getSaleItems(long groupId,
long categoryId,
int numOfItems)
|
static java.util.List<ShoppingItem> |
search(long groupId,
long[] categoryIds,
java.lang.String keywords,
int begin,
int end)
|
static int |
searchCount(long groupId,
long[] categoryIds,
java.lang.String keywords)
|
static 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)
|
static ShoppingItem |
updateShoppingItem(ShoppingItem shoppingItem)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShoppingItemLocalServiceUtil
public ShoppingItemLocalServiceUtil()
addShoppingItem
public static ShoppingItem addShoppingItem(ShoppingItem shoppingItem)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
deleteShoppingItem
public static void deleteShoppingItem(long itemId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteShoppingItem
public static void deleteShoppingItem(ShoppingItem shoppingItem)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
dynamicQuery
public static java.util.List<ShoppingItem> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
public static 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
public static ShoppingItem updateShoppingItem(ShoppingItem shoppingItem)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addBookItems
public static 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 static 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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addItem
public static 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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addItem
public static 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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addItemResources
public static 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 static void addItemResources(ShoppingCategory category,
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 static 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 static void addItemResources(ShoppingCategory category,
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 static void deleteItem(long itemId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteItem
public static void deleteItem(ShoppingItem item)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteItems
public static void deleteItems(long categoryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getCategoriesItemsCount
public static int getCategoriesItemsCount(java.util.List<java.lang.Long> categoryIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getFeaturedItems
public static java.util.List<ShoppingItem> getFeaturedItems(long groupId,
long categoryId,
int numOfItems)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getItem
public static ShoppingItem getItem(long itemId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getItem
public static 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 static ShoppingItem getItemByLargeImageId(long largeImageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getItemByMediumImageId
public static ShoppingItem getItemByMediumImageId(long mediumImageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getItemBySmallImageId
public static ShoppingItem getItemBySmallImageId(long smallImageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getItems
public static java.util.List<ShoppingItem> getItems(long categoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getItems
public static 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
public static 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 static int getItemsCount(long categoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getSaleItems
public static java.util.List<ShoppingItem> getSaleItems(long groupId,
long categoryId,
int numOfItems)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
search
public static 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
public static int searchCount(long groupId,
long[] categoryIds,
java.lang.String keywords)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateItem
public static 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.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException