Class ExcelBaseProductTypeTranslator
java.lang.Object
com.hybris.backoffice.excel.translators.AbstractValidationAwareTranslator<T>
com.hybris.backoffice.excel.translators.AbstractExcelValueTranslator<T>
com.hybris.backoffice.excel.translators.AbstractCatalogVersionAwareTranslator<ProductModel>
com.hybris.backoffice.excel.translators.ExcelBaseProductTypeTranslator
- All Implemented Interfaces:
ExcelValueTranslator<ProductModel>,org.springframework.core.Ordered
@Deprecated(since="2005",
forRemoval=true)
public class ExcelBaseProductTypeTranslator
extends AbstractCatalogVersionAwareTranslator<ProductModel>
Deprecated, for removal: This API element is subject to removal in a future version.
Default translator for base product of variant product.
-
Field Summary
Fields inherited from class com.hybris.backoffice.excel.translators.AbstractExcelValueTranslator
orderFields inherited from class com.hybris.backoffice.excel.translators.AbstractValidationAwareTranslator
validatorsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(AttributeDescriptorModel attributeDescriptor) Deprecated, for removal: This API element is subject to removal in a future version.Indicates whether the translator can handle given attribute descriptor.exportData(ProductModel objectToExport) Deprecated, for removal: This API element is subject to removal in a future version.Converts given object to value which should be put into cell of exported excel file.Deprecated, for removal: This API element is subject to removal in a future version.importValue(AttributeDescriptorModel attributeDescriptor, ImportParameters importParameters) Deprecated, for removal: This API element is subject to removal in a future version.Imports single value instead of whole Impex object.referenceFormat(AttributeDescriptorModel attributeDescriptor) Deprecated, for removal: This API element is subject to removal in a future version.Returns reference format as "baseProductCode:version:catalog".voidsetExcelUniqueFilter(ExcelFilter<AttributeDescriptorModel> excelUniqueFilter) Deprecated, for removal: This API element is subject to removal in a future version.voidsetMandatoryFilter(ExcelFilter<AttributeDescriptorModel> mandatoryFilter) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class com.hybris.backoffice.excel.translators.AbstractCatalogVersionAwareTranslator
catalogVersionData, catalogVersionHeader, exportCatalogVersionData, getCatalogTypeService, referenceCatalogVersionFormat, setCatalogTypeServiceMethods inherited from class com.hybris.backoffice.excel.translators.AbstractExcelValueTranslator
getOrder, getTypeService, importData, isLocalizedOfType, setOrder, setTypeServiceMethods inherited from class com.hybris.backoffice.excel.translators.AbstractValidationAwareTranslator
getValidators, setValidators, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hybris.backoffice.excel.translators.ExcelValueTranslator
canHandle, exportData
-
Constructor Details
-
ExcelBaseProductTypeTranslator
public ExcelBaseProductTypeTranslator()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
canHandle
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelValueTranslatorIndicates whether the translator can handle given attribute descriptor. This method is Recommended during importing excel file.- Parameters:
attributeDescriptor-AttributeDescriptorModel- Returns:
- whether the translator can handle request
-
exportData
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelValueTranslatorConverts given object to value which should be put into cell of exported excel file.- Returns:
- value which will be put into cell of exported excel file.
-
referenceFormat
Deprecated, for removal: This API element is subject to removal in a future version.Returns reference format as "baseProductCode:version:catalog".- Parameters:
attributeDescriptor-AttributeDescriptorModel- Returns:
- Format how a reference should be presented
-
importValue
public ImpexValue importValue(AttributeDescriptorModel attributeDescriptor, ImportParameters importParameters) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractExcelValueTranslatorImports single value instead of whole Impex object. Impex value consists of header and value.- Specified by:
importValuein classAbstractExcelValueTranslator<ProductModel>- Parameters:
attributeDescriptor-AttributeDescriptorModeldescribes attribute which should be importedimportParameters- - contains information about language for localized field, type code, parsed parameters inserted into excel's cell.- Returns:
ImpexValuevalue which should be imported
-
setExcelUniqueFilter
Deprecated, for removal: This API element is subject to removal in a future version. -
getMandatoryFilter
Deprecated, for removal: This API element is subject to removal in a future version. -
setMandatoryFilter
Deprecated, for removal: This API element is subject to removal in a future version.
-
ExcelGenericReferenceTranslatoralready covers the base product translation.