Liferay 6.0.5

com.liferay.portlet.shopping.service
Class ShoppingItemLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.shopping.service.ShoppingItemLocalServiceWrapper
All Implemented Interfaces:
ShoppingItemLocalService

public class ShoppingItemLocalServiceWrapper
extends Object
implements ShoppingItemLocalService

This class is a wrapper for ShoppingItemLocalService.

See Also:
ShoppingItemLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

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 smallFile, boolean mediumImage, String mediumImageURL, File mediumFile, boolean largeImage, String largeImageURL, File largeFile, List<ShoppingItemField> itemFields, List<ShoppingItemPrice> itemPrices, ServiceContext serviceContext)
           
 void addItemResources(long itemId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addItemResources(long itemId, String[] communityPermissions, String[] guestPermissions)
           
 void addItemResources(ShoppingItem item, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addItemResources(ShoppingItem item, String[] communityPermissions, 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)
          Counts the number of rows that match the dynamic query.
 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)
           
 List<ShoppingItem> getSaleItems(long groupId, long categoryId, int numOfItems)
           
 ShoppingItem getShoppingItem(long itemId)
          Gets the shopping item with the primary key.
 List<ShoppingItem> getShoppingItems(int start, int end)
          Gets a range of all the shopping items.
 int getShoppingItemsCount()
          Gets 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)
           
 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 smallFile, boolean mediumImage, String mediumImageURL, File mediumFile, boolean largeImage, String largeImageURL, File largeFile, List<ShoppingItemField> itemFields, List<ShoppingItemPrice> itemPrices, ServiceContext serviceContext)
           
 ShoppingItem updateShoppingItem(ShoppingItem shoppingItem)
          Updates the shopping item in the database.
 ShoppingItem updateShoppingItem(ShoppingItem shoppingItem, boolean merge)
          Updates the shopping item in the database.
 
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

addShoppingItem

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

Specified by:
addShoppingItem in interface ShoppingItemLocalService
Parameters:
shoppingItem - the shopping item to add
Returns:
the shopping item that was added
Throws:
SystemException - if a system exception occurred

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

deleteShoppingItem

public void deleteShoppingItem(long itemId)
                        throws PortalException,
                               SystemException
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 to delete
Throws:
PortalException - if a shopping item with the primary key could not be found
SystemException - if a system exception occurred

deleteShoppingItem

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

Specified by:
deleteShoppingItem in interface ShoppingItemLocalService
Parameters:
shoppingItem - the shopping item to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface ShoppingItemLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
                  throws SystemException
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.

Specified by:
dynamicQuery in interface ShoppingItemLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                  throws SystemException
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.

Specified by:
dynamicQuery in interface ShoppingItemLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Counts the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface ShoppingItemLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getShoppingItem

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

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

getShoppingItems

public List<ShoppingItem> getShoppingItems(int start,
                                           int end)
                                    throws SystemException
Gets 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.

Specified by:
getShoppingItems in interface ShoppingItemLocalService
Parameters:
start - the lower bound of the range of shopping items to return
end - the upper bound of the range of shopping items to return (not inclusive)
Returns:
the range of shopping items
Throws:
SystemException - if a system exception occurred

getShoppingItemsCount

public int getShoppingItemsCount()
                          throws SystemException
Gets the number of shopping items.

Specified by:
getShoppingItemsCount in interface ShoppingItemLocalService
Returns:
the number of shopping items
Throws:
SystemException - if a system exception occurred

updateShoppingItem

public ShoppingItem updateShoppingItem(ShoppingItem shoppingItem)
                                throws SystemException
Updates the shopping item in the database. Also notifies the appropriate model listeners.

Specified by:
updateShoppingItem in interface ShoppingItemLocalService
Parameters:
shoppingItem - the shopping item to update
Returns:
the shopping item that was updated
Throws:
SystemException - if a system exception occurred

updateShoppingItem

public ShoppingItem updateShoppingItem(ShoppingItem shoppingItem,
                                       boolean merge)
                                throws SystemException
Updates the shopping item in the database. Also notifies the appropriate model listeners.

Specified by:
updateShoppingItem in interface ShoppingItemLocalService
Parameters:
shoppingItem - the shopping item to update
merge - 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.
Returns:
the shopping item that was updated
Throws:
SystemException - if a system exception occurred

addBookItems

public void addBookItems(long userId,
                         long groupId,
                         long categoryId,
                         String[] isbns)
                  throws PortalException,
                         SystemException
Specified by:
addBookItems in interface ShoppingItemLocalService
Throws:
PortalException
SystemException

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 smallFile,
                            boolean mediumImage,
                            String mediumImageURL,
                            File mediumFile,
                            boolean largeImage,
                            String largeImageURL,
                            File largeFile,
                            List<ShoppingItemField> itemFields,
                            List<ShoppingItemPrice> itemPrices,
                            ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Specified by:
addItem in interface ShoppingItemLocalService
Throws:
PortalException
SystemException

addItemResources

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

addItemResources

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

addItemResources

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

addItemResources

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

deleteItem

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

deleteItem

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

deleteItems

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

getCategoriesItemsCount

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

getFeaturedItems

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

getItem

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

getItem

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

getItemByLargeImageId

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

getItemByMediumImageId

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

getItemBySmallImageId

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

getItems

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

getItems

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

getItemsCount

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

getItemsPrevAndNext

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

getSaleItems

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

search

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

searchCount

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

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 smallFile,
                               boolean mediumImage,
                               String mediumImageURL,
                               File mediumFile,
                               boolean largeImage,
                               String largeImageURL,
                               File largeFile,
                               List<ShoppingItemField> itemFields,
                               List<ShoppingItemPrice> itemPrices,
                               ServiceContext serviceContext)
                        throws PortalException,
                               SystemException
Specified by:
updateItem in interface ShoppingItemLocalService
Throws:
PortalException
SystemException

getWrappedShoppingItemLocalService

public ShoppingItemLocalService getWrappedShoppingItemLocalService()

Liferay 6.0.5