public class ShoppingItemLocalServiceImpl extends ShoppingItemLocalServiceBaseImpl
counterLocalService, imageLocalService, imagePersistence, persistedModelLocalServiceRegistry, resourceLocalService, shoppingCategoryFinder, shoppingCategoryLocalService, shoppingCategoryPersistence, shoppingItemFieldLocalService, shoppingItemFieldPersistence, shoppingItemFinder, shoppingItemLocalService, shoppingItemPersistence, shoppingItemPriceLocalService, shoppingItemPricePersistence, userLocalService, userPersistence| Constructor and Description |
|---|
ShoppingItemLocalServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.shopping.model.ShoppingItem |
addItem(long userId,
long groupId,
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 smallImageFile,
boolean mediumImage,
java.lang.String mediumImageURL,
java.io.File mediumImageFile,
boolean largeImage,
java.lang.String largeImageURL,
java.io.File largeImageFile,
java.util.List<com.liferay.shopping.model.ShoppingItemField> itemFields,
java.util.List<com.liferay.shopping.model.ShoppingItemPrice> itemPrices,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
addItemResources(long itemId,
boolean addGroupPermissions,
boolean addGuestPermissions) |
void |
addItemResources(long itemId,
com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) |
void |
addItemResources(com.liferay.shopping.model.ShoppingItem item,
boolean addGroupPermissions,
boolean addGuestPermissions) |
void |
addItemResources(com.liferay.shopping.model.ShoppingItem item,
com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) |
protected java.lang.String |
checkItemField(java.lang.String value) |
void |
deleteItem(long itemId) |
void |
deleteItem(com.liferay.shopping.model.ShoppingItem item) |
void |
deleteItems(long groupId,
long categoryId) |
int |
getCategoriesItemsCount(long groupId,
java.util.List<java.lang.Long> categoryIds) |
protected long |
getCategory(com.liferay.shopping.model.ShoppingItem item,
long categoryId) |
java.util.List<com.liferay.shopping.model.ShoppingItem> |
getFeaturedItems(long groupId,
long categoryId,
int numOfItems) |
com.liferay.shopping.model.ShoppingItem |
getItem(long itemId) |
com.liferay.shopping.model.ShoppingItem |
getItem(long companyId,
java.lang.String sku) |
com.liferay.shopping.model.ShoppingItem |
getItemByLargeImageId(long largeImageId) |
com.liferay.shopping.model.ShoppingItem |
getItemByMediumImageId(long mediumImageId) |
com.liferay.shopping.model.ShoppingItem |
getItemBySmallImageId(long smallImageId) |
java.util.List<com.liferay.shopping.model.ShoppingItem> |
getItems(long groupId,
long categoryId) |
java.util.List<com.liferay.shopping.model.ShoppingItem> |
getItems(long groupId,
long categoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.shopping.model.ShoppingItem> obc) |
int |
getItemsCount(long groupId,
long categoryId) |
com.liferay.shopping.model.ShoppingItem[] |
getItemsPrevAndNext(long itemId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.shopping.model.ShoppingItem> obc) |
java.util.List<com.liferay.shopping.model.ShoppingItem> |
getSaleItems(long groupId,
long categoryId,
int numOfItems) |
protected void |
saveImages(boolean smallImage,
long smallImageId,
java.io.File smallImageFile,
byte[] smallImageBytes,
boolean mediumImage,
long mediumImageId,
java.io.File mediumImageFile,
byte[] mediumImageBytes,
boolean largeImage,
long largeImageId,
java.io.File largeImageFile,
byte[] largeImageBytes) |
java.util.List<com.liferay.shopping.model.ShoppingItem> |
search(long groupId,
long[] categoryIds,
java.lang.String keywords,
int start,
int end) |
java.util.List<com.liferay.shopping.model.ShoppingItem> |
search(long groupId,
long[] categoryIds,
java.lang.String keywords,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.shopping.model.ShoppingItem> obc) |
int |
searchCount(long groupId,
long[] categoryIds,
java.lang.String keywords) |
int |
searchCount(long groupId,
long[] categoryIds,
java.lang.String keywords,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.shopping.model.ShoppingItem> obc) |
com.liferay.shopping.model.ShoppingItem |
updateItem(long userId,
long itemId,
long groupId,
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 smallImageFile,
boolean mediumImage,
java.lang.String mediumImageURL,
java.io.File mediumImageFile,
boolean largeImage,
java.lang.String largeImageURL,
java.io.File largeImageFile,
java.util.List<com.liferay.shopping.model.ShoppingItemField> itemFields,
java.util.List<com.liferay.shopping.model.ShoppingItemPrice> itemPrices,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected void |
validate(long companyId,
long itemId,
java.lang.String sku,
java.lang.String name,
boolean smallImage,
java.lang.String smallImageURL,
java.io.File smallImageFile,
byte[] smallImageBytes,
boolean mediumImage,
java.lang.String mediumImageURL,
java.io.File mediumImageFile,
byte[] mediumImageBytes,
boolean largeImage,
java.lang.String largeImageURL,
java.io.File largeImageFile,
byte[] largeImageBytes,
java.util.List<com.liferay.shopping.model.ShoppingItemField> itemFields) |
addShoppingItem, afterPropertiesSet, createShoppingItem, deletePersistedModel, deleteShoppingItem, deleteShoppingItem, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchShoppingItem, getActionableDynamicQuery, getCounterLocalService, getImageLocalService, getImagePersistence, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getResourceLocalService, getShoppingCategoryFinder, getShoppingCategoryLocalService, getShoppingCategoryPersistence, getShoppingItem, getShoppingItemFieldLocalService, getShoppingItemFieldPersistence, getShoppingItemFinder, getShoppingItemLocalService, getShoppingItemPersistence, getShoppingItemPriceLocalService, getShoppingItemPricePersistence, getShoppingItems, getShoppingItemsCount, getUserLocalService, getUserPersistence, initActionableDynamicQuery, runSQL, setCounterLocalService, setImageLocalService, setImagePersistence, setResourceLocalService, setShoppingCategoryFinder, setShoppingCategoryLocalService, setShoppingCategoryPersistence, setShoppingItemFieldLocalService, setShoppingItemFieldPersistence, setShoppingItemFinder, setShoppingItemLocalService, setShoppingItemPersistence, setShoppingItemPriceLocalService, setShoppingItemPricePersistence, setUserLocalService, setUserPersistence, updateShoppingItempublic com.liferay.shopping.model.ShoppingItem addItem(long userId,
long groupId,
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 smallImageFile,
boolean mediumImage,
java.lang.String mediumImageURL,
java.io.File mediumImageFile,
boolean largeImage,
java.lang.String largeImageURL,
java.io.File largeImageFile,
java.util.List<com.liferay.shopping.model.ShoppingItemField> itemFields,
java.util.List<com.liferay.shopping.model.ShoppingItemPrice> itemPrices,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic void addItemResources(long itemId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic void addItemResources(long itemId,
com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic void addItemResources(com.liferay.shopping.model.ShoppingItem item,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic void addItemResources(com.liferay.shopping.model.ShoppingItem item,
com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic void deleteItem(long itemId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic void deleteItem(com.liferay.shopping.model.ShoppingItem item)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic void deleteItems(long groupId,
long categoryId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic int getCategoriesItemsCount(long groupId,
java.util.List<java.lang.Long> categoryIds)
public java.util.List<com.liferay.shopping.model.ShoppingItem> getFeaturedItems(long groupId,
long categoryId,
int numOfItems)
public com.liferay.shopping.model.ShoppingItem getItem(long itemId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.shopping.model.ShoppingItem getItem(long companyId,
java.lang.String sku)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.shopping.model.ShoppingItem getItemByLargeImageId(long largeImageId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.shopping.model.ShoppingItem getItemByMediumImageId(long mediumImageId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.shopping.model.ShoppingItem getItemBySmallImageId(long smallImageId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<com.liferay.shopping.model.ShoppingItem> getItems(long groupId,
long categoryId)
public java.util.List<com.liferay.shopping.model.ShoppingItem> getItems(long groupId,
long categoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.shopping.model.ShoppingItem> obc)
public int getItemsCount(long groupId,
long categoryId)
public com.liferay.shopping.model.ShoppingItem[] getItemsPrevAndNext(long itemId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.shopping.model.ShoppingItem> obc)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<com.liferay.shopping.model.ShoppingItem> getSaleItems(long groupId,
long categoryId,
int numOfItems)
public java.util.List<com.liferay.shopping.model.ShoppingItem> search(long groupId,
long[] categoryIds,
java.lang.String keywords,
int start,
int end)
public java.util.List<com.liferay.shopping.model.ShoppingItem> search(long groupId,
long[] categoryIds,
java.lang.String keywords,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.shopping.model.ShoppingItem> obc)
public int searchCount(long groupId,
long[] categoryIds,
java.lang.String keywords)
public int searchCount(long groupId,
long[] categoryIds,
java.lang.String keywords,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.shopping.model.ShoppingItem> obc)
public com.liferay.shopping.model.ShoppingItem updateItem(long userId,
long itemId,
long groupId,
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 smallImageFile,
boolean mediumImage,
java.lang.String mediumImageURL,
java.io.File mediumImageFile,
boolean largeImage,
java.lang.String largeImageURL,
java.io.File largeImageFile,
java.util.List<com.liferay.shopping.model.ShoppingItemField> itemFields,
java.util.List<com.liferay.shopping.model.ShoppingItemPrice> itemPrices,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected java.lang.String checkItemField(java.lang.String value)
protected long getCategory(com.liferay.shopping.model.ShoppingItem item,
long categoryId)
protected void saveImages(boolean smallImage,
long smallImageId,
java.io.File smallImageFile,
byte[] smallImageBytes,
boolean mediumImage,
long mediumImageId,
java.io.File mediumImageFile,
byte[] mediumImageBytes,
boolean largeImage,
long largeImageId,
java.io.File largeImageFile,
byte[] largeImageBytes)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void validate(long companyId,
long itemId,
java.lang.String sku,
java.lang.String name,
boolean smallImage,
java.lang.String smallImageURL,
java.io.File smallImageFile,
byte[] smallImageBytes,
boolean mediumImage,
java.lang.String mediumImageURL,
java.io.File mediumImageFile,
byte[] mediumImageBytes,
boolean largeImage,
java.lang.String largeImageURL,
java.io.File largeImageFile,
byte[] largeImageBytes,
java.util.List<com.liferay.shopping.model.ShoppingItemField> itemFields)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException