Class CollectionsFileDocumentFileProcessor

  • All Implemented Interfaces:
    DocumentFileProcessor, SupportsTokenReplacer, java.io.FileFilter, java.nio.file.FileVisitor<java.nio.file.Path>

    public class CollectionsFileDocumentFileProcessor
    extends PropertiesDrivenDocumentFileProcessor
    Looks for a special file in each directory - defaults to collections.properties - that contains properties where the key is the name of a file in the directory, and the value is a comma-delimited list of collections to load the file into (which means you can't use a comma in any collection name).
    • Constructor Detail

      • CollectionsFileDocumentFileProcessor

        public CollectionsFileDocumentFileProcessor()
      • CollectionsFileDocumentFileProcessor

        public CollectionsFileDocumentFileProcessor​(java.lang.String propertiesFilename)
    • Method Detail

      • getDelimiter

        public java.lang.String getDelimiter()
      • setDelimiter

        public void setDelimiter​(java.lang.String delimiter)
      • preVisitDirectory

        public java.nio.file.FileVisitResult preVisitDirectory​(java.nio.file.Path dir,
                                                               java.nio.file.attribute.BasicFileAttributes attrs)
                                                        throws java.io.IOException
        Specified by:
        preVisitDirectory in interface java.nio.file.FileVisitor<java.nio.file.Path>
        Throws:
        java.io.IOException
      • postVisitDirectory

        public java.nio.file.FileVisitResult postVisitDirectory​(java.nio.file.Path dir,
                                                                java.io.IOException exc)
        Specified by:
        postVisitDirectory in interface java.nio.file.FileVisitor<java.nio.file.Path>
      • visitFile

        public java.nio.file.FileVisitResult visitFile​(java.nio.file.Path file,
                                                       java.nio.file.attribute.BasicFileAttributes attrs)
        Specified by:
        visitFile in interface java.nio.file.FileVisitor<java.nio.file.Path>
      • visitFileFailed

        public java.nio.file.FileVisitResult visitFileFailed​(java.nio.file.Path file,
                                                             java.io.IOException exc)
        Specified by:
        visitFileFailed in interface java.nio.file.FileVisitor<java.nio.file.Path>
      • isCascadingEnabled

        public boolean isCascadingEnabled()
      • setCascadingEnabled

        public void setCascadingEnabled​(boolean cascadingEnabled)