|
Liferay 6.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.shopping.service.ShoppingItemLocalServiceWrapper
public class ShoppingItemLocalServiceWrapper
This class is a wrapper for ShoppingItemLocalService.
ShoppingItemLocalService| Constructor Summary | |
|---|---|
ShoppingItemLocalServiceWrapper(ShoppingItemLocalService shoppingItemLocalService)
|
|
| Method Summary | |
|---|---|
void |
addBookItems(long userId,
long groupId,
long categoryId,
String[] isbns)
|
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)
|
ShoppingItem |
addShoppingItem(ShoppingItem shoppingItem)
Adds the shopping item to the database. |
ShoppingItem |
createShoppingItem(long itemId)
Creates a new shopping item with the primary key. |
void |
deleteItem(long itemId)
|
void |
deleteItem(ShoppingItem item)
|
void |
deleteItems(long groupId,
long categoryId)
|
void |
deleteShoppingItem(long itemId)
Deletes the shopping item with the primary key from the database. |
void |
deleteShoppingItem(ShoppingItem shoppingItem)
Deletes the shopping item from the database. |
List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows. |
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query. |
String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
int |
getCategoriesItemsCount(long groupId,
List<Long> categoryIds)
|
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 obc)
|
int |
getItemsCount(long groupId,
long categoryId)
|
ShoppingItem[] |
getItemsPrevAndNext(long itemId,
OrderByComparator obc)
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
List<ShoppingItem> |
getSaleItems(long groupId,
long categoryId,
int numOfItems)
|
ShoppingItem |
getShoppingItem(long itemId)
Returns the shopping item with the primary key. |
List<ShoppingItem> |
getShoppingItems(int start,
int end)
Returns a range of all the shopping items. |
int |
getShoppingItemsCount()
Returns the number of shopping items. |
ShoppingItemLocalService |
getWrappedShoppingItemLocalService()
|
List<ShoppingItem> |
search(long groupId,
long[] categoryIds,
String keywords,
int start,
int end)
|
int |
searchCount(long groupId,
long[] categoryIds,
String keywords)
|
void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
void |
setWrappedShoppingItemLocalService(ShoppingItemLocalService shoppingItemLocalService)
|
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)
|
ShoppingItem |
updateShoppingItem(ShoppingItem shoppingItem)
Updates the shopping item in the database or adds it if it does not yet exist. |
ShoppingItem |
updateShoppingItem(ShoppingItem shoppingItem,
boolean merge)
Updates the shopping item in the database or adds it if it does not yet exist. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShoppingItemLocalServiceWrapper(ShoppingItemLocalService shoppingItemLocalService)
| Method Detail |
|---|
public ShoppingItem addShoppingItem(ShoppingItem shoppingItem)
throws SystemException
addShoppingItem in interface ShoppingItemLocalServiceshoppingItem - the shopping item
SystemException - if a system exception occurredpublic ShoppingItem createShoppingItem(long itemId)
createShoppingItem in interface ShoppingItemLocalServiceitemId - the primary key for the new shopping item
public void deleteShoppingItem(long itemId)
throws PortalException,
SystemException
deleteShoppingItem in interface ShoppingItemLocalServiceitemId - the primary key of the shopping item
PortalException - if a shopping item with the primary key could not be found
SystemException - if a system exception occurred
public void deleteShoppingItem(ShoppingItem shoppingItem)
throws SystemException
deleteShoppingItem in interface ShoppingItemLocalServiceshoppingItem - the shopping item
SystemException - if a system exception occurred
public List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
dynamicQuery in interface ShoppingItemLocalServicedynamicQuery - the dynamic query
SystemException - if a system exception occurred
public List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
dynamicQuery in interface ShoppingItemLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)
SystemException - if a system exception occurred
public List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
dynamicQuery in interface ShoppingItemLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
dynamicQueryCount in interface ShoppingItemLocalServicedynamicQuery - the dynamic query
SystemException - if a system exception occurred
public ShoppingItem getShoppingItem(long itemId)
throws PortalException,
SystemException
getShoppingItem in interface ShoppingItemLocalServiceitemId - the primary key of the shopping item
PortalException - if a shopping item with the primary key could not be found
SystemException - if a system exception occurred
public PersistedModel getPersistedModel(Serializable primaryKeyObj)
throws PortalException,
SystemException
getPersistedModel in interface PersistedModelLocalServicegetPersistedModel in interface ShoppingItemLocalServicePortalException
SystemException
public List<ShoppingItem> getShoppingItems(int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
getShoppingItems in interface ShoppingItemLocalServicestart - the lower bound of the range of shopping itemsend - the upper bound of the range of shopping items (not inclusive)
SystemException - if a system exception occurred
public int getShoppingItemsCount()
throws SystemException
getShoppingItemsCount in interface ShoppingItemLocalServiceSystemException - if a system exception occurred
public ShoppingItem updateShoppingItem(ShoppingItem shoppingItem)
throws SystemException
updateShoppingItem in interface ShoppingItemLocalServiceshoppingItem - the shopping item
SystemException - if a system exception occurred
public ShoppingItem updateShoppingItem(ShoppingItem shoppingItem,
boolean merge)
throws SystemException
updateShoppingItem in interface ShoppingItemLocalServiceshoppingItem - the shopping itemmerge - whether to merge the shopping item with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
SystemException - if a system exception occurredpublic String getBeanIdentifier()
getBeanIdentifier in interface ShoppingItemLocalServicepublic void setBeanIdentifier(String beanIdentifier)
setBeanIdentifier in interface ShoppingItemLocalServicebeanIdentifier - the Spring bean ID for this bean
public void addBookItems(long userId,
long groupId,
long categoryId,
String[] isbns)
throws PortalException,
SystemException
addBookItems in interface ShoppingItemLocalServicePortalException
SystemException
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,
SystemException
addItem in interface ShoppingItemLocalServicePortalException
SystemException
public void addItemResources(long itemId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
addItemResources in interface ShoppingItemLocalServicePortalException
SystemException
public void addItemResources(long itemId,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
addItemResources in interface ShoppingItemLocalServicePortalException
SystemException
public void addItemResources(ShoppingItem item,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
addItemResources in interface ShoppingItemLocalServicePortalException
SystemException
public void addItemResources(ShoppingItem item,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
addItemResources in interface ShoppingItemLocalServicePortalException
SystemException
public void deleteItem(long itemId)
throws PortalException,
SystemException
deleteItem in interface ShoppingItemLocalServicePortalException
SystemException
public void deleteItem(ShoppingItem item)
throws PortalException,
SystemException
deleteItem in interface ShoppingItemLocalServicePortalException
SystemException
public void deleteItems(long groupId,
long categoryId)
throws PortalException,
SystemException
deleteItems in interface ShoppingItemLocalServicePortalException
SystemException
public int getCategoriesItemsCount(long groupId,
List<Long> categoryIds)
throws SystemException
getCategoriesItemsCount in interface ShoppingItemLocalServiceSystemException
public List<ShoppingItem> getFeaturedItems(long groupId,
long categoryId,
int numOfItems)
throws SystemException
getFeaturedItems in interface ShoppingItemLocalServiceSystemException
public ShoppingItem getItem(long itemId)
throws PortalException,
SystemException
getItem in interface ShoppingItemLocalServicePortalException
SystemException
public ShoppingItem getItem(long companyId,
String sku)
throws PortalException,
SystemException
getItem in interface ShoppingItemLocalServicePortalException
SystemException
public ShoppingItem getItemByLargeImageId(long largeImageId)
throws PortalException,
SystemException
getItemByLargeImageId in interface ShoppingItemLocalServicePortalException
SystemException
public ShoppingItem getItemByMediumImageId(long mediumImageId)
throws PortalException,
SystemException
getItemByMediumImageId in interface ShoppingItemLocalServicePortalException
SystemException
public ShoppingItem getItemBySmallImageId(long smallImageId)
throws PortalException,
SystemException
getItemBySmallImageId in interface ShoppingItemLocalServicePortalException
SystemException
public List<ShoppingItem> getItems(long groupId,
long categoryId)
throws SystemException
getItems in interface ShoppingItemLocalServiceSystemException
public List<ShoppingItem> getItems(long groupId,
long categoryId,
int start,
int end,
OrderByComparator obc)
throws SystemException
getItems in interface ShoppingItemLocalServiceSystemException
public int getItemsCount(long groupId,
long categoryId)
throws SystemException
getItemsCount in interface ShoppingItemLocalServiceSystemException
public ShoppingItem[] getItemsPrevAndNext(long itemId,
OrderByComparator obc)
throws PortalException,
SystemException
getItemsPrevAndNext in interface ShoppingItemLocalServicePortalException
SystemException
public List<ShoppingItem> getSaleItems(long groupId,
long categoryId,
int numOfItems)
throws SystemException
getSaleItems in interface ShoppingItemLocalServiceSystemException
public List<ShoppingItem> search(long groupId,
long[] categoryIds,
String keywords,
int start,
int end)
throws SystemException
search in interface ShoppingItemLocalServiceSystemException
public int searchCount(long groupId,
long[] categoryIds,
String keywords)
throws SystemException
searchCount in interface ShoppingItemLocalServiceSystemException
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,
SystemException
updateItem in interface ShoppingItemLocalServicePortalException
SystemExceptionpublic ShoppingItemLocalService getWrappedShoppingItemLocalService()
public void setWrappedShoppingItemLocalService(ShoppingItemLocalService shoppingItemLocalService)
|
Liferay 6.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||