|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdminProductMgrIf
AdminProductMgrIf
Method Summary | |
---|---|
void |
addRelatedProducts(AdminProduct[] products,
int productId,
int relationType)
Add the array of products to the product defined by productId. |
int |
copyProductToStore(int productId,
java.lang.String storeIdFrom,
java.lang.String storeIdTo,
AdminCopyProductOptions options)
Copies a product from the store referenced by storeIdFrom to the store referenced by storeIdTo . |
void |
deleteCatalog(int catalogId)
Delete a Catalog definition from the database |
void |
deleteDirectProductsPerCategory(int categoryId)
If the category has any products directly associated with it, then they are deleted. |
void |
deleteProduct(int productId)
Delete the product referenced to by productId. |
void |
deleteProductAttribute(int productAttributeId)
Delete the productAttribute |
void |
deleteProductAttributesPerProduct(int productId)
Delete the productAttributes Per product |
void |
deleteProductOptions(int productOptionId)
Delete a product option record for all languages and all of its records in the options values to options table and all of its values |
void |
deleteProductOptionValues(int productOptionValueId)
Delete a product option value record for all languages and all of its records in the options values to options table |
void |
deleteProductsPerCategory(int categoryId)
Products are deleted for the category and sub category. |
void |
deleteProductsPerManufacturer(int manufacturerId)
If the manufacturer has any products directly associated with it, then they are deleted. |
void |
deleteSpecial(int specialId)
Delete the special referenced to by specialId. |
boolean |
doesProductExist(int productId)
Return true if the product exists. |
void |
editProduct(AdminProduct product)
Edit a product and its product description objects |
void |
editProductAttribute(AdminProductAttribute prodAttr)
Edits the product attribute |
void |
editProductOption(AdminProductOption productOption)
Edit a product option |
void |
editProductOptionValue(AdminProductOptionValue productOptionValue)
Edit a product option value |
void |
editProductWithOptions(AdminProduct product,
AdminProductMgrOptions mgrOptions)
Edit a product and its product description objects. |
void |
editSpecial(AdminSpecial special)
Edit a special |
AdminProductOption[] |
getAllProductOptions(int languageId)
Returns a list of product options. |
AdminProductOptionValue[] |
getAllProductOptionValues(int languageId)
Get an array of all the product option value objects for the specified language |
AdminProducts |
getAllSpecials(AdminDataDescriptor dataDesc,
int languageId)
Return all products with a special price |
AdminProduct |
getBundleProductDetails(int bundleId,
AdminProduct[] bundledProductsArray,
AdminDiscount discount)
This method is used to calculate some attributes of a bundle product based on the products that the bundle contains. |
AdminCatalog |
getCatalogById(int catalogId)
Fetch a catalog from the database referenced by the catalog id |
AdminCatalogSearchResult |
getCatalogs(AdminCatalogSearch search,
int offset,
int size)
Get an array of catalogs matching the search criteria from the database |
int |
getNextProductOptionId()
Get the next id to use when inserting a ProductOption record |
int |
getNextProductOptionValuesId()
Get the next id to use when inserting a ProductOptionValue record |
AdminProduct |
getProduct(int productId)
Gets a product object with full details |
AdminProduct |
getProduct(int productId,
boolean getBundleQuantity,
AdminProductMgrOptions mgrOptions,
boolean allStores)
Gets a product object with full details. |
AdminProductAttribute[] |
getProductAttributesPerProduct(int productId)
Gets all of the product attributes for the product |
java.util.Calendar |
getProductAvailability(java.lang.String sku,
int id)
A method that directly returns the date when a product will be available. |
java.util.Calendar |
getProductAvailabilityWithOptions(java.lang.String sku,
int id,
AdminProductMgrOptions mgrOptions)
A method that directly returns the date when a product will be available. |
AdminProductOptionSearchResult |
getProductOptions(AdminProductOptionSearch search,
int offset,
int size)
This returns an AdminProductOptionSearchResult object. |
AdminProductOption[] |
getProductOptionsPerId(int productOptionId)
Returns an array of productOptions. |
AdminProductOption[] |
getProductOptionsPerName(java.lang.String name,
int langId)
Returns an array of productOptions with the specified name and languageId |
AdminProductOptionValue[] |
getProductOptionValuesPerId(int productOptionValueId)
Returns an array of productOptionValues. |
AdminProductOptionValue[] |
getProductOptionValuesPerName(java.lang.String name,
int languageId)
Get an array of product option value objects with the specified name and language |
AdminProductOptionValue[] |
getProductOptionValuesPerOption(int productOptionId,
int languageId)
Get an array of product option value objects for a product option object |
AdminProdOptionValToProdOption[] |
getProductOptionValueToProductOptions(AdminProdOptionValToProdOption prodOptValToProdOpt)
Gets an array of AdminProdOptionValToProdOption objects that have the specified optionId and OptionValueId. |
int |
getProductQuantity(java.lang.String sku,
int id)
A method that allows you to directly retrieve the quantity of a product. |
int |
getProductQuantityWithOptions(java.lang.String sku,
int id,
AdminProductMgrOptions mgrOptions)
A method that allows you to directly retrieve the quantity of a product. |
AdminProducts |
getProductsPerCategory(AdminDataDescriptor dataDesc,
int categoryId,
int languageId)
Get products for the category referenced by categoryId. |
AdminProducts |
getProductsPerCategoryWithOptions(AdminDataDescriptor dataDesc,
int categoryId,
int languageId,
AdminProductMgrOptions mgrOptions)
Get products for the category referenced by categoryId. |
AdminProducts |
getProductsPerManufacturer(AdminDataDescriptor dataDesc,
int manufacturerId,
int languageId)
Get products for the manufacturer referenced by manufacturerId. |
AdminProducts |
getProductsPerManufacturerWithOptions(AdminDataDescriptor dataDesc,
int manufacturerId,
int languageId,
AdminProductMgrOptions mgrOptions)
Get products for the manufacturer referenced by manufacturerId. |
AdminProductToStore[] |
getProductsToStores(AdminDataDescriptor dataDesc,
AdminSearch search)
Returns an array of AdminProductToStore objects for the specified store |
AdminProducts |
getProductsToSynchronize(java.lang.String storeIdFrom,
java.lang.String storeIdTo,
AdminDataDescriptor dataDesc,
int languageId,
AdminSynchProductsOptions options,
AdminProductMgrOptions mgrOptions)
This API call is used to get a list of products that are out of sync between two stores. |
AdminProduct |
getProductWithOptions(int productId,
AdminProductMgrOptions mgrOptions)
Get the product referenced by this product id, from the database. |
AdminProducts |
getRelatedProducts(AdminDataDescriptor dataDesc,
int productId,
int relationType,
int languageId)
Find products related to the product defined by the productId parameter. |
AdminProducts |
getRelatedProductsWithOptions(AdminDataDescriptor dataDesc,
int productId,
int relationType,
int languageId,
AdminProductMgrOptions mgrOptions)
Find products related to the product defined by the productId parameter. |
java.lang.String |
getSku(AdminOrderProduct orderProd)
Get the SKU for an orderProduct object. |
java.lang.String[] |
getSkus(AdminOrderProduct[] orderProds)
Get the SKUs for an array orderProduct objects. |
AdminSpecial |
getSpecial(int specialId)
Gets a special object |
AdminProducts |
getSpecialsPerCategory(AdminDataDescriptor dataDesc,
int categoryId,
boolean searchInSubCats,
int languageId)
Return all products with a special price for a category referenced by categoryId |
int |
importDigitalDownload(AdminDigitalDownload digDownload)
Import a new digital download record. |
int |
insertCatalog(AdminCatalog catalog)
Insert a new catalog |
void |
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 |
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. |
int |
insertProduct(AdminProduct product)
Insert a product |
int |
insertProductAttribute(AdminProductAttribute prodAttr)
Inserts the product attribute |
void |
insertProductOption(AdminProductOption productOption)
Insert a product option |
int |
insertProductOptions(AdminProductOption[] productOptions)
Inserts an array of product options which will all have the same id but different languages. |
void |
insertProductOptionValue(AdminProductOptionValue productOptionValue,
int productOptionId)
Insert a product option value for a product option |
int |
insertProductOptionValues(AdminProductOptionValue[] productOptionValues,
int productOptionId)
Inserts an array of product option values which will all have the same id but different languages. |
int |
insertProductsOptionsValuesToProductsOptions(AdminProdOptionValToProdOption prodOptValToProdOpt)
Insert a product option value to product option record |
void |
insertProductsToStores(AdminProductToStore[] productToStores)
Inserts an array of AdminProductToStore objects |
int |
insertProductWithOptions(AdminProduct product,
AdminProductMgrOptions mgrOptions)
Insert a product |
int |
insertSpecial(AdminSpecial special)
Insert a special |
void |
removeProductsToStores(AdminProductToStore[] productToStores)
Removes an array of AdminProductToStore objects |
void |
removeRelatedProducts(int productId,
int relationType)
Removes related products from the product defined by productId. |
AdminDigitalDownloadSearchResult |
searchDigitalDownloads(AdminDigitalDownloadSearch search,
int offset,
int size)
Retrieve the Digital Download records matching the search criteria |
AdminProducts |
searchForProducts(AdminDataDescriptor dataDesc,
AdminProductSearch prodSearch,
int languageId)
Search for products |
AdminProducts |
searchForProductsWithOptions(AdminDataDescriptor dataDesc,
AdminProductSearch prodSearch,
int languageId,
AdminProductMgrOptions mgrOptions)
Search for products |
void |
setDigitalDownloadCriteria(org.apache.torque.util.Criteria c)
Sets the criteria with the standard attributes so as not to have to repeat this code many times. |
void |
setProductAvailability(java.lang.String sku,
int id,
java.util.Calendar dateAvailable)
A method that allows you to modify the date when a product will be available, through the API without needing to fetch the complete product and edit it. |
void |
setProductAvailabilityWithOptions(java.lang.String sku,
int id,
java.util.Calendar dateAvailable,
AdminProductMgrOptions mgrOptions)
A method that allows you to modify the date when a product will be available, through the API without needing to fetch the complete product and edit it. |
void |
setProductQuantity(java.lang.String sku,
int id,
int quantity,
int operation)
A method that allows you to modify the quantity of a product through the API without needing to fetch the complete product and edit it. |
void |
setProductQuantityWithOptions(java.lang.String sku,
int id,
int quantity,
int operation,
AdminProductMgrOptions mgrOptions)
A method that allows you to modify the quantity of a product through the API without needing to fetch the complete product and edit it. |
void |
updateCatalog(AdminCatalog catalog)
Update an existing catalog |
Method Detail |
---|
int insertProduct(AdminProduct product) throws java.lang.Exception
product
-
java.lang.Exception
int insertProductWithOptions(AdminProduct product, AdminProductMgrOptions mgrOptions) throws java.lang.Exception
product
- mgrOptions
- It defines whether to insert prices and quantity for the catalog defined by the
catalogId.
java.lang.Exception
int insertSpecial(AdminSpecial special) throws java.lang.Exception
special
-
java.lang.Exception
void editSpecial(AdminSpecial special) throws java.lang.Exception
special
-
java.lang.Exception
void editProduct(AdminProduct product) throws java.lang.Exception
product
-
java.lang.Exception
void editProductWithOptions(AdminProduct product, AdminProductMgrOptions mgrOptions) throws java.lang.Exception
product
- mgrOptions
- Allows you to define whether the quantity and prices can have different values
depending on the catalogId. May be set to null.
java.lang.Exception
boolean doesProductExist(int productId) throws org.apache.torque.TorqueException, KKAdminException
productId
-
org.apache.torque.TorqueException
KKAdminException
AdminProduct getProduct(int productId) throws java.lang.Exception
productId
-
java.lang.Exception
AdminProduct getProduct(int productId, boolean getBundleQuantity, AdminProductMgrOptions mgrOptions, boolean allStores) throws java.lang.Exception
productId
- getBundleQuantity
- When set to true we calculate the quantity of a product if it is a bundlemgrOptions
- allStores
- When set to true we don't put in the store constraints in multi store shared
product mode
java.lang.Exception
AdminProduct getProductWithOptions(int productId, AdminProductMgrOptions mgrOptions) throws java.lang.Exception
productId
- mgrOptions
- It defines whether to use prices and quantity for the catalog defined by the
catalogId.
java.lang.Exception
AdminSpecial getSpecial(int specialId) throws java.lang.Exception
specialId
-
java.lang.Exception
void deleteSpecial(int specialId) throws java.lang.Exception
specialId
-
java.lang.Exception
void deleteProduct(int productId) throws java.lang.Exception
productId
-
java.lang.Exception
AdminProducts getProductsPerCategory(AdminDataDescriptor dataDesc, int categoryId, int languageId) throws java.lang.Exception
dataDesc
- categoryId
- languageId
-
java.lang.Exception
AdminProducts getProductsPerCategoryWithOptions(AdminDataDescriptor dataDesc, int categoryId, int languageId, AdminProductMgrOptions mgrOptions) throws java.lang.Exception
dataDesc
- categoryId
- languageId
- mgrOptions
- Allows you to define whether the quantity and prices can have different values
depending on the catalogId. May be set to null.
java.lang.Exception
AdminProducts getProductsPerManufacturer(AdminDataDescriptor dataDesc, int manufacturerId, int languageId) throws java.lang.Exception
dataDesc
- manufacturerId
- languageId
-
java.lang.Exception
AdminProducts getProductsPerManufacturerWithOptions(AdminDataDescriptor dataDesc, int manufacturerId, int languageId, AdminProductMgrOptions mgrOptions) throws java.lang.Exception
dataDesc
- manufacturerId
- languageId
- mgrOptions
- Allows you to define whether the quantity and prices can have different values
depending on the catalogId. May be set to null.
java.lang.Exception
AdminProducts searchForProducts(AdminDataDescriptor dataDesc, AdminProductSearch prodSearch, int languageId) throws java.lang.Exception
dataDesc
- prodSearch
- languageId
-
java.lang.Exception
AdminProducts searchForProductsWithOptions(AdminDataDescriptor dataDesc, AdminProductSearch prodSearch, int languageId, AdminProductMgrOptions mgrOptions) throws java.lang.Exception
dataDesc
- prodSearch
- languageId
- mgrOptions
- It defines whether to use prices and quantity for the catalog defined by the
catalogId.
java.lang.Exception
void deleteProductsPerCategory(int categoryId) throws java.lang.Exception
categoryId
-
java.lang.Exception
void deleteDirectProductsPerCategory(int categoryId) throws java.lang.Exception
categoryId
-
java.lang.Exception
void deleteProductsPerManufacturer(int manufacturerId) throws java.lang.Exception
manufacturerId
-
java.lang.Exception
AdminProducts getAllSpecials(AdminDataDescriptor dataDesc, int languageId) throws java.lang.Exception
dataDesc
- languageId
-
java.lang.Exception
AdminProducts getSpecialsPerCategory(AdminDataDescriptor dataDesc, int categoryId, boolean searchInSubCats, int languageId) throws java.lang.Exception
dataDesc
- categoryId
- searchInSubCats
- languageId
-
java.lang.Exception
AdminProductOption[] getAllProductOptions(int languageId) throws java.lang.Exception
languageId
- specifies that the product options should be returned for this language. Can
specify AdminLanguageMgr.DEFAULT_LANG to specify the default language, or specify
AdminLanguageMgr.ALL_LANGUAGES to specify all languages
java.lang.Exception
AdminProductOptionValue[] getAllProductOptionValues(int languageId) throws java.lang.Exception
languageId
- specifies that the product option values should be returned for this language. Can
specify AdminLanguageMgr.DEFAULT_LANG to specify the default language, or specify
AdminLanguageMgr.ALL_LANGUAGES to specify all languages
java.lang.Exception
AdminProductOptionSearchResult getProductOptions(AdminProductOptionSearch search, int offset, int size) throws java.lang.Exception
search
- The search parameters. The languageId determines in which language the product
options are returned. It can be set to AdminLanguageMgr.DEFAULT_LANG to specify
the default language, or to AdminLanguageMgr.ALL_LANGUAGES to specify all
languages.offset
- the offset in the dbsize
- the number of records from the specified offset
java.lang.Exception
AdminProductOptionValue[] getProductOptionValuesPerOption(int productOptionId, int languageId) throws java.lang.Exception
productOptionId
- languageId
- specifies that the product option values should be returned for this language. Can
specify AdminLanguageMgr.DEFAULT_LANG to specify the default language, or specify
AdminLanguageMgr.ALL_LANGUAGES to specify all languages
java.lang.Exception
AdminProductOptionValue[] getProductOptionValuesPerName(java.lang.String name, int languageId) throws java.lang.Exception
name
- product option value namelanguageId
- language id (can use AdminLanguageMgr.DEFAULT_LANG to get the default language)
java.lang.Exception
AdminProductAttribute[] getProductAttributesPerProduct(int productId) throws java.lang.Exception
productId
-
java.lang.Exception
void deleteProductAttribute(int productAttributeId) throws java.lang.Exception
productAttributeId
-
java.lang.Exception
void deleteProductAttributesPerProduct(int productId) throws java.lang.Exception
productId
-
java.lang.Exception
void editProductAttribute(AdminProductAttribute prodAttr) throws java.lang.Exception
prodAttr
-
java.lang.Exception
int insertProductAttribute(AdminProductAttribute prodAttr) throws java.lang.Exception
prodAttr
-
java.lang.Exception
void deleteProductOptions(int productOptionId) throws java.lang.Exception
productOptionId
-
java.lang.Exception
void deleteProductOptionValues(int productOptionValueId) throws java.lang.Exception
productOptionValueId
-
java.lang.Exception
AdminProductOption[] getProductOptionsPerId(int productOptionId) throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, KKAdminException
productOptionId
-
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException
AdminProductOption[] getProductOptionsPerName(java.lang.String name, int langId) throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, KKAdminException
name
- Product Option NamelangId
- Language Id
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException
AdminProdOptionValToProdOption[] getProductOptionValueToProductOptions(AdminProdOptionValToProdOption prodOptValToProdOpt) throws java.lang.Exception
prodOptValToProdOpt
- the AdminProdOptionValToProdOption to look up. Only uses the optionId and
OptionValueId in this object
java.lang.Exception
AdminProductOptionValue[] getProductOptionValuesPerId(int productOptionValueId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
productOptionValueId
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
int insertProductOptions(AdminProductOption[] productOptions) throws java.lang.Exception
productOptions
-
java.lang.Exception
void insertProductOption(AdminProductOption productOption) throws java.lang.Exception
productOption
-
java.lang.Exception
void editProductOption(AdminProductOption productOption) throws java.lang.Exception
productOption
-
java.lang.Exception
int insertProductOptionValues(AdminProductOptionValue[] productOptionValues, int productOptionId) throws java.lang.Exception
productOptionValues
- productOptionId
-
java.lang.Exception
void insertProductOptionValue(AdminProductOptionValue productOptionValue, int productOptionId) throws java.lang.Exception
productOptionValue
- productOptionId
- The product option id for inserting a record into the
Products_Options_Values_To_Products_Options table. If this is set to -1, no such
join record is inserted.
java.lang.Exception
int insertProductsOptionsValuesToProductsOptions(AdminProdOptionValToProdOption prodOptValToProdOpt) throws java.lang.Exception
prodOptValToProdOpt
- a AdminProdOptionValToProdOption object to insert. The optionId and optionValueId
defined in the object must be valid otherwise an exception is thrown.
java.lang.Exception
void editProductOptionValue(AdminProductOptionValue productOptionValue) throws java.lang.Exception
productOptionValue
-
java.lang.Exception
int getNextProductOptionId() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
int getNextProductOptionValuesId() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
AdminProducts getRelatedProducts(AdminDataDescriptor dataDesc, int productId, int relationType, int languageId) throws java.lang.Exception
dataDesc
- productId
- relationType
- languageId
-
java.lang.Exception
AdminProducts getRelatedProductsWithOptions(AdminDataDescriptor dataDesc, int productId, int relationType, int languageId, AdminProductMgrOptions mgrOptions) throws java.lang.Exception
dataDesc
- productId
- relationType
- languageId
- mgrOptions
- It defines whether to use prices and quantity for the catalog defined by the
catalogId.
java.lang.Exception
void removeRelatedProducts(int productId, int relationType) throws java.lang.Exception
productId
- relationType
-
java.lang.Exception
void addRelatedProducts(AdminProduct[] products, int productId, int relationType) throws org.apache.torque.TorqueException, KKAdminException
products
- productId
- relationType
-
org.apache.torque.TorqueException
KKAdminException
java.lang.String[] getSkus(AdminOrderProduct[] orderProds) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
orderProds
-
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException
java.lang.String getSku(AdminOrderProduct orderProd) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
orderProd
-
KKAdminException
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
void insertDigitalDownload(int customerId, int productId) throws java.lang.Exception
customerId
- productId
-
java.lang.Exception
void setDigitalDownloadCriteria(org.apache.torque.util.Criteria c)
c
- AdminDigitalDownloadSearchResult searchDigitalDownloads(AdminDigitalDownloadSearch search, int offset, int size) throws java.lang.Exception
search
- search definition for digital downloadsoffset
- offset in results (for paging)size
- maximum number of records to return from the offset (for paging)
java.lang.Exception
int importDigitalDownload(AdminDigitalDownload digDownload) throws java.lang.Exception
digDownload
- the Digital Download object to import
java.lang.Exception
- if the digital download record specified is invalid or there are database
problemsAdminProduct getBundleProductDetails(int bundleId, AdminProduct[] bundledProductsArray, AdminDiscount discount) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, java.lang.Exception
bundleId
- If set to a positive value we search for all of the products in the bundle,
starting from this id of the bundle product.bundledProductsArray
- If bundleId is less than zero, we use the products in this array otherwise it is
ignored.discount
- The discount to apply which can be an amount or a percentage
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
java.lang.Exception
void setProductQuantity(java.lang.String sku, int id, int quantity, int operation) throws java.lang.Exception
quantity
parameter may be used to set the new quantity, to reduce the
quantity by its value or to increase the quantity by its value. In other words it can replace
the current quantity, be subtracted or added to the current quantity. The
operation
parameter determines which operation is performed. Valid values are:
sku
- The SKU of the product. If set to null, the product id is used.id
- The product id. Only used if the SKU is set to null.quantity
- The new quantityoperation
- Determines whether to set, add or subtract the quantity. See above for valid
values.
java.lang.Exception
void setProductQuantityWithOptions(java.lang.String sku, int id, int quantity, int operation, AdminProductMgrOptions mgrOptions) throws java.lang.Exception
quantity
parameter may be used to set the new quantity, to reduce the
quantity by its value or to increase the quantity by its value. In other words it can replace
the current quantity, be subtracted or added to the current quantity. The
operation
parameter determines which operation is performed. Valid values are:
sku
- The SKU of the product. If set to null, the product id is used.id
- The product id. Only used if the SKU is set to null.quantity
- The new quantityoperation
- Determines whether to set, add or subtract the quantity. See above for valid
values.mgrOptions
- Allows you to define whether the quantity can have different values depending on
the catalogId. May be set to null.
java.lang.Exception
int getProductQuantity(java.lang.String sku, int id) throws java.lang.Exception
sku
- The SKU of the product. If set to null, the product id is used.id
- The product id. Only used if the SKU is set to null.
java.lang.Exception
int getProductQuantityWithOptions(java.lang.String sku, int id, AdminProductMgrOptions mgrOptions) throws java.lang.Exception
sku
- The SKU of the product. If set to null, the product id is used.id
- The product id. Only used if the SKU is set to null.mgrOptions
- Allows you to define whether the quantity can have different values depending on
the catalogId. May be set to null.
java.lang.Exception
void setProductAvailability(java.lang.String sku, int id, java.util.Calendar dateAvailable) throws java.lang.Exception
sku
- The SKU of the product. If set to null, the product id is used.id
- The product id. Only used if the SKU is set to null.dateAvailable
- The date when the product will be available
java.lang.Exception
void setProductAvailabilityWithOptions(java.lang.String sku, int id, java.util.Calendar dateAvailable, AdminProductMgrOptions mgrOptions) throws java.lang.Exception
sku
- The SKU of the product. If set to null, the product id is used.id
- The product id. Only used if the SKU is set to null.dateAvailable
- The date when the product will be availablemgrOptions
- Allows you to define whether the availability date can have different values
depending on the catalogId. May be set to null.
java.lang.Exception
java.util.Calendar getProductAvailability(java.lang.String sku, int id) throws java.lang.Exception
sku
- The SKU of the product. If set to null, the product id is used.id
- The product id. Only used if the SKU is set to null.
java.lang.Exception
java.util.Calendar getProductAvailabilityWithOptions(java.lang.String sku, int id, AdminProductMgrOptions mgrOptions) throws java.lang.Exception
sku
- The SKU of the product. If set to null, the product id is used.id
- The product id. Only used if the SKU is set to null.mgrOptions
- Allows you to define whether the availability date can have different values
depending on the catalogId. May be set to null.
java.lang.Exception
AdminProductToStore[] getProductsToStores(AdminDataDescriptor dataDesc, AdminSearch search) throws java.lang.Exception
dataDesc
- Used to control the data offset, limit the number of items returned and set the
sort order. You can specify any two of the following to define the sort order:
AdminDataDescriptor.ORDER_BY_STOREID_ASCENDING,
AdminDataDescriptor.ORDER_BY_STOREID_DESCENDING,
AdminDataDescriptor.ORDER_BY_ID_ASCENDING,
AdminDataDescriptor.ORDER_BY_ID_DESCENDINGsearch
- Defines the records to be returned. Populate the id with the productId (or set to
KonaKartAdminConstant.NOT_SET to get all products) and the name with the storeId
(or leave null for all stores).
java.lang.Exception
void insertProductsToStores(AdminProductToStore[] productToStores) throws java.lang.Exception
productToStores
- an array of AdminProductToStore objects to insert into the database
java.lang.Exception
void removeProductsToStores(AdminProductToStore[] productToStores) throws java.lang.Exception
productToStores
- an array of AdminProductToStore objects to delete from the database
java.lang.Exception
int insertGiftCertificateDigitalDownload(int customerId, int productId, java.lang.String filePath) throws java.lang.Exception
customerId
- productId
- filePath
-
java.lang.Exception
void deleteCatalog(int catalogId) throws org.apache.torque.TorqueException, KKAdminException
catalogId
-
org.apache.torque.TorqueException
KKAdminException
AdminCatalogSearchResult getCatalogs(AdminCatalogSearch search, int offset, int size) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- offset
- size
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
int insertCatalog(AdminCatalog catalog) throws KKAdminException, org.apache.torque.TorqueException
catalog
-
KKAdminException
org.apache.torque.TorqueException
void updateCatalog(AdminCatalog catalog) throws java.lang.Exception
catalog
-
java.lang.Exception
AdminCatalog getCatalogById(int catalogId) throws java.lang.Exception
catalogId
-
java.lang.Exception
int copyProductToStore(int productId, java.lang.String storeIdFrom, java.lang.String storeIdTo, AdminCopyProductOptions options) throws java.lang.Exception
productId
- The numeric id of the product to copystoreIdFrom
- The id of the source storestoreIdTo
- The id of the destination storeoptions
- Options to configure the copy operation
java.lang.Exception
AdminProducts getProductsToSynchronize(java.lang.String storeIdFrom, java.lang.String storeIdTo, AdminDataDescriptor dataDesc, int languageId, AdminSynchProductsOptions options, AdminProductMgrOptions mgrOptions) throws java.lang.Exception
storeIdFrom
- The id of the source storestoreIdTo
- The id of the destination storedataDesc
- Used to control the data offset, limit the number of items returned and set the
sort order. May be null.languageId
- the language Id - or it could be
com.konakartadmin.bl.AdminLanguageMgr.DEFAULT_LANG to use the default languageoptions
- Defines the type of search and constraints.mgrOptions
- It defines whether to use prices and quantity for the catalog defined by the
catalogId. May be null.
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |