Package de.xima.fc.workflow
Class FileSearchOptions
- java.lang.Object
-
- de.xima.fc.workflow.FileSearchOptions
-
- All Implemented Interfaces:
IFileSearchOptions,Serializable
public final class FileSearchOptions extends Object implements IFileSearchOptions, Serializable
Default POJO implementation ofIFileSearchOptions.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileSearchOptions.BuilderA builder for file search options.
-
Constructor Summary
Constructors Constructor Description FileSearchOptions(String defaultResourceFileName)Deprecated.Usebuilder()instead.FileSearchOptions(String defaultResourceFileName, Iterable<String> allowedFileExtensions)Deprecated.Usebuilder()instead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileSearchOptions.Builderbuilder()Creates a new builder for file search options.Set<String>getAllowedContentTypes()List of allowed content types.Set<String>getAllowedFileExtensions()List of allowed file extensions.StringgetDefaultResourceFileName()File name that is used for external network resources.
-
-
-
Constructor Detail
-
FileSearchOptions
@Deprecated public FileSearchOptions(String defaultResourceFileName)
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 Detail
-
getAllowedContentTypes
public Set<String> 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
public Set<String> 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
public String 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
public static FileSearchOptions.Builder builder()
Creates a new builder for file search options.- Returns:
- A new builder.
- Since:
- 8.2.0
-
-