Package ome.formats.importer.exclusions
Class FilenameExclusion
- java.lang.Object
-
- ome.formats.importer.exclusions.AbstractFileExclusion
-
- ome.formats.importer.exclusions.FilenameExclusion
-
- All Implemented Interfaces:
FileExclusion
public class FilenameExclusion extends AbstractFileExclusion
Voter
which checks the filename (not full path) of a givenFile
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ome.formats.importer.exclusions.AbstractFileExclusion
AbstractFileExclusion.Exclusion
-
-
Constructor Summary
Constructors Constructor Description FilenameExclusion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
suggestExclusion(ServiceFactoryPrx factory, ImportContainer container)
-
Methods inherited from class ome.formats.importer.exclusions.AbstractFileExclusion
checksum, createExclusion
-
-
-
-
Method Detail
-
suggestExclusion
public java.lang.Boolean suggestExclusion(ServiceFactoryPrx factory, ImportContainer container) throws ServerError
Description copied from interface:FileExclusion
Given the currentsession
attempt to discover if the givencontainer
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
-
-