|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakart.bl.BaseMgr
com.konakart.bl.ProductMgr
public class ProductMgr
Product Mgr.
Nested Class Summary | |
---|---|
protected class |
ProductMgr.OptionSortOrderComparator
Used to sort the Option objects based on option id |
protected class |
ProductMgr.ProdAttr
protected class used to create the encoded key |
protected class |
ProductMgr.ProdAttrSortOrderComparator
Used to sort the ProdAttr objects based on option id |
protected class |
ProductMgr.StaticData
Used to store the static data of this manager |
protected class |
ProductMgr.TagSortOrderComparator
Used to sort a list of tags |
Field Summary | |
---|---|
static int |
ACCESSORY
Accessories |
static int |
ALL_RELATIONSHIPS
Returns all related products |
static int |
BOOKABLE_PRODUCT_TYPE
Bookable Product Type |
static int |
BUNDLE_PRODUCT_TYPE
Bundle Product Type |
static int |
BUNDLED_PRODUCT_RELATIONSHIP
Bundled product |
static int |
CROSS_SELL
Cross Sell related products |
static int |
CUSTOM_RELATIONSHIP_1
Custom relationship |
static int |
CUSTOM_RELATIONSHIP_2
Custom relationship |
static int |
CUSTOM_RELATIONSHIP_3
Custom relationship |
static java.lang.Boolean |
customAttrAnOracleCLOB
is Oracle CLOB used for custom_attrs column? |
static int |
DEPENDENT_ITEM
Dependent items, such as warranties |
static int |
DIGITAL_DOWNLOAD
Digital download product |
static int |
DONT_INCLUDE
Used to not include values in the query |
static int |
FREE_SHIPPING
Physical product with free shipping |
static int |
FREE_SHIPPING_BUNDLE_PRODUCT_TYPE
Free Shipping Bundle Product Type |
static int |
GIFT_CERTIFICATE_PRODUCT_TYPE
Gift Certificate Product Type |
protected static org.apache.commons.logging.Log |
log
the log |
protected static java.lang.String |
mutex
Mutex |
static int |
PHYSICAL_PRODUCT
Physical product |
protected static java.util.Map<java.lang.String,ProductMgr.StaticData> |
staticDataHM
Hash Map that contains the static data |
static int |
UP_SELL
Up Sell related products |
Fields inherited from class com.konakart.bl.BaseMgr |
---|
templateBaseDir |
Constructor Summary | |
---|---|
ProductMgr(KKEngIf eng)
Constructor |
Method Summary | |
---|---|
protected void |
addProductDescriptions(Product[] prods,
int langId,
boolean multiStoreSearch)
Adds the description to an array of products |
protected void |
addReviewInfo(Product[] prodArray)
Takes an array of products as input and for each one of them, populates the number of reviews |
protected void |
addTax(Customer cust,
Product product)
We set the price of the product including tax for the customer identified by cust. |
protected void |
addTax(Customer cust,
Product[] prodArray)
We iterate through the array of products and for each product, we set the price including tax. |
protected KKCriteria |
beforeSendCriteria(java.lang.String sessionId,
java.lang.String apiCall,
KKCriteria criteria,
DataDescriptorIf dataDesc,
ProductSearchIf prodSearch,
int languageId)
Method that can be used to customize the KKCriteria object before it is used to create the query string that is sent to the database. |
protected java.lang.String |
beforeSendQuery(java.lang.String sessionId,
java.lang.String apiCall,
java.lang.String queryString,
DataDescriptorIf dataDesc,
ProductSearchIf prodSearch,
int languageId)
Method that can be used to customize the query string before being sent to the database. |
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_quantity table 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. |
protected int |
decProductQuantitiesWithOptions(int productId,
int quantitySold,
boolean setStatus,
boolean onlyOrdered,
FetchProductOptionsIf options)
An internal method to avoid code duplication. |
protected void |
deleteDigitalDownload(DigitalDownload dd)
Deletes the digital download passed in as a parameter |
protected boolean |
doesExtQuantityExist(int productId,
java.lang.String encodedOptionValues,
java.lang.String catalogId,
KKCriteria selectC)
Returns true if the external quantity record exists |
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 |
protected void |
editExtQuantity(int productId,
java.lang.String encodedOptionValues,
int quantity,
java.lang.String catalogId,
KKCriteria selectC,
KKCriteria updateC)
Used to edit a quantity in the external quantity table. |
protected boolean |
fetchDescriptionsSeparately()
This can be specialized to modify the way the product descriptions are queried or the configuration variable can be set to the value you require to be returned here. |
Address[] |
getAddressesPerProduct(int productId)
Returns all of the addresses for the given product. |
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)
Calls getBestSellersWithOptions |
Product[] |
getBestSellersWithOptions(DataDescriptorIf dataDesc,
int categoryId,
int languageId,
FetchProductOptionsIf options)
Returns an array of bestseller products for the category and its children. |
protected ProductQuantityIf |
getBundleProductQuantityWithOptions(int productId,
FetchProductOptionsIf options)
Get the quantity and date available of a bundle product. |
protected int |
getCount(java.lang.String sessionId,
java.lang.String apiCall,
DataDescriptorIf dataDesc,
ProductSearchIf prodSearch,
KKCriteria c,
boolean fixQuery,
boolean tagCount,
boolean multiStoreSearch,
int languageId)
This method is mainly used for paging. |
protected java.lang.String |
getCustomAttrs(int productId)
Get the custom_attrs for the product with the specified Id |
ProdCustAttr[] |
getCustomAttrsFromXML(java.lang.String xml)
Create an array of custom attributes from the XML |
protected DigitalDownload |
getDigitalDownload(int customerId,
int productId)
Returns a Digital Download object for the customerId and productId passed in as parameters. |
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. |
protected java.util.Date |
getExpiryDate(int maxDownloadDays)
Common code to get the expiry date |
protected java.util.Date |
getLastAddedDateFromTagToProduct()
Get the last date added for a tag to product record |
protected int |
getMaxDownloadDays(Product prod)
Common code to get the maximum number of download days |
protected int |
getMaxNumDownloads(Product prod)
Common code to get the maximum number of downloads |
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. |
protected void |
getProductCountForTag(TagIf tag)
Get the number of products for a tag and add the number to the tag 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. |
protected ProductQuantityIf[] |
getProductQuantitiesPerProductWithOptions(int productId,
FetchProductOptionsIf options)
Return all of the product quantities associated with a product |
ProductQuantityIf |
getProductQuantity(java.lang.String encodedProductId)
The stock level of the product is returned. |
protected ProductQuantityIf |
getProductQuantityPerProductWithOptions(int productId,
java.lang.String encodedOptionValues,
FetchProductOptionsIf options)
Return all of the product quantities associated with a product |
protected ProductQuantityIf |
getProductQuantityWithOptions(int productId,
FetchProductOptionsIf options)
The stock level and available date of the product is returned assuming it has no attributes. |
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. |
protected Products |
getProductsAllCases(java.lang.String apiCall,
java.lang.String sessionId,
DataDescriptorIf dataDesc,
int categoryId,
int languageId,
int manufacturerId,
FetchProductOptionsIf options)
This protected method gets called by various flavours of public methods to get an array of products with differing criteria. |
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. |
protected int |
getProductType(int productId)
Return the product type |
protected Product |
getProductWithOptions(int productId,
Customer cust,
int languageId,
FetchProductOptionsIf options)
|
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. |
protected Products |
getRelatedProducts(java.lang.String sessionId,
DataDescriptorIf dataDesc,
int productId,
int relationType,
int languageId,
java.util.HashMap<java.lang.String,Product> bundleProdMap,
int loop,
int quantity,
FetchProductOptionsIf options)
A protected version of getRelatedProducts with a hash map passed in for recursion |
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. |
protected java.lang.String |
getSku(int productId)
Gets the SKU for a product directly from the product table. |
java.lang.String |
getSku(OrderProductIf orderProd)
This method is deprecated since release 4.0.0.0 because an SKU attribute was added to the OrderProduct. |
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. |
protected TagIf[] |
getTagsPerTagGroup(int tagGroupId,
boolean getProdCount,
int languageId)
Returns an array of Tags for a TagGroup |
protected int |
getTagToProductCount()
Get the number of records in the tag to product table |
int |
getTaxClassId(int productId)
Returns the tax class id for a product |
protected TierPrice[] |
getTierPrices(Product prod,
int priceId,
FetchProductOptionsIf options)
Return the An array of TierPrice objects (or null) for the product referenced by productId |
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. |
protected void |
insertExtQuantity(int productId,
java.lang.String encodedOptionValues,
int quantity,
java.lang.String catalogId,
KKCriteria insertC)
Used to insert a quantity in the external quantity table. |
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. |
static boolean |
isCustomAttrAnOracleCLOB()
Is the custom_attrs column is an Oracle CLOB? We only check once and save the result in a static variable. |
protected void |
manageDataDescriptor(DataDescriptorIf dataDesc,
org.apache.torque.util.Criteria c,
java.lang.String price)
Provides common code to deal with the management of the DataDescriptor. |
protected void |
manageDataDescriptor(DataDescriptorIf dataDesc,
org.apache.torque.util.Criteria c,
java.lang.String price,
boolean addConstraints)
Provides common code to deal with the management of the DataDescriptor. |
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. |
protected Products |
searchForProductsPrivate(java.lang.String apiCall,
java.lang.String sessionId,
DataDescriptorIf dataDesc,
ProductSearchIf prodSearch,
java.util.ArrayList<java.lang.Integer> prodIdList,
int languageId,
FetchProductOptionsIf options)
Returns products matching the search criteria in the format defined by the data descriptor. |
Products |
searchForProductsWithOptions(java.lang.String sessionId,
DataDescriptorIf dataDesc,
ProductSearchIf prodSearch,
int languageId,
FetchProductOptionsIf options)
Returns products matching the search criteria. |
protected java.util.List<com.workingdogs.village.Record> |
sendQuery(java.lang.String sessionId,
java.lang.String apiCall,
KKCriteria criteria,
DataDescriptorIf dataDesc,
ProductSearchIf prodSearch,
int languageId,
boolean fixQuery)
Common code to send a query string |
protected void |
setCriteriaWithStandardAttributes(KKCriteria c,
int languageId,
boolean manuOuterJoin,
boolean multiStoreSearch,
FetchProductOptionsIf options,
DataDescriptorIf dd)
Initializes the criteria with the standard attributes for the product. |
protected void |
setCriteriaWithStandardAttributes(KKCriteria c,
int languageId,
FetchProductOptionsIf options)
Initializes the criteria with the standard attributes for the product. |
protected void |
setDigitalDownloadCriteria(KKCriteria c)
Sets the criteria with the standard attributes so as not to have to repeat this code many times. |
protected void |
setExtPriceProductAttributeCriteria(KKCriteria c,
int productId,
FetchProductOptionsIf options)
Add criteria for getting the prices from another table based on the catalog id . |
protected void |
setExtPriceProductCriteria(KKCriteria c,
FetchProductOptionsIf options)
Add criteria for getting the prices from another table based on the catalog id . |
protected void |
setExtQuantityProductCriteria(KKCriteria c,
FetchProductOptionsIf options)
Add criteria for getting the product quantity from another table based on the catalog id . |
protected void |
setExtQuantityProductQuantityCriteria(KKCriteria c,
int productId,
FetchProductOptionsIf options)
Add criteria for getting the product quantity from another table based on the catalog id . |
protected void |
setOptionPrice(Option opt,
Product prod,
int productId,
int priceId)
Edit the product option to use the correct price based on the price Id |
protected void |
setProductPrice(Product prod,
int priceId)
Edit the product to use the correct price based on the price Id |
protected void |
setProductsSharedCriteria(KKCriteria c,
boolean getPriceId)
Add criteria to get shared products from the database |
protected void |
setTagCriteriaWithStandardAttributes(KKCriteria c,
int languageId)
Set the Criteria attribute with standard attributes for a Tag object |
protected void |
setTagGroupCriteriaWithStandardAttributes(KKCriteria c,
int languageId)
Set the Criteria attribute with standard attributes for a TagGroup object |
protected void |
synchronizeTagProductCount()
We save the product count for each tag, in a hash table. |
protected void |
updateBundleProductQuantityWithOptions(int productId,
int quantitySold,
boolean setStatus,
FetchProductOptionsIf options)
Updates the quantities for a bundle product. |
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. |
protected boolean |
useSpecialPrice()
This can be specialized to return false if special prices aren't used. |
protected Product |
validateDigitalDownload(int productId)
Validate the digital download productId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
public static final int DONT_INCLUDE
public static final int ALL_RELATIONSHIPS
public static final int UP_SELL
public static final int CROSS_SELL
public static final int ACCESSORY
public static final int DEPENDENT_ITEM
public static final int BUNDLED_PRODUCT_RELATIONSHIP
public static final int CUSTOM_RELATIONSHIP_1
public static final int CUSTOM_RELATIONSHIP_2
public static final int CUSTOM_RELATIONSHIP_3
public static final int PHYSICAL_PRODUCT
public static final int DIGITAL_DOWNLOAD
public static final int FREE_SHIPPING
public static final int BUNDLE_PRODUCT_TYPE
public static final int FREE_SHIPPING_BUNDLE_PRODUCT_TYPE
public static final int GIFT_CERTIFICATE_PRODUCT_TYPE
public static final int BOOKABLE_PRODUCT_TYPE
protected static java.util.Map<java.lang.String,ProductMgr.StaticData> staticDataHM
public static java.lang.Boolean customAttrAnOracleCLOB
protected static java.lang.String mutex
Constructor Detail |
---|
public ProductMgr(KKEngIf eng) throws java.lang.Exception
eng
-
java.lang.Exception
Method Detail |
---|
public Products getProductsPerCategory(java.lang.String sessionId, DataDescriptorIf dataDesc, int categoryId, boolean searchInSubCats, int languageId) throws java.lang.Exception
ProductMgrIf
getProductsPerCategory
in interface ProductMgrIf
sessionId
- dataDesc
- categoryId
- searchInSubCats
- languageId
-
java.lang.Exception
public Products getProductsPerCategoryWithOptions(java.lang.String sessionId, DataDescriptorIf dataDesc, int categoryId, boolean searchInSubCats, int languageId, FetchProductOptionsIf options) throws java.lang.Exception
ProductMgrIf
getProductsPerCategoryWithOptions
in interface ProductMgrIf
sessionId
- dataDesc
- categoryId
- searchInSubCats
- languageId
- options
-
java.lang.Exception
public Products getProductsPerCategoryPerManufacturer(java.lang.String sessionId, DataDescriptorIf dataDesc, int categoryId, int manufacturerId, int languageId) throws java.lang.Exception
ProductMgrIf
getProductsPerCategoryPerManufacturer
in interface ProductMgrIf
sessionId
- dataDesc
- categoryId
- manufacturerId
- languageId
-
java.lang.Exception
public Products getProductsPerCategoryPerManufacturerWithOptions(java.lang.String sessionId, DataDescriptorIf dataDesc, int categoryId, int manufacturerId, int languageId, FetchProductOptionsIf options) throws java.lang.Exception
ProductMgrIf
getProductsPerCategoryPerManufacturerWithOptions
in interface ProductMgrIf
sessionId
- dataDesc
- categoryId
- manufacturerId
- languageId
- options
-
java.lang.Exception
public Products getAllProducts(java.lang.String sessionId, DataDescriptorIf dataDesc, int languageId) throws java.lang.Exception
ProductMgrIf
getAllProducts
in interface ProductMgrIf
sessionId
- dataDesc
- languageId
-
java.lang.Exception
public Products getAllProductsWithOptions(java.lang.String sessionId, DataDescriptorIf dataDesc, int languageId, FetchProductOptionsIf options) throws java.lang.Exception
ProductMgrIf
getAllProductsWithOptions
in interface ProductMgrIf
sessionId
- dataDesc
- languageId
- options
-
java.lang.Exception
public Products getProductsPerManufacturer(java.lang.String sessionId, DataDescriptorIf dataDesc, int manufacturerId, int languageId) throws java.lang.Exception
ProductMgrIf
getProductsPerManufacturer
in interface ProductMgrIf
sessionId
- dataDesc
- manufacturerId
- languageId
-
java.lang.Exception
public Products getProductsPerManufacturerWithOptions(java.lang.String sessionId, DataDescriptorIf dataDesc, int manufacturerId, int languageId, FetchProductOptionsIf options) throws java.lang.Exception
ProductMgrIf
getProductsPerManufacturerWithOptions
in interface ProductMgrIf
sessionId
- dataDesc
- manufacturerId
- languageId
- options
-
java.lang.Exception
protected Products getProductsAllCases(java.lang.String apiCall, java.lang.String sessionId, DataDescriptorIf dataDesc, int categoryId, int languageId, int manufacturerId, FetchProductOptionsIf options) throws java.lang.Exception
apiCall
- sessionId
- dataDesc
- categoryId
- languageId
- manufacturerId
- options
-
java.lang.Exception
protected void addReviewInfo(Product[] prodArray) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKException
prodArray
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
public int getTaxClassId(int productId) throws org.apache.torque.TorqueException, KKException, com.workingdogs.village.DataSetException
ProductMgrIf
getTaxClassId
in interface ProductMgrIf
productId
-
org.apache.torque.TorqueException
KKException
com.workingdogs.village.DataSetException
public Product getProduct(java.lang.String sessionId, int productId, int languageId) throws java.lang.Exception
ProductMgrIf
getProduct
in interface ProductMgrIf
sessionId
- productId
- languageId
-
java.lang.Exception
public Product getProductWithOptions(java.lang.String sessionId, int productId, int languageId, FetchProductOptionsIf options) throws java.lang.Exception
ProductMgrIf
getProductWithOptions
in interface ProductMgrIf
sessionId
- productId
- languageId
- options
-
java.lang.Exception
public Product getProduct(int customerId, int productId, int languageId) throws java.lang.Exception
ProductMgrIf
getProduct
in interface ProductMgrIf
customerId
- productId
- languageId
-
java.lang.Exception
public Product getProductWithOptions(int customerId, int productId, int languageId, FetchProductOptionsIf options) throws java.lang.Exception
ProductMgrIf
getProductWithOptions
in interface ProductMgrIf
customerId
- productId
- languageId
- options
-
java.lang.Exception
protected Product getProductWithOptions(int productId, Customer cust, int languageId, FetchProductOptionsIf options) throws java.lang.Exception
productId
- cust
- languageId
- options
-
java.lang.Exception
public void updateProductViewedCount(int productId, int languageId) throws java.lang.Exception
ProductMgrIf
updateProductViewedCount
in interface ProductMgrIf
productId
- languageId
-
java.lang.Exception
public Products getAllSpecials(java.lang.String sessionId, DataDescriptorIf dataDesc, int languageId) throws java.lang.Exception
ProductMgrIf
getAllSpecials
in interface ProductMgrIf
sessionId
- dataDesc
- languageId
-
java.lang.Exception
public Products getSpecialsPerCategory(java.lang.String sessionId, DataDescriptorIf dataDesc, int categoryId, boolean searchInSubCats, int languageId) throws java.lang.Exception
ProductMgrIf
getSpecialsPerCategory
in interface ProductMgrIf
sessionId
- dataDesc
- categoryId
- searchInSubCats
- languageId
-
java.lang.Exception
protected void addTax(Customer cust, Product[] prodArray) throws java.lang.Exception
cust
- prodArray
-
java.lang.Exception
protected void addTax(Customer cust, Product product) throws java.lang.Exception
cust
- product
-
java.lang.Exception
public Product[] getProductsFromIds(java.lang.String sessionId, java.util.ArrayList<java.lang.Integer> prodIdList, int languageId) throws java.lang.Exception
getProductsFromIds
in interface ProductMgrIf
sessionId
- prodIdList
- languageId
-
java.lang.Exception
public Product[] getProductsFromIdsWithOptions(java.lang.String sessionId, java.util.ArrayList<java.lang.Integer> prodIdList, int languageId, FetchProductOptionsIf options) throws java.lang.Exception
getProductsFromIdsWithOptions
in interface ProductMgrIf
sessionId
- prodIdList
- languageId
- options
-
java.lang.Exception
public Product[] getProductsFromIdsWithOptions(java.lang.String sessionId, DataDescriptorIf dataDesc, int[] prodIdArray, int languageId, FetchProductOptionsIf options) throws java.lang.Exception
getProductsFromIdsWithOptions
in interface ProductMgrIf
sessionId
- dataDesc
- prodIdArray
- languageId
- options
-
java.lang.Exception
public Products searchForProducts(java.lang.String sessionId, DataDescriptorIf dataDesc, ProductSearchIf prodSearch, int languageId) throws java.lang.Exception
ProductMgrIf
searchForProducts
in interface ProductMgrIf
sessionId
- dataDesc
- prodSearch
- languageId
-
java.lang.Exception
public Products searchForProductsWithOptions(java.lang.String sessionId, DataDescriptorIf dataDesc, ProductSearchIf prodSearch, int languageId, FetchProductOptionsIf options) throws java.lang.Exception
ProductMgrIf
searchForProductsWithOptions
in interface ProductMgrIf
sessionId
- dataDesc
- prodSearch
- languageId
- options
-
java.lang.Exception
protected boolean useSpecialPrice()
protected boolean fetchDescriptionsSeparately() throws KKException
KKException
protected Products searchForProductsPrivate(java.lang.String apiCall, java.lang.String sessionId, DataDescriptorIf dataDesc, ProductSearchIf prodSearch, java.util.ArrayList<java.lang.Integer> prodIdList, int languageId, FetchProductOptionsIf options) throws java.lang.Exception
apiCall
- sessionId
- dataDesc
- prodSearch
- prodIdList
- If not null, it must contain a list of productIds which will be added to an IN
clause.languageId
- options
-
java.lang.Exception
protected java.lang.String getCustomAttrs(int productId) throws java.lang.Exception
productId
-
java.lang.Exception
protected TierPrice[] getTierPrices(Product prod, int priceId, FetchProductOptionsIf options) throws org.apache.torque.TorqueException, KKException, com.workingdogs.village.DataSetException
prod
- priceId
- options
-
org.apache.torque.TorqueException
KKException
com.workingdogs.village.DataSetException
protected void setCriteriaWithStandardAttributes(KKCriteria c, int languageId, FetchProductOptionsIf options) throws org.apache.torque.TorqueException, KKException, com.workingdogs.village.DataSetException, java.lang.Exception
c
- languageId
- options
-
java.lang.Exception
com.workingdogs.village.DataSetException
KKException
org.apache.torque.TorqueException
protected void setCriteriaWithStandardAttributes(KKCriteria c, int languageId, boolean manuOuterJoin, boolean multiStoreSearch, FetchProductOptionsIf options, DataDescriptorIf dd) throws org.apache.torque.TorqueException, KKException, com.workingdogs.village.DataSetException, java.lang.Exception
c
- languageId
- manuOuterJoin
- multiStoreSearch
- options
- dd
-
java.lang.Exception
com.workingdogs.village.DataSetException
KKException
org.apache.torque.TorqueException
protected void setExtPriceProductCriteria(KKCriteria c, FetchProductOptionsIf options) throws KKException
c
- criteria objectoptions
- fetch product options
KKException
protected void setExtQuantityProductCriteria(KKCriteria c, FetchProductOptionsIf options) throws KKException
c
- criteria objectoptions
- fetch product options
KKException
protected void setExtQuantityProductQuantityCriteria(KKCriteria c, int productId, FetchProductOptionsIf options) throws KKException
c
- productId
- options
-
KKException
protected void setExtPriceProductAttributeCriteria(KKCriteria c, int productId, FetchProductOptionsIf options) throws KKException
c
- productId
- options
-
KKException
protected void setProductsSharedCriteria(KKCriteria c, boolean getPriceId) throws KKException
c
- getPriceId
-
KKException
protected void manageDataDescriptor(DataDescriptorIf dataDesc, org.apache.torque.util.Criteria c, java.lang.String price)
manageDataDescriptor(DataDescriptorIf dataDesc, Criteria c, String price, boolean addConstraints)
with addConstraints
set to true.
dataDesc
- c
- price
- protected void manageDataDescriptor(DataDescriptorIf dataDesc, org.apache.torque.util.Criteria c, java.lang.String price, boolean addConstraints)
dataDesc
- c
- price
- addConstraints
- If set to true, the custom field constraints are added.protected int getCount(java.lang.String sessionId, java.lang.String apiCall, DataDescriptorIf dataDesc, ProductSearchIf prodSearch, KKCriteria c, boolean fixQuery, boolean tagCount, boolean multiStoreSearch, int languageId) throws java.lang.Exception
sessionId
- apiCall
- dataDesc
- prodSearch
- c
- fixQuery
- tagCount
- multiStoreSearch
- languageId
-
java.lang.Exception
public Option getOption(int productId, int optionId, int optionValueId, int priceId, int languageId, FetchProductOptionsIf options) throws java.lang.Exception
getOption
in interface ProductMgrIf
productId
- optionId
- optionValueId
- priceId
- languageId
-
java.lang.Exception
public Product[] getBestSellersWithOptions(DataDescriptorIf dataDesc, int categoryId, int languageId, FetchProductOptionsIf options) throws java.lang.Exception
getBestSellersWithOptions
in interface ProductMgrIf
dataDesc
- categoryId
- languageId
- options
-
java.lang.Exception
protected void addProductDescriptions(Product[] prods, int langId, boolean multiStoreSearch) throws java.lang.Exception
prods
- langId
- multiStoreSearch
-
java.lang.Exception
public Product[] getBestSellers(DataDescriptorIf dataDesc, int categoryId, int languageId) throws java.lang.Exception
getBestSellers
in interface ProductMgrIf
java.lang.Exception
public Product[] getOrderHistoryWithOptions(DataDescriptorIf dataDesc, java.lang.String sessionId, int languageId, FetchProductOptionsIf options) throws java.lang.Exception
getOrderHistoryWithOptions
in interface ProductMgrIf
dataDesc
- sessionId
- languageId
- options
-
java.lang.Exception
public Product[] getOrderHistory(DataDescriptorIf dataDesc, java.lang.String sessionId, int languageId) throws java.lang.Exception
ProductMgrIf
getOrderHistory
in interface ProductMgrIf
java.lang.Exception
public Product[] getAlsoPurchasedWithOptions(java.lang.String sessionId, DataDescriptorIf dataDesc, int productId, int languageId, FetchProductOptionsIf options) throws java.lang.Exception
getAlsoPurchasedWithOptions
in interface ProductMgrIf
sessionId
- dataDesc
- productId
- languageId
- options
-
java.lang.Exception
public Product[] getAlsoPurchased(java.lang.String sessionId, DataDescriptorIf dataDesc, int productId, int languageId) throws java.lang.Exception
ProductMgrIf
getAlsoPurchased
in interface ProductMgrIf
java.lang.Exception
public Products getRelatedProducts(java.lang.String sessionId, DataDescriptorIf dataDesc, int productId, int relationType, int languageId) throws java.lang.Exception
getRelatedProducts
in interface ProductMgrIf
sessionId
- dataDesc
- productId
- relationType
- languageId
-
java.lang.Exception
public Products getRelatedProductsWithOptions(java.lang.String sessionId, DataDescriptorIf dataDesc, int productId, int relationType, int languageId, FetchProductOptionsIf options) throws java.lang.Exception
ProductMgrIf
getRelatedProductsWithOptions
in interface ProductMgrIf
sessionId
- dataDesc
- productId
- relationType
- languageId
- options
-
java.lang.Exception
protected Products getRelatedProducts(java.lang.String sessionId, DataDescriptorIf dataDesc, int productId, int relationType, int languageId, java.util.HashMap<java.lang.String,Product> bundleProdMap, int loop, int quantity, FetchProductOptionsIf options) throws java.lang.Exception
sessionId
- dataDesc
- productId
- relationType
- languageId
- bundleProdMap
- HashMap used to keep track of products during recursion.loop
- Used to stop recursion forever. Throws an exception if recursion occurs when a
bundle product is set to be a product within the bundle.quantity
- Used to multiply quantity during recursion. i.e. A bundled product may have a
quantity of two and itself be a bundle. This means that all of the products in its
bundle have to be multiplied by two.options
-
java.lang.Exception
public java.lang.String getSku(OrderProductIf orderProd) throws KKException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
getSku
in interface ProductMgrIf
orderProd
-
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
protected java.lang.String getSku(int productId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKException
productId
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
public int updateProductQuantity(int productId, OptionIf[] opts, int quantitySold, boolean setStatus) throws java.lang.Exception
updateProductQuantity
in interface ProductMgrIf
productId
- opts
- quantitySold
- setStatus
-
java.lang.Exception
public int updateProductQuantity(int productId, OptionIf[] opts, java.lang.String encodedOptions, int quantitySold, boolean setStatus) throws java.lang.Exception
updateProductQuantity
in interface ProductMgrIf
productId
- opts
- encodedOptions
- quantitySold
- setStatus
-
java.lang.Exception
public int updateProductQuantityWithOptions(int productId, OptionIf[] opts, java.lang.String encodedOptions, int quantitySold, boolean setStatus, FetchProductOptionsIf options) throws java.lang.Exception
updateProductQuantityWithOptions
in interface ProductMgrIf
productId
- opts
- encodedOptions
- quantitySold
- setStatus
- options
-
java.lang.Exception
protected void updateBundleProductQuantityWithOptions(int productId, int quantitySold, boolean setStatus, FetchProductOptionsIf options) throws java.lang.Exception
productId
- quantitySold
- setStatus
- options
-
java.lang.Exception
protected int decProductQuantitiesWithOptions(int productId, int quantitySold, boolean setStatus, boolean onlyOrdered, FetchProductOptionsIf options) throws java.lang.Exception
productId
- quantitySold
- setStatus
- onlyOrdered
- options
-
java.lang.Exception
public ProductQuantityIf getProductQuantity(java.lang.String encodedProductId) throws java.lang.Exception
getProductQuantity
in interface ProductMgrIf
encodedProductId
-
java.lang.Exception
public ProductQuantityIf getProductQuantityWithOptions(java.lang.String encodedProductId, FetchProductOptionsIf options) throws java.lang.Exception
getProductQuantityWithOptions
in interface ProductMgrIf
encodedProductId
- options
-
java.lang.Exception
public java.lang.String createProductQuantityEncodedKeyFromOptions(OptionIf[] opts)
createProductQuantityEncodedKeyFromOptions
in interface ProductMgrIf
opts
-
public OptionIf[] createOptionsFromProductQuantityEncodedKey(java.lang.String encodedKey)
createOptionsFromProductQuantityEncodedKey
in interface ProductMgrIf
encodedKey
-
public ProductQuantity createProductQuantityEncodedKeyFromEncodedProductId(java.lang.String encodedProductId) throws KKException
createProductQuantityEncodedKeyFromEncodedProductId
in interface ProductMgrIf
encodedProductId
-
KKException
public java.lang.String createEncodedProductIdFromProductQuantityEncodedKey(int productId, java.lang.String productQuantityEncodedKey)
createEncodedProductIdFromProductQuantityEncodedKey
in interface ProductMgrIf
productId
- productQuantityEncodedKey
-
protected ProductQuantityIf getProductQuantityWithOptions(int productId, FetchProductOptionsIf options) throws java.lang.Exception
productId
- options
-
java.lang.Exception
protected ProductQuantityIf[] getProductQuantitiesPerProductWithOptions(int productId, FetchProductOptionsIf options) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKException
productId
- options
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
protected ProductQuantityIf getProductQuantityPerProductWithOptions(int productId, java.lang.String encodedOptionValues, FetchProductOptionsIf options) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKException
productId
- encodedOptionValues
- options
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
protected int getProductType(int productId) throws org.apache.torque.TorqueException, KKException, com.workingdogs.village.DataSetException
productId
-
org.apache.torque.TorqueException
KKException
com.workingdogs.village.DataSetException
public int insertDigitalDownload(java.lang.String sessionId, int productId) throws java.lang.Exception
insertDigitalDownload
in interface ProductMgrIf
sessionId
- productId
-
java.lang.Exception
public int insertDigitalDownload(int customerId, int productId) throws java.lang.Exception
insertDigitalDownload
in interface ProductMgrIf
productId
-
java.lang.Exception
public int insertGiftCertificateDigitalDownload(int customerId, int productId, java.lang.String filePath) throws java.lang.Exception
insertGiftCertificateDigitalDownload
in interface ProductMgrIf
customerId
- productId
- filePath
-
java.lang.Exception
protected int getMaxDownloadDays(Product prod) throws org.apache.torque.TorqueException, KKException, com.workingdogs.village.DataSetException, java.lang.Exception
prod
-
org.apache.torque.TorqueException
KKException
com.workingdogs.village.DataSetException
java.lang.Exception
protected java.util.Date getExpiryDate(int maxDownloadDays)
maxDownloadDays
-
protected int getMaxNumDownloads(Product prod) throws org.apache.torque.TorqueException, KKException, com.workingdogs.village.DataSetException, java.lang.Exception
prod
-
org.apache.torque.TorqueException
KKException
com.workingdogs.village.DataSetException
java.lang.Exception
public DigitalDownload[] getDigitalDownloads(java.lang.String sessionId) throws java.lang.Exception
getDigitalDownloads
in interface ProductMgrIf
sessionId
-
java.lang.Exception
protected DigitalDownload getDigitalDownload(int customerId, int productId) throws KKException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
customerId
- productId
-
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public DigitalDownload getDigitalDownloadById(java.lang.String sessionId, int digitalDownloadId) throws java.lang.Exception
getDigitalDownloadById
in interface ProductMgrIf
sessionId
- digitalDownloadId
-
java.lang.Exception
public DigitalDownload getDigitalDownloadById(int digitalDownloadId) throws KKException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
getDigitalDownloadById
in interface ProductMgrIf
digitalDownloadId
-
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public void editDigitalDownload(java.lang.String sessionId, DigitalDownloadIf digitalDownload) throws java.lang.Exception
editDigitalDownload
in interface ProductMgrIf
sessionId
- digitalDownload
-
java.lang.Exception
public void editDigitalDownload(DigitalDownloadIf digitalDownload) throws KKException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
editDigitalDownload
in interface ProductMgrIf
digitalDownload
-
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
protected void setDigitalDownloadCriteria(KKCriteria c) throws KKException
c
-
KKException
public int updateDigitalDownloadCount(java.lang.String sessionId, int productId) throws java.lang.Exception
updateDigitalDownloadCount
in interface ProductMgrIf
sessionId
- productId
-
java.lang.Exception
public int updateDigitalDownloadCountById(java.lang.String sessionId, int digitalDownloadId) throws java.lang.Exception
updateDigitalDownloadCountById
in interface ProductMgrIf
sessionId
- digitalDownloadId
-
java.lang.Exception
protected void deleteDigitalDownload(DigitalDownload dd) throws org.apache.torque.TorqueException, KKException
dd
-
org.apache.torque.TorqueException
KKException
protected Product validateDigitalDownload(int productId) throws java.lang.Exception
productId
-
java.lang.Exception
public int getPriceId(Customer cust)
getPriceId
in interface ProductMgrIf
cust
-
protected void setProductPrice(Product prod, int priceId) throws KKException
prod
- priceId
-
KKException
protected void setOptionPrice(Option opt, Product prod, int productId, int priceId) throws KKException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
opt
- prod
- productId
- priceId
-
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
protected ProductQuantityIf getBundleProductQuantityWithOptions(int productId, FetchProductOptionsIf options) throws java.lang.Exception
productId
- options
-
java.lang.Exception
public TagGroup[] getTagGroupsPerCategory(int categoryId, boolean getProdCount, int languageId) throws java.lang.Exception
getTagGroupsPerCategory
in interface ProductMgrIf
categoryId
- getProdCount
- languageId
-
java.lang.Exception
public TagIf[] getTagsPerCategory(int categoryId, boolean getProdCount, int languageId) throws java.lang.Exception
getTagsPerCategory
in interface ProductMgrIf
categoryId
- getProdCount
- languageId
-
java.lang.Exception
public TagGroupIf getTagGroup(int tagGroupId, boolean getProdCount, int languageId) throws java.lang.Exception
getTagGroup
in interface ProductMgrIf
tagGroupId
- getProdCount
- languageId
-
java.lang.Exception
public TagIf getTag(int tagId, boolean getProdCount, int languageId) throws java.lang.Exception
getTag
in interface ProductMgrIf
tagId
- getProdCount
- languageId
-
java.lang.Exception
protected TagIf[] getTagsPerTagGroup(int tagGroupId, boolean getProdCount, int languageId) throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, KKException
tagGroupId
- getProdCount
- languageId
-
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKException
protected void synchronizeTagProductCount() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
protected java.util.Date getLastAddedDateFromTagToProduct() throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, KKException
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKException
protected int getTagToProductCount() throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, KKException
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKException
protected void getProductCountForTag(TagIf tag) throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, KKException
tag
-
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKException
protected void setTagCriteriaWithStandardAttributes(KKCriteria c, int languageId)
c
- languageId
- protected void setTagGroupCriteriaWithStandardAttributes(KKCriteria c, int languageId)
c
- languageId
- public int getProductReorderLevel(int productId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKException
getProductReorderLevel
in interface ProductMgrIf
productId
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
public boolean doesProductExist(int productId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKException
doesProductExist
in interface ProductMgrIf
productId
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
public int getPaymentScheduleId(int productId) throws org.apache.torque.TorqueException, KKException, com.workingdogs.village.DataSetException
ProductMgrIf
getPaymentScheduleId
in interface ProductMgrIf
productId
-
org.apache.torque.TorqueException
KKException
com.workingdogs.village.DataSetException
public Product getProductPerSku(java.lang.String sessionId, java.lang.String sku, int languageId) throws java.lang.Exception
getProductPerSku
in interface ProductMgrIf
sessionId
- sku
- languageId
-
java.lang.Exception
public Product getProductPerSkuWithOptions(java.lang.String sessionId, java.lang.String sku, int languageId, FetchProductOptionsIf options) throws java.lang.Exception
getProductPerSkuWithOptions
in interface ProductMgrIf
sessionId
- sku
- languageId
- options
-
java.lang.Exception
protected boolean doesExtQuantityExist(int productId, java.lang.String encodedOptionValues, java.lang.String catalogId, KKCriteria selectC) throws org.apache.torque.TorqueException
productId
- encodedOptionValues
- catalogId
- selectC
-
org.apache.torque.TorqueException
protected void insertExtQuantity(int productId, java.lang.String encodedOptionValues, int quantity, java.lang.String catalogId, KKCriteria insertC) throws org.apache.torque.TorqueException
productId
- encodedOptionValues
- quantity
- catalogId
- insertC
-
org.apache.torque.TorqueException
protected void editExtQuantity(int productId, java.lang.String encodedOptionValues, int quantity, java.lang.String catalogId, KKCriteria selectC, KKCriteria updateC) throws org.apache.torque.TorqueException
productId
- encodedOptionValues
- quantity
- catalogId
- selectC
- updateC
-
org.apache.torque.TorqueException
public Address[] getAddressesPerProduct(int productId) throws java.lang.Exception
getAddressesPerProduct
in interface ProductMgrIf
productId
-
java.lang.Exception
public void refreshConfigs() throws java.lang.Exception
refreshConfigs
in interface ProductMgrIf
java.lang.Exception
public ProdCustAttr[] getCustomAttrsFromXML(java.lang.String xml)
xml
- The custom attribute data in xml format
protected java.util.List<com.workingdogs.village.Record> sendQuery(java.lang.String sessionId, java.lang.String apiCall, KKCriteria criteria, DataDescriptorIf dataDesc, ProductSearchIf prodSearch, int languageId, boolean fixQuery) throws java.lang.Exception
sessionId
- apiCall
- criteria
- dataDesc
- prodSearch
- fixQuery
- languageId
-
java.lang.Exception
protected java.lang.String beforeSendQuery(java.lang.String sessionId, java.lang.String apiCall, java.lang.String queryString, DataDescriptorIf dataDesc, ProductSearchIf prodSearch, int languageId) throws java.lang.Exception
sessionId
- The sessionId of the logged in userapiCall
- Name of the Api call sending the queryqueryString
- Query string that will be sent to the databasedataDesc
- DataDescriptor objectprodSearch
- ProductSearch object which may be nulllanguageId
- Language id
java.lang.Exception
protected KKCriteria beforeSendCriteria(java.lang.String sessionId, java.lang.String apiCall, KKCriteria criteria, DataDescriptorIf dataDesc, ProductSearchIf prodSearch, int languageId) throws java.lang.Exception
sessionId
- The sessionId of the logged in userapiCall
- Name of the Api call sending the querycriteria
- KKCriteria object that will be used to create the query stringdataDesc
- DataDescriptor objectprodSearch
- ProductSearch object which may be nulllanguageId
- Language id
java.lang.Exception
public static boolean isCustomAttrAnOracleCLOB()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |