com.liferay.portlet.shopping.service.impl
Class ShoppingItemLocalServiceImpl
java.lang.Object
com.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portlet.shopping.service.base.ShoppingItemLocalServiceBaseImpl
com.liferay.portlet.shopping.service.impl.ShoppingItemLocalServiceImpl
- All Implemented Interfaces:
- IdentifiableBean, BaseLocalService, PersistedModelLocalService, ShoppingItemLocalService
public class ShoppingItemLocalServiceImpl
- extends ShoppingItemLocalServiceBaseImpl
| Fields inherited from class com.liferay.portlet.shopping.service.base.ShoppingItemLocalServiceBaseImpl |
counterLocalService, imageLocalService, imagePersistence, imageService, persistedModelLocalServiceRegistry, resourceLocalService, shoppingCategoryLocalService, shoppingCategoryPersistence, shoppingCategoryService, shoppingItemFieldLocalService, shoppingItemFieldPersistence, shoppingItemFinder, shoppingItemLocalService, shoppingItemPersistence, shoppingItemPriceLocalService, shoppingItemPricePersistence, shoppingItemService, userFinder, userLocalService, userPersistence, userService |
|
Method Summary |
ShoppingItem |
addItem(long userId,
long groupId,
long categoryId,
String sku,
String name,
String description,
String properties,
String fieldsQuantities,
boolean requiresShipping,
int stockQuantity,
boolean featured,
Boolean sale,
boolean smallImage,
String smallImageURL,
File smallImageFile,
boolean mediumImage,
String mediumImageURL,
File mediumImageFile,
boolean largeImage,
String largeImageURL,
File largeImageFile,
List<ShoppingItemField> itemFields,
List<ShoppingItemPrice> itemPrices,
ServiceContext serviceContext)
|
void |
addItemResources(long itemId,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addItemResources(long itemId,
String[] groupPermissions,
String[] guestPermissions)
|
void |
addItemResources(ShoppingItem item,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addItemResources(ShoppingItem item,
String[] groupPermissions,
String[] guestPermissions)
|
protected String |
checkItemField(String value)
|
void |
deleteItem(long itemId)
|
void |
deleteItem(ShoppingItem item)
|
void |
deleteItems(long groupId,
long categoryId)
|
int |
getCategoriesItemsCount(long groupId,
List<Long> categoryIds)
|
protected long |
getCategory(ShoppingItem item,
long categoryId)
|
List<ShoppingItem> |
getFeaturedItems(long groupId,
long categoryId,
int numOfItems)
|
ShoppingItem |
getItem(long itemId)
|
ShoppingItem |
getItem(long companyId,
String sku)
|
ShoppingItem |
getItemByLargeImageId(long largeImageId)
|
ShoppingItem |
getItemByMediumImageId(long mediumImageId)
|
ShoppingItem |
getItemBySmallImageId(long smallImageId)
|
List<ShoppingItem> |
getItems(long groupId,
long categoryId)
|
List<ShoppingItem> |
getItems(long groupId,
long categoryId,
int start,
int end,
OrderByComparator<ShoppingItem> obc)
|
int |
getItemsCount(long groupId,
long categoryId)
|
ShoppingItem[] |
getItemsPrevAndNext(long itemId,
OrderByComparator<ShoppingItem> obc)
|
List<ShoppingItem> |
getSaleItems(long groupId,
long categoryId,
int numOfItems)
|
protected void |
saveImages(boolean smallImage,
long smallImageId,
File smallImageFile,
byte[] smallImageBytes,
boolean mediumImage,
long mediumImageId,
File mediumImageFile,
byte[] mediumImageBytes,
boolean largeImage,
long largeImageId,
File largeImageFile,
byte[] largeImageBytes)
|
List<ShoppingItem> |
search(long groupId,
long[] categoryIds,
String keywords,
int start,
int end)
|
int |
searchCount(long groupId,
long[] categoryIds,
String keywords)
|
ShoppingItem |
updateItem(long userId,
long itemId,
long groupId,
long categoryId,
String sku,
String name,
String description,
String properties,
String fieldsQuantities,
boolean requiresShipping,
int stockQuantity,
boolean featured,
Boolean sale,
boolean smallImage,
String smallImageURL,
File smallImageFile,
boolean mediumImage,
String mediumImageURL,
File mediumImageFile,
boolean largeImage,
String largeImageURL,
File largeImageFile,
List<ShoppingItemField> itemFields,
List<ShoppingItemPrice> itemPrices,
ServiceContext serviceContext)
|
protected void |
validate(long companyId,
long itemId,
String sku,
String name,
boolean smallImage,
String smallImageURL,
File smallImageFile,
byte[] smallImageBytes,
boolean mediumImage,
String mediumImageURL,
File mediumImageFile,
byte[] mediumImageBytes,
boolean largeImage,
String largeImageURL,
File largeImageFile,
byte[] largeImageBytes,
List<ShoppingItemField> itemFields)
|
| Methods inherited from class com.liferay.portlet.shopping.service.base.ShoppingItemLocalServiceBaseImpl |
addShoppingItem, afterPropertiesSet, createShoppingItem, deletePersistedModel, deleteShoppingItem, deleteShoppingItem, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchShoppingItem, getActionableDynamicQuery, getBeanIdentifier, getCounterLocalService, getImageLocalService, getImagePersistence, getImageService, getModelClass, getModelClassName, getPersistedModel, getResourceLocalService, getShoppingCategoryLocalService, getShoppingCategoryPersistence, getShoppingCategoryService, getShoppingItem, getShoppingItemFieldLocalService, getShoppingItemFieldPersistence, getShoppingItemFinder, getShoppingItemLocalService, getShoppingItemPersistence, getShoppingItemPriceLocalService, getShoppingItemPricePersistence, getShoppingItems, getShoppingItemsCount, getShoppingItemService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, initActionableDynamicQuery, runSQL, setBeanIdentifier, setCounterLocalService, setImageLocalService, setImagePersistence, setImageService, setResourceLocalService, setShoppingCategoryLocalService, setShoppingCategoryPersistence, setShoppingCategoryService, setShoppingItemFieldLocalService, setShoppingItemFieldPersistence, setShoppingItemFinder, setShoppingItemLocalService, setShoppingItemPersistence, setShoppingItemPriceLocalService, setShoppingItemPricePersistence, setShoppingItemService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateShoppingItem |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShoppingItemLocalServiceImpl
public ShoppingItemLocalServiceImpl()
addItem
public ShoppingItem addItem(long userId,
long groupId,
long categoryId,
String sku,
String name,
String description,
String properties,
String fieldsQuantities,
boolean requiresShipping,
int stockQuantity,
boolean featured,
Boolean sale,
boolean smallImage,
String smallImageURL,
File smallImageFile,
boolean mediumImage,
String mediumImageURL,
File mediumImageFile,
boolean largeImage,
String largeImageURL,
File largeImageFile,
List<ShoppingItemField> itemFields,
List<ShoppingItemPrice> itemPrices,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
addItemResources
public void addItemResources(long itemId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException
- Throws:
PortalException
addItemResources
public void addItemResources(long itemId,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException
- Throws:
PortalException
addItemResources
public void addItemResources(ShoppingItem item,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException
- Throws:
PortalException
addItemResources
public void addItemResources(ShoppingItem item,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException
- Throws:
PortalException
deleteItem
public void deleteItem(long itemId)
throws PortalException
- Throws:
PortalException
deleteItem
public void deleteItem(ShoppingItem item)
throws PortalException
- Throws:
PortalException
deleteItems
public void deleteItems(long groupId,
long categoryId)
throws PortalException
- Throws:
PortalException
getCategoriesItemsCount
public int getCategoriesItemsCount(long groupId,
List<Long> categoryIds)
getFeaturedItems
public List<ShoppingItem> getFeaturedItems(long groupId,
long categoryId,
int numOfItems)
getItem
public ShoppingItem getItem(long itemId)
throws PortalException
- Throws:
PortalException
getItem
public ShoppingItem getItem(long companyId,
String sku)
throws PortalException
- Throws:
PortalException
getItemByLargeImageId
public ShoppingItem getItemByLargeImageId(long largeImageId)
throws PortalException
- Throws:
PortalException
getItemByMediumImageId
public ShoppingItem getItemByMediumImageId(long mediumImageId)
throws PortalException
- Throws:
PortalException
getItemBySmallImageId
public ShoppingItem getItemBySmallImageId(long smallImageId)
throws PortalException
- Throws:
PortalException
getItems
public List<ShoppingItem> getItems(long groupId,
long categoryId)
getItems
public List<ShoppingItem> getItems(long groupId,
long categoryId,
int start,
int end,
OrderByComparator<ShoppingItem> obc)
getItemsCount
public int getItemsCount(long groupId,
long categoryId)
getItemsPrevAndNext
public ShoppingItem[] getItemsPrevAndNext(long itemId,
OrderByComparator<ShoppingItem> obc)
throws PortalException
- Throws:
PortalException
getSaleItems
public List<ShoppingItem> getSaleItems(long groupId,
long categoryId,
int numOfItems)
search
public List<ShoppingItem> search(long groupId,
long[] categoryIds,
String keywords,
int start,
int end)
searchCount
public int searchCount(long groupId,
long[] categoryIds,
String keywords)
updateItem
public ShoppingItem updateItem(long userId,
long itemId,
long groupId,
long categoryId,
String sku,
String name,
String description,
String properties,
String fieldsQuantities,
boolean requiresShipping,
int stockQuantity,
boolean featured,
Boolean sale,
boolean smallImage,
String smallImageURL,
File smallImageFile,
boolean mediumImage,
String mediumImageURL,
File mediumImageFile,
boolean largeImage,
String largeImageURL,
File largeImageFile,
List<ShoppingItemField> itemFields,
List<ShoppingItemPrice> itemPrices,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
checkItemField
protected String checkItemField(String value)
getCategory
protected long getCategory(ShoppingItem item,
long categoryId)
saveImages
protected void saveImages(boolean smallImage,
long smallImageId,
File smallImageFile,
byte[] smallImageBytes,
boolean mediumImage,
long mediumImageId,
File mediumImageFile,
byte[] mediumImageBytes,
boolean largeImage,
long largeImageId,
File largeImageFile,
byte[] largeImageBytes)
throws PortalException
- Throws:
PortalException
validate
protected void validate(long companyId,
long itemId,
String sku,
String name,
boolean smallImage,
String smallImageURL,
File smallImageFile,
byte[] smallImageBytes,
boolean mediumImage,
String mediumImageURL,
File mediumImageFile,
byte[] mediumImageBytes,
boolean largeImage,
String largeImageURL,
File largeImageFile,
byte[] largeImageBytes,
List<ShoppingItemField> itemFields)
throws PortalException
- Throws:
PortalException