Class FileDocument.AssociatedFileFilter

  • All Implemented Interfaces:
    java.io.FilenameFilter
    Enclosing class:
    FileDocument

    public static class FileDocument.AssociatedFileFilter
    extends java.lang.Object
    implements java.io.FilenameFilter
    Filter files against a FileDocument instance to retrieve only File which are associated to the specified FileDocument (PDF file, txt file, thumbnail etc).

    This filters uses all regexp defined by properties file-document.associated-files.*.

    Since:
    jcms-7.0.0
    • Constructor Detail

      • AssociatedFileFilter

        public AssociatedFileFilter​(FileDocument fileDoc)
      • AssociatedFileFilter

        public AssociatedFileFilter​(java.io.File file)
    • Method Detail

      • accept

        public boolean accept​(java.io.File dir,
                              java.lang.String name)
        Specified by:
        accept in interface java.io.FilenameFilter