com.konakart.bl
Class ManufacturerMgr

java.lang.Object
  extended by com.konakart.bl.BaseMgr
      extended by com.konakart.bl.ManufacturerMgr
All Implemented Interfaces:
ManufacturerMgrIf

public class ManufacturerMgr
extends BaseMgr
implements ManufacturerMgrIf

Manufacturers Manager


Field Summary
protected static org.apache.commons.logging.Log log
          the log
protected static java.lang.String mutex
          Mutex
 
Fields inherited from class com.konakart.bl.BaseMgr
templateBaseDir
 
Constructor Summary
ManufacturerMgr(KKEngIf eng)
          Constructor
 
Method Summary
 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 getManufacturerPerProduct(int productId, int languageId)
          Returns an array of manufacturers for a product
 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 setCriteriaWithStandardAttributes(org.apache.torque.util.Criteria c, boolean allCustom)
          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.
 
Methods inherited from class com.konakart.bl.BaseMgr
addInsertAttr, addInsertAttr, checkRequired, getAdminEngMgr, getBasketMgr, getBillingMgr, getBookableProductMgr, getCatMgr, getConfigMgr, getCookieMgr, getCurrMgr, getCustMgr, getCustomerIdFromSession, getCustomerStatsMgr, getCustomerTagMgr, getEmailMgr, getEng, getLangMgr, getManuMgr, getMiscItemMgr, getMode, getModeString, getMqMgr, getMultiStoreMgr, getNewCriteria, getNewCriteria, getOrderMgr, getOrderTotalMgr, getPaymentMgr, getProdMgr, getPromMgr, getRewardPointMgr, getSecMgr, getShippingMgr, getSolrMgr, getStoreId, getTaxMgr, getTemplate, getTemplateRoot, getVelocityContextMgr, getWishListMgr, init, isEnterprise, isMultiStoreShareCustomers, isMultiStoreShareProducts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
the log


mutex

protected static java.lang.String mutex
Mutex

Constructor Detail

ManufacturerMgr

public ManufacturerMgr(KKEngIf eng)
                throws java.lang.Exception
Constructor

Parameters:
eng -
Throws:
java.lang.Exception
Method Detail

getAllManufacturers

public Manufacturer[] getAllManufacturers()
                                   throws com.workingdogs.village.DataSetException,
                                          org.apache.torque.TorqueException,
                                          KKException
Description copied from interface: ManufacturerMgrIf
Returns an array of all manufacturers

Specified by:
getAllManufacturers in interface ManufacturerMgrIf
Returns:
An array of all manufacturers
Throws:
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKException

getManufacturersPerCategory

public Manufacturer[] getManufacturersPerCategory(int categoryId)
                                           throws java.lang.Exception
Description copied from interface: ManufacturerMgrIf
Returns an array of manufacturers for a category

Specified by:
getManufacturersPerCategory in interface ManufacturerMgrIf
Parameters:
categoryId -
Returns:
An array of manufacturers for this category
Throws:
java.lang.Exception

getManufacturerPerProduct

public Manufacturer getManufacturerPerProduct(int productId,
                                              int languageId)
                                       throws java.lang.Exception
Description copied from interface: ManufacturerMgrIf
Returns an array of manufacturers for a product

Specified by:
getManufacturerPerProduct in interface ManufacturerMgrIf
Parameters:
productId -
languageId -
Returns:
An array of manufacturers for this product
Throws:
java.lang.Exception

getManufacturer

public Manufacturer getManufacturer(int manufacturerId,
                                    int languageId)
                             throws java.lang.Exception
Description copied from interface: ManufacturerMgrIf
Gets the manufacturer referenced by the manufacturer id

Specified by:
getManufacturer in interface ManufacturerMgrIf
Parameters:
manufacturerId -
languageId -
Returns:
The details of a manufacturer
Throws:
java.lang.Exception

UpdateManufacturerViewedCount

public void UpdateManufacturerViewedCount(int manufacturerId,
                                          int languageId)
                                   throws java.lang.Exception
Whenever a user clicks on a manufacturer to view the home page, we update the click count and the date of the last click.

Specified by:
UpdateManufacturerViewedCount in interface ManufacturerMgrIf
Parameters:
manufacturerId -
languageId -
Throws:
java.lang.Exception

setCriteriaWithStandardAttributes

protected void setCriteriaWithStandardAttributes(org.apache.torque.util.Criteria c,
                                                 boolean allCustom)
Sets the criteria with the standard attributes so as not to have to repeat this code many times.

Parameters:
c -
allCustom - If true we add all of the custom fields, if not we only add 2.

getAddressesPerManufacturer

public Address[] getAddressesPerManufacturer(int manufacturerId)
                                      throws java.lang.Exception
Returns all of the addresses for the given manufacturer.

Specified by:
getAddressesPerManufacturer in interface ManufacturerMgrIf
Parameters:
manufacturerId -
Returns:
An array of address objects
Throws:
java.lang.Exception

getManufacturersFromIds

public Manufacturer[] getManufacturersFromIds(java.util.ArrayList<java.lang.Integer> manuIdList)
                                       throws java.lang.Exception
Return an array of manufacturers for the ids passed in through the manuIdList parameter.

Specified by:
getManufacturersFromIds in interface ManufacturerMgrIf
Parameters:
manuIdList - An array list containing ids of manufacturers
Returns:
An array of manufacturers for the ids passed in
Throws:
java.lang.Exception


Copyright © 2011 DS Data Systems UK Ltd.