Liferay 7.0-ce-m3

com.liferay.portlet.shopping.service
Class ShoppingItemLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.shopping.service.ShoppingItemLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ServiceWrapper<ShoppingItemLocalService>, ShoppingItemLocalService

@ProviderType
public class ShoppingItemLocalServiceWrapper
extends Object
implements ShoppingItemLocalService, ServiceWrapper<ShoppingItemLocalService>

Provides a wrapper for ShoppingItemLocalService.

See Also:
ShoppingItemLocalService

Constructor Summary
ShoppingItemLocalServiceWrapper(ShoppingItemLocalService shoppingItemLocalService)
           
 
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)
           
 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)
           
 PersistedModel deletePersistedModel(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.
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> 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 matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 ShoppingItem fetchShoppingItem(long itemId)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 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<ShoppingItem> obc)
           
 int getItemsCount(long groupId, long categoryId)
           
 ShoppingItem[] getItemsPrevAndNext(long itemId, OrderByComparator<ShoppingItem> 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 getWrappedService()
           
 ShoppingItemLocalService getWrappedShoppingItemLocalService()
          Deprecated. As of 6.1.0, replaced by getWrappedService()
 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 setWrappedService(ShoppingItemLocalService shoppingItemLocalService)
           
 void setWrappedShoppingItemLocalService(ShoppingItemLocalService shoppingItemLocalService)
          Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portlet.shopping.service.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingItemLocalServiceWrapper

public ShoppingItemLocalServiceWrapper(ShoppingItemLocalService shoppingItemLocalService)
Method Detail

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
Specified by:
addItem in interface ShoppingItemLocalService
Throws:
PortalException

addItemResources

public void addItemResources(ShoppingItem item,
                             boolean addGroupPermissions,
                             boolean addGuestPermissions)
                      throws PortalException
Specified by:
addItemResources in interface ShoppingItemLocalService
Throws:
PortalException

addItemResources

public void addItemResources(ShoppingItem item,
                             String[] groupPermissions,
                             String[] guestPermissions)
                      throws PortalException
Specified by:
addItemResources in interface ShoppingItemLocalService
Throws:
PortalException

addItemResources

public void addItemResources(long itemId,
                             boolean addGroupPermissions,
                             boolean addGuestPermissions)
                      throws PortalException
Specified by:
addItemResources in interface ShoppingItemLocalService
Throws:
PortalException

addItemResources

public void addItemResources(long itemId,
                             String[] groupPermissions,
                             String[] guestPermissions)
                      throws PortalException
Specified by:
addItemResources in interface ShoppingItemLocalService
Throws:
PortalException

addShoppingItem

public ShoppingItem addShoppingItem(ShoppingItem shoppingItem)
Adds the shopping item to the database. Also notifies the appropriate model listeners.

Specified by:
addShoppingItem in interface ShoppingItemLocalService
Parameters:
shoppingItem - the shopping item
Returns:
the shopping item that was added

createShoppingItem

public ShoppingItem createShoppingItem(long itemId)
Creates a new shopping item with the primary key. Does not add the shopping item to the database.

Specified by:
createShoppingItem in interface ShoppingItemLocalService
Parameters:
itemId - the primary key for the new shopping item
Returns:
the new shopping item

deleteItem

public void deleteItem(ShoppingItem item)
                throws PortalException
Specified by:
deleteItem in interface ShoppingItemLocalService
Throws:
PortalException

deleteItem

public void deleteItem(long itemId)
                throws PortalException
Specified by:
deleteItem in interface ShoppingItemLocalService
Throws:
PortalException

deleteItems

public void deleteItems(long groupId,
                        long categoryId)
                 throws PortalException
Specified by:
deleteItems in interface ShoppingItemLocalService
Throws:
PortalException

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Specified by:
deletePersistedModel in interface ShoppingItemLocalService
Throws:
PortalException

deleteShoppingItem

public ShoppingItem deleteShoppingItem(long itemId)
                                throws PortalException
Deletes the shopping item with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteShoppingItem in interface ShoppingItemLocalService
Parameters:
itemId - the primary key of the shopping item
Returns:
the shopping item that was removed
Throws:
PortalException - if a shopping item with the primary key could not be found

deleteShoppingItem

public ShoppingItem deleteShoppingItem(ShoppingItem shoppingItem)
Deletes the shopping item from the database. Also notifies the appropriate model listeners.

Specified by:
deleteShoppingItem in interface ShoppingItemLocalService
Parameters:
shoppingItem - the shopping item
Returns:
the shopping item that was removed

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface ShoppingItemLocalService

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface ShoppingItemLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
Performs a dynamic query on the database and returns a range of the matching rows.

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.portlet.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.

Specified by:
dynamicQuery in interface ShoppingItemLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.

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.portlet.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.

Specified by:
dynamicQuery in interface ShoppingItemLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface ShoppingItemLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface ShoppingItemLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchShoppingItem

public ShoppingItem fetchShoppingItem(long itemId)
Specified by:
fetchShoppingItem in interface ShoppingItemLocalService

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface ShoppingItemLocalService

getBeanIdentifier

public String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Specified by:
getBeanIdentifier in interface ShoppingItemLocalService
Returns:
the Spring bean ID for this bean

getCategoriesItemsCount

public int getCategoriesItemsCount(long groupId,
                                   List<Long> categoryIds)
Specified by:
getCategoriesItemsCount in interface ShoppingItemLocalService

getFeaturedItems

public List<ShoppingItem> getFeaturedItems(long groupId,
                                           long categoryId,
                                           int numOfItems)
Specified by:
getFeaturedItems in interface ShoppingItemLocalService

getItem

public ShoppingItem getItem(long companyId,
                            String sku)
                     throws PortalException
Specified by:
getItem in interface ShoppingItemLocalService
Throws:
PortalException

getItem

public ShoppingItem getItem(long itemId)
                     throws PortalException
Specified by:
getItem in interface ShoppingItemLocalService
Throws:
PortalException

getItemByLargeImageId

public ShoppingItem getItemByLargeImageId(long largeImageId)
                                   throws PortalException
Specified by:
getItemByLargeImageId in interface ShoppingItemLocalService
Throws:
PortalException

getItemByMediumImageId

public ShoppingItem getItemByMediumImageId(long mediumImageId)
                                    throws PortalException
Specified by:
getItemByMediumImageId in interface ShoppingItemLocalService
Throws:
PortalException

getItemBySmallImageId

public ShoppingItem getItemBySmallImageId(long smallImageId)
                                   throws PortalException
Specified by:
getItemBySmallImageId in interface ShoppingItemLocalService
Throws:
PortalException

getItems

public List<ShoppingItem> getItems(long groupId,
                                   long categoryId)
Specified by:
getItems in interface ShoppingItemLocalService

getItems

public List<ShoppingItem> getItems(long groupId,
                                   long categoryId,
                                   int start,
                                   int end,
                                   OrderByComparator<ShoppingItem> obc)
Specified by:
getItems in interface ShoppingItemLocalService

getItemsCount

public int getItemsCount(long groupId,
                         long categoryId)
Specified by:
getItemsCount in interface ShoppingItemLocalService

getItemsPrevAndNext

public ShoppingItem[] getItemsPrevAndNext(long itemId,
                                          OrderByComparator<ShoppingItem> obc)
                                   throws PortalException
Specified by:
getItemsPrevAndNext in interface ShoppingItemLocalService
Throws:
PortalException

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface ShoppingItemLocalService
Throws:
PortalException

getSaleItems

public List<ShoppingItem> getSaleItems(long groupId,
                                       long categoryId,
                                       int numOfItems)
Specified by:
getSaleItems in interface ShoppingItemLocalService

getShoppingItem

public ShoppingItem getShoppingItem(long itemId)
                             throws PortalException
Returns the shopping item with the primary key.

Specified by:
getShoppingItem in interface ShoppingItemLocalService
Parameters:
itemId - the primary key of the shopping item
Returns:
the shopping item
Throws:
PortalException - if a shopping item with the primary key could not be found

getShoppingItems

public List<ShoppingItem> getShoppingItems(int start,
                                           int end)
Returns a range of all the shopping items.

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.portlet.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.

Specified by:
getShoppingItems in interface ShoppingItemLocalService
Parameters:
start - the lower bound of the range of shopping items
end - the upper bound of the range of shopping items (not inclusive)
Returns:
the range of shopping items

getShoppingItemsCount

public int getShoppingItemsCount()
Returns the number of shopping items.

Specified by:
getShoppingItemsCount in interface ShoppingItemLocalService
Returns:
the number of shopping items

search

public List<ShoppingItem> search(long groupId,
                                 long[] categoryIds,
                                 String keywords,
                                 int start,
                                 int end)
Specified by:
search in interface ShoppingItemLocalService

searchCount

public int searchCount(long groupId,
                       long[] categoryIds,
                       String keywords)
Specified by:
searchCount in interface ShoppingItemLocalService

setBeanIdentifier

public void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Specified by:
setBeanIdentifier in interface ShoppingItemLocalService
Parameters:
beanIdentifier - the Spring bean ID for this bean

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
Specified by:
updateItem in interface ShoppingItemLocalService
Throws:
PortalException

updateShoppingItem

public ShoppingItem updateShoppingItem(ShoppingItem shoppingItem)
Updates the shopping item in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateShoppingItem in interface ShoppingItemLocalService
Parameters:
shoppingItem - the shopping item
Returns:
the shopping item that was updated

getWrappedShoppingItemLocalService

@Deprecated
public ShoppingItemLocalService getWrappedShoppingItemLocalService()
Deprecated. As of 6.1.0, replaced by getWrappedService()


setWrappedShoppingItemLocalService

@Deprecated
public void setWrappedShoppingItemLocalService(ShoppingItemLocalService shoppingItemLocalService)
Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portlet.shopping.service.ShoppingItemLocalService)


getWrappedService

public ShoppingItemLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<ShoppingItemLocalService>

setWrappedService

public void setWrappedService(ShoppingItemLocalService shoppingItemLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<ShoppingItemLocalService>

Liferay 7.0-ce-m3