public class AdminManufacturerMgr extends AdminBaseMgr implements AdminManufacturerMgrIf
AdminBaseMgr.StaticData
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, debugStackTraceExclusions, kkAdminPropsFilePath, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
Constructor and Description |
---|
AdminManufacturerMgr(KKAdminIf eng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addManufacturerOrderBy(com.konakart.db.KKCriteria c,
AdminManufacturerSearch search)
Add order by constraints for manufacturers
|
protected int |
addManufacturerSearchCriteria(com.konakart.db.KKCriteria c,
AdminManufacturerSearch search)
Add search criteria for manufacturers
|
void |
deleteManufacturer(int manufacturerId,
boolean deleteProducts)
Delete the manufacturer referenced to by manufacturerId.
|
boolean |
doesManufacturerExist(int manufacturerId)
Return true if the manufacturer referenced by manufacturerId exists
|
void |
editManufacturer(AdminManufacturer manu)
Edit a manufacturer and its manufacturer info objects
|
void |
editManufacturerLite(AdminManufacturer manu)
Edit a manufacturer but not its manufacturer info objects
|
AdminManufacturer[] |
getAllManufacturers()
Return an array containing all manufacturers.
|
AdminManufacturer |
getManufacturer(int manufacturerId)
Gets a manufacturer object with full details
|
protected int |
getManufacturerCount(AdminManufacturerSearch search)
Returns a count of the number of Manufacturers
|
AdminManufacturer |
getManufacturerLite(int manufacturerId)
Gets a manufacturer object without the manufacturer_info details
|
java.lang.String |
getManufacturerName(int manuId)
Gets a manufacturer name for the specified manufacturerId
|
AdminManufacturerSearchResult |
getManufacturers(AdminManufacturerSearch search,
int offset,
int size)
This returns an AdminManufacturerSearchResult object.
|
AdminManufacturer[] |
getManufacturersPerPromotion(int promotionId)
Return an array of all manufacturers active for a promotion.
|
int |
insertManufacturer(AdminManufacturer manu)
Insert a manufacturer
|
protected void |
setManuCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c)
Common code to avoid duplication
|
protected void |
validateManufacturer(AdminManufacturer manu)
Used to validate a manufacturer before editing or inserting
|
protected void |
validateManufacturerLite(AdminManufacturer manu)
Used to validate a manufacturer that doesn't need the Infos array before editing or inserting
|
addInsertAttr, addInsertAttr, addStringRuleConstraint, addStringRuleConstraint, checkAPICallEnabled, checkIntInRange, checkIntIsSet, checkRequired, executeQuery, executeQuery, getAdminAddressMgr, getAdminAuditMgr, getAdminBillingMgr, getAdminBookableProductMgr, getAdminCatMgr, getAdminConfigMgr, getAdminContentMgr, getAdminCurrMgr, getAdminCustMgr, getAdminCustPwdHistMgr, getAdminCustTagMgr, getAdminEmailMgr, getAdminEng, getAdminEngineCacheMgr, getAdminEventMgr, getAdminExecuteMgr, getAdminFileMgr, getAdminFilterMgr, getAdminHtmlMgr, getAdminImportMgr, getAdminLanguageMgr, getAdminManuMgr, getAdminMessageMgr, getAdminMiscItemMgr, getAdminMiscPriceMgr, getAdminModulesMgr, getAdminMultiStoreMgr, getAdminOrderMgr, getAdminPdfMgr, getAdminProdAttrMgr, getAdminProdMgr, getAdminPromMgr, getAdminReviewMgr, getAdminSearchRuleMgr, getAdminSecMgr, getAdminServletMgr, getAdminShipmentMgr, getAdminSolrMgr, getAdminStoreMgr, getAdminSuggestionMgr, getAdminTagMgr, getAdminTaxMgr, getAdminValidationMgr, getAdminVelocityContextMgr, getAdminWishListMgr, getBooleanFromString, getDebugStackTraceExclusions, getEmailThreadGracefulShutdownTimeout, getExportMgr, getExportMgr, getExportXMLData, getIntFromString, getKkAdminPropsFilePath, getKkConfig, getKkInstanceId, getMode, getModeString, getMqMgr, getNewCriteria, getNewCriteria, getNewCriteria, getNewCriteria, getOtherModuleByName, getPostSearchText, getPreSearchText, getProductsToCategoresCriteria, getPropertyValue, getPropertyValue, getPropertyValueAsBool, getPropertyValueAsInt, getPropertyValueAsLong, getRecordCount, getRecordCount, getRewardPointMgr, getSingleIntResult, getStoreId, getTemplate, getTemplateBase, getXml_io, init, insertKKEvent, insertKKEvent, isBusiness, isBusinessOrEnterprise, isCommunity, isConfigSet, isEnterprise, isMultiStoreLanguagesShared, isMultiStoreMode, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareCustomersOrProducts, isMultiStoreShareProducts, isMultiStoreSingleDBCSMode, isMultiStoreSingleDBMode, isMultiStoreSingleDBNonCSMode, isUnix, isWindows, manageException, manageThrowable, refreshConfigs, removeCData, sendMQMessages, setAdminEng, setDebugStackTraceExclusions, setKkAdminPropsFilePath, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr, updateStaticVariablesNow
public AdminManufacturerMgr(KKAdminIf eng) throws java.lang.Exception
eng
- the engjava.lang.Exception
- an unexpected exceptionpublic boolean doesManufacturerExist(int manufacturerId) throws org.apache.torque.TorqueException, KKAdminException
doesManufacturerExist
in interface AdminManufacturerMgrIf
manufacturerId
- the manufacturerIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic AdminManufacturer getManufacturer(int manufacturerId) throws java.lang.Exception
getManufacturer
in interface AdminManufacturerMgrIf
manufacturerId
- the manufacturerIdjava.lang.Exception
- an unexpected exceptionpublic AdminManufacturer getManufacturerLite(int manufacturerId) throws java.lang.Exception
AdminManufacturerMgrIf
getManufacturerLite
in interface AdminManufacturerMgrIf
manufacturerId
- the manufacturerIdjava.lang.Exception
- an unexpected exceptionpublic java.lang.String getManufacturerName(int manuId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
getManufacturerName
in interface AdminManufacturerMgrIf
manuId
- the manuIdKKAdminException
- unexpected exception in the KonaKart Admin Engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public void deleteManufacturer(int manufacturerId, boolean deleteProducts) throws java.lang.Exception
deleteManufacturer
in interface AdminManufacturerMgrIf
manufacturerId
- the manufacturerIddeleteProducts
- the deleteProductsjava.lang.Exception
- an unexpected exceptionpublic void editManufacturer(AdminManufacturer manu) throws java.lang.Exception
editManufacturer
in interface AdminManufacturerMgrIf
manu
- the manujava.lang.Exception
- an unexpected exceptionpublic void editManufacturerLite(AdminManufacturer manu) throws java.lang.Exception
AdminManufacturerMgrIf
editManufacturerLite
in interface AdminManufacturerMgrIf
manu
- the manujava.lang.Exception
- an unexpected exceptionpublic int insertManufacturer(AdminManufacturer manu) throws java.lang.Exception
insertManufacturer
in interface AdminManufacturerMgrIf
manu
- the manujava.lang.Exception
- an unexpected exceptionpublic AdminManufacturer[] getAllManufacturers() throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, KKAdminException
AdminManufacturerMgrIf
getAllManufacturers
in interface AdminManufacturerMgrIf
com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic AdminManufacturer[] getManufacturersPerPromotion(int promotionId) throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, KKAdminException
AdminManufacturerMgrIf
getManufacturersPerPromotion
in interface AdminManufacturerMgrIf
promotionId
- the promotionIdcom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprotected void validateManufacturer(AdminManufacturer manu) throws KKAdminException
manu
- the manuKKAdminException
- unexpected exception in the KonaKart Admin Engineprotected void validateManufacturerLite(AdminManufacturer manu) throws KKAdminException
manu
- the manuKKAdminException
- unexpected exception in the KonaKart Admin Enginepublic AdminManufacturerSearchResult getManufacturers(AdminManufacturerSearch search, int offset, int size) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getManufacturers
in interface AdminManufacturerMgrIf
search
- the searchoffset
- the offset in the dbsize
- the number of records from the specified offsetcom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprotected void addManufacturerOrderBy(com.konakart.db.KKCriteria c, AdminManufacturerSearch search)
c
- the csearch
- the searchprotected int getManufacturerCount(AdminManufacturerSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- Search criteriaorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprotected int addManufacturerSearchCriteria(com.konakart.db.KKCriteria c, AdminManufacturerSearch search)
c
- the csearch
- the searchprotected void setManuCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c)
c
- the cCopyright © 2018 DS Data Systems UK Ltd.