public class AdminShipmentMgr extends AdminBaseMgr implements AdminShipmentMgrIf
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 |
---|
AdminShipmentMgr(KKAdminIf eng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addOrderShipmentsToOrder(AdminOrder order)
Get an array of order shipment objects for this order and attach them to the order
|
protected void |
addShipperOrderBy(com.konakart.db.KKCriteria c,
AdminShipperSearch search)
Adds order by criteria for returning Shipper objects
|
protected int |
addShipperSearchCriteria(com.konakart.db.KKCriteria c,
AdminShipperSearch search)
Adds search criteria for returning Shipper objects
|
void |
deleteOrderShipment(int orderShipmentId)
Delete the AdminOrderShipment object and any associated AdminOrderShipmentProduct objects
|
int |
deleteShipper(int shipperId)
Delete a Shipper
|
void |
editOrderShipment(AdminOrderShipment orderShipment)
Edits an AdminOrderShipment object.
|
protected int |
findOrderProduct(AdminOrderProduct[] opArray,
AdminOrderProduct op)
Returns the id of the Order Product from the parent order that matches the Order Product from
the vendor order
|
AdminOrderShipmentSearchResult |
getOrderShipments(AdminOrderShipmentSearch shipSearch,
int offset,
int size) |
protected int |
getShipmentsCount(com.konakart.db.KKCriteria c)
This method is mainly used for paging.
|
AdminShipper |
getShipper(int shipperId)
Get a shipper by id
|
AdminShipperSearchResult |
getShippers(AdminShipperSearch search)
This returns an AdminShipperSearchResult object matching the search constraints
|
int |
insertOrderShipment(AdminOrderShipment orderShipment)
Inserts an AdminOrderShipment object and links it to an array of AdminOrderProduct objects in
order to identify which products in the order were shipped.
|
int |
insertOrderShipmentPrivate(AdminOrderShipment orderShipment,
java.util.Date creationDate,
boolean insertForParent,
java.lang.String storeId)
Inserts an AdminOrderShipment object and links it to an array of AdminOrderProduct objects in
order to identify which products in the order were shipped.
|
int |
insertShipper(AdminShipper shipper)
Insert a Shipper
|
protected void |
insertVendorParentOrderShipment(AdminOrderShipment orderShipment,
java.util.Date creationDate)
Insert the OrderShipment object for the parent order when in multi-vendor mode.
|
void |
refreshConfigs()
Refresh the configuration of the Manager
|
int |
updateShipper(AdminShipper shipper)
Update a Shipper
|
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 AdminShipmentMgr(KKAdminIf eng) throws java.lang.Exception
eng
- the engjava.lang.Exception
- an unexpected exceptionpublic void refreshConfigs() throws java.lang.Exception
refreshConfigs
in interface AdminShipmentMgrIf
refreshConfigs
in class AdminBaseMgr
java.lang.Exception
- an unexpected exceptionpublic int insertOrderShipment(AdminOrderShipment orderShipment) throws java.lang.Exception
insertOrderShipment
in interface AdminShipmentMgrIf
orderShipment
- the orderShipmentjava.lang.Exception
- an unexpected exceptionpublic int insertOrderShipmentPrivate(AdminOrderShipment orderShipment, java.util.Date creationDate, boolean insertForParent, java.lang.String storeId) throws java.lang.Exception
orderShipment
- the orderShipmentcreationDate
- Used as the creation date when not nullinsertForParent
- When true we insert in the parent order when in multi-vendor modestoreId
- To insert an OrderShipment in multi-vendor modejava.lang.Exception
- an unexpected exceptionprotected void insertVendorParentOrderShipment(AdminOrderShipment orderShipment, java.util.Date creationDate) throws java.lang.Exception
orderShipment
- the orderShipmentcreationDate
- the creation datejava.lang.Exception
- an unexpected exceptionprotected int findOrderProduct(AdminOrderProduct[] opArray, AdminOrderProduct op)
opArray
- Order Product array from parent orderop
- Order Product from vendor orderpublic void editOrderShipment(AdminOrderShipment orderShipment) throws java.lang.Exception
editOrderShipment
in interface AdminShipmentMgrIf
orderShipment
- the orderShipmentjava.lang.Exception
- an unexpected exceptionpublic void deleteOrderShipment(int orderShipmentId) throws java.lang.Exception
deleteOrderShipment
in interface AdminShipmentMgrIf
orderShipmentId
- the orderShipmentIdjava.lang.Exception
- an unexpected exceptionpublic void addOrderShipmentsToOrder(AdminOrder order) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
addOrderShipmentsToOrder
in interface AdminShipmentMgrIf
order
- the ordercom.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 AdminOrderShipmentSearchResult getOrderShipments(AdminOrderShipmentSearch shipSearch, int offset, int size) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
getOrderShipments
in interface AdminShipmentMgrIf
shipSearch
- the shipSearchoffset
- the offsetsize
- the sizeKKAdminException
- 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 getShipmentsCount(com.konakart.db.KKCriteria c) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
c
- the corg.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 AdminShipperSearchResult getShippers(AdminShipperSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getShippers
in interface AdminShipmentMgrIf
search
- the searchorg.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 Enginepublic AdminShipper getShipper(int shipperId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getShipper
in interface AdminShipmentMgrIf
shipperId
- the shipperIdorg.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 addShipperSearchCriteria(com.konakart.db.KKCriteria c, AdminShipperSearch search)
c
- the csearch
- the searchprotected void addShipperOrderBy(com.konakart.db.KKCriteria c, AdminShipperSearch search)
c
- the csearch
- the searchpublic int insertShipper(AdminShipper shipper) throws org.apache.torque.TorqueException, KKAdminException
insertShipper
in interface AdminShipmentMgrIf
shipper
- A shipper objectorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic int updateShipper(AdminShipper shipper) throws org.apache.torque.TorqueException, KKAdminException
updateShipper
in interface AdminShipmentMgrIf
shipper
- A shipper objectorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin Enginepublic int deleteShipper(int shipperId) throws org.apache.torque.TorqueException, KKAdminException
deleteShipper
in interface AdminShipmentMgrIf
shipperId
- A shipper idorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- unexpected exception in the KonaKart Admin EngineCopyright © 2018 DS Data Systems UK Ltd.