Filter Classes
Use filtering classes to specify the types of files that are selected from your Azure Blob storage container during the Cloud hot folder synchronization process.
| Base Class / Interface | Extension | Class / Interface | Explanation |
|---|---|---|---|
| extends...file.filters.AbstractRegexPatternFileListFilter<T> | azurecloudhotfolder | AzureBlobRegexPatternFileListFilter | Implementation that filters for CloudBlob items where file name matches the given pattern. |
| extends...file.filters.AbstractPersistentAcceptOnceFileListFilter<T> | azurecloudhotfolder | AzureBlobPersistentAcceptOnceListFilter |
Implementation that filters for CloudBlob items that are files and haven’t already been accepted. See the section regarding caveats around once-only processing. |
| extends... file.filters.CompositeFileListFilter<F> | cloudcommons | ChainFileListFilter |
Used to chain the file filters to filter imported files by passing through the filters in the following default order. File Name Pattern Filter (by default this is set to ^((?!ignore).)*$) Accept Once File Filter
This should be used as the Filter constructor argument for any AzureBlobInboundSynchronizer to ensure that the poll only downloads the desired files.
|
Configuration Fine-Tuning
The AzureBlobRegexPatternFileListFilter requires a configuration property to specify the regex against which filenames are matched.
| File | Location | Configuration Items |
|---|---|---|
| project.properties | <HYBRIS_BIN_DIR>/ext-cloud/azurecloudhotfolder | azure.hotfolder.storage.container.match.pattern: a regex to match filenames and synchronize only the required files
Default: ^((?!ignore).)*$ |
Default Behavior
If no changes are made to the existing filters, the FilterChain, and the configuration property, then only filenames that don’t start with 'ignore' are accepted.