Class FileSearchOptions
java.lang.Object
de.xima.fc.workflow.FileSearchOptions
- All Implemented Interfaces:
IFileSearchOptions, Serializable
Default POJO implementation of
IFileSearchOptions.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder for file search options. -
Constructor Summary
ConstructorsConstructorDescriptionFileSearchOptions(String defaultResourceFileName) Deprecated.FileSearchOptions(String defaultResourceFileName, Iterable<String> allowedFileExtensions) Deprecated.Usebuilder()instead. -
Method Summary
Modifier and TypeMethodDescriptionstatic FileSearchOptions.Builderbuilder()Creates a new builder for file search options.List of allowed content types.List of allowed file extensions.File name that is used for external network resources.
-
Constructor Details
-
FileSearchOptions
Deprecated.Usebuilder()instead.A new POJO with the given data an nogetAllowedFileExtensions().- Parameters:
defaultResourceFileName- The value forgetDefaultResourceFileName().
-
FileSearchOptions
@Deprecated public FileSearchOptions(String defaultResourceFileName, Iterable<String> allowedFileExtensions) Deprecated.Usebuilder()instead.A new POJO with the given data.- Parameters:
defaultResourceFileName- The value forgetDefaultResourceFileName().allowedFileExtensions- The value forgetAllowedFileExtensions().
-
-
Method Details
-
getAllowedContentTypes
Description copied from interface:IFileSearchOptionsList of allowed content types. Only files with one of these content types are returned. Whennullor empty, no restriction is applied.- Specified by:
getAllowedContentTypesin interfaceIFileSearchOptions- Returns:
- Set of allowed content types.
-
getAllowedFileExtensions
Description copied from interface:IFileSearchOptionsList of allowed file extensions. Only files with one of these extensions are returned. Whennullor empty, no restriction is applied.- Specified by:
getAllowedFileExtensionsin interfaceIFileSearchOptions- Returns:
- Set of allowed file extensions.
-
getDefaultResourceFileName
Description copied from interface:IFileSearchOptionsFile name that is used for external network resources. If not given, a file name is derived from the URL.- Specified by:
getDefaultResourceFileNamein interfaceIFileSearchOptions- Returns:
- File name that is used for external network resources.
-
builder
Creates a new builder for file search options.- Returns:
- A new builder.
- Since:
- 8.2.0
-
builder()instead.