Class ExcelCatalogVersionValidator
java.lang.Object
com.hybris.backoffice.excel.validators.ExcelCatalogVersionValidator
- All Implemented Interfaces:
ExcelValidator
- Direct Known Subclasses:
ExcelMediaCatalogVersionValidator
@Deprecated(since="2005",
forRemoval=true)
public class ExcelCatalogVersionValidator
extends Object
implements ExcelValidator
Deprecated, for removal: This API element is subject to removal in a future version.
Default excel validator for catalog version. The validator checks whether import parameters has "catalog" and
"version" key. Based on that, the validator checks whether catalog and version are not empty and exist.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringDeprecated, for removal: This API element is subject to removal in a future version.protected static final StringDeprecated, for removal: This API element is subject to removal in a future version.protected static final StringDeprecated, for removal: This API element is subject to removal in a future version.protected static final StringDeprecated, for removal: This API element is subject to removal in a future version.protected static final StringDeprecated, for removal: This API element is subject to removal in a future version.protected static final StringDeprecated, for removal: This API element is subject to removal in a future version.protected static final StringDeprecated, for removal: This API element is subject to removal in a future version.protected static final StringDeprecated, for removal: This API element is subject to removal in a future version.protected static final StringDeprecated, for removal: This API element is subject to removal in a future version.Fields inherited from interface com.hybris.backoffice.excel.validators.ExcelValidator
CTX_MEDIA_CONTENT_ENTRIES -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor) Deprecated, for removal: This API element is subject to removal in a future version.Indicates whether given validator can handle a cell based on attribute descriptor and import parameters.protected booleanDeprecated, for removal: This API element is subject to removal in a future version.protected booleanDeprecated, for removal: This API element is subject to removal in a future version.protected booleanDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.protected voidpopulateContext(Map<String, Object> ctx) Deprecated, for removal: This API element is subject to removal in a future version.protected voidDeprecated, for removal: This API element is subject to removal in a future version.voidsetCatalogVersionService(CatalogVersionService catalogVersionService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetTypeService(TypeService typeService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetUserService(UserService userService) Deprecated, for removal: This API element is subject to removal in a future version.validate(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor, Map<String, Object> ctx) Deprecated, for removal: This API element is subject to removal in a future version.Validates given cell and returns validation result.protected voidvalidateCatalog(Map<String, Object> ctx, List<ValidationMessage> validationMessages, Map<String, String> parameters) Deprecated, for removal: This API element is subject to removal in a future version.protected voidvalidateCatalogVersion(Map<String, Object> ctx, List<ValidationMessage> validationMessages, Map<String, String> parameters) Deprecated, for removal: This API element is subject to removal in a future version.protected voidvalidateSingleReference(Map<String, Object> ctx, List<ValidationMessage> validationMessages, Map<String, String> parameters) Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
CATALOGS_KEY
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
VERSIONS_KEY
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
CATALOG_VERSIONS_KEY
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
CATALOG_VERSIONS_FORMAT_KEY
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
VALIDATION_CATALOG_EMPTY
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
VALIDATION_CATALOG_VERSION_EMPTY
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
VALIDATION_CATALOG_DOESNT_EXIST
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
VALIDATION_CATALOG_VERSION_DOESNT_EXIST
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
VALIDATION_CATALOG_VERSION_DOESNT_MATCH
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
ExcelCatalogVersionValidator
public ExcelCatalogVersionValidator()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
validate
public ExcelValidationResult validate(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor, Map<String, Object> ctx) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelValidatorValidates given cell and returns validation result. If cell doesn't have validation issues thenExcelValidationResult.SUCCESSshould be returned.- Specified by:
validatein interfaceExcelValidatorctx- - map which can be used as a cache. The map is shared between all request for given excel sheet.- Returns:
ExcelValidationResult
-
populateContextIfNeeded
Deprecated, for removal: This API element is subject to removal in a future version. -
validateSingleReference
protected void validateSingleReference(Map<String, Object> ctx, List<ValidationMessage> validationMessages, Map<String, String> parameters) Deprecated, for removal: This API element is subject to removal in a future version. -
validateCatalogVersion
protected void validateCatalogVersion(Map<String, Object> ctx, List<ValidationMessage> validationMessages, Map<String, String> parameters) Deprecated, for removal: This API element is subject to removal in a future version. -
validateCatalog
protected void validateCatalog(Map<String, Object> ctx, List<ValidationMessage> validationMessages, Map<String, String> parameters) Deprecated, for removal: This API element is subject to removal in a future version. -
catalogExists
Deprecated, for removal: This API element is subject to removal in a future version. -
catalogVersionExists
Deprecated, for removal: This API element is subject to removal in a future version. -
catalogVersionMatch
Deprecated, for removal: This API element is subject to removal in a future version. -
populateContext
Deprecated, for removal: This API element is subject to removal in a future version. -
canHandle
public boolean canHandle(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExcelValidatorIndicates whether given validator can handle a cell based on attribute descriptor and import parameters.- Specified by:
canHandlein interfaceExcelValidator- Returns:
- boolean whether validator can handle the cell.
-
getCatalogVersionService
Deprecated, for removal: This API element is subject to removal in a future version. -
setCatalogVersionService
Deprecated, for removal: This API element is subject to removal in a future version. -
getUserService
Deprecated, for removal: This API element is subject to removal in a future version. -
setUserService
Deprecated, for removal: This API element is subject to removal in a future version. -
getTypeService
Deprecated, for removal: This API element is subject to removal in a future version. -
setTypeService
Deprecated, for removal: This API element is subject to removal in a future version.
-
ExcelGenericReferenceValidatoralready covers the catalog version validation.