public class AdminWishListMgr extends AdminBaseMgr implements AdminWishListMgrIf
AdminBaseMgr.StaticData
Modifier and Type | Field and Description |
---|---|
static int |
BIRTHDAY_LIST_TYPE
Defines the type of wish list
|
protected static org.apache.commons.logging.Log |
log
the log
|
static int |
WEDDING_LIST_TYPE
Defines the type of wish list
|
static int |
WISH_LIST_TYPE
Defines the type of wish list
|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, debugStackTraceExclusions, kkAdminPropsFilePath, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
Constructor and Description |
---|
AdminWishListMgr(KKAdminIf eng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addWishListOrderBy(com.konakart.db.KKCriteria c,
AdminWishListSearch search) |
protected void |
addWishListSearchCriteria(com.konakart.db.KKCriteria c,
AdminWishListSearch search) |
void |
deleteWishList(int wishListId)
Delete a wishlist and all of its wishlist items.
|
void |
deleteWishListItem(int wishListItemId)
Delete a wishlist and all of its wishlist items.
|
protected int |
getCount(com.konakart.db.KKCriteria c,
org.apache.torque.map.ColumnMap colMap) |
protected int |
getCount(com.konakart.db.KKCriteria c,
java.lang.String key)
This method is mainly used for paging.
|
protected AdminWishListItem[] |
getWishListItemsByWishListId(int wishListId) |
AdminWishLists |
getWishLists(AdminWishListSearch search,
int offset,
int size)
Return the WishList objects defined by the search criteria.
|
int |
insertWishList(AdminWishList wishList)
Insert a wishlist and any attached wishlist items.
|
int |
insertWishListItem(AdminWishListItem wishListItem)
Insert an AdminWishListItem.
|
private int |
insertWishListItem(AdminWishListItem wishListItem,
java.sql.Connection con) |
protected void |
setWishListCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c)
Common code to avoid duplication
|
protected void |
setWishListItemCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c)
Common code to avoid duplication
|
void |
updateWishListItemQuantityBought(int wishListItemId,
int quantityBought)
Updates the wishListItem quantity received attribute by adding quantityBought to the actual
value.
|
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
protected static org.apache.commons.logging.Log log
public static final int WISH_LIST_TYPE
public static final int WEDDING_LIST_TYPE
public static final int BIRTHDAY_LIST_TYPE
public AdminWishListMgr(KKAdminIf eng) throws java.lang.Exception
eng
- the engjava.lang.Exception
- an unexpected exceptionpublic void updateWishListItemQuantityBought(int wishListItemId, int quantityBought) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
updateWishListItemQuantityBought
in interface AdminWishListMgrIf
wishListItemId
- the wishListItemIdquantityBought
- the quantityBoughtorg.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 int insertWishList(AdminWishList wishList) throws KKAdminException
AdminWishListMgrIf
insertWishList
in interface AdminWishListMgrIf
wishList
- the wishListKKAdminException
- an unexpected exception in the KonaKart Admin enginepublic void deleteWishList(int wishListId) throws KKAdminException
AdminWishListMgrIf
deleteWishList
in interface AdminWishListMgrIf
wishListId
- the wishListIdKKAdminException
- an unexpected exception in the KonaKart Admin enginepublic int insertWishListItem(AdminWishListItem wishListItem) throws KKAdminException
AdminWishListMgrIf
insertWishListItem
in interface AdminWishListMgrIf
wishListItem
- the wishListItemKKAdminException
- an unexpected exception in the KonaKart Admin engineprivate int insertWishListItem(AdminWishListItem wishListItem, java.sql.Connection con) throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
public void deleteWishListItem(int wishListItemId) throws KKAdminException
AdminWishListMgrIf
deleteWishListItem
in interface AdminWishListMgrIf
wishListItemId
- the wishListItemIdKKAdminException
- an unexpected exception in the KonaKart Admin enginepublic AdminWishLists getWishLists(AdminWishListSearch search, int offset, int size) throws java.lang.Exception
AdminWishListMgrIf
getWishLists
in interface AdminWishListMgrIf
search
- the AdminWishListSearch object that defines the wishlist objects to search for. If
null we use the default AdminWishListSearch object.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)java.lang.Exception
- an unexpected exceptionprotected AdminWishListItem[] getWishListItemsByWishListId(int wishListId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
protected void addWishListSearchCriteria(com.konakart.db.KKCriteria c, AdminWishListSearch search)
protected void addWishListOrderBy(com.konakart.db.KKCriteria c, AdminWishListSearch search)
protected int getCount(com.konakart.db.KKCriteria c, org.apache.torque.map.ColumnMap colMap) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
protected int getCount(com.konakart.db.KKCriteria c, java.lang.String key) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
c
- the ckey
- we have to use a key instead of just a * when there are no 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)protected void setWishListCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c)
c
- the cprotected void setWishListItemCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c)
c
- the cCopyright © 2018 DS Data Systems UK Ltd.