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.
- Author:
- Brian Wing Shun Chan
- See Also:
ShoppingItemLocalService
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,
ServiceContext serviceContext)
|
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 ShoppingItem |
createShoppingItem(long itemId)
|
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<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
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 start,
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 ShoppingItemLocalService |
getService()
|
static ShoppingItem |
getShoppingItem(long itemId)
|
static java.util.List<ShoppingItem> |
getShoppingItems(int start,
int end)
|
static int |
getShoppingItemsCount()
|
static java.util.List<ShoppingItem> |
search(long groupId,
long[] categoryIds,
java.lang.String keywords,
int start,
int end)
|
static int |
searchCount(long groupId,
long[] categoryIds,
java.lang.String keywords)
|
void |
setService(ShoppingItemLocalService service)
|
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,
ServiceContext serviceContext)
|
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
createShoppingItem
public static ShoppingItem createShoppingItem(long itemId)
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.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getShoppingItem
public static ShoppingItem getShoppingItem(long itemId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getShoppingItems
public static java.util.List<ShoppingItem> getShoppingItems(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getShoppingItemsCount
public static int getShoppingItemsCount()
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,
ServiceContext serviceContext)
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 start,
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 start,
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,
ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getService
public static ShoppingItemLocalService getService()
setService
public void setService(ShoppingItemLocalService service)