public class AdminMiscItemMgr extends AdminBaseMgr implements AdminMiscItemMgrIf
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 |
---|
AdminMiscItemMgr(KKAdminIf eng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addMiscItemOrderBy(com.konakart.db.KKCriteria c,
AdminSearch search) |
protected int |
addMiscItemSearchCriteria(com.konakart.db.KKCriteria c,
AdminSearch search) |
protected void |
addMiscItemTypeOrderBy(com.konakart.db.KKCriteria c,
AdminSearch search) |
protected int |
addMiscItemTypeSearchCriteria(com.konakart.db.KKCriteria c,
AdminSearch search) |
void |
deleteMiscItem(int miId)
Delete an AdminMiscItem.
|
void |
deleteMiscItemType(int miTypeId,
boolean deleteChildren)
Delete an AdminMiscItemType.
|
protected boolean |
doesMiscItemTypeExist(int id)
Return true if the Miscellaneous Item Type exists.
|
protected boolean |
doesMiscItemTypeExist(int id,
int langId)
Return true if the Miscellaneous Item Type exists.
|
AdminMiscItemSearchResult |
getMiscItems(AdminSearch search,
int offset,
int size)
Return the AdminMiscItem objects defined by the search criteria.
|
AdminMiscItemSearchResult |
getMiscItems(AdminSearch search,
int offset,
int size,
java.sql.Connection con)
Return the AdminMiscItem objects defined by the search criteria.
|
protected int |
getMiscItemsCount(AdminSearch search) |
protected int |
getMiscItemsCount(AdminSearch search,
java.sql.Connection con) |
AdminMiscItem[] |
getMiscItemsPerProduct(int productId)
A method for returning the misc items of a product.
|
AdminMiscItemType[] |
getMiscItemTypes(AdminSearch search,
int offset,
int size)
Return the AdminMiscItemType objects defined by the search criteria.
|
protected int |
insertMiscItem(AdminMiscItem miItem)
Insert a new MiscItem object.
|
int |
insertMiscItems(AdminMiscItem[] mItems)
Insert an array of AdminMiscItem objects
|
protected int |
insertMiscItemType(AdminMiscItemType miItemType)
Insert a new MiscItemType object.
|
int |
insertMiscItemType(AdminMiscItemType[] miTypes)
Insert an array of AdminMiscItemType objects
|
void |
refreshConfigs()
Refresh the configuration of the Manager
|
void |
updateMiscItems(AdminMiscItem[] mItems)
Update an array of AdminMiscItem objects.
|
void |
updateMiscItemType(AdminMiscItemType[] miTypes)
Update an array of AdminMiscItemType objects.
|
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, removeCData, sendMQMessages, setAdminEng, setDebugStackTraceExclusions, setKkAdminPropsFilePath, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr, updateStaticVariablesNow
public AdminMiscItemMgr(KKAdminIf eng) throws java.lang.Exception
eng
- the engjava.lang.Exception
- an unexpected exceptionpublic int insertMiscItemType(AdminMiscItemType[] miTypes) throws KKAdminException, java.lang.Exception
AdminMiscItemMgrIf
insertMiscItemType
in interface AdminMiscItemMgrIf
miTypes
- An array of AdminMiscItemType objects to insert. Typically you would insert one
AdminMiscItemType record for each language to maintain data integrity.KKAdminException
- an unexpected exception in the KonaKart Admin enginejava.lang.Exception
- an unexpected exceptionpublic void updateMiscItemType(AdminMiscItemType[] miTypes) throws KKAdminException, org.apache.torque.TorqueException
AdminMiscItemMgrIf
updateMiscItemType
in interface AdminMiscItemMgrIf
miTypes
- An array of AdminMiscItemType objects to update.KKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)public void deleteMiscItemType(int miTypeId, boolean deleteChildren) throws KKAdminException, org.apache.torque.TorqueException, java.lang.Exception
AdminMiscItemMgrIf
deleteMiscItemType
in interface AdminMiscItemMgrIf
miTypeId
- the id of the miscellaneous item type object to deletedeleteChildren
- if true all children (miscellaneous items with this miscellaneous item type) will
also be deleted.KKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)java.lang.Exception
- an unexpected exceptionpublic AdminMiscItemType[] getMiscItemTypes(AdminSearch search, int offset, int size) throws KKAdminException, java.lang.Exception
AdminMiscItemMgrIf
getMiscItemTypes
in interface AdminMiscItemMgrIf
search
- the generic Admin search object that defines the objects to search for. If null we
use the default AdminSearch object. If you specify the LanguageId in the search
object, only the MiscItemType for that specified language will be returned. If you
specify AdminLanguage.ALL_LANGUAGES for the languageId the search will be made on
the default language, and if MiscItemTypes are found, MiscItemTypes with these
MiscItemTypeIds for all of the languages are returned.offset
- starting offset in database - so that you can page through resultssize
- size of the group that will be returned - the maximum number of records returnedKKAdminException
- an unexpected exception in the KonaKart Admin enginejava.lang.Exception
- an unexpected exceptionprotected int insertMiscItemType(AdminMiscItemType miItemType) throws KKAdminException, java.lang.Exception
miItemType
- the new AdminMiscItemType object to insert - do not fill out the Id as this will
be created.KKAdminException
- unexpected exception in the KonaKart Admin Enginejava.lang.Exception
- an unexpected exceptionprotected int addMiscItemTypeSearchCriteria(com.konakart.db.KKCriteria c, AdminSearch search)
protected void addMiscItemTypeOrderBy(com.konakart.db.KKCriteria c, AdminSearch search)
protected boolean doesMiscItemTypeExist(int id) throws org.apache.torque.TorqueException, KKAdminException
id
- Miscellaneous Item Type idorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Engineprotected boolean doesMiscItemTypeExist(int id, int langId) throws org.apache.torque.TorqueException, KKAdminException
id
- Miscellaneous Item Type idlangId
- language idorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic int insertMiscItems(AdminMiscItem[] mItems) throws KKAdminException, java.lang.Exception
AdminMiscItemMgrIf
insertMiscItems
in interface AdminMiscItemMgrIf
mItems
- An array of AdminMiscItem objects to insert.KKAdminException
- an unexpected exception in the KonaKart Admin enginejava.lang.Exception
- an unexpected exceptionpublic void updateMiscItems(AdminMiscItem[] mItems) throws KKAdminException, org.apache.torque.TorqueException
AdminMiscItemMgrIf
updateMiscItems
in interface AdminMiscItemMgrIf
mItems
- An array of AdminMiscItem objects to update.KKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)public void deleteMiscItem(int miId) throws KKAdminException, org.apache.torque.TorqueException
AdminMiscItemMgrIf
deleteMiscItem
in interface AdminMiscItemMgrIf
miId
- the id of the miscellaneous item object to deleteKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)public AdminMiscItemSearchResult getMiscItems(AdminSearch search, int offset, int size) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
AdminMiscItemMgrIf
getMiscItems
in interface AdminMiscItemMgrIf
search
- the generic Admin search object that defines the objects to search for. If null we
use the default AdminSearch object.
AdminSearch criteria usage:
AdminSearch order by options:
offset
- starting offset in database - so that you can page through resultssize
- size of the group that will be returned - the maximum number of records returnedKKAdminException
- an 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 AdminMiscItemSearchResult getMiscItems(AdminSearch search, int offset, int size, java.sql.Connection con) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
AdminMiscItemMgrIf
getMiscItems
in interface AdminMiscItemMgrIf
search
- the generic Admin search object that defines the objects to search for. If null we
use the default AdminSearch object.
AdminSearch criteria usage:
AdminSearch order by options:
offset
- starting offset in database - so that you can page through resultssize
- size of the group that will be returned - the maximum number of records returnedcon
- Connection for TransactionKKAdminException
- an 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)protected int getMiscItemsCount(AdminSearch search) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
protected int getMiscItemsCount(AdminSearch search, java.sql.Connection con) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
protected int insertMiscItem(AdminMiscItem miItem) throws KKAdminException, java.lang.Exception
miItem
- the new AdminMiscItem object to insert - do not fill out the Id as this will be
created.KKAdminException
- unexpected exception in the KonaKart Admin Enginejava.lang.Exception
- an unexpected exceptionprotected int addMiscItemSearchCriteria(com.konakart.db.KKCriteria c, AdminSearch search) throws KKAdminException
KKAdminException
protected void addMiscItemOrderBy(com.konakart.db.KKCriteria c, AdminSearch search)
public void refreshConfigs() throws java.lang.Exception
refreshConfigs
in interface AdminMiscItemMgrIf
refreshConfigs
in class AdminBaseMgr
java.lang.Exception
- an unexpected exceptionpublic AdminMiscItem[] getMiscItemsPerProduct(int productId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
getMiscItemsPerProduct
in interface AdminMiscItemMgrIf
productId
- the productIdKKAdminException
- 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)Copyright © 2018 DS Data Systems UK Ltd.