public class ManufacturerMgr extends BaseMgr implements ManufacturerMgrIf
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
protected static java.lang.String |
mutex
Mutex
|
templateBaseDir
Constructor and Description |
---|
ManufacturerMgr(KKEngIf eng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Address[] |
getAddressesPerManufacturer(int manufacturerId)
Returns all of the addresses for the given manufacturer.
|
Manufacturer[] |
getAllManufacturers()
Returns an array of all manufacturers
|
Manufacturer |
getManufacturer(int manufacturerId,
int languageId)
Gets the manufacturer referenced by the manufacturer id
|
Manufacturer |
getManufacturerByShopId(int shopId)
Gets the manufacturer referenced by the shop id
|
Manufacturer |
getManufacturerByWondId(java.lang.String shopId)
Gets the manufacturer referenced by the Wond-Shop id
|
Manufacturer |
getManufacturerPerProduct(int productId,
int languageId)
Returns an array of manufacturers for a product
|
Manufacturer[] |
getManufacturers(DataDescriptorIf dataDesc,
ManufacturerSearchIf search,
int languageId)
The main method called to return one or more manufacturers
|
Manufacturer[] |
getManufacturersFromIds(java.util.ArrayList<java.lang.Integer> manuIdList)
Return an array of manufacturers for the ids passed in through the manuIdList parameter.
|
Manufacturer[] |
getManufacturersPerCategory(int categoryId)
Returns an array of manufacturers for a category
|
protected void |
manageDataDescriptor(DataDescriptorIf dataDesc,
KKCriteria c)
Add search criteria for manufacturers
|
protected void |
setCriteriaWithStandardAttributes(KKCriteria c,
int langId)
Sets the criteria with the standard attributes so as not to have to repeat this code many
times.
|
void |
UpdateManufacturerViewedCount(int manufacturerId,
int languageId)
Whenever a user clicks on a manufacturer to view the home page, we update the click count and
the date of the last click.
|
acquireLock, addInsertAttr, addInsertAttr, addStringRuleConstraint, addStringRuleConstraint, checkRequired, escapeHTML, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, getAdminEngMgr, getBasketMgr, getBillingMgr, getBookableProductMgr, getCacheMgr, getCatMgr, getConfigMgr, getCookieMgr, getCurrMgr, getCustMgr, getCustomerIdFromSession, getCustomerStatsMgr, getCustomerTagMgr, getEmailMgr, getEng, getEventMgr, getExportMgr, getHTMLEscaper, getKonaKartConfig, getKonaKartConfig, getKonaKartConfig, getLangMgr, getManuMgr, getMiscItemMgr, getMiscPriceMgr, getMode, getModeString, getMqMgr, getMultiStoreMgr, getNewCriteria, getNewCriteria, getOrderIntegrationMgr, getOrderMgr, getOrderTotalMgr, getPaymentMgr, getProdMgr, getProductsToCategoresCriteria, getPromMgr, getPunchOutMgr, getRewardPointMgr, getSecMgr, getShippingMgr, getSolrMgr, getStoreId, getStoreMgr, getStoreTime, getSuggestionMgr, getTaxMgr, getTemplate, getTemplateRoot, getVelocityContextMgr, getWishListMgr, init, insertKKEvent, insertKKEvent, isBusiness, isBusinessOrEnterprise, isClassPresent, isCommunity, isDeadlockException, isEnterprise, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareCustomersOrProducts, isMultiStoreSharedDb, isMultiStoreShareProducts, isMultiVendor, isUnix, manageThrowable, releaseLock, updateStaticVariablesNow
protected static org.apache.commons.logging.Log log
protected static java.lang.String mutex
public ManufacturerMgr(KKEngIf eng) throws java.lang.Exception
eng
- the engjava.lang.Exception
- an unexpected exceptionpublic Manufacturer[] getAllManufacturers() throws java.lang.Exception
ManufacturerMgrIf
getAllManufacturers
in interface ManufacturerMgrIf
java.lang.Exception
- an unexpected exceptionpublic Manufacturer[] getManufacturersPerCategory(int categoryId) throws java.lang.Exception
ManufacturerMgrIf
getManufacturersPerCategory
in interface ManufacturerMgrIf
categoryId
- the categoryIdjava.lang.Exception
- an unexpected exceptionpublic Manufacturer getManufacturerPerProduct(int productId, int languageId) throws java.lang.Exception
ManufacturerMgrIf
getManufacturerPerProduct
in interface ManufacturerMgrIf
productId
- the productIdlanguageId
- the languageIdjava.lang.Exception
- an unexpected exceptionpublic Manufacturer getManufacturer(int manufacturerId, int languageId) throws java.lang.Exception
ManufacturerMgrIf
getManufacturer
in interface ManufacturerMgrIf
manufacturerId
- the manufacturerIdlanguageId
- the languageIdjava.lang.Exception
- an unexpected exceptionpublic Manufacturer[] getManufacturers(DataDescriptorIf dataDesc, ManufacturerSearchIf search, int languageId) throws java.lang.Exception
getManufacturers
in interface ManufacturerMgrIf
dataDesc
- The data descriptor object that defines the sort order, constraints on custom
fields and offset and limit for paging.search
- The Manufacturer search object that defines the search criterialanguageId
- The language id is used for language specific attributes of the manufacturer such
as the URL.java.lang.Exception
- an unexpected exceptionpublic void UpdateManufacturerViewedCount(int manufacturerId, int languageId) throws java.lang.Exception
UpdateManufacturerViewedCount
in interface ManufacturerMgrIf
manufacturerId
- the manufacturerIdlanguageId
- the languageIdjava.lang.Exception
- an unexpected exceptionprotected void setCriteriaWithStandardAttributes(KKCriteria c, int langId)
c
- the clangId
- The language idprotected void manageDataDescriptor(DataDescriptorIf dataDesc, KKCriteria c)
dataDesc
- the dataDescc
- the cpublic Address[] getAddressesPerManufacturer(int manufacturerId) throws java.lang.Exception
getAddressesPerManufacturer
in interface ManufacturerMgrIf
manufacturerId
- the manufacturerIdjava.lang.Exception
- an unexpected exceptionpublic Manufacturer[] getManufacturersFromIds(java.util.ArrayList<java.lang.Integer> manuIdList) throws java.lang.Exception
getManufacturersFromIds
in interface ManufacturerMgrIf
manuIdList
- An array list containing ids of manufacturersjava.lang.Exception
- an unexpected exceptionpublic Manufacturer getManufacturerByShopId(int shopId) throws java.lang.Exception
getManufacturerByShopId
in interface ManufacturerMgrIf
shopId
- the shopIdjava.lang.Exception
- an unexpected exceptionpublic Manufacturer getManufacturerByWondId(java.lang.String shopId) throws java.lang.Exception
getManufacturerByWondId
in interface ManufacturerMgrIf
shopId
- the shopIdjava.lang.Exception
- an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.