Class BasicImportProcessor
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.importexport.BasicImportExportProcessor
com.softslate.commerce.businessobjects.importexport.BasicImportProcessor
- All Implemented Interfaces:
BusinessObject,BusinessProcessor,ImportExportProcessor,ImportProcessor
Business object class handling the processing of a text file import.
- Author:
- David Tobey, Ashish Jain
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intprotected boolean(package private) static org.apache.commons.logging.Logprotected ProductGatewayDAOprotected Collectionstatic final intstatic final intprotected booleanFields inherited from class com.softslate.commerce.businessobjects.importexport.BasicImportExportProcessor
ATTRIBUTE_TABLE, attributeDAO, BASICTAXRATE_TABLE, basicTaxRateDAO, CATEGORY_TABLE, categoryDAO, countryDAO, CUSTOMER_TABLE, manufacturerDAO, OPTION_TABLE, optionDAO, ORDER_TABLE, PRODUCT_SETTING_TABLE, PRODUCT_TABLE, productDAO, productSettingDAO, SHIPPINGRULE_TABLE, SHIPPINGRULERANGE_TABLE, SKU_TABLE, skuDAO, stateDAO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprocessAttributeImport(Map attributeMap, boolean commit) intprocessBasicTaxRateImport(Map basicTaxRateMap, boolean commit) intprocessCategoryImport(Map categoryMap, boolean commit) intprocessImport(DAOInterface dao, Map objectMap, Object bean, boolean commit) processImport(String tableName, Collection businessObjects, Map parameters) intprocessImport(String tableName, Map boMap, boolean commit) intprocessOptionImport(Map optionMap, boolean commit) intprocessProductImport(Map productMap, boolean commit) intprocessProductSettingImport(Map productSettingMap, boolean commit) intprocessSKUImport(Map skuMap, boolean commit) protected intupdateExtraCategories(String productCode, Set<String> categoryCodes) Methods inherited from class com.softslate.commerce.businessobjects.importexport.BasicImportExportProcessor
filterColumns, filterColumns, getImplementorNameFromTableName, loadColumnNames, loadMaxAttributeID, loadMaxBasicTaxRateID, loadMaxCategoryID, loadMaxCustomerID, loadMaxID, loadMaxOptionID, loadMaxOrderID, loadMaxProductID, loadMaxProductSettingID, loadMaxSKUID, processAttributeExport, processBasicTaxRateExport, processCategoryExport, processCustomerExport, processExport, processOptionExport, processOrderExport, processProductExport, processProductSettingExport, processSKUExportMethods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getProductIDs, getSettings, getUser, initialize, isProcessorClassActive, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPGet, sendHTTPPost, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, updateOrderTotals, updateOrderTotals, updateOrderTotals, utilsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initializeMethods inherited from interface com.softslate.commerce.businessobjects.core.BusinessProcessor
getAppComponents, getAppSettings, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getSettings, getUser, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, utilsMethods inherited from interface com.softslate.commerce.businessobjects.importexport.ImportExportProcessor
loadColumnNames, loadMaxID, processExport
-
Field Details
-
log
static org.apache.commons.logging.Log log -
resultMessages
-
insertBehavior
protected boolean insertBehavior -
updateBehavior
protected boolean updateBehavior -
INSERT
public static final int INSERT- See Also:
-
UPDATE
public static final int UPDATE- See Also:
-
SKIP
public static final int SKIP- See Also:
-
FAIL
public static final int FAIL- See Also:
-
productGatewayDAO
-
-
Constructor Details
-
BasicImportProcessor
public BasicImportProcessor()
-
-
Method Details
-
processImport
public Map processImport(String tableName, Collection businessObjects, Map parameters) throws Exception - Specified by:
processImportin interfaceImportProcessor- Throws:
Exception
-
processImport
- Throws:
Exception
-
processImport
public int processImport(DAOInterface dao, Map objectMap, Object bean, boolean commit) throws Exception - Throws:
Exception
-
processProductImport
- Throws:
Exception
-
updateExtraCategories
- Throws:
Exception
-
processOptionImport
- Throws:
Exception
-
processAttributeImport
- Throws:
Exception
-
processSKUImport
- Throws:
Exception
-
processCategoryImport
- Throws:
Exception
-
processProductSettingImport
- Throws:
Exception
-
processBasicTaxRateImport
- Throws:
Exception
-