@ProviderType public class ShoppingItemLocalServiceWrapper extends java.lang.Object implements ShoppingItemLocalService, com.liferay.portal.kernel.service.ServiceWrapper<ShoppingItemLocalService>
ShoppingItemLocalService.ShoppingItemLocalService| Constructor and Description |
|---|
ShoppingItemLocalServiceWrapper(ShoppingItemLocalService shoppingItemLocalService) |
| Modifier and Type | Method and Description |
|---|---|
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<ShoppingItemField> itemFields,
java.util.List<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(ShoppingItem item,
boolean addGroupPermissions,
boolean addGuestPermissions) |
void |
addItemResources(ShoppingItem item,
com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) |
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) |
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
ShoppingItem |
deleteShoppingItem(long itemId)
Deletes the shopping item with the primary key from the database.
|
ShoppingItem |
deleteShoppingItem(ShoppingItem shoppingItem)
Deletes the shopping item from the database.
|
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
ShoppingItem |
fetchShoppingItem(long itemId) |
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
int |
getCategoriesItemsCount(long groupId,
java.util.List<java.lang.Long> categoryIds) |
java.util.List<ShoppingItem> |
getFeaturedItems(long groupId,
long categoryId,
int numOfItems) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
ShoppingItem |
getItem(long itemId) |
ShoppingItem |
getItem(long companyId,
java.lang.String sku) |
ShoppingItem |
getItemByLargeImageId(long largeImageId) |
ShoppingItem |
getItemByMediumImageId(long mediumImageId) |
ShoppingItem |
getItemBySmallImageId(long smallImageId) |
java.util.List<ShoppingItem> |
getItems(long groupId,
long categoryId) |
java.util.List<ShoppingItem> |
getItems(long groupId,
long categoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingItem> obc) |
int |
getItemsCount(long groupId,
long categoryId) |
ShoppingItem[] |
getItemsPrevAndNext(long itemId,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingItem> obc) |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
java.util.List<ShoppingItem> |
getSaleItems(long groupId,
long categoryId,
int numOfItems) |
ShoppingItem |
getShoppingItem(long itemId)
Returns the shopping item with the primary key.
|
java.util.List<ShoppingItem> |
getShoppingItems(int start,
int end)
Returns a range of all the shopping items.
|
int |
getShoppingItemsCount()
Returns the number of shopping items.
|
ShoppingItemLocalService |
getWrappedService() |
java.util.List<ShoppingItem> |
search(long groupId,
long[] categoryIds,
java.lang.String keywords,
int start,
int end) |
java.util.List<ShoppingItem> |
search(long groupId,
long[] categoryIds,
java.lang.String keywords,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<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<ShoppingItem> obc) |
void |
setWrappedService(ShoppingItemLocalService shoppingItemLocalService) |
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<ShoppingItemField> itemFields,
java.util.List<ShoppingItemPrice> itemPrices,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
ShoppingItem |
updateShoppingItem(ShoppingItem shoppingItem)
Updates the shopping item in the database or adds it if it does not yet exist.
|
public ShoppingItemLocalServiceWrapper(ShoppingItemLocalService shoppingItemLocalService)
public 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<ShoppingItemField> itemFields, java.util.List<ShoppingItemPrice> itemPrices, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addItem in interface ShoppingItemLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void addItemResources(ShoppingItem item, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
addItemResources in interface ShoppingItemLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void addItemResources(ShoppingItem item, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
addItemResources in interface ShoppingItemLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void addItemResources(long itemId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.kernel.exception.PortalException
addItemResources in interface ShoppingItemLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void addItemResources(long itemId,
com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions)
throws com.liferay.portal.kernel.exception.PortalException
addItemResources in interface ShoppingItemLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic ShoppingItem addShoppingItem(ShoppingItem shoppingItem)
addShoppingItem in interface ShoppingItemLocalServiceshoppingItem - the shopping itempublic ShoppingItem createShoppingItem(long itemId)
createShoppingItem in interface ShoppingItemLocalServiceitemId - the primary key for the new shopping itempublic void deleteItem(ShoppingItem item) throws com.liferay.portal.kernel.exception.PortalException
deleteItem in interface ShoppingItemLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteItem(long itemId)
throws com.liferay.portal.kernel.exception.PortalException
deleteItem in interface ShoppingItemLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteItems(long groupId,
long categoryId)
throws com.liferay.portal.kernel.exception.PortalException
deleteItems in interface ShoppingItemLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicedeletePersistedModel in interface ShoppingItemLocalServicePortalExceptionpublic ShoppingItem deleteShoppingItem(long itemId) throws com.liferay.portal.kernel.exception.PortalException
deleteShoppingItem in interface ShoppingItemLocalServiceitemId - the primary key of the shopping itemPortalException - if a shopping item with the primary key could not be foundpublic ShoppingItem deleteShoppingItem(ShoppingItem shoppingItem)
deleteShoppingItem in interface ShoppingItemLocalServiceshoppingItem - the shopping itempublic com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery in interface ShoppingItemLocalServicepublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery in interface ShoppingItemLocalServicedynamicQuery - the dynamic querypublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.shopping.model.impl.ShoppingItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.shopping.model.impl.ShoppingItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount in interface ShoppingItemLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount in interface ShoppingItemLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic ShoppingItem fetchShoppingItem(long itemId)
fetchShoppingItem in interface ShoppingItemLocalServicepublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface ShoppingItemLocalServicepublic int getCategoriesItemsCount(long groupId,
java.util.List<java.lang.Long> categoryIds)
getCategoriesItemsCount in interface ShoppingItemLocalServicepublic java.util.List<ShoppingItem> getFeaturedItems(long groupId, long categoryId, int numOfItems)
getFeaturedItems in interface ShoppingItemLocalServicepublic com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface ShoppingItemLocalServicepublic ShoppingItem getItem(long companyId, java.lang.String sku) throws com.liferay.portal.kernel.exception.PortalException
getItem in interface ShoppingItemLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic ShoppingItem getItem(long itemId) throws com.liferay.portal.kernel.exception.PortalException
getItem in interface ShoppingItemLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic ShoppingItem getItemByLargeImageId(long largeImageId) throws com.liferay.portal.kernel.exception.PortalException
getItemByLargeImageId in interface ShoppingItemLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic ShoppingItem getItemByMediumImageId(long mediumImageId) throws com.liferay.portal.kernel.exception.PortalException
getItemByMediumImageId in interface ShoppingItemLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic ShoppingItem getItemBySmallImageId(long smallImageId) throws com.liferay.portal.kernel.exception.PortalException
getItemBySmallImageId in interface ShoppingItemLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<ShoppingItem> getItems(long groupId, long categoryId)
getItems in interface ShoppingItemLocalServicepublic java.util.List<ShoppingItem> getItems(long groupId, long categoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ShoppingItem> obc)
getItems in interface ShoppingItemLocalServicepublic int getItemsCount(long groupId,
long categoryId)
getItemsCount in interface ShoppingItemLocalServicepublic ShoppingItem[] getItemsPrevAndNext(long itemId, com.liferay.portal.kernel.util.OrderByComparator<ShoppingItem> obc) throws com.liferay.portal.kernel.exception.PortalException
getItemsPrevAndNext in interface ShoppingItemLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface ShoppingItemLocalServicepublic com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicegetPersistedModel in interface ShoppingItemLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<ShoppingItem> getSaleItems(long groupId, long categoryId, int numOfItems)
getSaleItems in interface ShoppingItemLocalServicepublic ShoppingItem getShoppingItem(long itemId) throws com.liferay.portal.kernel.exception.PortalException
getShoppingItem in interface ShoppingItemLocalServiceitemId - the primary key of the shopping itemPortalException - if a shopping item with the primary key could not be foundpublic java.util.List<ShoppingItem> getShoppingItems(int start, int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.shopping.model.impl.ShoppingItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getShoppingItems in interface ShoppingItemLocalServicestart - the lower bound of the range of shopping itemsend - the upper bound of the range of shopping items (not inclusive)public int getShoppingItemsCount()
getShoppingItemsCount in interface ShoppingItemLocalServicepublic java.util.List<ShoppingItem> search(long groupId, long[] categoryIds, java.lang.String keywords, int start, int end)
search in interface ShoppingItemLocalServicepublic java.util.List<ShoppingItem> search(long groupId, long[] categoryIds, java.lang.String keywords, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ShoppingItem> obc)
search in interface ShoppingItemLocalServicepublic int searchCount(long groupId,
long[] categoryIds,
java.lang.String keywords)
searchCount in interface ShoppingItemLocalServicepublic int searchCount(long groupId,
long[] categoryIds,
java.lang.String keywords,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingItem> obc)
searchCount in interface ShoppingItemLocalServicepublic 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<ShoppingItemField> itemFields, java.util.List<ShoppingItemPrice> itemPrices, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateItem in interface ShoppingItemLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic ShoppingItem updateShoppingItem(ShoppingItem shoppingItem)
updateShoppingItem in interface ShoppingItemLocalServiceshoppingItem - the shopping itempublic ShoppingItemLocalService getWrappedService()
getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<ShoppingItemLocalService>public void setWrappedService(ShoppingItemLocalService shoppingItemLocalService)
setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<ShoppingItemLocalService>