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.
since 2005. The validator is not used anymore. ExcelGenericReferenceValidator already covers the catalog version validation.
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 Details

    • CATALOGS_KEY

      protected static final String CATALOGS_KEY
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • VERSIONS_KEY

      protected static final String VERSIONS_KEY
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • CATALOG_VERSIONS_KEY

      protected static final String CATALOG_VERSIONS_KEY
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • CATALOG_VERSIONS_FORMAT_KEY

      protected static final String CATALOG_VERSIONS_FORMAT_KEY
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • VALIDATION_CATALOG_EMPTY

      protected static final String VALIDATION_CATALOG_EMPTY
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • VALIDATION_CATALOG_VERSION_EMPTY

      protected static final String VALIDATION_CATALOG_VERSION_EMPTY
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • VALIDATION_CATALOG_DOESNT_EXIST

      protected static final String 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

      protected static final String 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

      protected static final String 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: ExcelValidator
      Validates given cell and returns validation result. If cell doesn't have validation issues then ExcelValidationResult.SUCCESS should be returned.
      Specified by:
      validate in interface ExcelValidator
      ctx - - map which can be used as a cache. The map is shared between all request for given excel sheet.
      Returns:
      ExcelValidationResult
    • populateContextIfNeeded

      protected void populateContextIfNeeded(Map<String,Object> ctx)
      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

      protected boolean catalogExists(Map<String,Object> ctx, Map<String,String> parameters)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • catalogVersionExists

      protected boolean catalogVersionExists(Map<String,Object> ctx, Map<String,String> parameters)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • catalogVersionMatch

      protected boolean catalogVersionMatch(Map<String,Object> ctx, Map<String,String> parameters)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • populateContext

      protected void populateContext(Map<String,Object> ctx)
      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: ExcelValidator
      Indicates whether given validator can handle a cell based on attribute descriptor and import parameters.
      Specified by:
      canHandle in interface ExcelValidator
      Returns:
      boolean whether validator can handle the cell.
    • getCatalogVersionService

      public CatalogVersionService getCatalogVersionService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setCatalogVersionService

      public void setCatalogVersionService(CatalogVersionService catalogVersionService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getUserService

      public UserService getUserService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setUserService

      public void setUserService(UserService userService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getTypeService

      public TypeService getTypeService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setTypeService

      public void setTypeService(TypeService typeService)
      Deprecated, for removal: This API element is subject to removal in a future version.