Class ExcelMediaFilenameExtensionValidator

    • Field Detail

      • EXCEL_IMPORT_VALIDATION_MEDIA_EXTENSIONS

        protected static final java.lang.String EXCEL_IMPORT_VALIDATION_MEDIA_EXTENSIONS
        See Also:
        Constant Field Values
      • CONFIG_EXCEL_AVAILABLE_MEDIA_EXTENSIONS

        protected static final java.lang.String CONFIG_EXCEL_AVAILABLE_MEDIA_EXTENSIONS
        See Also:
        Constant Field Values
    • Constructor Detail

      • ExcelMediaFilenameExtensionValidator

        public ExcelMediaFilenameExtensionValidator()
    • Method Detail

      • validateSingleValue

        public java.util.List<ValidationMessage> validateSingleValue​(java.util.Map<java.lang.String,​java.lang.Object> context,
                                                                     java.util.Map<java.lang.String,​java.lang.String> parameters)
        Description copied from interface: ExcelSingleMediaValidator
        Allows to validate single media.
        Specified by:
        validateSingleValue in interface ExcelSingleMediaValidator
        Overrides:
        validateSingleValue in class ExcelMediaImportValidator
        Parameters:
        context - which allows to hold information about the file.
        parameters - values of excel's cell.
        Returns:
        the collection of errors. If media has no errors, then the empty collection should be returned.
      • validateZipEntries

        protected java.util.List<ValidationMessage> validateZipEntries​(java.lang.String filePath)
      • isNotAvailable

        protected boolean isNotAvailable​(java.lang.String extension)
      • getConfigExtensions

        protected java.util.Collection<java.lang.String> getConfigExtensions()
      • getAvailableExtensions

        protected java.lang.String getAvailableExtensions()
      • setConfigurationService

        public void setConfigurationService​(ConfigurationService configurationService)