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 java.lang.Object implements ExcelValidatorDeprecated, for removal: This API element is subject to removal in a future version.since 2005. The validator is not used anymore.ExcelGenericReferenceValidatoralready 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 Summary
Fields Modifier and Type Field Description protected static java.lang.StringCATALOG_VERSIONS_FORMAT_KEYDeprecated, for removal: This API element is subject to removal in a future version.protected static java.lang.StringCATALOG_VERSIONS_KEYDeprecated, for removal: This API element is subject to removal in a future version.protected static java.lang.StringCATALOGS_KEYDeprecated, for removal: This API element is subject to removal in a future version.protected static java.lang.StringVALIDATION_CATALOG_DOESNT_EXISTDeprecated, for removal: This API element is subject to removal in a future version.protected static java.lang.StringVALIDATION_CATALOG_EMPTYDeprecated, for removal: This API element is subject to removal in a future version.protected static java.lang.StringVALIDATION_CATALOG_VERSION_DOESNT_EXISTDeprecated, for removal: This API element is subject to removal in a future version.protected static java.lang.StringVALIDATION_CATALOG_VERSION_DOESNT_MATCHDeprecated, for removal: This API element is subject to removal in a future version.protected static java.lang.StringVALIDATION_CATALOG_VERSION_EMPTYDeprecated, for removal: This API element is subject to removal in a future version.protected static java.lang.StringVERSIONS_KEYDeprecated, 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
Constructors Constructor Description ExcelCatalogVersionValidator()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancanHandle(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 booleancatalogExists(java.util.Map<java.lang.String,java.lang.Object> ctx, java.util.Map<java.lang.String,java.lang.String> parameters)Deprecated, for removal: This API element is subject to removal in a future version.protected booleancatalogVersionExists(java.util.Map<java.lang.String,java.lang.Object> ctx, java.util.Map<java.lang.String,java.lang.String> parameters)Deprecated, for removal: This API element is subject to removal in a future version.protected booleancatalogVersionMatch(java.util.Map<java.lang.String,java.lang.Object> ctx, java.util.Map<java.lang.String,java.lang.String> parameters)Deprecated, for removal: This API element is subject to removal in a future version.CatalogVersionServicegetCatalogVersionService()Deprecated, for removal: This API element is subject to removal in a future version.TypeServicegetTypeService()Deprecated, for removal: This API element is subject to removal in a future version.UserServicegetUserService()Deprecated, for removal: This API element is subject to removal in a future version.protected voidpopulateContext(java.util.Map<java.lang.String,java.lang.Object> ctx)Deprecated, for removal: This API element is subject to removal in a future version.protected voidpopulateContextIfNeeded(java.util.Map<java.lang.String,java.lang.Object> ctx)Deprecated, 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.ExcelValidationResultvalidate(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor, java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.Object> ctx, java.util.List<ValidationMessage> validationMessages, java.util.Map<java.lang.String,java.lang.String> parameters)Deprecated, for removal: This API element is subject to removal in a future version.protected voidvalidateCatalogVersion(java.util.Map<java.lang.String,java.lang.Object> ctx, java.util.List<ValidationMessage> validationMessages, java.util.Map<java.lang.String,java.lang.String> parameters)Deprecated, for removal: This API element is subject to removal in a future version.protected voidvalidateSingleReference(java.util.Map<java.lang.String,java.lang.Object> ctx, java.util.List<ValidationMessage> validationMessages, java.util.Map<java.lang.String,java.lang.String> parameters)Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Field Detail
-
CATALOGS_KEY
protected static final java.lang.String CATALOGS_KEY
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
VERSIONS_KEY
protected static final java.lang.String VERSIONS_KEY
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
CATALOG_VERSIONS_KEY
protected static final java.lang.String CATALOG_VERSIONS_KEY
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
CATALOG_VERSIONS_FORMAT_KEY
protected static final java.lang.String CATALOG_VERSIONS_FORMAT_KEY
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
VALIDATION_CATALOG_EMPTY
protected static final java.lang.String VALIDATION_CATALOG_EMPTY
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
VALIDATION_CATALOG_VERSION_EMPTY
protected static final java.lang.String VALIDATION_CATALOG_VERSION_EMPTY
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
VALIDATION_CATALOG_DOESNT_EXIST
protected static final java.lang.String VALIDATION_CATALOG_DOESNT_EXIST
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
VALIDATION_CATALOG_VERSION_DOESNT_EXIST
protected static final java.lang.String VALIDATION_CATALOG_VERSION_DOESNT_EXIST
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
VALIDATION_CATALOG_VERSION_DOESNT_MATCH
protected static final java.lang.String VALIDATION_CATALOG_VERSION_DOESNT_MATCH
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
-
Method Detail
-
validate
public ExcelValidationResult validate(ImportParameters importParameters, AttributeDescriptorModel attributeDescriptor, java.util.Map<java.lang.String,java.lang.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
protected void populateContextIfNeeded(java.util.Map<java.lang.String,java.lang.Object> ctx)
Deprecated, for removal: This API element is subject to removal in a future version.
-
validateSingleReference
protected void validateSingleReference(java.util.Map<java.lang.String,java.lang.Object> ctx, java.util.List<ValidationMessage> validationMessages, java.util.Map<java.lang.String,java.lang.String> parameters)Deprecated, for removal: This API element is subject to removal in a future version.
-
validateCatalogVersion
protected void validateCatalogVersion(java.util.Map<java.lang.String,java.lang.Object> ctx, java.util.List<ValidationMessage> validationMessages, java.util.Map<java.lang.String,java.lang.String> parameters)Deprecated, for removal: This API element is subject to removal in a future version.
-
validateCatalog
protected void validateCatalog(java.util.Map<java.lang.String,java.lang.Object> ctx, java.util.List<ValidationMessage> validationMessages, java.util.Map<java.lang.String,java.lang.String> parameters)Deprecated, for removal: This API element is subject to removal in a future version.
-
catalogExists
protected boolean catalogExists(java.util.Map<java.lang.String,java.lang.Object> ctx, java.util.Map<java.lang.String,java.lang.String> parameters)Deprecated, for removal: This API element is subject to removal in a future version.
-
catalogVersionExists
protected boolean catalogVersionExists(java.util.Map<java.lang.String,java.lang.Object> ctx, java.util.Map<java.lang.String,java.lang.String> parameters)Deprecated, for removal: This API element is subject to removal in a future version.
-
catalogVersionMatch
protected boolean catalogVersionMatch(java.util.Map<java.lang.String,java.lang.Object> ctx, java.util.Map<java.lang.String,java.lang.String> parameters)Deprecated, for removal: This API element is subject to removal in a future version.
-
populateContext
protected void populateContext(java.util.Map<java.lang.String,java.lang.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: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
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.
-
-