Class FilenameExclusion

  • All Implemented Interfaces:
    FileExclusion

    public class FilenameExclusion
    extends AbstractFileExclusion
    Voter which checks the filename (not full path) of a given File along with the checksum to detect duplicates. If either the checksum or the checksum algorithm are null, then no detection will be attempted, i.e. the voter will return a null to abstain.
    Since:
    5.1
    • Constructor Detail

      • FilenameExclusion

        public FilenameExclusion()
    • Method Detail

      • suggestExclusion

        public java.lang.Boolean suggestExclusion​(ServiceFactoryPrx factory,
                                                  ImportContainer container)
                                           throws ServerError
        Description copied from interface: FileExclusion
        Given the current session attempt to discover if the given container should be skipped, i.e. not imported.
        Returns:
        null if no suggestion is being made. false if this implementation suggests skipping the given container, otherwise true.
        Throws:
        ServerError