Class ExcelProductSupercategoriesTypeTranslator
java.lang.Object
com.hybris.backoffice.excel.translators.AbstractValidationAwareTranslator<T>
com.hybris.backoffice.excel.translators.AbstractExcelValueTranslator<T>
com.hybris.backoffice.excel.translators.AbstractCatalogVersionAwareTranslator<Collection<CategoryModel>>
com.hybris.backoffice.excel.translators.ExcelProductSupercategoriesTypeTranslator
- All Implemented Interfaces:
ExcelValueTranslator<Collection<CategoryModel>>,org.springframework.core.Ordered
@Deprecated(since="2005",
forRemoval=true)
public class ExcelProductSupercategoriesTypeTranslator
extends AbstractCatalogVersionAwareTranslator<Collection<CategoryModel>>
Deprecated, for removal: This API element is subject to removal in a future version.
Default excel translator for supercategories of product.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.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.protected StringexportCategory(CategoryModel category) Deprecated, for removal: This API element is subject to removal in a future version.exportData(Collection<CategoryModel> 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.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.Format how a reference should be presented.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
-
Field Details
-
CATEGORY_TOKEN
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
ExcelProductSupercategoriesTypeTranslator
public ExcelProductSupercategoriesTypeTranslator()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.
-
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<Collection<CategoryModel>>- 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
-
referenceFormat
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelValueTranslatorFormat how a reference should be presented. Usually references consist of a few fields indicated as unique. Therefore all unique attributes should be included in the format. Example reference format: "catalog:version"- Parameters:
attributeDescriptor-AttributeDescriptorModel- Returns:
- Format how a reference should be presented
-
exportCategory
Deprecated, for removal: This API element is subject to removal in a future version.
-
ExcelGenericReferenceTranslatoralready covers the supercategories translation.