Package org.apache.ofbiz.pricat
Interface InterfacePricatParser
- All Known Implementing Classes:
AbstractPricatParser
,SamplePricatParser
public interface InterfacePricatParser
Interface of pricat parser.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final int
static final String[]
static final String
static final String
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsDataRows
(org.apache.poi.xssf.usermodel.XSSFSheet sheet) void
endExcelImportHistory
(String logFileName, String thruReasonId) boolean
existsCurrencyId
(org.apache.poi.xssf.usermodel.XSSFSheet sheet) getBrandId
(String brandName, String ownerPartyId) getCellContent
(List<Object> cellContents, String colName) getCellContents
(org.apache.poi.xssf.usermodel.XSSFRow row, List<Object[]> colNames, int size) getColorIds
(String productId, String ownerPartyId, String color) getDimensionIds
(String productId, String ownerPartyId, String dimension) getProductCategoryId
(List<Object> cellContents, String ownerPartyId) getProductId
(org.apache.poi.xssf.usermodel.XSSFRow row, String brandId, String modelName, String productName, String productCategoryId, String ownerPartyId, BigDecimal listPrice) boolean
void
initBasicConds
(List<String> orgPartyIds) boolean
isFacilityOk
(org.apache.poi.xssf.usermodel.XSSFRow row, String facilityName, String facilityId) boolean
isNumOfSheetsOK
(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook) boolean
isTableHeaderMatched
(org.apache.poi.xssf.usermodel.XSSFSheet sheet) boolean
isVersionSupported
(org.apache.poi.xssf.usermodel.XSSFSheet sheet) boolean
parseCellContentsAndStore
(org.apache.poi.xssf.usermodel.XSSFRow row, List<Object> cellContents) void
void
parseRowByRow
(org.apache.poi.xssf.usermodel.XSSFSheet sheet) void
setFacilityId
(String selectedFacilityId) updateColorAndDimension
(String productId, String ownerPartyId, String color, String dimension) updateSku
(org.apache.poi.xssf.usermodel.XSSFRow row, String productId, String ownerPartyId, String facilityId, String barcode, BigDecimal inventory, String colorId, String color, String dimensionId, String dimension, BigDecimal listPrice, BigDecimal averageCost) updateSkuPrice
(String skuId, String ownerPartyId, BigDecimal memberPrice) void
writeCommentsToFile
(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook, org.apache.poi.xssf.usermodel.XSSFSheet sheet)
-
Field Details
-
PARSE_EXCEL
- See Also:
-
CONFIRM
- See Also:
-
MESSAGE_LABELS
-
MESSAGES
-
TEMP_FILES_FOLDER
- See Also:
-
FILE_DATETIME_PATTERN
- See Also:
-
DEFAULT_COL_NAME
- See Also:
-
DEFAULT_DIM_NAME
- See Also:
-
DEFAULT_CAT_NAME
- See Also:
-
EXCEL_TEMPLATE_TYPE
- See Also:
-
FACILITY_ID
- See Also:
-
RESOURCE
- See Also:
-
PRICAT_FILE
- See Also:
-
DEFAULT_PRICAT_TYPE
- See Also:
-
PRICAT_TYPE_LABELS
-
HISTORY_MAX_FILENUMBER
static final int HISTORY_MAX_FILENUMBER
-
-
Method Details
-
parsePricatExcel
void parsePricatExcel() -
writeCommentsToFile
void writeCommentsToFile(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook, org.apache.poi.xssf.usermodel.XSSFSheet sheet) -
initBasicConds
-
existsCurrencyId
boolean existsCurrencyId(org.apache.poi.xssf.usermodel.XSSFSheet sheet) -
parseRowByRow
void parseRowByRow(org.apache.poi.xssf.usermodel.XSSFSheet sheet) -
parseCellContentsAndStore
boolean parseCellContentsAndStore(org.apache.poi.xssf.usermodel.XSSFRow row, List<Object> cellContents) throws GenericTransactionException - Throws:
GenericTransactionException
-
updateSkuPrice
-
updateSku
String updateSku(org.apache.poi.xssf.usermodel.XSSFRow row, String productId, String ownerPartyId, String facilityId, String barcode, BigDecimal inventory, String colorId, String color, String dimensionId, String dimension, BigDecimal listPrice, BigDecimal averageCost) -
updateColorAndDimension
-
getDimensionIds
-
getColorIds
-
getProductId
-
getBrandId
-
getCellContent
-
getProductCategoryId
-
isFacilityOk
-
getCellContents
-
isTableHeaderMatched
boolean isTableHeaderMatched(org.apache.poi.xssf.usermodel.XSSFSheet sheet) -
isVersionSupported
boolean isVersionSupported(org.apache.poi.xssf.usermodel.XSSFSheet sheet) -
containsDataRows
boolean containsDataRows(org.apache.poi.xssf.usermodel.XSSFSheet sheet) -
isNumOfSheetsOK
boolean isNumOfSheetsOK(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook) -
setFacilityId
-
endExcelImportHistory
-
hasErrorMessages
boolean hasErrorMessages()
-