public interface WishListMgrIf
Modifier and Type | Method and Description |
---|---|
int |
addToWishList(java.lang.String sessionId,
WishListItemIf wishListItem)
Add a WishListItem object to the wish list referenced by wishListId.
|
int |
addToWishListWithOptions(java.lang.String sessionId,
WishListItemIf wishListItem,
AddToWishListOptionsIf options)
Add a WishListItem object to the wish list referenced by wishListId.
|
int |
createWishList(java.lang.String sessionId,
WishListIf wishList)
Create a wish list from a WishList object.
|
int |
createWishListWithOptions(java.lang.String sessionId,
WishListIf wishList,
AddToWishListOptionsIf options)
Create a wish list from a WishList object.
|
void |
deleteWishList(java.lang.String sessionId,
int wishListId)
The wish list referenced by wishListId and all of the items contained by the wish list, will
be deleted.
|
void |
deleteWishListWithOptions(java.lang.String sessionId,
int wishListId,
AddToWishListOptionsIf options)
The wish list referenced by wishListId and all of the items contained by the wish list, will
be deleted.
|
void |
editWishList(java.lang.String sessionId,
WishListIf wishList)
Edit an existing wish list object.
|
void |
editWishListWithOptions(java.lang.String sessionId,
WishListIf wishList,
AddToWishListOptionsIf options)
Edit an existing wish list object.
|
WishList |
getWishList(int wishListId)
Get a wish list object for its id.
|
WishList |
getWishList(java.lang.String sessionId,
int wishListId)
Get a wish list object for its id.
|
WishListItems |
getWishListItems(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int wishListId,
int languageId)
Returns a WishListItems object containing an array of items and the number of items returned.
|
WishListItems |
getWishListItemsWithOptions(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int wishListId,
int languageId,
AddToWishListOptionsIf options)
Returns a WishListItems object containing an array of items and the number of items returned.
|
WishList |
getWishListWithItems(java.lang.String sessionId,
int wishListId,
int languageId)
Returns a fully populated WishList object that may contain an array of WishListItem objects.
|
WishList |
getWishListWithItemsWithOptions(java.lang.String sessionId,
int wishListId,
int languageId,
AddToWishListOptionsIf options)
Returns a fully populated WishList object that may contain an array of WishListItem objects.
|
WishList |
getWishListWithOptions(java.lang.String sessionId,
int wishListId,
AddToWishListOptionsIf options)
Get a wish list object for its id.
|
void |
mergeWishListsWithOptions(java.lang.String sessionId,
int customerFromId,
int languageId,
AddToWishListOptionsIf wishListOptions)
Add all items from the wish list of customerFrom to the wish list of customerTo which is
retrieved from the sessionId.
|
void |
removeFromWishList(java.lang.String sessionId,
int wishListItemId)
Remove the WishListItem object referenced by wishListItemId.
|
void |
removeFromWishListWithOptions(java.lang.String sessionId,
int wishListItemId,
AddToWishListOptionsIf options)
Remove the WishListItem object referenced by wishListItemId.
|
WishLists |
searchForWishLists(java.lang.String sessionId,
DataDescriptorIf dataDescriptor,
CustomerSearchIf customerSearch)
All wish lists matching the search criteria will be returned.
|
void |
updateWishListItemQuantityBought(int wishListItemId,
int quantityBought)
Updates the wishListItem quantity received attribute by adding quantityBought to the actual
value.
|
int createWishList(java.lang.String sessionId, WishListIf wishList) throws java.lang.Exception
getWishListWithItems()
can be called to add wish list items to the wish list.
The compulsory attributes for the WishListItem are:
sessionId
- the sessionIdwishList
- the wishListjava.lang.Exception
- an unexpected exceptionint createWishListWithOptions(java.lang.String sessionId, WishListIf wishList, AddToWishListOptionsIf options) throws java.lang.Exception
getWishListWithItems()
can be called to add wish list items to the wish list.
This method may be called even when a customer isn't logged in. In this case the
customerId
attribute of the options object must be set to the id of the
temporary customer which is negative. The compulsory attributes for the WishListItem are:
sessionId
- the sessionIdwishList
- the wishListoptions
- the optionsjava.lang.Exception
- an unexpected exceptionvoid editWishList(java.lang.String sessionId, WishListIf wishList) throws java.lang.Exception
sessionId
- The session id of the logged in userwishList
- The wish list to be editedjava.lang.Exception
- an unexpected exceptionvoid editWishListWithOptions(java.lang.String sessionId, WishListIf wishList, AddToWishListOptionsIf options) throws java.lang.Exception
sessionId
- The session id of the logged in userwishList
- The wish list to be editedoptions
- the optionsjava.lang.Exception
- an unexpected exceptionint addToWishList(java.lang.String sessionId, WishListItemIf wishListItem) throws java.lang.Exception
sessionId
- the sessionIdwishListItem
- the wishListItemjava.lang.Exception
- an unexpected exceptionint addToWishListWithOptions(java.lang.String sessionId, WishListItemIf wishListItem, AddToWishListOptionsIf options) throws java.lang.Exception
sessionId
- the sessionIdwishListItem
- the wishListItemoptions
- the optionsjava.lang.Exception
- an unexpected exceptionvoid removeFromWishList(java.lang.String sessionId, int wishListItemId) throws java.lang.Exception
sessionId
- the sessionIdwishListItemId
- the wishListItemIdjava.lang.Exception
- an unexpected exceptionvoid removeFromWishListWithOptions(java.lang.String sessionId, int wishListItemId, AddToWishListOptionsIf options) throws java.lang.Exception
sessionId
- the sessionIdwishListItemId
- the wishListItemIdoptions
- the optionsjava.lang.Exception
- an unexpected exceptionvoid deleteWishList(java.lang.String sessionId, int wishListId) throws java.lang.Exception
sessionId
- the sessionIdwishListId
- the wishListIdjava.lang.Exception
- an unexpected exceptionvoid deleteWishListWithOptions(java.lang.String sessionId, int wishListId, AddToWishListOptionsIf options) throws java.lang.Exception
sessionId
- the sessionIdwishListId
- the wishListIdoptions
- the optionsjava.lang.Exception
- an unexpected exceptionWishLists searchForWishLists(java.lang.String sessionId, DataDescriptorIf dataDescriptor, CustomerSearchIf customerSearch) throws java.lang.Exception
getWishListWithItems()
method, passing it the id of the wish list. This will
also populate the final price attributes of the wish list.sessionId
- The session id of the logged in user. It may be null if the user isn't logged in.dataDescriptor
- the dataDescriptorcustomerSearch
- the customerSearchjava.lang.Exception
- an unexpected exceptionWishList getWishListWithItems(java.lang.String sessionId, int wishListId, int languageId) throws java.lang.Exception
product
attribute and populated
opts
attribute if the WishListItem contains options. The items will be ordered
by priority with the highest priority first.sessionId
- The session id of the logged in user. It may be null if the user isn't logged in.wishListId
- the wishListIdlanguageId
- the languageIdjava.lang.Exception
- an unexpected exceptionWishList getWishListWithItemsWithOptions(java.lang.String sessionId, int wishListId, int languageId, AddToWishListOptionsIf options) throws java.lang.Exception
product
attribute and populated
opts
attribute if the WishListItem contains options. The items will be ordered
by priority with the highest priority first.
If options is set to null, this method is identical to getWishListWithItems(). Otherwise the
functionality differs depending on the combination of options set.sessionId
- The session id of the logged in user. It may be null if the user isn't logged in.wishListId
- the wishListIdlanguageId
- the languageIdoptions
- the optionsjava.lang.Exception
- an unexpected exceptionWishList getWishList(java.lang.String sessionId, int wishListId) throws java.lang.Exception
sessionId
- the sessionIdwishListId
- the wishListIdjava.lang.Exception
- an unexpected exceptionWishList getWishListWithOptions(java.lang.String sessionId, int wishListId, AddToWishListOptionsIf options) throws java.lang.Exception
sessionId
- the sessionIdwishListId
- the wishListIdoptions
- the optionsjava.lang.Exception
- an unexpected exceptionWishList getWishList(int wishListId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
wishListId
- the wishListIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)void updateWishListItemQuantityBought(int wishListItemId, int quantityBought) throws java.lang.Exception
wishListItemId
- the wishListItemIdquantityBought
- the quantityBoughtjava.lang.Exception
- an unexpected exceptionWishListItems getWishListItemsWithOptions(java.lang.String sessionId, DataDescriptorIf dataDesc, int wishListId, int languageId, AddToWishListOptionsIf options) throws java.lang.Exception
dataDesc
, the following functionality may
be controlled :
onlyShowAvailable
attribute of the options object is set, then the wish
list items that have quantity received equal to quantity desired, are not returned.sessionId
- The session id of the logged in user. It may be null if the user isn't logged in.dataDesc
- the dataDescwishListId
- the wishListIdlanguageId
- the languageIdoptions
- the optionsjava.lang.Exception
- an unexpected exceptionWishListItems getWishListItems(java.lang.String sessionId, DataDescriptorIf dataDesc, int wishListId, int languageId) throws java.lang.Exception
dataDesc
, the following functionality may
be controlled :
sessionId
- The session id of the logged in user. It may be null if the user isn't logged in.dataDesc
- the dataDescwishListId
- the wishListIdlanguageId
- the languageIdjava.lang.Exception
- an unexpected exceptionvoid mergeWishListsWithOptions(java.lang.String sessionId, int customerFromId, int languageId, AddToWishListOptionsIf wishListOptions) throws java.lang.Exception
The currently logged in customer may have more than one wish list. The one used is the first one found of listType == 0.
sessionId
- the sessionIdcustomerFromId
- the customerFromIdlanguageId
- the languageIdwishListOptions
- the wishListOptionsjava.lang.Exception
- an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.