Class ExcelCatalogVersionValidator

  • All Implemented Interfaces:
    ExcelValidator
    Direct Known Subclasses:
    ExcelMediaCatalogVersionValidator

    @Deprecated(since="2005",
                forRemoval=true)
    public class ExcelCatalogVersionValidator
    extends java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String CATALOG_VERSIONS_FORMAT_KEY
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected static java.lang.String CATALOG_VERSIONS_KEY
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected static java.lang.String CATALOGS_KEY
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected static java.lang.String VALIDATION_CATALOG_DOESNT_EXIST
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected static java.lang.String VALIDATION_CATALOG_EMPTY
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected static java.lang.String VALIDATION_CATALOG_VERSION_DOESNT_EXIST
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected static java.lang.String VALIDATION_CATALOG_VERSION_DOESNT_MATCH
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected static java.lang.String VALIDATION_CATALOG_VERSION_EMPTY
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected static java.lang.String VERSIONS_KEY
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • 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
      boolean canHandle​(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 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.
       
      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.
       
      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.
       
      CatalogVersionService getCatalogVersionService()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      TypeService getTypeService()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      UserService getUserService()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      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.
       
      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.
       
      void setCatalogVersionService​(CatalogVersionService catalogVersionService)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setTypeService​(TypeService typeService)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setUserService​(UserService userService)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      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.
      Validates given cell and returns validation result.
      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.
       
      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.
       
      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.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • ExcelCatalogVersionValidator

        public ExcelCatalogVersionValidator()
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • 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: 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.