|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ProductMgrIf
ProductMgrIf Interface which an implementation of this manager must adhere to.
| Method Summary | |
|---|---|
java.lang.String |
createEncodedProductIdFromProductQuantityEncodedKey(int productId,
java.lang.String productQuantityEncodedKey)
Takes in a productQuantityEncodedKey and a productId and returns an encoded product Id. |
OptionIf[] |
createOptionsFromProductQuantityEncodedKey(java.lang.String encodedKey)
Receives an encoded key from the products_quantity table in the format 3{4}4{6} and creates an array of Option objects. |
ProductQuantity |
createProductQuantityEncodedKeyFromEncodedProductId(java.lang.String encodedProductId)
Takes in an encodedProductId and returns an encoded key for the products_quantity table The format of the encoded product id is 1{2}3{4}5 where the product id = 1, the first optionId / valueId pair have ids of 2,3 and the 2nd optionId / valueId pair have ids of 4,5. |
java.lang.String |
createProductQuantityEncodedKeyFromOptions(OptionIf[] opts)
Takes in an an array of options and returns an encoded key for the products_quantity table The format of the encoded key for the products_quantitytable is 3{4}4{6} which means product_options of id==3 and product_options_values of id==4 followed by product_options of id==4 and product_options_values of id==6. |
boolean |
doesProductExist(int productId)
Figure out whether a product exists |
void |
editDigitalDownload(DigitalDownloadIf digitalDownload)
Edits the digital download object. |
void |
editDigitalDownload(java.lang.String sessionId,
DigitalDownloadIf digitalDownload)
Edits the digital download object and checks that it belongs to the customer identified by the sessionId. |
Address[] |
getAddressesPerProduct(int productId)
Gets an array of Address objects that have been defined for the product referenced by the productId. |
Products |
getAllProducts(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int languageId)
Returns all products |
Products |
getAllProductsWithOptions(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int languageId,
FetchProductOptionsIf options)
Returns all products. |
Products |
getAllSpecials(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int languageId)
Returns all special priced products |
Product[] |
getAlsoPurchased(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int productId,
int languageId)
Find products that were in the same order as orders containing the product referenced by productId. |
Product[] |
getAlsoPurchasedWithOptions(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int productId,
int languageId,
FetchProductOptionsIf options)
Find products that were in the same order as orders containing the product referenced by productId. |
Product[] |
getBestSellers(DataDescriptorIf dataDesc,
int categoryId,
int languageId)
Returns an array of bestseller products for the category and its children. |
Product[] |
getBestSellersWithOptions(DataDescriptorIf dataDesc,
int categoryId,
int languageId,
FetchProductOptionsIf options)
Returns an array of bestseller products for the category and its children. |
DigitalDownload |
getDigitalDownloadById(int digitalDownloadId)
Returns a Digital Download object for the digital download id. |
DigitalDownload |
getDigitalDownloadById(java.lang.String sessionId,
int digitalDownloadId)
Returns a Digital Download object for the digital download id. |
DigitalDownload[] |
getDigitalDownloads(java.lang.String sessionId)
Returns an array of Digital Download objects for the customer identified by the sessionId parameter. |
Option |
getOption(int productId,
int optionId,
int optionValueId,
int priceId,
int languageId,
FetchProductOptionsIf options)
Finds a single Option object for the parameters passed in by reading from the product_attributes, product_options and product_options_values tables. |
Product[] |
getOrderHistory(DataDescriptorIf dataDesc,
java.lang.String sessionId,
int languageId)
Get a list of the products ordered by the customer referenced by the sessionId. |
Product[] |
getOrderHistoryWithOptions(DataDescriptorIf dataDesc,
java.lang.String sessionId,
int languageId,
FetchProductOptionsIf options)
Get a list of the products ordered by the customer referenced by the sessionId. |
int |
getPaymentScheduleId(int productId)
A utility method to return just the Payment Schedule Id from a product to determine whether it requires recurring billing. |
int |
getPriceId(Customer cust)
Get the priceId from the customer |
Product |
getProduct(int customerId,
int productId,
int languageId)
Fetches a fully populated product object for a customer referenced by customerId. |
Product |
getProduct(java.lang.String sessionId,
int productId,
int languageId)
Fetches a fully populated product object. |
Product |
getProductPerSku(java.lang.String sessionId,
java.lang.String sku,
int languageId)
Get a product from its SKU. |
Product |
getProductPerSkuWithOptions(java.lang.String sessionId,
java.lang.String sku,
int languageId,
FetchProductOptionsIf options)
Get a product from its SKU. |
ProductQuantityIf |
getProductQuantity(java.lang.String encodedProductId)
The stock level and date available of the product is returned. |
ProductQuantityIf |
getProductQuantityWithOptions(java.lang.String encodedProductId,
FetchProductOptionsIf options)
The stock level of the product is returned. |
int |
getProductReorderLevel(int productId)
Return the re-order level of the product. |
Product[] |
getProductsFromIds(java.lang.String sessionId,
java.util.ArrayList<java.lang.Integer> prodIdList,
int languageId)
Returns an array of products referenced by the ids in prodIdList. |
Product[] |
getProductsFromIdsWithOptions(java.lang.String sessionId,
java.util.ArrayList<java.lang.Integer> prodIdList,
int languageId,
FetchProductOptionsIf options)
Returns an array of products referenced by the ids in prodIdList. |
Product[] |
getProductsFromIdsWithOptions(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int[] prodIdArray,
int languageId,
FetchProductOptionsIf options)
Returns an array of products referenced by the ids in prodIdArray. |
Products |
getProductsPerCategory(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int categoryId,
boolean searchInSubCats,
int languageId)
Returns the products for a category |
Products |
getProductsPerCategoryPerManufacturer(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int categoryId,
int manufacturerId,
int languageId)
Returns the products for a category and a manufacturer |
Products |
getProductsPerCategoryPerManufacturerWithOptions(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int categoryId,
int manufacturerId,
int languageId,
FetchProductOptionsIf options)
Returns the products for a category and a manufacturer. |
Products |
getProductsPerCategoryWithOptions(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int categoryId,
boolean searchInSubCats,
int languageId,
FetchProductOptionsIf options)
Returns the products for a category.An options object is passed in to customize from where some of the product attributes (such as price and quantity) are fetched from. |
Products |
getProductsPerManufacturer(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int manufacturerId,
int languageId)
Returns the products for a manufacturer |
Products |
getProductsPerManufacturerWithOptions(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int manufacturerId,
int languageId,
FetchProductOptionsIf options)
Returns the products for a manufacturer.An options object is passed in to customize from where some of the product attributes (such as price and quantity) are fetched from. |
Product |
getProductWithOptions(int customerId,
int productId,
int languageId,
FetchProductOptionsIf options)
Fetches a fully populated product object for a customer referenced by customerId. |
Product |
getProductWithOptions(java.lang.String sessionId,
int productId,
int languageId,
FetchProductOptionsIf options)
Fetches a fully populated product object. |
Products |
getRelatedProducts(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int productId,
int relationType,
int languageId)
Find products related to the product defined by the productId parameter. |
Products |
getRelatedProductsWithOptions(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int productId,
int relationType,
int languageId,
FetchProductOptionsIf options)
Find products related to the product defined by the productId parameter. |
java.lang.String |
getSku(OrderProductIf orderProd)
Get the SKU for an orderProduct object. |
Products |
getSpecialsPerCategory(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int categoryId,
boolean searchInSubCats,
int languageId)
Returns all special priced products for a category |
TagIf |
getTag(int tagId,
boolean getProdCount,
int languageId)
Returns a Tag object for the id passed in as a parameter. |
TagGroupIf |
getTagGroup(int tagGroupId,
boolean getProdCount,
int languageId)
Returns a TagGroup object for the id passed in as a parameter. |
TagGroup[] |
getTagGroupsPerCategory(int categoryId,
boolean getProdCount,
int languageId)
Return an array of TagGroup objects for a category. |
TagIf[] |
getTagsPerCategory(int categoryId,
boolean getProdCount,
int languageId)
Return an array of Tag objects for a category. |
int |
getTaxClassId(int productId)
Returns the tax class id for a product |
int |
insertDigitalDownload(int customerId,
int productId)
Create and insert a digital download record for the product identified by the productId and the customer identified by the customerId. |
int |
insertDigitalDownload(java.lang.String sessionId,
int productId)
Create and insert a digital download record for the product identified by the productId and the customer identified by the sessionId. |
int |
insertGiftCertificateDigitalDownload(int customerId,
int productId,
java.lang.String filePath)
Create and insert a digital download record for the product identified by the productId and the customer identified by the customerId. |
void |
refreshConfigs()
Refresh the configuration of the product manager |
Products |
searchForProducts(java.lang.String sessionId,
DataDescriptorIf dataDesc,
ProductSearchIf prodSearch,
int languageId)
Returns products matching the search criteria. |
Products |
searchForProductsWithOptions(java.lang.String sessionId,
DataDescriptorIf dataDesc,
ProductSearchIf prodSearch,
int languageId,
FetchProductOptionsIf options)
Returns products matching the search criteria. |
int |
updateDigitalDownloadCount(java.lang.String sessionId,
int productId)
Updates the count of the Digital Download that defines how many times it has been downloaded. |
int |
updateDigitalDownloadCountById(java.lang.String sessionId,
int digitalDownloadId)
Updates the count of the Digital Download (identified by id) that defines how many times it has been downloaded. |
int |
updateProductQuantity(int productId,
OptionIf[] opts,
int quantitySold,
boolean setStatus)
The product quantity is updated by subtracting quantitySold from the current quantity. |
int |
updateProductQuantity(int productId,
OptionIf[] opts,
java.lang.String encodedOptions,
int quantitySold,
boolean setStatus)
The product quantity is updated by subtracting quantitySold from the current quantity. |
int |
updateProductQuantityWithOptions(int productId,
OptionIf[] opts,
java.lang.String encodedOptions,
int quantitySold,
boolean setStatus,
FetchProductOptionsIf options)
The product quantity is updated by subtracting quantitySold from the current quantity. |
void |
updateProductViewedCount(int productId,
int languageId)
Increments the viewed count for the product. |
| Method Detail |
|---|
Products getProductsPerCategory(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int categoryId,
boolean searchInSubCats,
int languageId)
throws java.lang.Exception
sessionId - dataDesc - categoryId - searchInSubCats - languageId -
java.lang.Exception
Products getProductsPerCategoryWithOptions(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int categoryId,
boolean searchInSubCats,
int languageId,
FetchProductOptionsIf options)
throws java.lang.Exception
sessionId - dataDesc - categoryId - searchInSubCats - languageId - options -
java.lang.Exception
Products getProductsPerCategoryPerManufacturer(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int categoryId,
int manufacturerId,
int languageId)
throws java.lang.Exception
sessionId - dataDesc - categoryId - manufacturerId - languageId -
java.lang.Exception
Products getProductsPerCategoryPerManufacturerWithOptions(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int categoryId,
int manufacturerId,
int languageId,
FetchProductOptionsIf options)
throws java.lang.Exception
sessionId - dataDesc - categoryId - manufacturerId - languageId - options -
java.lang.Exception
Products getAllProducts(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int languageId)
throws java.lang.Exception
sessionId - dataDesc - languageId -
java.lang.Exception
Products getAllProductsWithOptions(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int languageId,
FetchProductOptionsIf options)
throws java.lang.Exception
sessionId - dataDesc - languageId - options -
java.lang.Exception
Products getProductsPerManufacturer(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int manufacturerId,
int languageId)
throws java.lang.Exception
sessionId - dataDesc - manufacturerId - languageId -
java.lang.Exception
Products getProductsPerManufacturerWithOptions(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int manufacturerId,
int languageId,
FetchProductOptionsIf options)
throws java.lang.Exception
sessionId - dataDesc - manufacturerId - languageId - options -
java.lang.Exception
int getTaxClassId(int productId)
throws org.apache.torque.TorqueException,
KKException,
com.workingdogs.village.DataSetException
productId -
org.apache.torque.TorqueException
KKException
com.workingdogs.village.DataSetException
Product getProduct(java.lang.String sessionId,
int productId,
int languageId)
throws java.lang.Exception
sessionId - productId - languageId -
java.lang.Exception
Product getProductWithOptions(java.lang.String sessionId,
int productId,
int languageId,
FetchProductOptionsIf options)
throws java.lang.Exception
sessionId - productId - languageId - options -
java.lang.Exception
Product getProduct(int customerId,
int productId,
int languageId)
throws java.lang.Exception
customerId - productId - languageId -
java.lang.Exception
Product getProductWithOptions(int customerId,
int productId,
int languageId,
FetchProductOptionsIf options)
throws java.lang.Exception
customerId - productId - languageId - options -
java.lang.Exception
void updateProductViewedCount(int productId,
int languageId)
throws java.lang.Exception
productId - languageId -
java.lang.Exception
Products getAllSpecials(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int languageId)
throws java.lang.Exception
sessionId - dataDesc - languageId -
java.lang.Exception
Products getSpecialsPerCategory(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int categoryId,
boolean searchInSubCats,
int languageId)
throws java.lang.Exception
sessionId - dataDesc - categoryId - searchInSubCats - languageId -
java.lang.Exception
Product[] getProductsFromIds(java.lang.String sessionId,
java.util.ArrayList<java.lang.Integer> prodIdList,
int languageId)
throws java.lang.Exception
sessionId - prodIdList - languageId -
java.lang.Exception
Product[] getProductsFromIdsWithOptions(java.lang.String sessionId,
java.util.ArrayList<java.lang.Integer> prodIdList,
int languageId,
FetchProductOptionsIf options)
throws java.lang.Exception
sessionId - prodIdList - languageId - options -
java.lang.Exception
Product[] getProductsFromIdsWithOptions(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int[] prodIdArray,
int languageId,
FetchProductOptionsIf options)
throws java.lang.Exception
sessionId - dataDesc - prodIdArray - languageId - options -
java.lang.Exception
Products searchForProducts(java.lang.String sessionId,
DataDescriptorIf dataDesc,
ProductSearchIf prodSearch,
int languageId)
throws java.lang.Exception
sessionId - dataDesc - prodSearch - languageId -
java.lang.Exception
Products searchForProductsWithOptions(java.lang.String sessionId,
DataDescriptorIf dataDesc,
ProductSearchIf prodSearch,
int languageId,
FetchProductOptionsIf options)
throws java.lang.Exception
sessionId - dataDesc - prodSearch - languageId - options -
java.lang.Exception
Option getOption(int productId,
int optionId,
int optionValueId,
int priceId,
int languageId,
FetchProductOptionsIf options)
throws java.lang.Exception
productId - optionId - optionValueId - priceId - languageId - options -
java.lang.Exception
Product[] getBestSellers(DataDescriptorIf dataDesc,
int categoryId,
int languageId)
throws java.lang.Exception
dataDesc - categoryId - languageId -
java.lang.Exception
Product[] getBestSellersWithOptions(DataDescriptorIf dataDesc,
int categoryId,
int languageId,
FetchProductOptionsIf options)
throws java.lang.Exception
dataDesc - categoryId - languageId - options -
java.lang.Exception
Product[] getOrderHistory(DataDescriptorIf dataDesc,
java.lang.String sessionId,
int languageId)
throws java.lang.Exception
dataDesc - sessionId - languageId -
java.lang.Exception
Product[] getOrderHistoryWithOptions(DataDescriptorIf dataDesc,
java.lang.String sessionId,
int languageId,
FetchProductOptionsIf options)
throws java.lang.Exception
dataDesc - sessionId - languageId - options -
java.lang.Exception
Product[] getAlsoPurchased(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int productId,
int languageId)
throws java.lang.Exception
sessionId - dataDesc - productId - languageId -
java.lang.Exception
Product[] getAlsoPurchasedWithOptions(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int productId,
int languageId,
FetchProductOptionsIf options)
throws java.lang.Exception
sessionId - dataDesc - productId - languageId - options -
java.lang.Exception
Products getRelatedProducts(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int productId,
int relationType,
int languageId)
throws java.lang.Exception
sessionId - dataDesc - productId - relationType - languageId -
java.lang.Exception
Products getRelatedProductsWithOptions(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int productId,
int relationType,
int languageId,
FetchProductOptionsIf options)
throws java.lang.Exception
sessionId - dataDesc - productId - relationType - languageId - options -
java.lang.Exception
java.lang.String getSku(OrderProductIf orderProd)
throws KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
orderProd -
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
int updateProductQuantity(int productId,
OptionIf[] opts,
int quantitySold,
boolean setStatus)
throws java.lang.Exception
productId - opts - quantitySold - setStatus -
java.lang.Exception
int updateProductQuantity(int productId,
OptionIf[] opts,
java.lang.String encodedOptions,
int quantitySold,
boolean setStatus)
throws java.lang.Exception
productId - opts - encodedOptions - quantitySold - setStatus -
java.lang.Exception
int updateProductQuantityWithOptions(int productId,
OptionIf[] opts,
java.lang.String encodedOptions,
int quantitySold,
boolean setStatus,
FetchProductOptionsIf options)
throws java.lang.Exception
productId - opts - encodedOptions - quantitySold - setStatus - options -
java.lang.Exception
ProductQuantityIf getProductQuantity(java.lang.String encodedProductId)
throws java.lang.Exception
encodedProductId -
java.lang.Exception
int insertDigitalDownload(java.lang.String sessionId,
int productId)
throws java.lang.Exception
sessionId - productId -
java.lang.Exception
int insertDigitalDownload(int customerId,
int productId)
throws java.lang.Exception
customerId - productId -
java.lang.Exception
DigitalDownload[] getDigitalDownloads(java.lang.String sessionId)
throws java.lang.Exception
sessionId -
java.lang.Exception
int updateDigitalDownloadCount(java.lang.String sessionId,
int productId)
throws java.lang.Exception
sessionId - productId -
java.lang.Exception
int updateDigitalDownloadCountById(java.lang.String sessionId,
int digitalDownloadId)
throws java.lang.Exception
sessionId - digitalDownloadId -
java.lang.Exceptionint getPriceId(Customer cust)
cust -
TagGroup[] getTagGroupsPerCategory(int categoryId,
boolean getProdCount,
int languageId)
throws java.lang.Exception
categoryId - getProdCount - languageId -
java.lang.Exception
TagIf[] getTagsPerCategory(int categoryId,
boolean getProdCount,
int languageId)
throws java.lang.Exception
categoryId - getProdCount - languageId -
java.lang.Exception
TagGroupIf getTagGroup(int tagGroupId,
boolean getProdCount,
int languageId)
throws java.lang.Exception
tagGroupId - getProdCount - languageId -
java.lang.Exception
TagIf getTag(int tagId,
boolean getProdCount,
int languageId)
throws java.lang.Exception
tagId - getProdCount - languageId -
java.lang.Exception
java.lang.String createEncodedProductIdFromProductQuantityEncodedKey(int productId,
java.lang.String productQuantityEncodedKey)
productId - productQuantityEncodedKey -
ProductQuantity createProductQuantityEncodedKeyFromEncodedProductId(java.lang.String encodedProductId)
throws KKException
encodedProductId -
KKExceptionjava.lang.String createProductQuantityEncodedKeyFromOptions(OptionIf[] opts)
opts -
int getProductReorderLevel(int productId)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
productId -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
ProductQuantityIf getProductQuantityWithOptions(java.lang.String encodedProductId,
FetchProductOptionsIf options)
throws java.lang.Exception
encodedProductId - options -
java.lang.Exception
boolean doesProductExist(int productId)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
productId -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
int insertGiftCertificateDigitalDownload(int customerId,
int productId,
java.lang.String filePath)
throws java.lang.Exception
customerId - productId - filePath -
java.lang.Exception
int getPaymentScheduleId(int productId)
throws org.apache.torque.TorqueException,
KKException,
com.workingdogs.village.DataSetException
productId -
org.apache.torque.TorqueException
KKException
com.workingdogs.village.DataSetException
Product getProductPerSkuWithOptions(java.lang.String sessionId,
java.lang.String sku,
int languageId,
FetchProductOptionsIf options)
throws java.lang.Exception
sessionId - sku - languageId - options -
java.lang.Exception
Product getProductPerSku(java.lang.String sessionId,
java.lang.String sku,
int languageId)
throws java.lang.Exception
sessionId - sku - languageId -
java.lang.Exception
void editDigitalDownload(java.lang.String sessionId,
DigitalDownloadIf digitalDownload)
throws java.lang.Exception
sessionId - digitalDownload -
java.lang.Exception
void editDigitalDownload(DigitalDownloadIf digitalDownload)
throws KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
digitalDownload -
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
DigitalDownload getDigitalDownloadById(java.lang.String sessionId,
int digitalDownloadId)
throws java.lang.Exception
sessionId - digitalDownloadId -
java.lang.Exception
DigitalDownload getDigitalDownloadById(int digitalDownloadId)
throws KKException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
digitalDownloadId -
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
Address[] getAddressesPerProduct(int productId)
throws java.lang.Exception
productId -
java.lang.Exception
void refreshConfigs()
throws java.lang.Exception
java.lang.ExceptionOptionIf[] createOptionsFromProductQuantityEncodedKey(java.lang.String encodedKey)
encodedKey -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||